Skip to content

Commit 376fd17

Browse files
anncwbvince292007
andauthored
feat: Feature/pro docs (#70)
* chore: merge main * feat: update docs * feat: remove coze-assistant * feat: add watermark plugin * feat: update preferences * feat: update docs --------- Co-authored-by: vince <vince292007@gmail.com>
1 parent 14538f7 commit 376fd17

File tree

225 files changed

+7737
-1790
lines changed

Some content is hidden

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

225 files changed

+7737
-1790
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"privatePackages": { "version": true, "tag": true },
1313
"linked": [],
14-
"access": "restricted",
14+
"access": "public",
1515
"baseBranch": "main",
1616
"updateInternalDependencies": "patch",
1717
"ignore": []

.github/workflows/action-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ jobs:
4545

4646
- name: Test and Build
4747
run: |
48-
pnpm run test
48+
pnpm run test:unit
4949
pnpm run build

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
# run: git config --global user.email "you@example.com" && git config --global user.name "Your Name"
6969

7070
- name: Vitest tests
71-
run: pnpm run test
71+
run: pnpm run test:unit
7272

7373
# - name: Upload coverage
7474
# uses: codecov/codecov-action@v4

.ls-lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ls:
77
.css: kebab-case | pointcase
88
.d.ts: kebab-case | pointcase
99
# shadcn 自动生成文件为 PascalCase 格式
10-
packages/@vben-core/ui-kit/shadcn-ui/src/components/ui:
10+
packages/@core/ui-kit/shadcn-ui/src/components/ui:
1111
.vue: PascalCase
1212

1313
ignore:
@@ -25,3 +25,4 @@ ignore:
2525
- .vscode
2626
- .idea
2727
- node_modules
28+
- .cache

.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
"**/CVS": true,
7272
"**/.stylelintcache": true,
7373
"**/.DS_Store": true,
74-
"**/vite.config.mts.*": true
74+
"**/vite.config.mts.*": true,
75+
"**/tea.yaml": true
7576
},
7677
"files.watcherExclude": {
7778
"**/.git/objects/**": true,
@@ -190,7 +191,7 @@
190191
"eslint.config.mjs": ".eslintignore,.prettierignore,.stylelintignore,.commitlintrc.*,.prettierrc.*,stylelint.config.*,.lintstagedrc.mjs,.ls-lint*,cspell.json",
191192
"tailwind.config.mjs": "postcss.*"
192193
},
193-
"commentTranslate.hover.enabled": true,
194+
"commentTranslate.hover.enabled": false,
194195
"i18n-ally.keystyle": "nested",
195196
"commentTranslate.multiLineMerge": true
196197
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024-present, Vben Admin
3+
Copyright (c) 2024-present, Vben
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![license](https://img.shields.io/github/license/anncwb/vue-vben-admin.svg)](LICENSE)
44

5-
<h1>Vue vben admin</h1>
5+
<h1>Vue Vben Admin</h1>
66
</div>
77

88
**English** | [中文](./README.zh-CN.md)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export default defineEventHandler((event) => {
2+
// setResponseHeaders(event, {
3+
// 'Access-Control-Allow-Credentials': 'true',
4+
// 'Access-Control-Allow-Headers': '*',
5+
// 'Access-Control-Allow-Methods': 'GET,HEAD,PUT,PATCH,POST,DELETE',
6+
// 'Access-Control-Allow-Origin': '*',
7+
// 'Access-Control-Expose-Headers': '*',
8+
// });
9+
if (event.method === 'OPTIONS') {
10+
event.node.res.statusCode = 204;
11+
event.node.res.statusMessage = 'No Content.';
12+
return 'OK';
13+
}
14+
});

apps/backend-mock/nitro.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,16 @@ import errorHandler from './error';
33
export default defineNitroConfig({
44
devErrorHandler: errorHandler,
55
errorHandler: '~/error',
6+
routeRules: {
7+
'/api/**': {
8+
cors: true,
9+
headers: {
10+
'Access-Control-Allow-Credentials': 'true',
11+
'Access-Control-Allow-Headers': '*',
12+
'Access-Control-Allow-Methods': 'GET,HEAD,PUT,PATCH,POST,DELETE',
13+
'Access-Control-Allow-Origin': '*',
14+
'Access-Control-Expose-Headers': '*',
15+
},
16+
},
17+
},
618
});

apps/backend-mock/utils/mock-data.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,26 +80,26 @@ const createDemosMenus = (role: 'admin' | 'super' | 'user') => {
8080
icon: 'mdi:button-cursor',
8181
title: 'page.demos.access.adminVisible',
8282
},
83-
name: 'AccessAdminVisible',
84-
path: 'admin-visible',
83+
name: 'AccessAdminVisibleDemo',
84+
path: '/demos/access/admin-visible',
8585
},
8686
super: {
8787
component: '/demos/access/super-visible',
8888
meta: {
8989
icon: 'mdi:button-cursor',
9090
title: 'page.demos.access.superVisible',
9191
},
92-
name: 'AccessSuperVisible',
93-
path: 'super-visible',
92+
name: 'AccessSuperVisibleDemo',
93+
path: '/demos/access/super-visible',
9494
},
9595
user: {
9696
component: '/demos/access/user-visible',
9797
meta: {
9898
icon: 'mdi:button-cursor',
9999
title: 'page.demos.access.userVisible',
100100
},
101-
name: 'AccessUserVisible',
102-
path: 'user-visible',
101+
name: 'AccessUserVisibleDemo',
102+
path: '/demos/access/user-visible',
103103
},
104104
};
105105

@@ -117,35 +117,35 @@ const createDemosMenus = (role: 'admin' | 'super' | 'user') => {
117117
redirect: '/demos/access',
118118
children: [
119119
{
120-
name: 'Access',
121-
path: 'access',
120+
name: 'AccessDemos',
121+
path: '/demosaccess',
122122
meta: {
123123
icon: 'mdi:cloud-key-outline',
124124
title: 'page.demos.access.backendPermissions',
125125
},
126126
redirect: '/demos/access/page-control',
127127
children: [
128128
{
129-
name: 'AccessPageControl',
130-
path: 'page-control',
129+
name: 'AccessPageControlDemo',
130+
path: '/demos/access/page-control',
131131
component: '/demos/access/index',
132132
meta: {
133133
icon: 'mdi:page-previous-outline',
134134
title: 'page.demos.access.pageAccess',
135135
},
136136
},
137137
{
138-
name: 'AccessButtonControl',
139-
path: 'button-control',
138+
name: 'AccessButtonControlDemo',
139+
path: '/demos/access/button-control',
140140
component: '/demos/access/button-control',
141141
meta: {
142142
icon: 'mdi:button-cursor',
143143
title: 'page.demos.access.buttonControl',
144144
},
145145
},
146146
{
147-
name: 'AccessMenuVisible403',
148-
path: 'menu-visible-403',
147+
name: 'AccessMenuVisible403Demo',
148+
path: '/demos/access/menu-visible-403',
149149
component: '/demos/access/menu-visible-403',
150150
meta: {
151151
authority: ['no-body'],

0 commit comments

Comments
 (0)