diff --git a/frontend/index.html b/frontend/index.html index 33b7568..db2beed 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -5,15 +5,6 @@ -
diff --git a/frontend/src/App.vue b/frontend/src/App.vue index b363d16..68d42a5 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,7 +1,5 @@ - + diff --git a/frontend/src/assets/global.less b/frontend/src/assets/global.less new file mode 100644 index 0000000..4192318 --- /dev/null +++ b/frontend/src/assets/global.less @@ -0,0 +1,16 @@ +#app { + font-family: Avenir, Helvetica, Arial, sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + text-align: center; + color: #2c3e50; + height: 100%; +} + +/* 滚动条 */ +::-webkit-scrollbar{width:8px;height:4px} +::-webkit-scrollbar-button{width:10px;height:0} +::-webkit-scrollbar-track{background:0 0} +::-webkit-scrollbar-thumb{background:#E6FFEE;-webkit-transition:.3s;transition:.3s} +::-webkit-scrollbar-thumb:hover{background-color:#07C160} +::-webkit-scrollbar-thumb:active{background-color:#07C160} \ No newline at end of file diff --git a/frontend/src/assets/theme.less b/frontend/src/assets/theme.less new file mode 100644 index 0000000..b8adb04 --- /dev/null +++ b/frontend/src/assets/theme.less @@ -0,0 +1,18 @@ +//@import 'ant-design-vue/dist/antd.less'; // 引入官方提供的 less 样式入口文件 +@import 'ant-design-vue/dist/antd.less'; + +// 可自定义主题颜色 +@primary-color: #07C160; // 全局主色 +@link-color: #1890ff; // 链接色 +@success-color: #52c41a; // 成功色 +@warning-color: #faad14; // 警告色 +@error-color: #f5222d; // 错误色 +@font-size-base: 14px; // 主字号 +@heading-color: rgba(0, 0, 0, 0.85); // 标题色 +@text-color: rgba(0, 0, 0, 0.65); // 主文本色 +@text-color-secondary: rgba(0, 0, 0, 0.45); // 次文本色 +@disabled-color: rgba(0, 0, 0, 0.25); // 失效色 +@border-radius-base: 4px; // 组件/浮层圆角 +@border-color-base: #dce3e8; // 边框色 +@box-shadow-base: 0 2px 8px rgba(0, 0, 0, 0.15); // 浮层阴影 + diff --git a/frontend/src/components/HelloWorld.vue b/frontend/src/components/HelloWorld.vue deleted file mode 100644 index 879051a..0000000 --- a/frontend/src/components/HelloWorld.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - diff --git a/frontend/src/config/router.config.js b/frontend/src/config/router.config.js deleted file mode 100644 index 4f0d12c..0000000 --- a/frontend/src/config/router.config.js +++ /dev/null @@ -1,166 +0,0 @@ -/** - * 基础路由 - * @type { *[] } - */ -import {AppSider, Menu} from '@/layouts' - -const RouteView = { - name: 'RouteView', - render: h => h('router-view') -} - -export const constantRouterMap = [ - { - path: '/', - component: AppSider, - children: [ - { - path: '/framework', - name: 'Framework', - component: Menu, - props: { id: 'framework' }, - redirect: { name: 'FrameworkSocketIpc' }, - children: [ - { - path: '/framework/socket/ipc', - name: 'FrameworkSocketIpc', - component: () => import('@/views/framework/socket/Ipc') - }, - { - path: '/framework/socket/httpserver', - name: 'FrameworkSocketHttpServer', - component: () => import('@/views/framework/socket/HttpServer') - }, - { - path: '/framework/socket/socketserver', - name: 'FrameworkSocketSocketServer', - component: () => import('@/views/framework/socket/SocketServer') - }, - { - path: '/framework/db/index', - name: 'FrameworkDBIndex', - component: () => import('@/views/framework/db/Index') - }, - { - path: '/framework/sqlitedb/index', - name: 'FrameworkSqliteDBIndex', - component: () => import('@/views/framework/sqlitedb/Index') - }, - { - path: '/framework/jobs/index', - name: 'FrameworkJobsIndex', - component: () => import('@/views/framework/jobs/Index') - }, - { - path: '/framework/updater/index', - name: 'FrameworkUpdaterIndex', - component: () => import('@/views/framework/updater/Index') - }, - { - path: '/framework/software/index', - name: 'FrameworkSoftwareIndex', - component: () => import('@/views/framework/software/Index') - }, - { - path: '/framework/java/index', - name: 'FrameworkJavaIndex', - component: () => import('@/views/framework/java/Index') - }, - { - path: '/framework/testapi/index', - name: 'FrameworkTestApiIndex', - component: () => import('@/views/framework/testapi/Index') - }, - ] - }, - { - path: '/os', - name: 'Os', - component: Menu, - props: { id: 'os' }, - redirect: { name: 'OsFileIndex' }, - children: [ - { - path: '/os/file/index', - name: 'OsFileIndex', - component: () => import('@/views/os/file/Index') - }, - { - path: '/os/windowview/index', - name: 'OsWindowViewIndex', - component: () => import('@/views/os/windowview/Index') - }, - { - path: '/os/window/index', - name: 'OsWindowIndex', - component: () => import('@/views/os/window/Index') - }, - { - path: '/os/notification/index', - name: 'OsNotificationIndex', - component: () => import('@/views/os/notification/Index') - }, - { - path: '/os/powermonitor/index', - name: 'OsPowerMonitorIndex', - component: () => import('@/views/os/powermonitor/Index') - }, - { - path: '/os/screen/index', - name: 'OsScreenIndex', - component: () => import('@/views/os/screen/Index') - }, - { - path: '/os/theme/index', - name: 'OsThemeIndex', - component: () => import('@/views/os/theme/Index') - }, - { - path: '/os/system/index', - name: 'OsSystemIndex', - component: () => import('@/views/os/system/Index') - }, - ] - }, - { - path: '/hardware', - name: 'Hardware', - component: Menu, - props: { id: 'hardware' }, - redirect: { name: 'HardwarePrinterIndex' }, - children: [ - { - path: '/hardware/printer/index', - name: 'HardwarePrinterIndex', - component: () => import('@/views/hardware/printer/Index') - }, - ] - }, - { - path: '/effect', - name: 'Effect', - component: Menu, - props: { id: 'effect' }, - redirect: { name: 'EffectVideoIndex' }, - children: [ - { - path: '/effect/video/index', - name: 'EffectVideoIndex', - component: () => import('@/views/effect/video/Index') - }, - ] - }, - ] - }, - { - path: '/special', - component: RouteView, - children: [ - { - path: 'subwindow', - name: 'SpecialSubwindowIpc', - component: () => import('@/views/os/subwindow/Ipc') - } - ] - }, -] diff --git a/frontend/src/config/subMenu.js b/frontend/src/config/subMenu.js deleted file mode 100644 index 9ead71b..0000000 --- a/frontend/src/config/subMenu.js +++ /dev/null @@ -1,127 +0,0 @@ -/** - * 子菜单 - */ -export default { - framework: { - 'menu_100' : { - icon: 'profile', - title: '通信', - pageName: 'FrameworkSocketIpc', - params: {} - }, - 'menu_101' : { - icon: 'profile', - title: 'http服务', - pageName: 'FrameworkSocketHttpServer', - params: {} - }, - 'menu_102' : { - icon: 'profile', - title: 'socket服务', - pageName: 'FrameworkSocketSocketServer', - params: {} - }, - 'menu_103' : { - icon: 'profile', - title: 'json数据库', - pageName: 'FrameworkDBIndex', - params: {} - }, - 'menu_104' : { - icon: 'profile', - title: 'sqlite数据库', - pageName: 'FrameworkSqliteDBIndex', - params: {} - }, - 'menu_105' : { - icon: 'profile', - title: '任务', - pageName: 'FrameworkJobsIndex', - params: {} - }, - 'menu_106' : { - icon: 'profile', - title: '自动更新', - pageName: 'FrameworkUpdaterIndex', - params: {} - }, - 'menu_107' : { - icon: 'profile', - title: '软件调用', - pageName: 'FrameworkSoftwareIndex', - params: {} - }, - 'menu_108' : { - icon: 'profile', - title: 'java', - pageName: 'FrameworkJavaIndex', - params: {} - }, - 'menu_109' : { - icon: 'profile', - title: '测试', - pageName: 'FrameworkTestApiIndex', - params: {} - }, - }, - os: { - 'menu_100' : { - icon: 'profile', - title: '文件', - pageName: 'OsFileIndex', - params: {} - }, - 'menu_101' : { - icon: 'profile', - title: '视图', - pageName: 'OsWindowViewIndex', - params: {} - }, - 'menu_102' : { - icon: 'profile', - title: '窗口', - pageName: 'OsWindowIndex', - params: {} - }, - 'menu_103' : { - icon: 'profile', - title: '桌面通知', - pageName: 'OsNotificationIndex', - params: {} - }, - 'menu_104' : { - icon: 'profile', - title: '电源监控', - pageName: 'OsPowerMonitorIndex', - params: {} - }, - 'menu_105' : { - icon: 'profile', - title: '屏幕信息', - pageName: 'OsScreenIndex', - params: {} - }, - 'menu_106' : { - icon: 'profile', - title: '系统主题', - pageName: 'OsThemeIndex', - params: {} - }, - }, - hardware: { - 'menu_100' : { - icon: 'profile', - title: '打印机', - pageName: 'HardwarePrinterIndex', - params: {} - } - }, - effect: { - 'menu_100' : { - icon: 'profile', - title: '视频播放器', - pageName: 'EffectVideoIndex', - params: {} - } - } -} diff --git a/frontend/src/layouts/Menu.vue b/frontend/src/layouts/Menu.vue index aa5cab7..eb28123 100644 --- a/frontend/src/layouts/Menu.vue +++ b/frontend/src/layouts/Menu.vue @@ -26,7 +26,7 @@