From dd8ba4c64d7f3410aacb76c04d4fd7773acf0777 Mon Sep 17 00:00:00 2001 From: Harvey Date: Thu, 28 Apr 2022 13:04:58 +0800 Subject: [PATCH] Fix dev.js --- docs/index.html | 4 +- .../artplayer-plugin-danmuku/index.js | 648 ++++++++++++++++++ .../artplayer-plugin-danmuku/index.js.map | 1 + .../artplayer-tool-thumbnail/index.js | 457 ++++++++++++ .../artplayer-tool-thumbnail/index.js.map | 1 + docs/uncompiled/artplayer/index.js | 2 +- .../artplayer-plugin-danmuku/src/index.js | 2 + .../artplayer-tool-thumbnail/src/index.js | 4 +- scripts/dev.js | 6 +- 9 files changed, 1119 insertions(+), 6 deletions(-) create mode 100644 docs/uncompiled/artplayer-plugin-danmuku/index.js create mode 100644 docs/uncompiled/artplayer-plugin-danmuku/index.js.map create mode 100644 docs/uncompiled/artplayer-tool-thumbnail/index.js create mode 100644 docs/uncompiled/artplayer-tool-thumbnail/index.js.map diff --git a/docs/index.html b/docs/index.html index 23cc216f1..c998e21f3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -29,14 +29,14 @@
  • Plugins
  • artplayer-plugin-danmuku + href="/?libs=./uncompiled/artplayer-plugin-danmuku/index.js&example=danmuku">artplayer-plugin-danmuku
  • diff --git a/docs/uncompiled/artplayer-plugin-danmuku/index.js b/docs/uncompiled/artplayer-plugin-danmuku/index.js new file mode 100644 index 000000000..134a20c9d --- /dev/null +++ b/docs/uncompiled/artplayer-plugin-danmuku/index.js @@ -0,0 +1,648 @@ +// modules are defined as an array +// [ module function, map of requires ] +// +// map of requires is short require name -> numeric require +// +// anything defined in a previous bundle is accessed via the +// orig method which is the require for previous bundles + +(function (modules, entry, mainEntry, parcelRequireName, globalName) { + /* eslint-disable no-undef */ + var globalObject = + typeof globalThis !== 'undefined' + ? globalThis + : typeof self !== 'undefined' + ? self + : typeof window !== 'undefined' + ? window + : typeof global !== 'undefined' + ? global + : {}; + /* eslint-enable no-undef */ + + // Save the require from previous bundle to this closure if any + var previousRequire = + typeof globalObject[parcelRequireName] === 'function' && + globalObject[parcelRequireName]; + + var cache = previousRequire.cache || {}; + // Do not use `require` to prevent Webpack from trying to bundle this call + var nodeRequire = + typeof module !== 'undefined' && + typeof module.require === 'function' && + module.require.bind(module); + + function newRequire(name, jumped) { + if (!cache[name]) { + if (!modules[name]) { + // if we cannot find the module within our internal map or + // cache jump to the current global require ie. the last bundle + // that was added to the page. + var currentRequire = + typeof globalObject[parcelRequireName] === 'function' && + globalObject[parcelRequireName]; + if (!jumped && currentRequire) { + return currentRequire(name, true); + } + + // If there are other bundles on this page the require from the + // previous one is saved to 'previousRequire'. Repeat this as + // many times as there are bundles until the module is found or + // we exhaust the require chain. + if (previousRequire) { + return previousRequire(name, true); + } + + // Try the node require function if it exists. + if (nodeRequire && typeof name === 'string') { + return nodeRequire(name); + } + + var err = new Error("Cannot find module '" + name + "'"); + err.code = 'MODULE_NOT_FOUND'; + throw err; + } + + localRequire.resolve = resolve; + localRequire.cache = {}; + + var module = (cache[name] = new newRequire.Module(name)); + + modules[name][0].call( + module.exports, + localRequire, + module, + module.exports, + this + ); + } + + return cache[name].exports; + + function localRequire(x) { + var res = localRequire.resolve(x); + return res === false ? {} : newRequire(res); + } + + function resolve(x) { + var id = modules[name][1][x]; + return id != null ? id : x; + } + } + + function Module(moduleName) { + this.id = moduleName; + this.bundle = newRequire; + this.exports = {}; + } + + newRequire.isParcelRequire = true; + newRequire.Module = Module; + newRequire.modules = modules; + newRequire.cache = cache; + newRequire.parent = previousRequire; + newRequire.register = function (id, exports) { + modules[id] = [ + function (require, module) { + module.exports = exports; + }, + {}, + ]; + }; + + Object.defineProperty(newRequire, 'root', { + get: function () { + return globalObject[parcelRequireName]; + }, + }); + + globalObject[parcelRequireName] = newRequire; + + for (var i = 0; i < entry.length; i++) { + newRequire(entry[i]); + } + + if (mainEntry) { + // Expose entry point to Node, AMD or browser globals + // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js + var mainExports = newRequire(mainEntry); + + // CommonJS + if (typeof exports === 'object' && typeof module !== 'undefined') { + module.exports = mainExports; + + // RequireJS + } else if (typeof define === 'function' && define.amd) { + define(function () { + return mainExports; + }); + + //