Skip to content

Commit a860093

Browse files
authored
Merge branch 'DevCloudFE:dev' into dev
2 parents 9115f93 + 9dba9aa commit a860093

991 files changed

Lines changed: 67871 additions & 19245 deletions

File tree

Some content is hidden

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

.all-contributorsrc

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,150 @@
436436
"contributions": [
437437
"code"
438438
]
439+
},
440+
{
441+
"login": "Husky-Yellow",
442+
"name": "哈士奇-黄",
443+
"avatar_url": "https://avatars.githubusercontent.com/u/50540342?v=4",
444+
"profile": "https://husky-bear.gitee.io/blob/",
445+
"contributions": [
446+
"code"
447+
]
448+
},
449+
{
450+
"login": "Innei",
451+
"name": "",
452+
"avatar_url": "https://avatars.githubusercontent.com/u/41265413?v=4",
453+
"profile": "http://innei.ren",
454+
"contributions": [
455+
"code"
456+
]
457+
},
458+
{
459+
"login": "aolyang",
460+
"name": "Anthonio OuYang",
461+
"avatar_url": "https://avatars.githubusercontent.com/u/72056179?v=4",
462+
"profile": "https://github.com/aolyang",
463+
"contributions": [
464+
"code"
465+
]
466+
},
467+
{
468+
"login": "flingyp",
469+
"name": "FlingYP",
470+
"avatar_url": "https://avatars.githubusercontent.com/u/57666140?v=4",
471+
"profile": "https://yyblog.top",
472+
"contributions": [
473+
"code"
474+
]
475+
},
476+
{
477+
"login": "xzxldl55",
478+
"name": "xzxldl55",
479+
"avatar_url": "https://avatars.githubusercontent.com/u/22699218?v=4",
480+
"profile": "https://github.com/xzxldl55",
481+
"contributions": [
482+
"code"
483+
]
484+
},
485+
{
486+
"login": "79E",
487+
"name": "79",
488+
"avatar_url": "https://avatars.githubusercontent.com/u/71202421?v=4",
489+
"profile": "https://github.com/79E",
490+
"contributions": [
491+
"code"
492+
]
493+
},
494+
{
495+
"login": "SituC",
496+
"name": "wailen",
497+
"avatar_url": "https://avatars.githubusercontent.com/u/29355875?v=4",
498+
"profile": "https://github.com/SituC",
499+
"contributions": [
500+
"code"
501+
]
502+
},
503+
{
504+
"login": "JensonMiao",
505+
"name": "jenson",
506+
"avatar_url": "https://avatars.githubusercontent.com/u/46488783?v=4",
507+
"profile": "https://github.com/JensonMiao",
508+
"contributions": [
509+
"code"
510+
]
511+
},
512+
{
513+
"login": "dbsdaicheng",
514+
"name": "dbsdaicheng",
515+
"avatar_url": "https://avatars.githubusercontent.com/u/62135142?v=4",
516+
"profile": "https://github.com/dbsdaicheng",
517+
"contributions": [
518+
"test"
519+
]
520+
},
521+
{
522+
"login": "qinwencheng",
523+
"name": "qinwencheng",
524+
"avatar_url": "https://avatars.githubusercontent.com/u/24841685?v=4",
525+
"profile": "https://github.com/qinwencheng",
526+
"contributions": [
527+
"code"
528+
]
529+
},
530+
{
531+
"login": "angelanana",
532+
"name": "Angelanana",
533+
"avatar_url": "https://avatars.githubusercontent.com/u/63281354?v=4",
534+
"profile": "https://github.com/angelanana",
535+
"contributions": [
536+
"code"
537+
]
538+
},
539+
{
540+
"login": "joo1es",
541+
"name": "joo1es",
542+
"avatar_url": "https://avatars.githubusercontent.com/u/76929557?v=4",
543+
"profile": "https://github.com/joo1es",
544+
"contributions": [
545+
"code"
546+
]
547+
},
548+
{
549+
"login": "handsomezyw",
550+
"name": "handsomezyw",
551+
"avatar_url": "https://avatars.githubusercontent.com/u/34366225?v=4",
552+
"profile": "https://github.com/handsomezyw",
553+
"contributions": [
554+
"code"
555+
]
556+
},
557+
{
558+
"login": "iamyoki",
559+
"name": "Yoki",
560+
"avatar_url": "https://avatars.githubusercontent.com/u/74389358?v=4",
561+
"profile": "https://github.com/iamyoki",
562+
"contributions": [
563+
"code"
564+
]
565+
},
566+
{
567+
"login": "LadyChatterleyLover",
568+
"name": "luopei",
569+
"avatar_url": "https://avatars.githubusercontent.com/u/35223515?v=4",
570+
"profile": "https://github.com/LadyChatterleyLover",
571+
"contributions": [
572+
"code"
573+
]
574+
},
575+
{
576+
"login": "wowCheng",
577+
"name": "Mr.Cheng",
578+
"avatar_url": "https://avatars.githubusercontent.com/u/69743874?v=4",
579+
"profile": "https://github.com/wowCheng",
580+
"contributions": [
581+
"code"
582+
]
439583
}
440584
],
441585
"contributorsPerLine": 10,

.eslintignore

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,3 @@ packages/**/node_modules/*
33
packages/**/dist/*
44
packages/**/build/*
55
packages/**/lib/*
6-
7-
packages/devui-vue/devui/accordion/src/accordion-open-icon.tsx
8-
packages/devui-vue/devui/auto-complete/src/auto-complete.tsx
9-
packages/devui-vue/devui/editable-select/src/editable-select.tsx
10-
packages/devui-vue/devui/gantt/src/gantt-milestone/milestone-icon.tsx
11-
packages/devui-vue/devui/modal/src/modal.tsx
12-
packages/devui-vue/devui/pagination/src/components/jump-page.tsx
13-
packages/devui-vue/devui/search/src/search.tsx
14-
packages/devui-vue/devui/table/src/header/filter/filter.tsx
15-
packages/devui-vue/devui/table/src/header/sort/sort.tsx

.eslintrc.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
root: true,
3-
parser: '@typescript-eslint/parser',
3+
parser: 'vue-eslint-parser',
44
parserOptions: {
55
sourceType: 'module',
66
ecmaVersion: 6,
@@ -109,5 +109,12 @@ module.exports = {
109109
'max-depth': 'off',
110110
'@typescript-eslint/member-ordering': 'off',
111111
'array-callback-return': 'off',
112+
'import/no-unresolved': 'off',
112113
},
114+
overrides: [
115+
{
116+
files: ['*.ts', '*.tsx'],
117+
parser: '@typescript-eslint/parser',
118+
},
119+
],
113120
};

.github/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ changelog:
2222
- enhancement
2323
- documentation
2424
- refactoring
25+
- unit-test

.github/workflows/auto-publish.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Auto publish
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: CheckOut Code
12+
uses: actions/checkout@master
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 18
18+
registry-url: 'https://registry.npmjs.org'
19+
20+
- name: Get package version
21+
uses: tyankatsu0105/read-package-version-actions@v1
22+
id: package-version
23+
with:
24+
path: packages/devui-vue
25+
26+
- name: Create a tag
27+
uses: negz/create-tag@v1
28+
with:
29+
version: v${{ steps.package-version.outputs.version }}
30+
message: 'Release v${{ steps.package-version.outputs.version }}'
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Run Build Scripts
34+
working-directory: packages/devui-vue/
35+
run: |
36+
ls
37+
node -v
38+
npm install pnpm@9.15.4 -g
39+
pnpm -v
40+
pnpm install --no-frozen-lockfile
41+
pnpm run build:lib
42+
43+
- name: Publish
44+
working-directory: packages/devui-vue/build
45+
run: |
46+
npm publish
47+
env:
48+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
50+
- name: Release
51+
uses: softprops/action-gh-release@v1
52+
with:
53+
tag_name: v${{ steps.package-version.outputs.version }}
54+
generate_release_notes: true
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Preview Build
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build-preview:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
ref: ${{ github.event.pull_request.head.sha }}
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: '19'
18+
- name: Run Npm Scripts
19+
run: |
20+
node -v
21+
npm install pnpm -g
22+
pnpm -v
23+
pnpm i
24+
pnpm scripts run build
25+
- run: |
26+
zip -r dist.zip ./packages/devui-vue/docs/.vitepress/dist
27+
- name: upload dist artifact
28+
uses: actions/upload-artifact@v3
29+
with:
30+
name: dist
31+
path: dist.zip
32+
retention-days: 5
33+
34+
- name: Save PR number
35+
if: ${{ always() }}
36+
run: echo ${{ github.event.number }} > ./pr-id.txt
37+
38+
- name: Upload PR number
39+
if: ${{ always() }}
40+
uses: actions/upload-artifact@v3
41+
with:
42+
name: pr
43+
path: ./pr-id.txt
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Preview Deploy
2+
3+
on:
4+
workflow_run:
5+
workflows: ['Preview Build']
6+
types:
7+
- completed
8+
9+
jobs:
10+
success:
11+
runs-on: ubuntu-latest
12+
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
13+
steps:
14+
- name: download pr artifact
15+
uses: dawidd6/action-download-artifact@v2
16+
with:
17+
workflow: ${{ github.event.workflow_run.workflow_id }}
18+
name: pr
19+
- name: save PR id
20+
id: pr
21+
run: echo "::set-output name=id::$(<pr-id.txt)"
22+
- name: download dist artifact
23+
uses: dawidd6/action-download-artifact@v2
24+
with:
25+
workflow: ${{ github.event.workflow_run.workflow_id }}
26+
workflow_conclusion: success
27+
name: dist
28+
- run: |
29+
unzip dist.zip
30+
- name: upload to surge
31+
id: deploy
32+
run: |
33+
export DEPLOY_DOMAIN=https://vue-devui-pr-${{ steps.pr.outputs.id }}.surge.sh
34+
npx surge --project packages/devui-vue/docs/.vitepress/dist/ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}
35+
- name: create comment
36+
uses: peter-evans/create-or-update-comment@v2
37+
with:
38+
issue-number: ${{ steps.pr.outputs.id }}
39+
body: |
40+
PR preview has been successfully built and deployed to https://vue-devui-pr-${{ steps.pr.outputs.id }}.surge.sh.
41+
- run: |
42+
rm -rf packages/devui-vue/docs/.vitepress/dist
43+
- name: The job failed
44+
if: ${{ failure() }}
45+
uses: peter-evans/create-or-update-comment@v2
46+
with:
47+
issue-number: ${{ steps.pr.outputs.id }}
48+
body: |
49+
Deploy PR preview failed.
50+
failed:
51+
runs-on: ubuntu-latest
52+
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
53+
steps:
54+
- name: download pr artifact
55+
uses: dawidd6/action-download-artifact@v2
56+
with:
57+
workflow: ${{ github.event.workflow_run.workflow_id }}
58+
name: pr
59+
- name: save PR id
60+
id: pr
61+
run: echo "::set-output name=id::$(<pr-id.txt)"
62+
- name: The job failed
63+
uses: peter-evans/create-or-update-comment@v2
64+
with:
65+
issue-number: ${{ steps.pr.outputs.id }}
66+
body: |
67+
Deploy PR preview failed.

.github/workflows/pull-request.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ jobs:
3333

3434
- name: Install deps
3535
run: pnpm i
36-
36+
3737
- name: Build site
3838
run: pnpm build
3939

40-
# - name: Test vue-devui
41-
# run: pnpm test
40+
- name: ESLint
41+
run: pnpm cli --filter vue-devui -- code-check -t eslint
42+
43+
- name: Unit test
44+
run: pnpm cli --filter vue-devui -- code-check -t unit-test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ packages/devui-vue/devui/theme/theme.scss
1616
packages/devui-vue/docs/.vitepress/config/sidebar.ts
1717
packages/devui-vue/docs/.vitepress/config/enSidebar.ts
1818
.pnpm-debug.log
19+
coverage

.ls-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ignore:
1616
- packages/devui-cli/node_modules
1717
# devui-theme
1818
- packages/devui-theme/dist
19+
- packages/devui-theme/build
1920
- packages/devui-theme/node_modules
2021
- packages/devui-theme/src/styles-var
2122
# devui-vue

0 commit comments

Comments
 (0)