From 12942095ded1577299cb0817eba2753a157db3a7 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 28 Dec 2022 00:03:50 +0100 Subject: [PATCH] feat: move nav footer items to settings --- components/nav/NavBottomMoreMenu.vue | 39 ++++++------------- components/nav/NavFooter.vue | 14 ------- components/nav/SelectFontSize.vue | 23 ----------- components/nav/SelectLanguage.vue | 24 ------------ .../settings/SettingsColorMode.client.vue | 26 +++++++++++++ components/settings/SettingsFontSize.vue | 14 +++++++ components/settings/SettingsLanguage.vue | 15 +++++++ ...tingsToggle.vue => SettingsToggleItem.vue} | 0 components/user/UserSwitcher.vue | 10 ++--- locales/en-US.json | 7 +++- pages/settings/interface/index.vue | 16 ++++---- pages/settings/language/index.vue | 12 +++--- pages/settings/preferences/index.vue | 16 ++++---- pages/settings/users/index.vue | 2 +- unocss.config.ts | 2 + 15 files changed, 101 insertions(+), 119 deletions(-) delete mode 100644 components/nav/SelectFontSize.vue delete mode 100644 components/nav/SelectLanguage.vue create mode 100644 components/settings/SettingsColorMode.client.vue create mode 100644 components/settings/SettingsFontSize.vue create mode 100644 components/settings/SettingsLanguage.vue rename components/settings/{SettingsToggle.vue => SettingsToggleItem.vue} (100%) diff --git a/components/nav/NavBottomMoreMenu.vue b/components/nav/NavBottomMoreMenu.vue index a75d6bf0..82983be2 100644 --- a/components/nav/NavBottomMoreMenu.vue +++ b/components/nav/NavBottomMoreMenu.vue @@ -81,34 +81,17 @@ onBeforeUnmount(() => { {{ !isDark ? $t('menu.toggle_theme.dark') : $t('menu.toggle_theme.light') }} - - - - - - - - + + + {{ $t('nav.settings') }} + diff --git a/components/nav/NavFooter.vue b/components/nav/NavFooter.vue index b31d786f..414e3490 100644 --- a/components/nav/NavFooter.vue +++ b/components/nav/NavFooter.vue @@ -31,20 +31,6 @@ const buildTimeAgo = useTimeAgo(buildTimeDate, timeAgoOptions) :aria-label="$t('nav.settings')" /> - - - - - - - - - -
- + {{ $t('settings.interface.label') }}
-
-

- 🚧 -

-

- {{ $t('settings.interface.label') }} -

+
+ +
diff --git a/pages/settings/language/index.vue b/pages/settings/language/index.vue index 4fb2ede5..34cdc50e 100644 --- a/pages/settings/language/index.vue +++ b/pages/settings/language/index.vue @@ -9,13 +9,11 @@ const { lg } = breakpoints {{ $t('settings.language.label') }}
-
-

- 🚧 -

-

- {{ $t('settings.language.label') }} -

+
+
diff --git a/pages/settings/preferences/index.vue b/pages/settings/preferences/index.vue index 18c62eb9..77200c36 100644 --- a/pages/settings/preferences/index.vue +++ b/pages/settings/preferences/index.vue @@ -13,29 +13,29 @@ const { lg } = breakpoints
{{ $t('settings.feature_flags.title') }} - {{ $t('settings.feature_flags.virtual_scroll') }} - - + {{ $t('settings.feature_flags.avatar_on_avatar') }} - - + {{ $t('settings.feature_flags.github_cards') }} - - + {{ $t('settings.feature_flags.user_picker') }} - + diff --git a/pages/settings/users/index.vue b/pages/settings/users/index.vue index 72a09ab5..46370be4 100644 --- a/pages/settings/users/index.vue +++ b/pages/settings/users/index.vue @@ -69,7 +69,7 @@ async function importTokens() { {{ $t('settings.users.label') }}
-
+