Skip to content

Commit 68d0091

Browse files
committed
Merge branch 'dev', remote-tracking branch 'origin' into contrib
3 parents a00c612 + 60cc435 + 84dcac7 commit 68d0091

File tree

192 files changed

+3403
-3189
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+3403
-3189
lines changed

.env.stage

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# 生产环境
2+
NODE_ENV=production
3+
4+
VITE_DEV=false
5+
6+
# 请求路径
7+
VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn'
8+
9+
# 上传路径
10+
VITE_UPLOAD_URL='http://api-dashboard.yudao.iocoder.cn/admin-api/infra/file/upload'
11+
12+
# 接口前缀
13+
VITE_API_BASEPATH=
14+
15+
# 接口地址
16+
VITE_API_URL=/admin-api
17+
18+
# 是否删除debugger
19+
VITE_DROP_DEBUGGER=true
20+
21+
# 是否删除console.log
22+
VITE_DROP_CONSOLE=true
23+
24+
# 是否sourcemap
25+
VITE_SOURCEMAP=false
26+
27+
# 打包路径
28+
VITE_BASE_PATH='http://static-vue3.yudao.iocoder.cn/'
29+
30+
# 输出路径
31+
VITE_OUT_DIR=dist-stage

.env.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ VITE_DROP_CONSOLE=false
2525
VITE_SOURCEMAP=true
2626

2727
# 打包路径
28-
VITE_BASE_PATH=/dist-test/
28+
VITE_BASE_PATH=/
2929

3030
# 输出路径
3131
VITE_OUT_DIR=dist-test

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ dist-ssr
66
/dist*
77
*-lock.*
88
pnpm-debug
9-
9+
auto-*.d.ts
1010
.idea
1111
.history

.vscode/settings.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,15 @@
4040
"i18n-ally.displayLanguage": "zh-CN",
4141
"i18n-ally.enabledFrameworks": ["vue", "react"],
4242
"god.tsconfig": "./tsconfig.json",
43-
"vue-i18n.i18nPaths": "src/locales"
43+
"vue-i18n.i18nPaths": "src/locales",
44+
"explorer.fileNesting.enabled": true,
45+
"explorer.fileNesting.expand": false,
46+
"explorer.fileNesting.patterns": {
47+
"*.ts": "$(capture).test.ts, $(capture).test.tsx",
48+
"*.tsx": "$(capture).test.ts, $(capture).test.tsx",
49+
"*.env": "$(capture).env.*",
50+
"CHANGELOG.md": "CHANGELOG*",
51+
"package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitattributes,.gitignore,.gitpod.yml,CNAME,README*,.npmrc,.browserslistrc,vite.config.*,windi.*,tailwind.*,tsconfig.*,postcss*",
52+
".eslintrc.js": ".eslintignore,.eslintrc-*,.prettierignore,.stylelintignore,.commitlintrc.js,.prettierrc.js,.stylelint*,stylelint*,prettier.*,.editorconfig"
53+
}
4454
}

build/vite/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
1919

2020
export function createVitePlugins() {
2121
const root = process.cwd()
22+
2223
// 路径查找
2324
function pathResolve(dir: string) {
2425
return resolve(root, '.', dir)
2526
}
27+
2628
return [
2729
Vue(),
2830
VueJsx(),
@@ -45,8 +47,6 @@ export function createVitePlugins() {
4547
{
4648
'@/hooks/web/useI18n': ['useI18n'],
4749
'@/hooks/web/useMessage': ['useMessage'],
48-
'@/hooks/web/useXTable': ['useXTable'],
49-
'@/hooks/web/useVxeCrudSchemas': ['useVxeCrudSchemas'],
5050
'@/hooks/web/useTable': ['useTable'],
5151
'@/hooks/web/useCrudSchemas': ['useCrudSchemas'],
5252
'@/utils/formRules': ['required'],

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"ts:check": "vue-tsc --noEmit",
1212
"build:pro": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode pro",
1313
"build:dev": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode dev",
14+
"build:stage": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode stage",
1415
"build:test": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode test",
1516
"build:static": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode static",
1617
"build:front": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode front",
@@ -32,13 +33,12 @@
3233
"@form-create/element-ui": "^3.1.17",
3334
"@iconify/iconify": "^3.1.0",
3435
"@videojs-player/vue": "^1.0.0",
35-
"@vueup/vue-quill": "^1.1.1",
3636
"@vueuse/core": "^9.13.0",
3737
"@wangeditor/editor": "^5.1.23",
3838
"@wangeditor/editor-for-vue": "^5.1.10",
3939
"@zxcvbn-ts/core": "^2.2.1",
4040
"animate.css": "^4.1.1",
41-
"axios": "^1.3.4",
41+
"axios": "^1.3.5",
4242
"benz-amr-recorder": "^1.1.5",
4343
"bpmn-js-token-simulation": "^0.10.0",
4444
"camunda-bpmn-moddle": "^7.0.1",
@@ -48,16 +48,16 @@
4848
"diagram-js": "^11.6.0",
4949
"echarts": "^5.4.1",
5050
"echarts-wordcloud": "^2.1.0",
51-
"element-plus": "2.3.1",
51+
"element-plus": "2.3.3",
5252
"fast-xml-parser": "^4.1.3",
5353
"highlight.js": "^11.7.0",
54-
"intro.js": "^6.0.0",
54+
"intro.js": "^7.0.1",
5555
"jsencrypt": "^3.3.2",
5656
"lodash-es": "^4.17.21",
5757
"min-dash": "^4.0.0",
5858
"mitt": "^3.0.0",
5959
"nprogress": "^0.2.0",
60-
"pinia": "^2.0.33",
60+
"pinia": "^2.0.34",
6161
"qrcode": "^1.5.1",
6262
"qs": "^6.11.1",
6363
"steady-xml": "^0.1.0",

src/App.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script setup lang="ts">
1+
<script lang="ts" name="APP" setup>
22
import { isDark } from '@/utils/is'
33
import { useAppStore } from '@/store/modules/app'
44
import { useDesign } from '@/hooks/web/useDesign'
@@ -32,6 +32,7 @@ $prefix-cls: #{$namespace}-app;
3232
width: 100%;
3333
height: 100%;
3434
}
35+
3536
html,
3637
body {
3738
padding: 0 !important;
@@ -43,6 +44,7 @@ body {
4344
@extend .size;
4445
}
4546
}
47+
4648
.#{$prefix-cls}-grey-mode {
4749
filter: grayscale(100%);
4850
}
Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import request from '@/config/axios'
22

33
export interface NotifyTemplateVO {
4-
id: number
4+
id?: number
55
name: string
6+
nickname: string
67
code: string
78
content: string
89
type: number
@@ -11,36 +12,29 @@ export interface NotifyTemplateVO {
1112
remark: string
1213
}
1314

14-
export interface NotifyTemplatePageReqVO extends PageParam {
15-
name?: string
16-
code?: string
17-
status?: number
18-
createTime?: Date[]
19-
}
20-
2115
export interface NotifySendReqVO {
22-
userId: number
16+
userId: number | null
2317
templateCode: string
2418
templateParams: Map<String, Object>
2519
}
2620

2721
// 查询站内信模板列表
28-
export const getNotifyTemplatePageApi = async (params: NotifyTemplatePageReqVO) => {
22+
export const getNotifyTemplatePage = async (params: PageParam) => {
2923
return await request.get({ url: '/system/notify-template/page', params })
3024
}
3125

3226
// 查询站内信模板详情
33-
export const getNotifyTemplateApi = async (id: number) => {
27+
export const getNotifyTemplate = async (id: number) => {
3428
return await request.get({ url: '/system/notify-template/get?id=' + id })
3529
}
3630

3731
// 新增站内信模板
38-
export const createNotifyTemplateApi = async (data: NotifyTemplateVO) => {
32+
export const createNotifyTemplate = async (data: NotifyTemplateVO) => {
3933
return await request.post({ url: '/system/notify-template/create', data })
4034
}
4135

4236
// 修改站内信模板
43-
export const updateNotifyTemplateApi = async (data: NotifyTemplateVO) => {
37+
export const updateNotifyTemplate = async (data: NotifyTemplateVO) => {
4438
return await request.put({ url: '/system/notify-template/update', data })
4539
}
4640

@@ -50,6 +44,6 @@ export const deleteNotifyTemplateApi = async (id: number) => {
5044
}
5145

5246
// 发送站内信
53-
export const sendNotifyApi = (data: NotifySendReqVO) => {
47+
export const sendNotify = (data: NotifySendReqVO) => {
5448
return request.post({ url: '/system/notify-template/send-notify', data })
5549
}

src/components/Backtop/src/Backtop.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script setup lang="ts">
1+
<script lang="ts" name="BackTop" setup>
22
import { ElBacktop } from 'element-plus'
33
import { useDesign } from '@/hooks/web/useDesign'
44

src/components/ConfigGlobal/src/ConfigGlobal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script setup lang="ts">
1+
<script lang="ts" name="ConfigGlobal" setup>
22
import { propTypes } from '@/utils/propTypes'
33
import { useLocaleStore } from '@/store/modules/locale'
44
import { useAppStore } from '@/store/modules/app'
@@ -51,9 +51,9 @@ const currentLocale = computed(() => localeStore.currentLocale)
5151

5252
<template>
5353
<ElConfigProvider
54-
:namespace="variables.elNamespace"
5554
:locale="currentLocale.elLocale"
5655
:message="{ max: 1 }"
56+
:namespace="variables.elNamespace"
5757
:size="size"
5858
>
5959
<slot></slot>

0 commit comments

Comments
 (0)