From aaea23f785b20d72198edf6a9a56fb04b698b5c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=8F=8C=E6=98=8E?= Date: Sat, 14 Sep 2024 11:05:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BA=94=E7=94=A8=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/assets/css/chat-app.styl | 41 +++++- web/src/assets/css/luma.styl | 2 +- web/src/router.js | 4 +- web/src/views/ChatApps.vue | 54 ++++++-- web/src/views/Luma.vue | 4 +- web/src/views/admin/AppType.vue | 208 ++++++++++++++++++++++++++++++- web/src/views/admin/Apps.vue | 31 +++++ web/vue.config.js | 6 + 8 files changed, 328 insertions(+), 22 deletions(-) diff --git a/web/src/assets/css/chat-app.styl b/web/src/assets/css/chat-app.styl index c7692bd4..a6dff71e 100644 --- a/web/src/assets/css/chat-app.styl +++ b/web/src/assets/css/chat-app.styl @@ -2,10 +2,49 @@ background-color: #282c34; height 100% + .apps-type-nav{ + height 43px + padding 8px 0; + margin-bottom 3px + } + + .scrollbar-type-nav{ + display flex + align-items center + height 43px + padding 0 5px + li{ + flex-shrink 0 + display flex + align-items center + justify-content center + margin 0 10px + height 26px + border-radius 4px + border 1px solid rgb(80,80,80) + padding 2px 12px + background rgba(60,60,60 0.9) + color #fff + font-size 14px + cursor pointer + + .image { + width 22px + height 22px + overflow hidden + margin-right 5px + } + &.active{ + background #21aa93; + } + } + } + + .inner { display flex color #ffffff - padding 15px; + padding 2px 15px; overflow-y visible overflow-x hidden diff --git a/web/src/assets/css/luma.styl b/web/src/assets/css/luma.styl index 212a47c8..a3b95efb 100644 --- a/web/src/assets/css/luma.styl +++ b/web/src/assets/css/luma.styl @@ -141,7 +141,7 @@ display flex flex-flow row align-items center - height 100px + min-height 100px padding 10px 15px border-radius 10px cursor pointer diff --git a/web/src/router.js b/web/src/router.js index 8507382a..e1ca5cd6 100644 --- a/web/src/router.js +++ b/web/src/router.js @@ -170,13 +170,13 @@ const routes = [ { path: '/admin/app', name: 'admin-app', - meta: {title: '应用管理'}, + meta: {title: '应用列表'}, component: () => import('@/views/admin/Apps.vue'), }, { path: '/admin/app/type', name: 'admin-app-type', - meta: {title: '应用管理'}, + meta: {title: '应用分类'}, component: () => import('@/views/admin/AppType.vue'), }, { diff --git a/web/src/views/ChatApps.vue b/web/src/views/ChatApps.vue index 45ab5677..8794de95 100644 --- a/web/src/views/ChatApps.vue +++ b/web/src/views/ChatApps.vue @@ -1,6 +1,20 @@