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...
This commit is contained in:
		
							parent
							
								
									fee87645ae
								
							
						
					
					
						commit
						5d1af6a6fe
					
				| @ -48,55 +48,47 @@ | ||||
| 			@click="clickFn" | ||||
| 			:active-key="cur" | ||||
| 		> | ||||
| 			<a-menu-item key="home"> {{ $tm("navbar.home") }} </a-menu-item> | ||||
| 			<a-menu-item key="bands"> {{ $tm("navbar.bands") }} </a-menu-item> | ||||
| 			<a-menu-item key="authors"> {{ $tm("navbar.authors") }} </a-menu-item> | ||||
| 			<a-menu-item key="forum"> {{ $tm("navbar.forum") }} </a-menu-item> | ||||
| 			<a-sub-menu | ||||
| 				:title="$tm('navbar.profile.myStuff') as any" | ||||
| 				v-if="!!data?.user" | ||||
| 				key="group/my-stuff" | ||||
| 			> | ||||
| 				<a-menu-item key="account"> {{ $tm("navbar.account") }} </a-menu-item> | ||||
| 				<a-menu-item key="edit-profile"> | ||||
| 					{{ $tm("navbar.editProfile") }} | ||||
| 				</a-menu-item> | ||||
| 				<a-menu-item key="profile"> {{ $tm("navbar.profile") }} </a-menu-item> | ||||
| 				<a-menu-item key="stories"> {{ $tm("navbar.account") }} </a-menu-item> | ||||
| 				<a-menu-item key="drafts"> {{ $tm("navbar.account") }} </a-menu-item> | ||||
| 				<a-menu-item key="reviews"> {{ $tm("navbar.reviews") }} </a-menu-item> | ||||
| 				<a-menu-item key="messages"> {{ $tm("navbar.messages") }} </a-menu-item> | ||||
| 			<a-menu-item key="home"> Home </a-menu-item> | ||||
| 			<a-menu-item key="bands"> Bands </a-menu-item> | ||||
| 			<a-menu-item key="authors"> Authors </a-menu-item> | ||||
| 			<a-menu-item key="forum"> Message Board</a-menu-item> | ||||
| 			<a-sub-menu title="My Stuff" v-if="!!data?.user" key="group/my-stuff"> | ||||
| 				<a-menu-item key="account"> Account </a-menu-item> | ||||
| 				<a-menu-item key="edit-profile"> Edit Profile </a-menu-item> | ||||
| 				<a-menu-item key="profile"> View Profile </a-menu-item> | ||||
| 				<a-menu-item key="stories"> Stories </a-menu-item> | ||||
| 				<a-menu-item key="drafts"> Drafts </a-menu-item> | ||||
| 				<a-menu-item key="reviews"> Manage Reviews </a-menu-item> | ||||
| 				<a-menu-item key="messages"> Private Messages </a-menu-item> | ||||
| 			</a-sub-menu> | ||||
| 			<a-menu-item key="admin" v-if="data?.user?.profile.isAdmin || false"> | ||||
| 				{{ $tm("navbar.admin") }} | ||||
| 			</a-menu-item> | ||||
| 			<a-menu-item key="logout" v-if="!!data?.user"> | ||||
| 				{{ $tm("navbar.logout") }} | ||||
| 				Admin | ||||
| 			</a-menu-item> | ||||
| 			<a-menu-item key="logout" v-if="!!data?.user"> Logout </a-menu-item> | ||||
| 		</a-menu> | ||||
| 		<div> | ||||
| 			<a-button | ||||
| 				v-if="data?.user" | ||||
| 				type="primary" | ||||
| 				:tooltip="$tm('newStoryButton')" | ||||
| 				tooltip="Post a New Story" | ||||
| 				@click="() => navigateTo('/new-story')" | ||||
| 			> | ||||
| 				<!-- <template #icon> | ||||
| 				</template> --> | ||||
| 				<icon istyle="regular" name="file-plus" /> | ||||
| 				<span style="margin-left: 0.5em"> {{ $tm("newStoryButton") }} </span> | ||||
| 				<span style="margin-left: 0.5em"> Post a New Story </span> | ||||
| 			</a-button> | ||||
| 		</div> | ||||
| 		<div class="acbut" v-if="!data"> | ||||
| 			<a-button size="large" @click="() => navigateTo('/login')"> | ||||
| 				{{ $tm("navbar.login") }} | ||||
| 				Login | ||||
| 			</a-button> | ||||
| 			<a-button | ||||
| 				size="large" | ||||
| 				type="primary" | ||||
| 				@click="() => navigateTo('/register')" | ||||
| 			> | ||||
| 				{{ $tm("navbar.register") }} | ||||
| 				Register | ||||
| 			</a-button> | ||||
| 		</div> | ||||
| 	</div> | ||||
|  | ||||
| @ -16,7 +16,6 @@ | ||||
| 	const selState = ref<string>(""); | ||||
| 
 | ||||
| 	const { data: injecto } = await useApiFetch<ISidebarItem[]>("/sidebar"); | ||||
| 	const { tm, rt } = useI18n(); | ||||
| 
 | ||||
| 	let items: Ref<ItemType[]> = ref([ | ||||
| 		{ | ||||
| @ -58,9 +57,7 @@ | ||||
| 		} as SubMenuType, | ||||
| 		{ | ||||
| 			key: "fun-features", | ||||
| 			label: h("span", { class: "smallcaps" }, [ | ||||
| 				rt(tm<string>("sidebar.features")), | ||||
| 			]), | ||||
| 			label: h("span", { class: "smallcaps" }, ["Fun features"]), | ||||
| 			icon: h(Icon, { | ||||
| 				istyle: "regular", | ||||
| 				name: "sparkles", | ||||
|  | ||||
| @ -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/**",
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user