Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:opentiny/tiny-vue into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Davont committed Dec 4, 2024
2 parents ea0b581 + a9a197a commit 804b0e6
Show file tree
Hide file tree
Showing 5,888 changed files with 94,563 additions and 29,810 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
57 changes: 57 additions & 0 deletions .github/workflows/auto-deploy-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Auto Deploy Site

on:
push:
branches: [dev]
paths:
- 'examples/sites/**'
- '!examples/sites/**/*.spec.ts'

workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: pages
cancel-in-progress: true

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: Install deps
run: pnpm -F @opentiny/vue-docs i --ignore-scripts --no-frozen-lockfile
- name: Build site
run: pnpm -F @opentiny/vue-docs build
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./examples/sites/dist
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
7 changes: 6 additions & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
module.exports = { extends: ['@commitlint/config-conventional'] }
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'header-max-length': [1, 'always', 150]
}
}
2 changes: 1 addition & 1 deletion examples/blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@opentiny/unplugin-tiny-vue": "~0.0.2",
"@vitejs/plugin-vue": "^4.5.2",
"typescript": "^5.2.2",
"vite": "^5.0.8",
"vite": "catalog:",
"vue-tsc": "^1.8.25"
}
}
4 changes: 2 additions & 2 deletions examples/openinula-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"eslint": "^8.44.0",
"eslint-plugin-react-hooks": "^4.6.0",
"postcss": "^8.4.16",
"typescript": "^5.0.2",
"vite": "^4.3.8",
"typescript": "catalog:",
"vite": "catalog:",
"vite-plugin-svgr": "^3.2.0"
}
}
4 changes: 2 additions & 2 deletions examples/react-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"eslint-plugin-react-hooks": "^4.6.0",
"postcss": "^8.4.16",
"tailwindcss": "^3.3.3",
"typescript": "^5.0.2",
"vite": "^4.3.8",
"typescript": "catalog:",
"vite": "catalog:",
"vite-plugin-react": "^4.0.1",
"vite-plugin-svgr": "^3.2.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/react-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"unplugin-auto-import": "0.8.7",
"unplugin-vue-components": "^0.19.9",
"uslug": "^1.0.4",
"vite": "^4.3.8",
"vite": "catalog:",
"vite-plugin-html": "^2.0.0",
"vite-plugin-inspect": "^0.5.0",
"vite-plugin-md": "0.13.1"
Expand Down
3 changes: 2 additions & 1 deletion examples/sites/demos/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
rules: {
'no-console': 'off'
'no-console': 'off',
'vue/no-unused-vars': 'off'
}
}
38 changes: 34 additions & 4 deletions examples/sites/demos/apis/bulletin-board.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ export default {
},
{
name: 'data',
type: 'Array',
typeAnchorName: 'BulletinBoardData',
type: 'BulletinBoardData[]',
defaultValue: '',
desc: {
'zh-CN': 'tab-item 数据;tab-item 数据',
'en-US': 'tab-item data; tab-item data'
'zh-CN': 'tab-item 数据;',
'en-US': 'tab-item data;'
},
mode: ['pc'],
pcDemo: 'base'
Expand Down Expand Up @@ -87,9 +88,38 @@ export default {
pcDemo: 'title'
}
],
events: [],
events: [
{
name: 'contentClick',
type: '(event: BulletinBoardData) => void',
defaultValue: '',
desc: {
'zh-CN': '当公告牌内容被点击时触发的回调函数',
'en-US': 'The callback function triggered when the content of the bulletin board is clicked'
},
mode: ['pc'],
pcDemo: 'events',
meta: {
stable: '3.20.0'
}
}
],
methods: [],
slots: []
}
],
types: [
{
name: 'BulletinBoardData',
type: 'interface',
code: `
interface BulletinBoardData {
text: string // 显示文本
date: string // 日期
url: string // 需要跳转的地址
target: string // <a> 标签的一个属性,该属性指定在何处显示链接的资源
}
`
}
]
}
2 changes: 1 addition & 1 deletion examples/sites/demos/apis/calendar-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {
},
{
name: 'height',
type: 'string',
type: 'string | number',
defaultValue: '',
desc: {
'zh-CN': '日历高度',
Expand Down
Loading

0 comments on commit 804b0e6

Please sign in to comment.