From 5d1af6a6fe5280c3efeb014bfbe116b61b7cc367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 27 Dec 2023 06:36:54 -0500 Subject: [PATCH] revert(components): roll back i18n boilerplate we might not need it, since people of all walks of life can use the current site as-is, without needing US to localize things... --- components/layouts/navbar.vue | 44 ++++++++++++++-------------------- components/layouts/sidebar.vue | 5 +--- nuxt.config.ts | 16 ++++++------- 3 files changed, 27 insertions(+), 38 deletions(-) diff --git a/components/layouts/navbar.vue b/components/layouts/navbar.vue index 5b3b7fe..1151ada 100644 --- a/components/layouts/navbar.vue +++ b/components/layouts/navbar.vue @@ -48,55 +48,47 @@ @click="clickFn" :active-key="cur" > - {{ $tm("navbar.home") }} - {{ $tm("navbar.bands") }} - {{ $tm("navbar.authors") }} - {{ $tm("navbar.forum") }} - - {{ $tm("navbar.account") }} - - {{ $tm("navbar.editProfile") }} - - {{ $tm("navbar.profile") }} - {{ $tm("navbar.account") }} - {{ $tm("navbar.account") }} - {{ $tm("navbar.reviews") }} - {{ $tm("navbar.messages") }} + Home + Bands + Authors + Message Board + + Account + Edit Profile + View Profile + Stories + Drafts + Manage Reviews + Private Messages - {{ $tm("navbar.admin") }} - - - {{ $tm("navbar.logout") }} + Admin + Logout
- {{ $tm("newStoryButton") }} + Post a New Story
- {{ $tm("navbar.login") }} + Login - {{ $tm("navbar.register") }} + Register
diff --git a/components/layouts/sidebar.vue b/components/layouts/sidebar.vue index d0a1215..1183ef0 100644 --- a/components/layouts/sidebar.vue +++ b/components/layouts/sidebar.vue @@ -16,7 +16,6 @@ const selState = ref(""); const { data: injecto } = await useApiFetch("/sidebar"); - const { tm, rt } = useI18n(); let items: Ref = ref([ { @@ -58,9 +57,7 @@ } as SubMenuType, { key: "fun-features", - label: h("span", { class: "smallcaps" }, [ - rt(tm("sidebar.features")), - ]), + label: h("span", { class: "smallcaps" }, ["Fun features"]), icon: h(Icon, { istyle: "regular", name: "sparkles", diff --git a/nuxt.config.ts b/nuxt.config.ts index cc70c82..d871795 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -25,7 +25,7 @@ export default defineNuxtConfig({ // noScripts: true, treeshakeClientOnly: true, }, - devtools: { enabled: false }, + devtools: { enabled: true }, modules: [ "vue-recaptcha/nuxt", "@ant-design-vue/nuxt", @@ -33,12 +33,12 @@ export default defineNuxtConfig({ "@pinia/nuxt", "@vueuse/nuxt", "nuxt-speedkit", - "@nuxtjs/i18n", + // "@nuxtjs/i18n", // "./modules/09.loaded", ], - i18n: { - vueI18n: `./i18n.config.ts`, - }, + // i18n: { + // vueI18n: `./i18n.config.ts`, + // }, speedkit: { disableNuxtFontaine: true, lazyOffset: { @@ -120,9 +120,9 @@ export default defineNuxtConfig({ "@models": fileURLToPath(new URL("./models", import.meta.url)), "@client": fileURLToPath(new URL("./lib/client", import.meta.url)), "@server": fileURLToPath(new URL("./lib/server", import.meta.url)), - "@models/*": fileURLToPath(new URL("./models/*", import.meta.url)), - "@client/*": fileURLToPath(new URL("./lib/client/*", import.meta.url)), - "@server/*": fileURLToPath(new URL("./lib/server/*", import.meta.url)), + // "@models/*": fileURLToPath(new URL("./models/*", import.meta.url)), + // "@client/*": fileURLToPath(new URL("./lib/client/*", import.meta.url)), + // "@server/*": fileURLToPath(new URL("./lib/server/*", import.meta.url)), // "@models/**": "./models/**", // "@client/**": "./lib/client/**", // "@server/**": "./lib/server/**",