Skip to content

Commit 804b0e6

Browse files
committed
Merge branch 'dev' of github.com:opentiny/tiny-vue into dev
2 parents ea0b581 + a9a197a commit 804b0e6

File tree

5,888 files changed

+94563
-29810
lines changed

Some content is hidden

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

5,888 files changed

+94563
-29810
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Auto Deploy Site
2+
3+
on:
4+
push:
5+
branches: [dev]
6+
paths:
7+
- 'examples/sites/**'
8+
- '!examples/sites/**/*.spec.ts'
9+
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow one concurrent deployment
18+
concurrency:
19+
group: pages
20+
cancel-in-progress: true
21+
22+
jobs:
23+
# Build job
24+
build:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v3
29+
- name: Setup pnpm
30+
uses: pnpm/action-setup@v3
31+
with:
32+
version: 9
33+
- name: Install deps
34+
run: pnpm -F @opentiny/vue-docs i --ignore-scripts --no-frozen-lockfile
35+
- name: Build site
36+
run: pnpm -F @opentiny/vue-docs build
37+
- name: Setup Pages
38+
uses: actions/configure-pages@v2
39+
- name: Build with Jekyll
40+
uses: actions/jekyll-build-pages@v1
41+
with:
42+
source: ./examples/sites/dist
43+
destination: ./_site
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v1
46+
47+
# Deployment job
48+
deploy:
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
runs-on: ubuntu-latest
53+
needs: build
54+
steps:
55+
- name: Deploy to GitHub Pages
56+
id: deployment
57+
uses: actions/deploy-pages@v1

commitlint.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
module.exports = { extends: ['@commitlint/config-conventional'] }
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'header-max-length': [1, 'always', 150]
5+
}
6+
}

examples/blocks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@opentiny/unplugin-tiny-vue": "~0.0.2",
1717
"@vitejs/plugin-vue": "^4.5.2",
1818
"typescript": "^5.2.2",
19-
"vite": "^5.0.8",
19+
"vite": "catalog:",
2020
"vue-tsc": "^1.8.25"
2121
}
2222
}

examples/openinula-docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"eslint": "^8.44.0",
2323
"eslint-plugin-react-hooks": "^4.6.0",
2424
"postcss": "^8.4.16",
25-
"typescript": "^5.0.2",
26-
"vite": "^4.3.8",
25+
"typescript": "catalog:",
26+
"vite": "catalog:",
2727
"vite-plugin-svgr": "^3.2.0"
2828
}
2929
}

examples/react-docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"eslint-plugin-react-hooks": "^4.6.0",
2626
"postcss": "^8.4.16",
2727
"tailwindcss": "^3.3.3",
28-
"typescript": "^5.0.2",
29-
"vite": "^4.3.8",
28+
"typescript": "catalog:",
29+
"vite": "catalog:",
3030
"vite-plugin-react": "^4.0.1",
3131
"vite-plugin-svgr": "^3.2.0"
3232
}

examples/react-site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"unplugin-auto-import": "0.8.7",
6060
"unplugin-vue-components": "^0.19.9",
6161
"uslug": "^1.0.4",
62-
"vite": "^4.3.8",
62+
"vite": "catalog:",
6363
"vite-plugin-html": "^2.0.0",
6464
"vite-plugin-inspect": "^0.5.0",
6565
"vite-plugin-md": "0.13.1"

examples/sites/demos/.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/** @type {import('eslint').Linter.Config} */
44
module.exports = {
55
rules: {
6-
'no-console': 'off'
6+
'no-console': 'off',
7+
'vue/no-unused-vars': 'off'
78
}
89
}

examples/sites/demos/apis/bulletin-board.js

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ export default {
1818
},
1919
{
2020
name: 'data',
21-
type: 'Array',
21+
typeAnchorName: 'BulletinBoardData',
22+
type: 'BulletinBoardData[]',
2223
defaultValue: '',
2324
desc: {
24-
'zh-CN': 'tab-item 数据;tab-item 数据',
25-
'en-US': 'tab-item data; tab-item data'
25+
'zh-CN': 'tab-item 数据;',
26+
'en-US': 'tab-item data;'
2627
},
2728
mode: ['pc'],
2829
pcDemo: 'base'
@@ -87,9 +88,38 @@ export default {
8788
pcDemo: 'title'
8889
}
8990
],
90-
events: [],
91+
events: [
92+
{
93+
name: 'contentClick',
94+
type: '(event: BulletinBoardData) => void',
95+
defaultValue: '',
96+
desc: {
97+
'zh-CN': '当公告牌内容被点击时触发的回调函数',
98+
'en-US': 'The callback function triggered when the content of the bulletin board is clicked'
99+
},
100+
mode: ['pc'],
101+
pcDemo: 'events',
102+
meta: {
103+
stable: '3.20.0'
104+
}
105+
}
106+
],
91107
methods: [],
92108
slots: []
93109
}
110+
],
111+
types: [
112+
{
113+
name: 'BulletinBoardData',
114+
type: 'interface',
115+
code: `
116+
interface BulletinBoardData {
117+
text: string // 显示文本
118+
date: string // 日期
119+
url: string // 需要跳转的地址
120+
target: string // <a> 标签的一个属性,该属性指定在何处显示链接的资源
121+
}
122+
`
123+
}
94124
]
95125
}

examples/sites/demos/apis/calendar-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default {
4343
},
4444
{
4545
name: 'height',
46-
type: 'string',
46+
type: 'string | number',
4747
defaultValue: '',
4848
desc: {
4949
'zh-CN': '日历高度',

0 commit comments

Comments
 (0)