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" | 			@click="clickFn" | ||||||
| 			:active-key="cur" | 			:active-key="cur" | ||||||
| 		> | 		> | ||||||
| 			<a-menu-item key="home"> {{ $tm("navbar.home") }} </a-menu-item> | 			<a-menu-item key="home"> Home </a-menu-item> | ||||||
| 			<a-menu-item key="bands"> {{ $tm("navbar.bands") }} </a-menu-item> | 			<a-menu-item key="bands"> Bands </a-menu-item> | ||||||
| 			<a-menu-item key="authors"> {{ $tm("navbar.authors") }} </a-menu-item> | 			<a-menu-item key="authors"> Authors </a-menu-item> | ||||||
| 			<a-menu-item key="forum"> {{ $tm("navbar.forum") }} </a-menu-item> | 			<a-menu-item key="forum"> Message Board</a-menu-item> | ||||||
| 			<a-sub-menu | 			<a-sub-menu title="My Stuff" v-if="!!data?.user" key="group/my-stuff"> | ||||||
| 				:title="$tm('navbar.profile.myStuff') as any" | 				<a-menu-item key="account"> Account </a-menu-item> | ||||||
| 				v-if="!!data?.user" | 				<a-menu-item key="edit-profile"> Edit Profile </a-menu-item> | ||||||
| 				key="group/my-stuff" | 				<a-menu-item key="profile"> View Profile </a-menu-item> | ||||||
| 			> | 				<a-menu-item key="stories"> Stories </a-menu-item> | ||||||
| 				<a-menu-item key="account"> {{ $tm("navbar.account") }} </a-menu-item> | 				<a-menu-item key="drafts"> Drafts </a-menu-item> | ||||||
| 				<a-menu-item key="edit-profile"> | 				<a-menu-item key="reviews"> Manage Reviews </a-menu-item> | ||||||
| 					{{ $tm("navbar.editProfile") }} | 				<a-menu-item key="messages"> Private Messages </a-menu-item> | ||||||
| 				</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-sub-menu> | 			</a-sub-menu> | ||||||
| 			<a-menu-item key="admin" v-if="data?.user?.profile.isAdmin || false"> | 			<a-menu-item key="admin" v-if="data?.user?.profile.isAdmin || false"> | ||||||
| 				{{ $tm("navbar.admin") }} | 				Admin | ||||||
| 			</a-menu-item> |  | ||||||
| 			<a-menu-item key="logout" v-if="!!data?.user"> |  | ||||||
| 				{{ $tm("navbar.logout") }} |  | ||||||
| 			</a-menu-item> | 			</a-menu-item> | ||||||
|  | 			<a-menu-item key="logout" v-if="!!data?.user"> Logout </a-menu-item> | ||||||
| 		</a-menu> | 		</a-menu> | ||||||
| 		<div> | 		<div> | ||||||
| 			<a-button | 			<a-button | ||||||
| 				v-if="data?.user" | 				v-if="data?.user" | ||||||
| 				type="primary" | 				type="primary" | ||||||
| 				:tooltip="$tm('newStoryButton')" | 				tooltip="Post a New Story" | ||||||
| 				@click="() => navigateTo('/new-story')" | 				@click="() => navigateTo('/new-story')" | ||||||
| 			> | 			> | ||||||
| 				<!-- <template #icon> | 				<!-- <template #icon> | ||||||
| 				</template> --> | 				</template> --> | ||||||
| 				<icon istyle="regular" name="file-plus" /> | 				<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> | 			</a-button> | ||||||
| 		</div> | 		</div> | ||||||
| 		<div class="acbut" v-if="!data"> | 		<div class="acbut" v-if="!data"> | ||||||
| 			<a-button size="large" @click="() => navigateTo('/login')"> | 			<a-button size="large" @click="() => navigateTo('/login')"> | ||||||
| 				{{ $tm("navbar.login") }} | 				Login | ||||||
| 			</a-button> | 			</a-button> | ||||||
| 			<a-button | 			<a-button | ||||||
| 				size="large" | 				size="large" | ||||||
| 				type="primary" | 				type="primary" | ||||||
| 				@click="() => navigateTo('/register')" | 				@click="() => navigateTo('/register')" | ||||||
| 			> | 			> | ||||||
| 				{{ $tm("navbar.register") }} | 				Register | ||||||
| 			</a-button> | 			</a-button> | ||||||
| 		</div> | 		</div> | ||||||
| 	</div> | 	</div> | ||||||
|  | |||||||
| @ -16,7 +16,6 @@ | |||||||
| 	const selState = ref<string>(""); | 	const selState = ref<string>(""); | ||||||
| 
 | 
 | ||||||
| 	const { data: injecto } = await useApiFetch<ISidebarItem[]>("/sidebar"); | 	const { data: injecto } = await useApiFetch<ISidebarItem[]>("/sidebar"); | ||||||
| 	const { tm, rt } = useI18n(); |  | ||||||
| 
 | 
 | ||||||
| 	let items: Ref<ItemType[]> = ref([ | 	let items: Ref<ItemType[]> = ref([ | ||||||
| 		{ | 		{ | ||||||
| @ -58,9 +57,7 @@ | |||||||
| 		} as SubMenuType, | 		} as SubMenuType, | ||||||
| 		{ | 		{ | ||||||
| 			key: "fun-features", | 			key: "fun-features", | ||||||
| 			label: h("span", { class: "smallcaps" }, [ | 			label: h("span", { class: "smallcaps" }, ["Fun features"]), | ||||||
| 				rt(tm<string>("sidebar.features")), |  | ||||||
| 			]), |  | ||||||
| 			icon: h(Icon, { | 			icon: h(Icon, { | ||||||
| 				istyle: "regular", | 				istyle: "regular", | ||||||
| 				name: "sparkles", | 				name: "sparkles", | ||||||
|  | |||||||
| @ -25,7 +25,7 @@ export default defineNuxtConfig({ | |||||||
| 		// noScripts: true,
 | 		// noScripts: true,
 | ||||||
| 		treeshakeClientOnly: true, | 		treeshakeClientOnly: true, | ||||||
| 	}, | 	}, | ||||||
| 	devtools: { enabled: false }, | 	devtools: { enabled: true }, | ||||||
| 	modules: [ | 	modules: [ | ||||||
| 		"vue-recaptcha/nuxt", | 		"vue-recaptcha/nuxt", | ||||||
| 		"@ant-design-vue/nuxt", | 		"@ant-design-vue/nuxt", | ||||||
| @ -33,12 +33,12 @@ export default defineNuxtConfig({ | |||||||
| 		"@pinia/nuxt", | 		"@pinia/nuxt", | ||||||
| 		"@vueuse/nuxt", | 		"@vueuse/nuxt", | ||||||
| 		"nuxt-speedkit", | 		"nuxt-speedkit", | ||||||
| 		"@nuxtjs/i18n", | 		// "@nuxtjs/i18n",
 | ||||||
| 		// "./modules/09.loaded",
 | 		// "./modules/09.loaded",
 | ||||||
| 	], | 	], | ||||||
| 	i18n: { | 	// i18n: {
 | ||||||
| 		vueI18n: `./i18n.config.ts`, | 	// 	vueI18n: `./i18n.config.ts`,
 | ||||||
| 	}, | 	// },
 | ||||||
| 	speedkit: { | 	speedkit: { | ||||||
| 		disableNuxtFontaine: true, | 		disableNuxtFontaine: true, | ||||||
| 		lazyOffset: { | 		lazyOffset: { | ||||||
| @ -120,9 +120,9 @@ export default defineNuxtConfig({ | |||||||
| 		"@models": fileURLToPath(new URL("./models", import.meta.url)), | 		"@models": fileURLToPath(new URL("./models", import.meta.url)), | ||||||
| 		"@client": fileURLToPath(new URL("./lib/client", import.meta.url)), | 		"@client": fileURLToPath(new URL("./lib/client", import.meta.url)), | ||||||
| 		"@server": fileURLToPath(new URL("./lib/server", import.meta.url)), | 		"@server": fileURLToPath(new URL("./lib/server", import.meta.url)), | ||||||
| 		"@models/*": fileURLToPath(new URL("./models/*", import.meta.url)), | 		// "@models/*": fileURLToPath(new URL("./models/*", import.meta.url)),
 | ||||||
| 		"@client/*": fileURLToPath(new URL("./lib/client/*", import.meta.url)), | 		// "@client/*": fileURLToPath(new URL("./lib/client/*", import.meta.url)),
 | ||||||
| 		"@server/*": fileURLToPath(new URL("./lib/server/*", import.meta.url)), | 		// "@server/*": fileURLToPath(new URL("./lib/server/*", import.meta.url)),
 | ||||||
| 		//			"@models/**": "./models/**",
 | 		//			"@models/**": "./models/**",
 | ||||||
| 		//			"@client/**": "./lib/client/**",
 | 		//			"@client/**": "./lib/client/**",
 | ||||||
| 		//			"@server/**": "./lib/server/**",
 | 		//			"@server/**": "./lib/server/**",
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user