diff --git a/.prettierrc.yaml b/.prettierrc.yaml index 8c33f1a..6734234 100644 --- a/.prettierrc.yaml +++ b/.prettierrc.yaml @@ -3,7 +3,7 @@ jsxBracketSameLine: true jsxSingleQuote: true semi: false singleQuote: true -printWidth: 100 +printWidth: 80 useTabs: false tabWidth: 2 trailingComma: none diff --git a/src/main.js b/src/main.js index 7cd6487..162ab45 100644 --- a/src/main.js +++ b/src/main.js @@ -6,6 +6,7 @@ import store from './store' import '//jscdn.ink/@bytedo/wcui/dist/form/input.js' import '//jscdn.ink/@bytedo/wcui/dist/form/button.js' +import '//jscdn.ink/@bytedo/wcui/dist/form/link.js' import '//jscdn.ink/@bytedo/wcui/dist/layer/index.js' const app = createApp(App) diff --git a/src/store.js b/src/store.js index c96d5e2..9b79883 100644 --- a/src/store.js +++ b/src/store.js @@ -3,10 +3,10 @@ import { reactive } from 'vue' const store = reactive({ user: {}, stats: { - 0: '已删除', - 1: '待审核中', - 2: '正常收录', - 9: '拒绝收录' + 0: '❌已删除', + 1: '🕒待审核中', + 2: '✅正常', + 9: '🙅🏻拒绝收录' } }) diff --git a/src/views/request.vue b/src/views/request.vue index 028afbc..7a7bd86 100644 --- a/src/views/request.vue +++ b/src/views/request.vue @@ -1,45 +1,327 @@ + + + + + 只显示待审核 + + 没找到你想的库?点击申请收录 + + + + + {{ it.id }} + {{ it.author }} + {{ it.description }} + {{ it.sync_date }} + {{ $store.stats[it.stat] }} + {{ it.remark }} + + 通过 + 拒绝 + 删除 + + + + + + + + + + 申请收录开源库 + + + 开源库名称: + + + + 作者: + {{ lib.author }} + + + 简介: + {{ lib.description }} + + + 最新版本: + {{ lib.latest }} + + + 提交申请 + + + + + + - - - - - - 开源库 - 作者 - 介绍 - 最后同步日期 - 收录状态 - - - - - {{ it.id }} - {{ it.author }} - {{ it.description }} - {{ it.sync_date }} - {{ $store.stats[it.stat] }} - - - - - +