refactor: code cleanup

This commit is contained in:
saicaca authored and saica.go committed 2024-02-18 18:26:40 +08:00
1 parent 3cd21c2da9
commit af29b9160f
51 files changed
+872 -2264

No files matched your search

+2
View File
@@ -1 +1,3 @@
export const UNCATEGORIZED = '__uncategorized__'
export const PAGE_SIZE = 8
+18
View File
@@ -0,0 +1,18 @@
import { LinkPreset, type NavBarLink } from '@/types/config'
import I18nKey from '@i18n/i18nKey'
import { i18n } from '@i18n/translation'
export const LinkPresets: { [key in LinkPreset]: NavBarLink } = {
[LinkPreset.Home]: {
name: i18n(I18nKey.home),
url: '/',
},
[LinkPreset.About]: {
name: i18n(I18nKey.about),
url: '/about',
},
[LinkPreset.Archive]: {
name: i18n(I18nKey.archive),
url: '/archive',
},
}