* add artplayer-plugin-vast

* chore: Add create:plugin script to package.json

* chore: Remove deprecated artplayer-plugin-{{name}} and artplayer-plugin-vast types

* chore: Update artplayer-plugin-vast package description

* chore: Update Prettier configuration and dependencies
This commit is contained in:
Harvey Zhao authored and GitHub committed 2024-06-02 12:28:17 +08:00
1 parent b398749ef8
commit fac7d15726
24 files changed
+703 -296

No files matched your search

@@ -21,4 +21,4 @@
"video",
"player"
]
}
}
+11
View File
@@ -0,0 +1,11 @@
# artplayer-plugin-vast
vast plugin for ArtPlayer
## Demo
[https://artplayer.org](https://artplayer.org/?libs=./uncompiled/artplayer-plugin-vast/index.js&example=vast)
## License
MIT © Harvey Zack
@@ -0,0 +1,24 @@
{
"license": "MIT",
"version": "1.0.0",
"name": "artplayer-plugin-vast",
"types": "types/artplayer-plugin-vast.d.ts",
"description": "vast plugin for ArtPlayer",
"main": "dist/artplayer-plugin-vast.js",
"legacy": "dist/artplayer-plugin-vast.legacy.js",
"author": "Harvey Zack <laozhaochaguan@gmail.com>",
"browserslist": "last 1 Chrome version",
"homepage": "https://artplayer.org",
"repository": {
"type": "git",
"url": "git+https://github.com/zhw2590582/ArtPlayer.git"
},
"bugs": {
"url": "https://github.com/zhw2590582/ArtPlayer/issues"
},
"keywords": [
"html5",
"video",
"player"
]
}
@@ -0,0 +1,26 @@
import style from 'bundle-text:./style.less';
export default function artplayerPluginVast(option) {
return (art) => {
return {
name: 'artplayerPluginVast',
};
};
}
if (typeof document !== 'undefined') {
const id = 'artplayer-plugin-vast';
const $style = document.getElementById(id);
if ($style) {
$style.textContent = style;
} else {
const $style = document.createElement('style');
$style.id = id;
$style.textContent = style;
document.head.appendChild($style);
}
}
if (typeof window !== 'undefined') {
window['artplayerPluginVast'] = artplayerPluginVast;
}
@@ -0,0 +1,3 @@
.artplayer-plugin-vast {
//
}
@@ -0,0 +1,14 @@
import type Artplayer from 'artplayer';
export = artplayerPluginVast;
export as namespace artplayerPluginVast;
type Option = {
//
};
type Result = {
name: 'artplayerPluginVast';
};
declare const artplayerPluginVast: (option: Option) => (art: Artplayer) => Result;
+1 -1
View File
@@ -13,4 +13,4 @@
"vitepress-plugin-search": "^1.0.4-alpha.22",
"vue": "^3.4.27"
}
}
}
+1 -1
View File
@@ -24,4 +24,4 @@
"dependencies": {
"option-validator": "^2.0.6"
}
}
}