🌟 Display TDrive version (#209)
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
|
||||
/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta http-equiv="Expires" content="0" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
<style>
|
||||
#app,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export default {
|
||||
version: /* @VERSION */ '2023.Q1',
|
||||
version_detail: /* @VERSION_DETAIL */ '2023.Q1.1223',
|
||||
version_name: /* @VERSION_NAME */ 'Albatros',
|
||||
version: /* @VERSION */ '2023.Q3.011',
|
||||
version_detail: /* @VERSION_DETAIL */ '2023.Q3.011',
|
||||
version_name: /* @VERSION_NAME */ 'Ghost-Dog',
|
||||
};
|
||||
|
||||
@@ -2,21 +2,30 @@ import { MenuIcon } from '@heroicons/react/outline';
|
||||
import Account from '../common/account';
|
||||
import AppGrid from '../common/app-grid';
|
||||
import Search from '../common/search';
|
||||
import { Info } from "@atoms/text";
|
||||
import version from '../../../environment/version';
|
||||
|
||||
export default ({ openSideMenu }: { openSideMenu: () => void }) => {
|
||||
return (
|
||||
<div className="bg-white dark:bg-zinc-900 h-16 sm:h-20 p-4 sm:p-6 flex space-between items-center">
|
||||
<div className="sm:block hidden shrink-0 w-1/6 max-w-xs" style={{ minWidth: 100 }}>
|
||||
<img
|
||||
src="/public/img/logo/logo-text-black.png"
|
||||
className="h-6 ml-1 dark:hidden block"
|
||||
alt="Tdrive"
|
||||
/>
|
||||
<img
|
||||
src="/public/img/logo/logo-text-white.png"
|
||||
className="h-6 ml-1 dark:block hidden"
|
||||
alt="Tdrive"
|
||||
/>
|
||||
<div className="sm:inline-grid">
|
||||
<img
|
||||
src="/public/img/logo/logo-text-black.png"
|
||||
className="h-6 ml-1 dark:hidden block"
|
||||
alt="Tdrive"
|
||||
/>
|
||||
<img
|
||||
src="/public/img/logo/logo-text-white.png"
|
||||
className="h-6 ml-1 dark:block hidden"
|
||||
alt="Tdrive"
|
||||
/>
|
||||
</div>
|
||||
<div className="sm:inline-grid">
|
||||
<Info className="font-bold overflow-hidden text-ellipsis whitespace-nowrap w-full block -mb-1">
|
||||
v{version.version}
|
||||
</Info>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
onClick={() => openSideMenu()}
|
||||
|
||||
Reference in New Issue
Block a user