Skip to content

Commit

Permalink
🌟 Display TDrive version (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
shepilov authored Sep 18, 2023
1 parent 07794bf commit 43a5dbd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
2 changes: 2 additions & 0 deletions tdrive/frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions tdrive/frontend/src/app/environment/version.ts
Original file line number Diff line number Diff line change
@@ -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',
};
29 changes: 19 additions & 10 deletions tdrive/frontend/src/app/views/client/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
&nbsp;v{version.version}
</Info>
</div>
</div>
<div
onClick={() => openSideMenu()}
Expand Down

0 comments on commit 43a5dbd

Please sign in to comment.