Skip to content

Commit fc25b68

Browse files
committed
docs: trans dumi to vitepress for documents
1 parent f2fae6b commit fc25b68

File tree

112 files changed

+5156
-6480
lines changed

Some content is hidden

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

112 files changed

+5156
-6480
lines changed

.github/workflows/gh-pages.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
1-
name: Deploy GitHub Pages
1+
name: Deploy QierPlayer Docs to GitHub Pages
22

33
on:
44
push:
55
branches:
66
- master
7+
workflow_dispatch:
78

89
jobs:
9-
build-and-deploy:
10-
runs-on: macos-latest
10+
# 构建工作
11+
build:
12+
runs-on: ubuntu-latest
1113
steps:
1214
- name: Checkout
13-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1416
with:
1517
persist-credentials: false
16-
18+
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
19+
- name: Setup Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 18
23+
cache: yarn # 或 pnpm / npm
1724
- name: Build
1825
working-directory: ./website
1926
run: yarn && yarn build
20-
2127
- name: Deploy
2228
uses: JamesIves/github-pages-deploy-action@4.1.4
2329
with:
2430
token: ${{ secrets.GITHUB_TOKEN }}
2531
branch: gh-pages
26-
folder: website/dist
32+
folder: website/docs/.vitepress/dist

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/**/node_modules
22
/**/build
33
/**/dist
4+
/**/website

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
"editor.formatOnSave": true,
1616
"editor.codeActionsOnSave": {
17-
"source.fixAll.eslint": true,
18-
"source.fixAll.stylelint": true
17+
"source.fixAll.eslint": "explicit",
18+
"source.fixAll.stylelint": "explicit"
1919
},
2020
"[javascript]": {
2121
"editor.defaultFormatter": "esbenp.prettier-vscode"

README-zh-Cn.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ npm install --save qier-player
4949
yarn add qier-player
5050
```
5151

52-
当然你也可以使用 CDN 服务:
53-
54-
```html
55-
<script src="https://unpkg.com/qier-player@latest/dist/umd/index.min.js"></script>
56-
```
57-
5852
### 使用
5953

6054
```js
@@ -65,14 +59,3 @@ const player = new Player({
6559
});
6660
player.mount('#app');
6761
```
68-
69-
## 生态
70-
71-
| Name | version | gzip size |
72-
| --- | --- | --- |
73-
| [qier-player-for-react]() | [![npm](https://img.shields.io/npm/v/@qier-player/react?logo=npm&style=flat-square)](https://www.npmjs.com/package/@qier-player/react) | [![gzip size](https://img.shields.io/bundlephobia/minzip/@qier-player/react?label=gzip%20size&style=flat-square)](https://unpkg.com/@qier-player/react@2.0.1/dist/umd/index.min.js) |
74-
75-
## Future features
76-
77-
- `@qier-player/vue` for Vue developer.
78-
- `@qier-player/danmaku` plungin.

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ npm install --save qier-player
4949
yarn add qier-player
5050
```
5151

52-
Of course you can also use CDN service:
53-
54-
```html
55-
<script src="https://unpkg.com/qier-player@latest/dist/umd/index.min.js"></script>
56-
```
57-
5852
### Use
5953

6054
```js
@@ -65,14 +59,3 @@ const player = new Player({
6559
});
6660
player.mount('#app');
6761
```
68-
69-
## Ecosystem
70-
71-
| Name | version | gzip size |
72-
| --- | --- | --- |
73-
| [qier-player-for-react]() | [![npm](https://img.shields.io/npm/v/@qier-player/react?logo=npm&style=flat-square)](https://www.npmjs.com/package/@qier-player/react) | [![gzip size](https://img.shields.io/bundlephobia/minzip/@qier-player/react?label=gzip%20size&style=flat-square)](https://unpkg.com/@qier-player/react@2.0.1/dist/umd/index.min.js) |
74-
75-
## Future features
76-
77-
- `@qier-player/vue` for Vue developer.
78-
- `@qier-player/danmaku` plungin.

fixtures/qier-player-danmaku/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ window.onload = function () {
145145
const genDanmu = (time, danmu) => {
146146
if (!danmu) return;
147147
setTimeout(() => {
148-
danmaku.add(danmu, 'fixed-top');
148+
// danmaku.add(danmu, 'fixed-top');
149+
danmaku.add(danmu, 'rolling');
149150
}, time);
150151
};
151152

packages/qier-player-danmaku/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Powerful danmaku, support many features.",
55
"main": "dist/es/index.js",
66
"module": "dist/es/index.js",
7-
"types": "dist/es/index.d.ts",
7+
"typings": "dist/es/index.d.ts",
88
"author": "vortesnail <1091331061@qq.com>",
99
"files": [
1010
"dist"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import './style/index.scss';
22

33
export { Danmaku as default } from './main/danmaku';
4+
export * from './main/danmaku';

packages/qier-player-danmaku/src/main/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface DanmakuOptions {
88
duration: number;
99
zoom: number;
1010

11-
eventProxyElement?: HTMLHtmlElement; // 弹幕交互的事件代理 dom 元素
11+
eventProxyElement?: HTMLElement; // 弹幕交互的事件代理 dom 元素
1212
}
1313

1414
export type DanmakuOptionsInit = Partial<DanmakuOptions>;

packages/qier-player/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Easy to use and powerful html5 player.",
55
"main": "dist/es/index.js",
66
"module": "dist/es/index.js",
7-
"types": "dist/es/index.d.ts",
7+
"typings": "dist/es/index.d.ts",
88
"author": "vortesnail <1091331061@qq.com>",
99
"files": [
1010
"dist"

packages/qier-player/src/main/modules/controller/eles/settings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class Settings extends DomNode implements IControllerEle {
5656
this.items = player.settingItems;
5757
this.el.appendChild(Icon.settings());
5858

59+
// 占位填充弹框和 icon 之间的空白,防止光标移开 icon 弹框就消失
5960
this.stuffing = this.el.appendChild(createEle('div.controller_settings_stuffing'));
6061

6162
this.popover = new Popover(this.el, { willChange: 'width, height' });

website/.editorconfig

Lines changed: 0 additions & 16 deletions
This file was deleted.

website/.gitignore

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
31
# dependencies
42
/node_modules
53
/npm-debug.log*
64
/yarn-error.log
7-
/package-lock.json
85

96
# production
107
/dist
118

129
# misc
1310
.DS_Store
1411

15-
# umi
16-
.umi
17-
.umi-production
18-
.env.local
19-
20-
# ide
21-
/.vscode
22-
/.idea
12+
# custom ignore
13+
docs/.vitepress/cache
14+
docs/.vitepress/dist

website/.prettierignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

website/.prettierrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

website/.umirc.ts

Lines changed: 0 additions & 76 deletions
This file was deleted.

website/README.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

website/components/home/Code.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

website/components/home/feature.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)