mirror of
https://github.com/tnb-labs/panel.git
synced 2026-09-01 14:55:12 +08:00
2d7fbeb370
- 引入设计系统 (tokens / naive-overrides / variables.scss),收敛颜色/圆角/阴影/字号/动效到唯一真相源,Naive UI 主色改回浅绿 - 新增系统组件 (PageContainer / ConfirmDialog / FormModal / FormDrawer 等),替换并删除 AppPage / CommonPage / DeleteConfirm - 全量视图迁移到新组件:列表页用 NFlex 排版操作列,搜索框用 !w-XX 覆盖 NInput 默认 100% 宽 - 工具箱 SSH/日志清理/磁盘 重写为更紧凑的卡片+sub-tabs 布局 - 终端页重做:macOS 风格 shell + 紧凑 tab + 红绿状态点 + 主机 drawer - 日志查看器重写:后端新增 GET /file/tail (反向分页) + WS /follow,前端用 anser 渲染 ANSI 颜色 + 原生 div 滚动 + WS 自动重连 - 修复多处 NPagination page-count 与 item-count 同时设置的警告 - 网站列表支持单击网站名打开编辑 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
65 lines
1.5 KiB
Go
65 lines
1.5 KiB
Go
import AutoImport from 'unplugin-auto-import/vite'
|
|
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
|
|
import Components from 'unplugin-vue-components/vite'
|
|
|
|
/**
|
|
* * unplugin-icons应用,自动引入iconify图标
|
|
* usage: https://github.com/antfu/unplugin-icons
|
|
* 图标库: https://icones.js.org/
|
|
*/
|
|
import IconsResolver from 'unplugin-icons/resolver'
|
|
import Icons from 'unplugin-icons/vite'
|
|
|
|
export default [
|
|
AutoImport({
|
|
imports: [
|
|
'vue',
|
|
'vue-router',
|
|
'pinia',
|
|
'@vueuse/core',
|
|
{
|
|
'alova/client': [
|
|
'actionDelegationMiddleware',
|
|
'accessAction',
|
|
'createClientTokenAuthentication',
|
|
'createServerTokenAuthentication',
|
|
'updateState',
|
|
'useAutoRequest',
|
|
'useCaptcha',
|
|
'useFetcher',
|
|
'useForm',
|
|
'usePagination',
|
|
'useRequest',
|
|
'useRetriable',
|
|
'useSQRequest',
|
|
'useSSE',
|
|
'useSerialRequest',
|
|
'useSerialWatcher',
|
|
'useWatcher'
|
|
]
|
|
}
|
|
],
|
|
dts: 'src/types/auto-imports.d.ts',
|
|
eslintrc: {
|
|
enabled: true
|
|
},
|
|
parser: 'acorn',
|
|
vueTemplate: true,
|
|
viteOptimizeDeps: true
|
|
}),
|
|
Components({
|
|
dirs: ['src/components', 'src/components/system'],
|
|
resolvers: [
|
|
NaiveUiResolver(),
|
|
IconsResolver()
|
|
],
|
|
dts: 'src/types/components.d.ts'
|
|
}),
|
|
Icons({
|
|
compiler: 'vue3',
|
|
scale: 1,
|
|
defaultClass: 'inline-block',
|
|
autoInstall: true
|
|
}),
|
|
]
|