chore: restructure project and add i18n support
- Reorganize project structure with new electron and shared directories - Add comprehensive i18n support with Chinese, English, and Japanese locales - Update build configurations and TypeScript paths for new structure - Add various UI components including chat interface and task management - Include Windows release binaries and localization files - Update dependencies and fix import paths throughout the codebase
This commit is contained in:
24
src/pages/setting/index.vue
Normal file
24
src/pages/setting/index.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<layout>
|
||||
<div class="bg-white box-border w-full h-full flex">
|
||||
<SystemConfig @change=onChange />
|
||||
<component :is="currentComponent" />
|
||||
</div>
|
||||
</layout>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { shallowRef } from 'vue'
|
||||
import SystemConfig from './components/SystemConfig/index.vue'
|
||||
import AccountSetting from './components/AccountSetting/index.vue'
|
||||
import Version from './components/Version/index.vue'
|
||||
import RoomTypeSetting from './components/RoomTypeSetting/index.vue'
|
||||
|
||||
const currentComponent = shallowRef(AccountSetting)
|
||||
const components: any = {
|
||||
AccountSetting,
|
||||
RoomTypeSetting,
|
||||
Version,
|
||||
}
|
||||
const onChange = ({ componentName }: any) => currentComponent.value = components[componentName]
|
||||
</script>
|
||||
Reference in New Issue
Block a user