@sugarat/easypicker2-client 2.4.3 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/aria-bc8e8b0f.js +2 -0
- package/dist/assets/aria-bc8e8b0f.js.map +1 -0
- package/dist/assets/aria-legacy.af0825d3.js +2 -0
- package/dist/assets/data-analysis-3ce8c1c1.js +2 -0
- package/dist/assets/data-analysis-3ce8c1c1.js.map +1 -0
- package/dist/assets/data-analysis-legacy.985137a1.js +2 -0
- package/dist/assets/data-board-fc2c2ec1.js +2 -0
- package/dist/assets/data-board-fc2c2ec1.js.map +1 -0
- package/dist/assets/data-board-legacy.33116f7c.js +2 -0
- package/dist/assets/el-date-picker-b377a533.js +2 -0
- package/dist/assets/el-date-picker-b377a533.js.map +1 -0
- package/dist/assets/el-date-picker-cf2e83b6.css +1 -0
- package/dist/assets/el-date-picker-legacy.127f0787.js +2 -0
- package/dist/assets/el-dialog-25bd2fb8.css +1 -0
- package/dist/assets/el-dialog-5b7bce58.js +2 -0
- package/dist/assets/el-dialog-5b7bce58.js.map +1 -0
- package/dist/assets/el-dialog-legacy.e6ef2c86.js +2 -0
- package/dist/assets/el-dropdown-item-0c6ddabc.css +1 -0
- package/dist/assets/el-dropdown-item-e0275106.js +2 -0
- package/dist/assets/el-dropdown-item-e0275106.js.map +1 -0
- package/dist/assets/el-dropdown-item-legacy.4888d114.js +2 -0
- package/dist/assets/el-form-item-3aad794a.css +1 -0
- package/dist/assets/el-form-item-c0658f70.js +2 -0
- package/dist/assets/el-form-item-c0658f70.js.map +1 -0
- package/dist/assets/el-form-item-legacy.a8e8784e.js +2 -0
- package/dist/assets/el-loading-c8798044.js +2 -0
- package/dist/assets/el-loading-c8798044.js.map +1 -0
- package/dist/assets/el-loading-d0f2d079.css +1 -0
- package/dist/assets/el-loading-legacy.534bd799.js +2 -0
- package/dist/assets/el-pagination-bf7c736d.css +1 -0
- package/dist/assets/el-pagination-dabcccbb.js +2 -0
- package/dist/assets/el-pagination-dabcccbb.js.map +1 -0
- package/dist/assets/el-pagination-legacy.7d2ae10d.js +2 -0
- package/dist/assets/el-progress-54b274cd.js +2 -0
- package/dist/assets/el-progress-54b274cd.js.map +1 -0
- package/dist/assets/el-progress-63aabe3a.css +1 -0
- package/dist/assets/el-progress-legacy.07ca6502.js +2 -0
- package/dist/assets/el-select-6be23320.css +1 -0
- package/dist/assets/el-select-f81a7377.js +2 -0
- package/dist/assets/el-select-f81a7377.js.map +1 -0
- package/dist/assets/el-select-legacy.94fad7fa.js +2 -0
- package/dist/assets/el-switch-9eba6fd0.js +2 -0
- package/dist/assets/el-switch-9eba6fd0.js.map +1 -0
- package/dist/assets/el-switch-aeab2c6b.css +1 -0
- package/dist/assets/el-switch-legacy.490534be.js +2 -0
- package/dist/assets/el-tab-pane-4a1bb4c7.css +1 -0
- package/dist/assets/el-tab-pane-89bdd69b.js +2 -0
- package/dist/assets/el-tab-pane-89bdd69b.js.map +1 -0
- package/dist/assets/el-tab-pane-legacy.cfdbc441.js +2 -0
- package/dist/assets/el-table-column-6716308a.js +21 -0
- package/dist/assets/el-table-column-6716308a.js.map +1 -0
- package/dist/assets/el-table-column-6c2089f9.css +1 -0
- package/dist/assets/el-table-column-legacy.49685e5a.js +24 -0
- package/dist/assets/index-01e33329.css +1 -0
- package/dist/assets/index-0b0f29ec.js +2 -0
- package/dist/assets/index-0b0f29ec.js.map +1 -0
- package/dist/assets/index-17c6005d.css +1 -0
- package/dist/assets/index-20019c57.js +2 -0
- package/dist/assets/index-20019c57.js.map +1 -0
- package/dist/assets/index-247f2c67.css +1 -0
- package/dist/assets/index-248e88e2.js +2 -0
- package/dist/assets/index-248e88e2.js.map +1 -0
- package/dist/assets/index-3091894a.css +1 -0
- package/dist/assets/index-37e15bc6.css +1 -0
- package/dist/assets/index-39637d43.js +2 -0
- package/dist/assets/index-39637d43.js.map +1 -0
- package/dist/assets/index-3f82ab7a.css +1 -0
- package/dist/assets/index-4c81cf78.css +1 -0
- package/dist/assets/index-5099f123.js +2 -0
- package/dist/assets/index-5099f123.js.map +1 -0
- package/dist/assets/index-57513f17.css +1 -0
- package/dist/assets/index-76f31e30.css +1 -0
- package/dist/assets/index-76ff9b9b.css +1 -0
- package/dist/assets/index-8557974a.js +2 -0
- package/dist/assets/index-8557974a.js.map +1 -0
- package/dist/assets/index-85fcd87a.css +1 -0
- package/dist/assets/index-867d07e4.js +2 -0
- package/dist/assets/index-867d07e4.js.map +1 -0
- package/dist/assets/index-8f353d3b.js +2 -0
- package/dist/assets/index-8f353d3b.js.map +1 -0
- package/dist/assets/index-8f7abc30.js +2 -0
- package/dist/assets/index-8f7abc30.js.map +1 -0
- package/dist/assets/index-8fbd06a5.js +2 -0
- package/dist/assets/index-8fbd06a5.js.map +1 -0
- package/dist/assets/index-93c733b3.css +1 -0
- package/dist/assets/index-98b55468.css +1 -0
- package/dist/assets/index-9e6bd406.js +2 -0
- package/dist/assets/index-9e6bd406.js.map +1 -0
- package/dist/assets/index-a880597c.css +1 -0
- package/dist/assets/index-acdbf3b6.js +2 -0
- package/dist/assets/index-acdbf3b6.js.map +1 -0
- package/dist/assets/index-b3e58b02.js +2 -0
- package/dist/assets/index-b3e58b02.js.map +1 -0
- package/dist/assets/index-c13133c5.js +2 -0
- package/dist/assets/index-c13133c5.js.map +1 -0
- package/dist/assets/index-c1d6836c.js +2 -0
- package/dist/assets/index-c1d6836c.js.map +1 -0
- package/dist/assets/index-d26aeed5.css +1 -0
- package/dist/assets/index-d98be3e4.js +19 -0
- package/dist/assets/index-d98be3e4.js.map +1 -0
- package/dist/assets/index-d9db6cc1.js +2 -0
- package/dist/assets/index-d9db6cc1.js.map +1 -0
- package/dist/assets/index-da51da36.css +1 -0
- package/dist/assets/index-e0ef7135.js +2 -0
- package/dist/assets/index-e0ef7135.js.map +1 -0
- package/dist/assets/index-e7d8a83e.css +1 -0
- package/dist/assets/index-ebf625c9.js +2 -0
- package/dist/assets/index-ebf625c9.js.map +1 -0
- package/dist/assets/index-eda7d85a.js +2 -0
- package/dist/assets/index-eda7d85a.js.map +1 -0
- package/dist/assets/index-fdc557f8.js +2 -0
- package/dist/assets/index-fdc557f8.js.map +1 -0
- package/dist/assets/index-legacy.0c570346.js +2 -0
- package/dist/assets/index-legacy.24edddf9.js +2 -0
- package/dist/assets/index-legacy.31681402.js +2 -0
- package/dist/assets/index-legacy.3e6b32cf.js +2 -0
- package/dist/assets/index-legacy.4edc099d.js +2 -0
- package/dist/assets/index-legacy.614df679.js +2 -0
- package/dist/assets/index-legacy.6420d0ab.js +2 -0
- package/dist/assets/index-legacy.679e5ce1.js +2 -0
- package/dist/assets/index-legacy.7b42e0cb.js +2 -0
- package/dist/assets/index-legacy.7bafa2e6.js +2 -0
- package/dist/assets/index-legacy.7ff3d773.js +2 -0
- package/dist/assets/index-legacy.84e0eca9.js +2 -0
- package/dist/assets/index-legacy.9ca64f8c.js +2 -0
- package/dist/assets/index-legacy.a4371211.js +2 -0
- package/dist/assets/index-legacy.acb8b137.js +23 -0
- package/dist/assets/index-legacy.bc3790f6.js +2 -0
- package/dist/assets/index-legacy.d0e21cb1.js +2 -0
- package/dist/assets/index-legacy.daf56c8f.js +2 -0
- package/dist/assets/index-legacy.e12feae0.js +2 -0
- package/dist/assets/index-legacy.e7f8790c.js +2 -0
- package/dist/assets/index-legacy.f84efe08.js +2 -0
- package/dist/assets/isEqual-82bb65ad.js +2 -0
- package/dist/assets/isEqual-82bb65ad.js.map +1 -0
- package/dist/assets/isEqual-legacy.dbaa2a6e.js +2 -0
- package/dist/assets/other-8d7ba6a0.js +2 -0
- package/dist/assets/other-8d7ba6a0.js.map +1 -0
- package/dist/assets/other-legacy.39078796.js +2 -0
- package/dist/assets/polyfills-legacy.99e38685.js +4 -0
- package/dist/assets/refresh-f2c4c532.js +2 -0
- package/dist/assets/refresh-f2c4c532.js.map +1 -0
- package/dist/assets/refresh-legacy.0ee83ca1.js +2 -0
- package/dist/assets/tip-3d272885.js +2 -0
- package/dist/assets/tip-3d272885.js.map +1 -0
- package/dist/assets/tip-9cb18ee8.css +1 -0
- package/dist/assets/tip-legacy.dee89e85.js +2 -0
- package/dist/assets/validator-d4ea1237.js +2 -0
- package/dist/assets/validator-d4ea1237.js.map +1 -0
- package/dist/assets/validator-legacy.ecd1e5dd.js +2 -0
- package/{index.html → dist/index.html} +8 -1
- package/package.json +30 -19
- package/.env +0 -6
- package/.env.production +0 -3
- package/.env.test +0 -4
- package/.eslintignore +0 -0
- package/.eslintrc.json +0 -57
- package/.github/workflows/main.yml +0 -61
- package/.prettierrc.js +0 -9
- package/auto-imports.d.ts +0 -6
- package/components.d.ts +0 -56
- package/docker/ep_backup/easypicker2.sql +0 -214
- package/docker/ep_backup/mongodb/easypicker2/action.bson +0 -0
- package/docker/ep_backup/mongodb/easypicker2/action.metadata.json +0 -1
- package/docker/ep_backup/mongodb/easypicker2/log.bson +0 -0
- package/docker/ep_backup/mongodb/easypicker2/log.metadata.json +0 -1
- package/docker/ep_backup/user-config.json +0 -176
- package/docs/.env +0 -1
- package/docs/.env.production +0 -2
- package/docs/.vitepress/config.ts +0 -204
- package/docs/.vitepress/theme/bg.png +0 -0
- package/docs/.vitepress/theme/index.scss +0 -41
- package/docs/.vitepress/theme/index.ts +0 -5
- package/docs/author.md +0 -24
- package/docs/auto-imports.d.ts +0 -6
- package/docs/components.d.ts +0 -17
- package/docs/deploy/design/api.md +0 -3
- package/docs/deploy/design/db.md +0 -3
- package/docs/deploy/design/index.md +0 -3
- package/docs/deploy/design/shell.md +0 -9
- package/docs/deploy/faq.md +0 -86
- package/docs/deploy/index.md +0 -9
- package/docs/deploy/local.md +0 -275
- package/docs/deploy/online-new.md +0 -610
- package/docs/deploy/online.md +0 -683
- package/docs/deploy/qiniu.md +0 -183
- package/docs/index.md +0 -40
- package/docs/introduction/about/code.md +0 -26
- package/docs/introduction/about/index.md +0 -33
- package/docs/introduction/feature/index.md +0 -3
- package/docs/plan/log.md +0 -346
- package/docs/plan/todo.md +0 -127
- package/docs/plan/wish.md +0 -29
- package/docs/praise/index.md +0 -45
- package/docs/public/robots.txt +0 -2
- package/docs/src/apis/ajax.ts +0 -66
- package/docs/src/apis/index.ts +0 -1
- package/docs/src/apis/modules/wish.ts +0 -20
- package/docs/src/components/Avatar.vue +0 -60
- package/docs/src/components/Home.vue +0 -85
- package/docs/src/components/Picture.vue +0 -13
- package/docs/src/components/Praise.vue +0 -52
- package/docs/src/components/WishBtn.vue +0 -98
- package/docs/src/components/WishPanel.vue +0 -170
- package/docs/src/components/callme/index.vue +0 -72
- package/docs/vite.config.ts +0 -42
- package/public/favicon.ico +0 -0
- package/public/logo.png +0 -0
- package/scripts/deploy/docs.mjs +0 -24
- package/scripts/deploy/prod.mjs +0 -24
- package/scripts/deploy/test.mjs +0 -26
- package/src/@types/ajax.d.ts +0 -5
- package/src/@types/api.d.ts +0 -305
- package/src/@types/lib.d.ts +0 -26
- package/src/@types/page.d.ts +0 -18
- package/src/App.vue +0 -36
- package/src/apis/ajax.ts +0 -72
- package/src/apis/index.ts +0 -20
- package/src/apis/modules/action.ts +0 -17
- package/src/apis/modules/category.ts +0 -20
- package/src/apis/modules/config.ts +0 -19
- package/src/apis/modules/file.ts +0 -150
- package/src/apis/modules/people.ts +0 -81
- package/src/apis/modules/public.ts +0 -49
- package/src/apis/modules/super/overview.ts +0 -56
- package/src/apis/modules/super/user.ts +0 -62
- package/src/apis/modules/task.ts +0 -67
- package/src/apis/modules/user.ts +0 -56
- package/src/apis/modules/wish.ts +0 -31
- package/src/assets/i/EasyPicker.png +0 -0
- package/src/assets/logo.png +0 -0
- package/src/assets/styles/app.css +0 -69
- package/src/components/HomeFooter/index.vue +0 -134
- package/src/components/HomeHeader/index.vue +0 -156
- package/src/components/InfosForm/index.vue +0 -73
- package/src/components/MessageList/index.vue +0 -155
- package/src/components/MessagePanel/index.vue +0 -46
- package/src/components/Praise/index.vue +0 -102
- package/src/components/QrCode.vue +0 -44
- package/src/components/linkDialog.vue +0 -104
- package/src/components/loginPanel.vue +0 -92
- package/src/constants/index.ts +0 -83
- package/src/env.d.ts +0 -8
- package/src/main.ts +0 -19
- package/src/pages/404/index.vue +0 -59
- package/src/pages/about/index.vue +0 -152
- package/src/pages/callme/index.vue +0 -155
- package/src/pages/dashboard/config/index.vue +0 -304
- package/src/pages/dashboard/files/index.vue +0 -1152
- package/src/pages/dashboard/index.vue +0 -335
- package/src/pages/dashboard/manage/config/index.vue +0 -97
- package/src/pages/dashboard/manage/index.vue +0 -105
- package/src/pages/dashboard/manage/overview/index.vue +0 -486
- package/src/pages/dashboard/manage/user/index.vue +0 -678
- package/src/pages/dashboard/manage/wish/index.vue +0 -257
- package/src/pages/dashboard/tasks/components/CategoryPanel.vue +0 -208
- package/src/pages/dashboard/tasks/components/CreateTask.vue +0 -93
- package/src/pages/dashboard/tasks/components/TaskInfo.vue +0 -129
- package/src/pages/dashboard/tasks/components/infoPanel/ddl.vue +0 -96
- package/src/pages/dashboard/tasks/components/infoPanel/file.vue +0 -175
- package/src/pages/dashboard/tasks/components/infoPanel/info.vue +0 -467
- package/src/pages/dashboard/tasks/components/infoPanel/people.vue +0 -566
- package/src/pages/dashboard/tasks/components/infoPanel/template.vue +0 -146
- package/src/pages/dashboard/tasks/components/infoPanel/tip.vue +0 -55
- package/src/pages/dashboard/tasks/components/infoPanel/tipInfo.vue +0 -196
- package/src/pages/dashboard/tasks/index.vue +0 -302
- package/src/pages/dashboard/tasks/public.ts +0 -32
- package/src/pages/disabled/index.vue +0 -47
- package/src/pages/feedback/index.vue +0 -5
- package/src/pages/home/index.vue +0 -72
- package/src/pages/login/index.vue +0 -270
- package/src/pages/register/index.vue +0 -211
- package/src/pages/reset/index.vue +0 -186
- package/src/pages/task/index.vue +0 -895
- package/src/pages/wish/index.vue +0 -152
- package/src/router/Interceptor/index.ts +0 -112
- package/src/router/index.ts +0 -13
- package/src/router/routes/index.ts +0 -197
- package/src/shims-vue.d.ts +0 -6
- package/src/store/index.ts +0 -17
- package/src/store/modules/category.ts +0 -44
- package/src/store/modules/public.ts +0 -27
- package/src/store/modules/task.ts +0 -55
- package/src/store/modules/user.ts +0 -57
- package/src/utils/elementUI.ts +0 -8
- package/src/utils/networkUtil.ts +0 -236
- package/src/utils/other.ts +0 -25
- package/src/utils/regExp.ts +0 -11
- package/src/utils/stringUtil.ts +0 -241
- package/tsconfig.json +0 -24
- package/vite.config.ts +0 -55
- /package/{docs/public → dist}/favicon.ico +0 -0
- /package/{docs/public → dist}/logo.png +0 -0
package/src/@types/page.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
interface DownloadItem {
|
|
2
|
-
url: string
|
|
3
|
-
filename: string
|
|
4
|
-
mimeType: string
|
|
5
|
-
status: 'ready' | 'downloading' | 'done' | 'error'
|
|
6
|
-
percentage: number
|
|
7
|
-
size: number
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
type InfoItemType = 'input' | 'radio' | 'text' | 'select'
|
|
11
|
-
interface InfoItem {
|
|
12
|
-
type?: InfoItemType
|
|
13
|
-
// 描述信息
|
|
14
|
-
text?: string
|
|
15
|
-
// 表单项的值
|
|
16
|
-
value?: string
|
|
17
|
-
children?: InfoItem[]
|
|
18
|
-
}
|
package/src/App.vue
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-config-provider size="large" :zIndex="1000" :locale="zhCn">
|
|
3
|
-
<router-view style="min-height: 100vh"></router-view>
|
|
4
|
-
</el-config-provider>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script lang="ts" setup>
|
|
8
|
-
import { onMounted } from 'vue'
|
|
9
|
-
import { useStore } from 'vuex'
|
|
10
|
-
import { ElConfigProvider } from 'element-plus'
|
|
11
|
-
import 'element-plus/es/components/message/style/css'
|
|
12
|
-
import 'element-plus/es/components/message-box/style/css'
|
|
13
|
-
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
|
|
14
|
-
|
|
15
|
-
const $store = useStore()
|
|
16
|
-
const refreshWidth = () => {
|
|
17
|
-
const clientWIdth = window.document.body.clientWidth
|
|
18
|
-
$store.commit('public/setWidth', clientWIdth)
|
|
19
|
-
}
|
|
20
|
-
onMounted(() => {
|
|
21
|
-
window.addEventListener('load', refreshWidth)
|
|
22
|
-
window.addEventListener('resize', refreshWidth)
|
|
23
|
-
})
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<style>
|
|
27
|
-
@import './assets/styles/app.css';
|
|
28
|
-
|
|
29
|
-
* {
|
|
30
|
-
padding: 0;
|
|
31
|
-
margin: 0;
|
|
32
|
-
}
|
|
33
|
-
a {
|
|
34
|
-
text-decoration: none;
|
|
35
|
-
}
|
|
36
|
-
</style>
|
package/src/apis/ajax.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import axios from 'axios'
|
|
2
|
-
import { ElMessage } from 'element-plus'
|
|
3
|
-
import router from '@/router'
|
|
4
|
-
|
|
5
|
-
const instance = axios.create({
|
|
6
|
-
baseURL: import.meta.env.VITE_APP_AXIOS_BASE_URL
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* 请求拦截
|
|
11
|
-
*/
|
|
12
|
-
instance.interceptors.request.use((config) => {
|
|
13
|
-
const { method, params } = config
|
|
14
|
-
const token = localStorage.getItem('token')
|
|
15
|
-
// 附带鉴权的token
|
|
16
|
-
const headers: any = {}
|
|
17
|
-
if (token) {
|
|
18
|
-
headers.token = token
|
|
19
|
-
}
|
|
20
|
-
// 不缓存get请求
|
|
21
|
-
if (method === 'get') {
|
|
22
|
-
headers['Cache-Control'] = 'no-cache'
|
|
23
|
-
}
|
|
24
|
-
// delete请求参数放入body中
|
|
25
|
-
if (method === 'delete') {
|
|
26
|
-
headers['Content-type'] = 'application/json;'
|
|
27
|
-
Object.assign(config, {
|
|
28
|
-
data: params,
|
|
29
|
-
params: {}
|
|
30
|
-
})
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return {
|
|
34
|
-
...config,
|
|
35
|
-
headers
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* 响应拦截
|
|
41
|
-
*/
|
|
42
|
-
instance.interceptors.response.use(
|
|
43
|
-
(v) => {
|
|
44
|
-
if (v.status === 200) {
|
|
45
|
-
if (v.data.code === 0) {
|
|
46
|
-
return v.data
|
|
47
|
-
}
|
|
48
|
-
if (v.data?.code === 3004 && router.currentRoute.value.name !== 'login') {
|
|
49
|
-
localStorage.removeItem('token')
|
|
50
|
-
localStorage.removeItem('system')
|
|
51
|
-
ElMessage.error('登录过期,跳转登录')
|
|
52
|
-
router.replace({
|
|
53
|
-
name: 'login',
|
|
54
|
-
query: {
|
|
55
|
-
redirect: router.currentRoute.value.fullPath
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
}
|
|
59
|
-
if (v?.data?.code === 500) {
|
|
60
|
-
ElMessage.error(v?.data?.msg)
|
|
61
|
-
}
|
|
62
|
-
return Promise.reject(v.data)
|
|
63
|
-
}
|
|
64
|
-
ElMessage.error(v.statusText)
|
|
65
|
-
return Promise.reject(v)
|
|
66
|
-
},
|
|
67
|
-
(err) => {
|
|
68
|
-
ElMessage.error(`网络错误:${err}`)
|
|
69
|
-
return Promise.reject(err)
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
export default instance
|
package/src/apis/index.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import p from './modules/public'
|
|
2
|
-
import user from './modules/user'
|
|
3
|
-
import category from './modules/category'
|
|
4
|
-
import task from './modules/task'
|
|
5
|
-
import people from './modules/people'
|
|
6
|
-
import file from './modules/file'
|
|
7
|
-
import superOverview from './modules/super/overview'
|
|
8
|
-
import superUser from './modules/super/user'
|
|
9
|
-
|
|
10
|
-
export const PublicApi = p
|
|
11
|
-
export const UserApi = user
|
|
12
|
-
export const CategoryApi = category
|
|
13
|
-
export const TaskApi = task
|
|
14
|
-
export const PeopleApi = people
|
|
15
|
-
export const FileApi = file
|
|
16
|
-
export const SuperOverviewApi = superOverview
|
|
17
|
-
export const SuperUserApi = superUser
|
|
18
|
-
export { default as WishApi } from './modules/wish'
|
|
19
|
-
export { default as ConfigServiceAPI } from './modules/config'
|
|
20
|
-
export { default as ActionServiceAPI } from './modules/action'
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import ajax from '../ajax'
|
|
2
|
-
|
|
3
|
-
function getDownloadActions(
|
|
4
|
-
pageSize: number,
|
|
5
|
-
pageIndex: number,
|
|
6
|
-
extraIds: string[] = []
|
|
7
|
-
): ActionApiTypes.getDownloadActions {
|
|
8
|
-
return ajax.post('/action/download/list', {
|
|
9
|
-
pageSize,
|
|
10
|
-
pageIndex,
|
|
11
|
-
extraIds
|
|
12
|
-
})
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
getDownloadActions
|
|
17
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import ajax from '../ajax'
|
|
2
|
-
|
|
3
|
-
function getList(): CateGoryApiTypes.getList {
|
|
4
|
-
return ajax.get('category')
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function createNew(name: string): CateGoryApiTypes.createNew {
|
|
8
|
-
return ajax.post('category/create', {
|
|
9
|
-
name
|
|
10
|
-
})
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function deleteOne(key: string): CateGoryApiTypes.deleteOne {
|
|
14
|
-
return ajax.delete(`category/${key}`)
|
|
15
|
-
}
|
|
16
|
-
export default {
|
|
17
|
-
getList,
|
|
18
|
-
createNew,
|
|
19
|
-
deleteOne
|
|
20
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import ajax from '../ajax'
|
|
2
|
-
|
|
3
|
-
function getServiceOverview(): ConfigServiceAPITypes.getServiceOverview {
|
|
4
|
-
return ajax.get('/config/service/overview')
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function getServiceConfig(): ConfigServiceAPITypes.getServiceConfig {
|
|
8
|
-
return ajax.get('/config/service/config')
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function updateCfg(data: ConfigServiceAPITypes.ServiceConfigItem) {
|
|
12
|
-
return ajax.put('/config/service/config', data)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
getServiceOverview,
|
|
17
|
-
getServiceConfig,
|
|
18
|
-
updateCfg
|
|
19
|
-
}
|
package/src/apis/modules/file.ts
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import ajax from '../ajax'
|
|
2
|
-
|
|
3
|
-
function getUploadToken(): FileApiTypes.getUploadToken {
|
|
4
|
-
return ajax.get('file/token')
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function addFile(options: FileApiTypes.FileOptions): FileApiTypes.addFile {
|
|
8
|
-
return ajax.post('file/info', options)
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function getFileList(): FileApiTypes.getFileList {
|
|
12
|
-
return ajax.get('file/list')
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function getTemplateUrl(
|
|
16
|
-
template: string,
|
|
17
|
-
key: string
|
|
18
|
-
): FileApiTypes.getTemplateUrl {
|
|
19
|
-
return ajax.get('file/template', {
|
|
20
|
-
params: {
|
|
21
|
-
template,
|
|
22
|
-
key
|
|
23
|
-
}
|
|
24
|
-
})
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function getOneFileUrl(id: number): FileApiTypes.getOneFileUrl {
|
|
28
|
-
return ajax.get('file/one', {
|
|
29
|
-
params: {
|
|
30
|
-
id
|
|
31
|
-
}
|
|
32
|
-
})
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function deleteOneFile(id: number): FileApiTypes.deleteOneFile {
|
|
36
|
-
return ajax.delete('file/one', {
|
|
37
|
-
params: {
|
|
38
|
-
id
|
|
39
|
-
}
|
|
40
|
-
})
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function batchDownload(
|
|
44
|
-
ids: number[],
|
|
45
|
-
zipName?: string
|
|
46
|
-
): FileApiTypes.batchDownload {
|
|
47
|
-
return ajax.post('file/batch/down', {
|
|
48
|
-
ids,
|
|
49
|
-
zipName
|
|
50
|
-
})
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function batchDel(ids: number[]): FileApiTypes.batchDel {
|
|
54
|
-
return ajax.delete('file/batch/del', {
|
|
55
|
-
params: {
|
|
56
|
-
ids
|
|
57
|
-
}
|
|
58
|
-
})
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function checkCompressStatus(id: string): FileApiTypes.checkCompressStatus {
|
|
62
|
-
return ajax.post('file/compress/status', {
|
|
63
|
-
id
|
|
64
|
-
})
|
|
65
|
-
}
|
|
66
|
-
function getCompressDownUrl(key: string): FileApiTypes.getCompressDownUrl {
|
|
67
|
-
return ajax.post('file/compress/down', {
|
|
68
|
-
key
|
|
69
|
-
})
|
|
70
|
-
}
|
|
71
|
-
function getCompressFileUrl(id: string): Promise<string> {
|
|
72
|
-
const check = (_r: any, _rej) => {
|
|
73
|
-
checkCompressStatus(id)
|
|
74
|
-
.then((r) => {
|
|
75
|
-
const { code, key } = r.data
|
|
76
|
-
if (code === 0) {
|
|
77
|
-
getCompressDownUrl(key ?? '').then((v) => {
|
|
78
|
-
const { url } = v.data
|
|
79
|
-
_r(url)
|
|
80
|
-
})
|
|
81
|
-
} else {
|
|
82
|
-
setTimeout(() => {
|
|
83
|
-
check(_r, _rej)
|
|
84
|
-
}, 1000)
|
|
85
|
-
}
|
|
86
|
-
})
|
|
87
|
-
.catch((err) => {
|
|
88
|
-
_rej(err)
|
|
89
|
-
})
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return new Promise((resolve, rej) => {
|
|
93
|
-
check(resolve, rej)
|
|
94
|
-
})
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function withdrawFile(
|
|
98
|
-
options: FileApiTypes.WithdrawFileOptions
|
|
99
|
-
): FileApiTypes.withdrawFile {
|
|
100
|
-
return ajax.delete('file/withdraw', {
|
|
101
|
-
params: options
|
|
102
|
-
})
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
function checkSubmitStatus(
|
|
106
|
-
taskKey: string,
|
|
107
|
-
info: any,
|
|
108
|
-
name = ''
|
|
109
|
-
): FileApiTypes.checkSubmitStatus {
|
|
110
|
-
return ajax.post('file/submit/people', {
|
|
111
|
-
taskKey,
|
|
112
|
-
info,
|
|
113
|
-
name
|
|
114
|
-
})
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
function checkImageFilePreviewUrl(
|
|
118
|
-
ids: number[]
|
|
119
|
-
): FileApiTypes.checkImageFilePreviewUrl {
|
|
120
|
-
return ajax.post('file/image/preview', {
|
|
121
|
-
ids
|
|
122
|
-
})
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
function updateFilename(
|
|
126
|
-
id: number,
|
|
127
|
-
newName: string
|
|
128
|
-
): FileApiTypes.updateFilename {
|
|
129
|
-
return ajax.put('file/name/rewrite', {
|
|
130
|
-
id,
|
|
131
|
-
name: newName
|
|
132
|
-
})
|
|
133
|
-
}
|
|
134
|
-
export default {
|
|
135
|
-
getUploadToken,
|
|
136
|
-
addFile,
|
|
137
|
-
getFileList,
|
|
138
|
-
getTemplateUrl,
|
|
139
|
-
withdrawFile,
|
|
140
|
-
getOneFileUrl,
|
|
141
|
-
deleteOneFile,
|
|
142
|
-
batchDownload,
|
|
143
|
-
batchDel,
|
|
144
|
-
checkCompressStatus,
|
|
145
|
-
getCompressFileUrl,
|
|
146
|
-
getCompressDownUrl,
|
|
147
|
-
checkSubmitStatus,
|
|
148
|
-
checkImageFilePreviewUrl,
|
|
149
|
-
updateFilename
|
|
150
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import ajax from '../ajax'
|
|
2
|
-
|
|
3
|
-
function importPeople(
|
|
4
|
-
key: string,
|
|
5
|
-
filename: string,
|
|
6
|
-
type: string
|
|
7
|
-
): PeopleApiTypes.importPeople {
|
|
8
|
-
return ajax.post(`/people/${key}`, {
|
|
9
|
-
filename,
|
|
10
|
-
type
|
|
11
|
-
})
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function getPeople(key: string, detail = '0'): PeopleApiTypes.getPeople {
|
|
15
|
-
return ajax.get(`/people/${key}`, {
|
|
16
|
-
params: {
|
|
17
|
-
detail
|
|
18
|
-
}
|
|
19
|
-
})
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function deletePeople(key: string, id: number): PeopleApiTypes.deletePeople {
|
|
23
|
-
return ajax.delete(`/people/${key}`, {
|
|
24
|
-
params: {
|
|
25
|
-
id
|
|
26
|
-
}
|
|
27
|
-
})
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function updatePeopleStatus(
|
|
31
|
-
key: string,
|
|
32
|
-
filename: string,
|
|
33
|
-
name: string,
|
|
34
|
-
hash: string
|
|
35
|
-
): PeopleApiTypes.updatePeopleStatus {
|
|
36
|
-
return ajax.put(`/people/${key}`, {
|
|
37
|
-
filename,
|
|
38
|
-
name,
|
|
39
|
-
hash
|
|
40
|
-
})
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function checkPeopleIsExist(
|
|
44
|
-
key: string,
|
|
45
|
-
name: string
|
|
46
|
-
): PeopleApiTypes.checkPeopleIsExist {
|
|
47
|
-
return ajax.post(`/people/check/${key}`, {
|
|
48
|
-
name
|
|
49
|
-
})
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function getUsefulTemplate(key: string): PeopleApiTypes.getUsefulTemplate {
|
|
53
|
-
return ajax.get(`/people/template/${key}`)
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function importPeopleFromTpl(
|
|
57
|
-
taskKey: string,
|
|
58
|
-
tplKey: string,
|
|
59
|
-
type: string
|
|
60
|
-
): PeopleApiTypes.importFromTpl {
|
|
61
|
-
return ajax.put(`/people/template/${taskKey}`, {
|
|
62
|
-
key: tplKey,
|
|
63
|
-
type
|
|
64
|
-
})
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function addPeopleByUser(name: string, key: string) {
|
|
68
|
-
return ajax.post(`/people/add/${key}`, {
|
|
69
|
-
name
|
|
70
|
-
})
|
|
71
|
-
}
|
|
72
|
-
export default {
|
|
73
|
-
importPeopleFromTpl,
|
|
74
|
-
importPeople,
|
|
75
|
-
getPeople,
|
|
76
|
-
deletePeople,
|
|
77
|
-
updatePeopleStatus,
|
|
78
|
-
checkPeopleIsExist,
|
|
79
|
-
getUsefulTemplate,
|
|
80
|
-
addPeopleByUser
|
|
81
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import ajax from '../ajax'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 获取验证码
|
|
5
|
-
* @param mobile 手机号
|
|
6
|
-
*/
|
|
7
|
-
function getCode(phone: string): PublicApiTypes.getCode {
|
|
8
|
-
return ajax.get('public/code', {
|
|
9
|
-
params: {
|
|
10
|
-
phone
|
|
11
|
-
}
|
|
12
|
-
})
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function reportPv(path: string): PublicApiTypes.reportPv {
|
|
16
|
-
return ajax.post<any, BaseResponse>('public/report/pv', {
|
|
17
|
-
path
|
|
18
|
-
})
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function checkPhone(phone: string): PublicApiTypes.checkPhone {
|
|
22
|
-
return ajax.get<any, BaseResponse>('public/check/phone', {
|
|
23
|
-
params: {
|
|
24
|
-
phone
|
|
25
|
-
}
|
|
26
|
-
})
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function getTipImageUrl(
|
|
30
|
-
key: string,
|
|
31
|
-
data: {
|
|
32
|
-
uid: number
|
|
33
|
-
name: string
|
|
34
|
-
}[]
|
|
35
|
-
) {
|
|
36
|
-
return ajax.post<any, BaseResponse<{ cover: string; preview: string }[]>>(
|
|
37
|
-
'public/tip/image',
|
|
38
|
-
{
|
|
39
|
-
key,
|
|
40
|
-
data
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
export default {
|
|
45
|
-
getCode,
|
|
46
|
-
reportPv,
|
|
47
|
-
checkPhone,
|
|
48
|
-
getTipImageUrl
|
|
49
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import ajax from '../../ajax'
|
|
2
|
-
|
|
3
|
-
const baseUrl = '/super/overview'
|
|
4
|
-
function getCount(): OverviewApiTypes.getCount {
|
|
5
|
-
return ajax.get(`${baseUrl}/count`)
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function getAllLogMsg(): OverviewApiTypes.getAllLogMsg {
|
|
9
|
-
return ajax.get(`${baseUrl}/log`)
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function getLogMsg(
|
|
13
|
-
pageSize: number,
|
|
14
|
-
pageIndex: number,
|
|
15
|
-
type: string,
|
|
16
|
-
search: string
|
|
17
|
-
): OverviewApiTypes.getLogMsg {
|
|
18
|
-
return ajax.post(`${baseUrl}/log`, {
|
|
19
|
-
pageSize,
|
|
20
|
-
pageIndex,
|
|
21
|
-
type,
|
|
22
|
-
search
|
|
23
|
-
})
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function getLogMsgDetail(id: string): any {
|
|
27
|
-
return ajax.get(`${baseUrl}/log/${id}`)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function clearExpiredCompressFile() {
|
|
31
|
-
return ajax.delete(`${baseUrl}/compress`)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function checkDisabledRoute(route: string): OverviewApiTypes.disabledStatus {
|
|
35
|
-
return ajax.get(`${baseUrl}/route/disabled`, {
|
|
36
|
-
params: {
|
|
37
|
-
route
|
|
38
|
-
}
|
|
39
|
-
})
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function addDisabledRoute(route: string, status: boolean) {
|
|
43
|
-
return ajax.post(`${baseUrl}/route/disabled`, {
|
|
44
|
-
route,
|
|
45
|
-
status
|
|
46
|
-
})
|
|
47
|
-
}
|
|
48
|
-
export default {
|
|
49
|
-
getCount,
|
|
50
|
-
getAllLogMsg,
|
|
51
|
-
getLogMsg,
|
|
52
|
-
getLogMsgDetail,
|
|
53
|
-
clearExpiredCompressFile,
|
|
54
|
-
checkDisabledRoute,
|
|
55
|
-
addDisabledRoute
|
|
56
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import ajax from '../../ajax'
|
|
2
|
-
|
|
3
|
-
const baseUrl = '/super/user'
|
|
4
|
-
function getUserList(): SuperUserApiTypes.getUserList {
|
|
5
|
-
return ajax.get(`${baseUrl}/list`)
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function updateUserStatus(id: number, status: number, openTime: string) {
|
|
9
|
-
return ajax.put(`${baseUrl}/status`, {
|
|
10
|
-
id,
|
|
11
|
-
status,
|
|
12
|
-
openTime
|
|
13
|
-
})
|
|
14
|
-
}
|
|
15
|
-
function resetPassword(id: number, password: string) {
|
|
16
|
-
return ajax.put(`${baseUrl}/password`, {
|
|
17
|
-
id,
|
|
18
|
-
password
|
|
19
|
-
})
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function resetPhone(id: number, phone: string, code: string) {
|
|
23
|
-
return ajax.put(`${baseUrl}/phone`, {
|
|
24
|
-
id,
|
|
25
|
-
phone,
|
|
26
|
-
code
|
|
27
|
-
})
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function clearOssFile(id: number, type: string) {
|
|
31
|
-
return ajax.delete(`${baseUrl}/clear/oss`, {
|
|
32
|
-
params: { id, type }
|
|
33
|
-
})
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function getMessageList(): SuperUserApiTypes.getMessageList {
|
|
37
|
-
return ajax.get(`${baseUrl}/message`)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function readMessage(id: string) {
|
|
41
|
-
return ajax.put(`${baseUrl}/message`, {
|
|
42
|
-
id
|
|
43
|
-
})
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function sendMessage(text: string, type: number, target?: number) {
|
|
47
|
-
return ajax.post(`${baseUrl}/message`, {
|
|
48
|
-
text,
|
|
49
|
-
type,
|
|
50
|
-
target
|
|
51
|
-
})
|
|
52
|
-
}
|
|
53
|
-
export default {
|
|
54
|
-
getUserList,
|
|
55
|
-
updateUserStatus,
|
|
56
|
-
resetPassword,
|
|
57
|
-
resetPhone,
|
|
58
|
-
clearOssFile,
|
|
59
|
-
getMessageList,
|
|
60
|
-
readMessage,
|
|
61
|
-
sendMessage
|
|
62
|
-
}
|
package/src/apis/modules/task.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import ajax from '../ajax'
|
|
2
|
-
|
|
3
|
-
function getList(): TaskApiTypes.getList {
|
|
4
|
-
return ajax.get('task')
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function create(name: string, category: string): TaskApiTypes.create {
|
|
8
|
-
return ajax.post('task/create', {
|
|
9
|
-
name,
|
|
10
|
-
category
|
|
11
|
-
})
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function deleteOne(key: string): TaskApiTypes.deleteOne {
|
|
15
|
-
return ajax.delete(`task/${key}`)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function updateBaseInfo(
|
|
19
|
-
key: string,
|
|
20
|
-
name: string,
|
|
21
|
-
category: string
|
|
22
|
-
): TaskApiTypes.updateBaseInfo {
|
|
23
|
-
return ajax.put(`task/${key}`, {
|
|
24
|
-
name,
|
|
25
|
-
category
|
|
26
|
-
})
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function getTaskInfo(key: string): TaskApiTypes.getTaskInfo {
|
|
30
|
-
return ajax.get(`task/${key}`)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function getTaskMoreInfo(key: string): TaskApiTypes.getTaskMoreInfo {
|
|
34
|
-
return ajax.get(`task_info/${key}`)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function updateTaskMoreInfo(
|
|
38
|
-
key: string,
|
|
39
|
-
options: TaskApiTypes.TaskInfo
|
|
40
|
-
): TaskApiTypes.updateTaskMoreInfo {
|
|
41
|
-
return ajax.put(`task_info/${key}`, options)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function getUsefulTemplate(key: string): TaskApiTypes.getUsefulTemplate {
|
|
45
|
-
return ajax.get(`/task_info/template/${key}`)
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function delTipImage(key: string, uid: number, name: string) {
|
|
49
|
-
return ajax.delete(`/task_info/tip/image/${key}`, {
|
|
50
|
-
params: {
|
|
51
|
-
uid,
|
|
52
|
-
name
|
|
53
|
-
}
|
|
54
|
-
})
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export default {
|
|
58
|
-
getList,
|
|
59
|
-
create,
|
|
60
|
-
deleteOne,
|
|
61
|
-
updateBaseInfo,
|
|
62
|
-
getTaskInfo,
|
|
63
|
-
getTaskMoreInfo,
|
|
64
|
-
updateTaskMoreInfo,
|
|
65
|
-
getUsefulTemplate,
|
|
66
|
-
delTipImage
|
|
67
|
-
}
|