Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌟 Display TDrive version #209

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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