diff --git a/THIRD_PARTY.txt b/THIRD_PARTY.txt index e754bd64..8a86f263 100644 --- a/THIRD_PARTY.txt +++ b/THIRD_PARTY.txt @@ -1782,6 +1782,7 @@ https://fonts.gstatic.com/s/materialiconstwotone/v112/hESh6WRmNCxEqUmNyh3JDeGxjV https://fonts.gstatic.com/s/materialicons/v143/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2 https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js +https://raw.githubusercontent.com/cstkcstk/playerjs/refs/heads/main/playerjs.js https://raw.githubusercontent.com/jquery-validation/jquery-validation/1.21.0/dist/jquery.validate.min.js https://raw.githubusercontent.com/pagekit/vue-resource/1.5.3/dist/vue-resource.min.js https://raw.githubusercontent.com/Templarian/MaterialDesign-Webfont/v2.8.94/css/materialdesignicons.min.css diff --git a/audit/audit.sh b/audit/audit.sh index 725999fb..498792c2 100755 --- a/audit/audit.sh +++ b/audit/audit.sh @@ -759,6 +759,8 @@ function create_url() { [ "$jfile" = "pure.min.css" ] && \ ( [ "$version" = "0.6.2" ] || [ "$version" = "1.0.1" ] ); then url="$CLOUDFLARE/$folder/$version/pure-min.css" + elif [ "$folder" = "playerjs" ]; then + url="$GITHUB/cstkcstk/playerjs/refs/heads/main/playerjs.js" # -------------------------------------------------------------------------- else if [ "$subfile" = "$jfile" ]; then diff --git a/core/resources.js b/core/resources.js index abcc12fc..ac69c3c2 100644 --- a/core/resources.js +++ b/core/resources.js @@ -875,6 +875,10 @@ let resources = { 'paginationjsCSS': { 'path': 'resources/paginationjs/{version}/pagination.min.css' }, + // player.js + 'playerJs': { + 'path': 'resources/playerjs/{version}/playerjs.min.jsm' + }, // plyr CSS 'plyrCSS': { 'path': 'resources/plyr/{version}/plyr.min.css' diff --git a/core/shorthands.js b/core/shorthands.js index 8975d903..0123e81b 100644 --- a/core/shorthands.js +++ b/core/shorthands.js @@ -190,6 +190,15 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) { 'path': `resources/materialize/1.0.0/${channelPath}`, 'bundle': 'Materialize' }; + } else if (CompleteURL === 'cdn.jsdelivr.net/gh/cstkcstk/playerjs@main/playerjs.js') { + lastVersion = targets.setLastVersion('/playerjs/'); + return { + 'source': channelHost, + 'versionDelivered': lastVersion, + 'versionRequested': 'latest', + 'path': `resources/playerjs/${lastVersion}/playerjs.min.jsm`, + 'bundle': '' + }; } else if (CompleteURL === 'cdn.jsdelivr.net/npm/vue@2') { lastVersion = targets.setLastVersion('/vue/2.'); if (lastVersion === '') { diff --git a/modules/internal/targets.js b/modules/internal/targets.js index 0f9c7808..213aa79c 100644 --- a/modules/internal/targets.js +++ b/modules/internal/targets.js @@ -378,6 +378,7 @@ targets.setLastVersion = function (type, version) { if (type.startsWith('/p5.js/1.')) return '1.11.2'; if (type.startsWith('/page.js/1.')) return '1.11.6'; if (type.startsWith('/paginationjs/2.')) return '2.6.0'; + if (type.startsWith('/playerjs/')) return '19.9.25'; if (type.startsWith('/plyr/3.')) return '3.7.8'; if (type.startsWith('/popper.js/1.')) return '1.16.1'; if (type.startsWith('/popper.js/2.')) return '2.11.8'; @@ -526,6 +527,7 @@ targets.determineResourceName = function (filename) { }; const ListOfFiles = { + 'playerjs.min.jsm': 'PlayerJS', 'featherlight.min.css': 'featherlight (CSS)', 'featherlight.min.jsm': 'featherlight (JS)', 'featherlight.gallery.min.css': 'featherlight Gallery (CSS)', diff --git a/pages/updates/updates.html b/pages/updates/updates.html index d1f9a47b..9fc1aeb9 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -25,9 +25,9 @@
Added