Remove artplayer-plugin-liquid-glass plugin

- Deleted the plugin files including JavaScript, CSS, README, and type definitions.
- Removed references to the plugin from the documentation.
- Cleaned up the package structure by removing the .npmignore and package.json files related to the plugin.
This commit is contained in:
Harvey Zhao committed 2026-01-04 16:54:07 +08:00
1 parent c321d40cc3
commit ca34b47180
20 files changed
-562

No files matched your search

@@ -1,6 +0,0 @@
node_modules
.DS_Store
.parcel-cache
yarn.lock
package-lock.json
src
@@ -1,11 +0,0 @@
# artplayer-plugin-liquid-glass
liquid-glass plugin for ArtPlayer
## Demo
[https://artplayer.org](https://artplayer.org/?libs=./uncompiled/artplayer-plugin-liquid-glass/index.js&example=liquid-glass)
## License
MIT © Harvey Zack
@@ -1,8 +0,0 @@
/*!
* artplayer-plugin-liquid-glass.js v1.0.0
* Github: https://github.com/zhw2590582/ArtPlayer
* (c) 2017-2026 Harvey Zack
* Released under the MIT License.
*/
!function(e,t,r,o,n,a,i,l){var u="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},d="function"==typeof u[o]&&u[o],c=d.i||{},s=d.cache||{},p="u">typeof module&&"function"==typeof module.require&&module.require.bind(module);function f(t,r){if(!s[t]){if(!e[t]){if(n[t])return n[t];var a="function"==typeof u[o]&&u[o];if(!r&&a)return a(t,!0);if(d)return d(t,!0);if(p&&"string"==typeof t)return p(t);var i=Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}c.resolve=function(r){var o=e[t][1][r];return null!=o?o:r},c.cache={};var l=s[t]=new f.Module(t);e[t][0].call(l.exports,c,l,l.exports,u)}return s[t].exports;function c(e){var t=c.resolve(e);if(!1===t)return{};if(Array.isArray(t)){var r={__esModule:!0};return t.forEach(function(e){var t=e[0],o=e[1],n=e[2]||e[0],a=f(o);"*"===t?Object.keys(a).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}})}):"*"===n?Object.defineProperty(r,t,{enumerable:!0,value:a}):Object.defineProperty(r,t,{enumerable:!0,get:function(){return"default"===n?a.__esModule?a.default:a:a[n]}})}),r}return f(t)}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.require=p,this.exports={}},f.modules=e,f.cache=s,f.parent=d,f.distDir=void 0,f.publicUrl=void 0,f.devServer=void 0,f.i=c,f.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(f,"root",{get:function(){return u[o]}}),u[o]=f;for(var y=0;y<t.length;y++)f(t[y]);if(r){var g=f(r);"object"==typeof exports&&"u">typeof module?module.exports=g:"function"==typeof define&&define.amd&&define(function(){return g})}}({dOYQ3:[function(e,t,r,o){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>l);var a=e("bundle-text:./style.less"),i=n.interopDefault(a);function l(e={}){return t=>{let{constructor:r}=t,{addClass:o,append:n,createElement:a}=r.utils,{$bottom:i,$progress:l,$controls:u,$player:d}=t.template,c=a("div");return o(d,"artplayer-plugin-liquid-glass"),o(c,"art-liquid-glass"),n(i,c),n(c,l),n(c,u),t.on("control",t=>{t?(c.style.width=e.width,c.style["max-width"]=e["max-width"],c.style["min-width"]=e["min-width"]):(c.style.width="",c.style["max-width"]="",c.style["min-width"]="")}),{name:"artplayerPluginLiquidGlass"}}}if("u">typeof document){let e="artplayer-plugin-liquid-glass",t=document.getElementById(e);t||((t=document.createElement("style")).id=e,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{document.head.appendChild(t)}):(document.head||document.documentElement).appendChild(t)),t.textContent=i.default}"u">typeof window&&(window.artplayerPluginLiquidGlass=l)},{"bundle-text:./style.less":"kzvrd","@parcel/transformer-js/src/esmodule-helpers.js":"6ykb1"}],kzvrd:[function(e,t,r,o){t.exports=".artplayer-plugin-liquid-glass.art-control-show{--art-control-height:42px;--art-control-icon-size:24px;--art-control-icon-scale:1.1}.artplayer-plugin-liquid-glass.art-control-show .art-bottom{padding-bottom:var(--art-padding);background-image:none;align-items:center}.artplayer-plugin-liquid-glass.art-control-show .art-bottom .art-liquid-glass{backdrop-filter:blur(12px);padding:var(--art-padding)calc(var(--art-padding)*1.5)5px;background-color:#00000040;border-radius:8px}.artplayer-plugin-liquid-glass.art-control-show .art-settings{bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-padding))}.artplayer-plugin-liquid-glass.art-control-show .art-layer-auto-playback{bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-padding)*4 + 10px)}"},{}],"6ykb1":[function(e,t,r,o){r.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},r.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.exportAll=function(e,t){return Object.keys(e).forEach(function(r){"default"===r||"__esModule"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),t},r.export=function(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r})}},{}]},["dOYQ3"],"dOYQ3","parcelRequire4dc0",{});
@@ -1,8 +0,0 @@
/*!
* artplayer-plugin-liquid-glass.js v1.0.0
* Github: https://github.com/zhw2590582/ArtPlayer
* (c) 2017-2026 Harvey Zack
* Released under the MIT License.
*/
!function(e,t,r,o,n,a,i,l){var u="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},d="function"==typeof u[o]&&u[o],c=d.i||{},s=d.cache||{},p="u">typeof module&&"function"==typeof module.require&&module.require.bind(module);function f(t,r){if(!s[t]){if(!e[t]){if(n[t])return n[t];var a="function"==typeof u[o]&&u[o];if(!r&&a)return a(t,!0);if(d)return d(t,!0);if(p&&"string"==typeof t)return p(t);var i=Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}c.resolve=function(r){var o=e[t][1][r];return null!=o?o:r},c.cache={};var l=s[t]=new f.Module(t);e[t][0].call(l.exports,c,l,l.exports,u)}return s[t].exports;function c(e){var t=c.resolve(e);if(!1===t)return{};if(Array.isArray(t)){var r={__esModule:!0};return t.forEach(function(e){var t=e[0],o=e[1],n=e[2]||e[0],a=f(o);"*"===t?Object.keys(a).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}})}):"*"===n?Object.defineProperty(r,t,{enumerable:!0,value:a}):Object.defineProperty(r,t,{enumerable:!0,get:function(){return"default"===n?a.__esModule?a.default:a:a[n]}})}),r}return f(t)}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.require=p,this.exports={}},f.modules=e,f.cache=s,f.parent=d,f.distDir=void 0,f.publicUrl=void 0,f.devServer=void 0,f.i=c,f.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(f,"root",{get:function(){return u[o]}}),u[o]=f;for(var g=0;g<t.length;g++)f(t[g]);if(r){var y=f(r);"object"==typeof exports&&"u">typeof module?module.exports=y:"function"==typeof define&&define.amd&&define(function(){return y})}}({bMV8e:[function(e,t,r,o){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",function(){return l});var a=e("bundle-text:./style.less"),i=n.interopDefault(a);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var r=t.constructor.utils,o=r.addClass,n=r.append,a=r.createElement,i=t.template,l=i.$bottom,u=i.$progress,d=i.$controls,c=i.$player,s=a("div");return o(c,"artplayer-plugin-liquid-glass"),o(s,"art-liquid-glass"),n(l,s),n(s,u),n(s,d),t.on("control",function(t){t?(s.style.width=e.width,s.style["max-width"]=e["max-width"],s.style["min-width"]=e["min-width"]):(s.style.width="",s.style["max-width"]="",s.style["min-width"]="")}),{name:"artplayerPluginLiquidGlass"}}}if("u">typeof document){var u="artplayer-plugin-liquid-glass",d=document.getElementById(u);d||((d=document.createElement("style")).id=u,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){document.head.appendChild(d)}):(document.head||document.documentElement).appendChild(d)),d.textContent=i.default}"u">typeof window&&(window.artplayerPluginLiquidGlass=l)},{"bundle-text:./style.less":"3gqqK","@parcel/transformer-js/src/esmodule-helpers.js":"qpMMf"}],"3gqqK":[function(e,t,r,o){t.exports=".artplayer-plugin-liquid-glass.art-control-show{--art-control-height:42px;--art-control-icon-size:24px;--art-control-icon-scale:1.1}.artplayer-plugin-liquid-glass.art-control-show .art-bottom{padding-bottom:var(--art-padding);background-image:none;align-items:center}.artplayer-plugin-liquid-glass.art-control-show .art-bottom .art-liquid-glass{backdrop-filter:blur(12px);padding:var(--art-padding)calc(var(--art-padding)*1.5)5px;background-color:rgba(0,0,0,.25);border-radius:8px}.artplayer-plugin-liquid-glass.art-control-show .art-settings{bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-padding))}.artplayer-plugin-liquid-glass.art-control-show .art-layer-auto-playback{bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-padding)*4 + 10px)}"},{}],qpMMf:[function(e,t,r,o){r.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},r.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.exportAll=function(e,t){return Object.keys(e).forEach(function(r){"default"===r||"__esModule"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),t},r.export=function(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r})}},{}]},["bMV8e"],"bMV8e","parcelRequire4dc0",{});
@@ -1,8 +0,0 @@
/*!
* artplayer-plugin-liquid-glass.js v1.0.0
* Github: https://github.com/zhw2590582/ArtPlayer
* (c) 2017-2026 Harvey Zack
* Released under the MIT License.
*/
!function(e,t,r,o,n,a,l,i){var u="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},d="function"==typeof u[o]&&u[o],c=d.i||{},s=d.cache||{},p="u">typeof module&&"function"==typeof module.require&&module.require.bind(module);function f(t,r){if(!s[t]){if(!e[t]){if(n[t])return n[t];var a="function"==typeof u[o]&&u[o];if(!r&&a)return a(t,!0);if(d)return d(t,!0);if(p&&"string"==typeof t)return p(t);var l=Error("Cannot find module '"+t+"'");throw l.code="MODULE_NOT_FOUND",l}c.resolve=function(r){var o=e[t][1][r];return null!=o?o:r},c.cache={};var i=s[t]=new f.Module(t);e[t][0].call(i.exports,c,i,i.exports,u)}return s[t].exports;function c(e){var t=c.resolve(e);if(!1===t)return{};if(Array.isArray(t)){var r={__esModule:!0};return t.forEach(function(e){var t=e[0],o=e[1],n=e[2]||e[0],a=f(o);"*"===t?Object.keys(a).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}})}):"*"===n?Object.defineProperty(r,t,{enumerable:!0,value:a}):Object.defineProperty(r,t,{enumerable:!0,get:function(){return"default"===n?a.__esModule?a.default:a:a[n]}})}),r}return f(t)}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.require=p,this.exports={}},f.modules=e,f.cache=s,f.parent=d,f.distDir=void 0,f.publicUrl=void 0,f.devServer=void 0,f.i=c,f.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(f,"root",{get:function(){return u[o]}}),u[o]=f;for(var g=0;g<t.length;g++)f(t[g]);if(r){var y=f(r);"object"==typeof exports&&"u">typeof module?module.exports=y:"function"==typeof define&&define.amd&&define(function(){return y})}}({d9Lrq:[function(e,t,r,o){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>i);var a=e("bundle-text:./style.less"),l=n.interopDefault(a);function i(e={}){return t=>{let{constructor:r}=t,{addClass:o,append:n,createElement:a}=r.utils,{$bottom:l,$progress:i,$controls:u,$player:d}=t.template,c=a("div");return o(d,"artplayer-plugin-liquid-glass"),o(c,"art-liquid-glass"),n(l,c),n(c,i),n(c,u),t.on("control",t=>{t?(c.style.width=e.width,c.style["max-width"]=e["max-width"],c.style["min-width"]=e["min-width"]):(c.style.width="",c.style["max-width"]="",c.style["min-width"]="")}),{name:"artplayerPluginLiquidGlass"}}}if("u">typeof document){let e="artplayer-plugin-liquid-glass",t=document.getElementById(e);t||((t=document.createElement("style")).id=e,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{document.head.appendChild(t)}):(document.head||document.documentElement).appendChild(t)),t.textContent=l.default}"u">typeof window&&(window.artplayerPluginLiquidGlass=i)},{"bundle-text:./style.less":"8Q9di","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"8Q9di":[function(e,t,r,o){t.exports=".artplayer-plugin-liquid-glass.art-control-show{--art-control-height:42px;--art-control-icon-size:24px;--art-control-icon-scale:1.1}.artplayer-plugin-liquid-glass.art-control-show .art-bottom{padding-bottom:var(--art-padding);background-image:none;align-items:center}.artplayer-plugin-liquid-glass.art-control-show .art-bottom .art-liquid-glass{backdrop-filter:blur(12px);padding:var(--art-padding)calc(var(--art-padding)*1.5)5px;background-color:#00000040;border-radius:8px}.artplayer-plugin-liquid-glass.art-control-show .art-settings{bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-padding))}.artplayer-plugin-liquid-glass.art-control-show .art-layer-auto-playback{bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-padding)*4 + 10px)}"},{}],loqXi:[function(e,t,r,o){r.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},r.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.exportAll=function(e,t){return Object.keys(e).forEach(function(r){"default"===r||"__esModule"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),t},r.export=function(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r})}},{}]},["d9Lrq"],"d9Lrq","parcelRequire4dc0",{});let{default:e}=parcelRequire4dc0("d9Lrq");export{e as default};
@@ -1,38 +0,0 @@
{
"name": "artplayer-plugin-liquid-glass",
"version": "1.0.0",
"description": "liquid-glass plugin for ArtPlayer",
"author": "Harvey Zack <laozhaochaguan@gmail.com>",
"license": "MIT",
"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"
],
"exports": {
".": {
"types": "./types/artplayer-plugin-liquid-glass.d.ts",
"import": "./dist/artplayer-plugin-liquid-glass.mjs",
"require": "./dist/artplayer-plugin-liquid-glass.js"
},
"./legacy": {
"types": "./types/artplayer-plugin-liquid-glass.d.ts",
"import": "./dist/artplayer-plugin-liquid-glass.legacy.js",
"require": "./dist/artplayer-plugin-liquid-glass.legacy.js"
}
},
"main": "dist/artplayer-plugin-liquid-glass.js",
"module": "./dist/artplayer-plugin-liquid-glass.mjs",
"types": "types/artplayer-plugin-liquid-glass.d.ts",
"legacy": "dist/artplayer-plugin-liquid-glass.legacy.js",
"browserslist": "last 1 Chrome version"
}
@@ -1,55 +0,0 @@
import style from 'bundle-text:./style.less'
export default function artplayerPluginLiquidGlass(option = {}) {
return (art) => {
const { constructor } = art
const { addClass, append, createElement } = constructor.utils
const { $bottom, $progress, $controls, $player } = art.template
const $liquidGlass = createElement('div')
addClass($player, 'artplayer-plugin-liquid-glass')
addClass($liquidGlass, 'art-liquid-glass')
append($bottom, $liquidGlass)
append($liquidGlass, $progress)
append($liquidGlass, $controls)
art.on('control', (state) => {
if (state) {
$liquidGlass.style.width = option.width
$liquidGlass.style['max-width'] = option['max-width']
$liquidGlass.style['min-width'] = option['min-width']
}
else {
$liquidGlass.style.width = ''
$liquidGlass.style['max-width'] = ''
$liquidGlass.style['min-width'] = ''
}
})
return {
name: 'artplayerPluginLiquidGlass',
}
}
}
if (typeof document !== 'undefined') {
const id = 'artplayer-plugin-liquid-glass'
let $style = document.getElementById(id)
if (!$style) {
$style = document.createElement('style')
$style.id = id
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', () => {
document.head.appendChild($style)
})
}
else {
(document.head || document.documentElement).appendChild($style)
}
}
$style.textContent = style
}
if (typeof window !== 'undefined') {
window.artplayerPluginLiquidGlass = artplayerPluginLiquidGlass
}
@@ -1,28 +0,0 @@
.artplayer-plugin-liquid-glass {
&.art-control-show {
--art-control-height: 42px;
--art-control-icon-size: 24px;
--art-control-icon-scale: 1.1;
.art-bottom {
align-items: center;
background-image: none;
padding-bottom: var(--art-padding);
.art-liquid-glass {
border-radius: 8px;
backdrop-filter: blur(12px);
background-color: rgba(0, 0, 0, 0.25);
padding: var(--art-padding) calc(var(--art-padding) * 1.5) 5px;
}
}
.art-settings {
bottom: calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-padding));
}
.art-layer-auto-playback {
bottom: calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-padding) * 4 + 10px);
}
}
}
@@ -1,15 +0,0 @@
import type Artplayer from 'artplayer'
interface Option {
'width': string
'max-width': string
'min-width': string
}
interface Result {
name: 'artplayerPluginLiquidGlass'
}
declare const artplayerPluginLiquidGlass: (option?: Option) => (art: Artplayer) => Result
export default artplayerPluginLiquidGlass