admin: link website instead of github

Massimo Melina committed Nov 3, 2024 at 14:55 UTC 9c3efc06c41e202e702c6df4ecac636c3b5137b9
2 files changed +3 -2
admin/src/MainMenu.ts
+2 -2
@@ -17,7 +17,7 @@ import LogoutPage from './LogoutPage';
17 import LangPage from './LangPage'
18 import LogsPage from './LogsPage';
19 import PluginsPage from './PluginsPage';
20 -import { getHFS, replaceStringToReact, REPO_URL } from '@hfs/shared'
20 +import { getHFS, replaceStringToReact, WEBSITE } from '@hfs/shared'
21 import CustomHtmlPage from './CustomHtmlPage';
22 import InternetPage from './InternetPage'
23 import { useWindowSize } from 'usehooks-ts'
@@ -62,7 +62,7 @@ export default function Menu({ onSelect, itemTitle }: { onSelect: ()=>void, item
62 }
63 },
64 h(Box, { id: 'hfs-name', display: 'flex', px: 2, py: .5, gap: 2, alignItems: 'center' },
65 - h('a', { href: REPO_URL, target: 'website', style: { textDecoration: 'none' } },
65 + h('a', { href: WEBSITE, target: 'website', style: { textDecoration: 'none' } },
66 h(Box, { color: 'primary.contrastText', fontSize: 'min(3rem, max(5vw, 4vh))' }, 'HFS')),
67 h(Box, { fontSize: 'small' }, replaceStringToReact(VERSION||'', /-/, () => h('br'))),
68 short && h('img', { src: logo, style: { height: '2.5em' } }),
src/cross.ts
+1
@@ -5,6 +5,7 @@ import { VfsNodeStored } from './vfs'
5 import picomatch from 'picomatch/lib/picomatch' // point directly to the browser-compatible source
6 export * from './cross-const'
7
8 +export const WEBSITE = 'https://rejetto.com/hfs/'
9 export const REPO_URL = 'https://github.com/rejetto/hfs/'
10 export const WIKI_URL = REPO_URL + 'wiki/'
11 export const MINUTE = 60_000