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:
27
src/pages/setting/components/SystemConfig/index.vue
Normal file
27
src/pages/setting/components/SystemConfig/index.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<div
|
||||
class="w-[136px] h-full box-border border-r-[1px] border-r-[#E5E8EE] py-[12px] px-[8px] flex flex-col gap-[4px] select-none">
|
||||
<div class="text-[12px] text-[#99A0AE] p-[4px]">系统设置</div>
|
||||
|
||||
<div
|
||||
:class="['box-border flex items-center py-[10px] px-[12px] rounded-[6px] cursor-pointer', item.id === currentId ? 'bg-[#EFF6FF]' : '']"
|
||||
v-for="item in systemMenus" :key="item.id" @click="handleClick(item)">
|
||||
<component :is="item.icon" :color="item.id === currentId ? item.activeColor : item.color"
|
||||
class="w-[20px] h-[20px]" />
|
||||
<span class="box-border px-[8px] text-[14px] font-medium text-[#525866]">{{ item.name }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, defineEmits } from 'vue'
|
||||
import { systemMenus } from '@src/constant/system-config'
|
||||
|
||||
const currentId = ref(1)
|
||||
|
||||
const emits = defineEmits(['change'])
|
||||
const handleClick = async (item: any) => {
|
||||
currentId.value = item.id
|
||||
emits('change', item)
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user