1
+ /*
2
+ * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
3
+ * This devtool is neither made for production nor for readable output files.
4
+ * It uses "eval()" calls to create a separate source file in the browser devtools.
5
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6
+ * or disable the default devtool with "devtool: false".
7
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8
+ */
9
+ /******/ ( ( ) => { // webpackBootstrap
10
+ /******/ "use strict" ;
11
+ /******/ var __webpack_modules__ = ( {
12
+
13
+ /***/ "./src/aplayer-meting-api-loader.js" :
14
+ /*!******************************************!*\
15
+ !*** ./src/aplayer-meting-api-loader.js ***!
16
+ \******************************************/
17
+ /***/ ( ( __unused_webpack_module , __webpack_exports__ , __webpack_require__ ) => {
18
+
19
+ eval ( "__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"APlayerMettingAPILoader\": () => (/* binding */ APlayerMettingAPILoader)\n/* harmony export */ });\nclass APlayerMettingAPILoader {\n constructor(options) {\n APlayerMettingAPILoader.instances = {};\n\n this.options = options;\n this.init();\n }\n\n instances() {\n return APlayerMettingAPILoader.instances;\n }\n\n init() {\n const _this = this;\n this.getPlaylist(_this.options.playlists[0], function (data) {\n if (_this.options['audio'] === undefined) {\n _this.options['audio'] = [];\n }\n _this.options.audio = _this.options.audio.concat(data);\n\n if (_this.options['elementId'] === undefined) {\n _this.options['elementId'] = 'aplayer';\n }\n\n if (_this.options['api'] === undefined) {\n _this.options['api'] = 'https://api.i-meto.com/meting/api';\n }\n\n _this.options.element = document.getElementById(\n _this.options.elementId\n );\n\n _this.aplayer = new APlayer(_this.options);\n _this.lazyLoading();\n });\n }\n\n lazyLoading() {\n const _this = this;\n for (var i = 1; i < this.options.playlists.length; i++) {\n this.getPlaylist(this.options.playlists[i], function (data) {\n _this.aplayer.list.add(data);\n console.log('lazyLoaded: playlist +1');\n });\n }\n }\n\n getPlaylist(playlist, success) {\n const _this = this;\n axios\n .get(_this.options['api'], {\n params: playlist,\n })\n .then(function (response) {\n if (response.status == 200) {\n success(response.data);\n }\n })\n .catch(function (error) {\n console.log(error);\n });\n }\n}\n\n\n//# sourceURL=webpack://docsify-plugin-meting-api/./src/aplayer-meting-api-loader.js?" ) ;
20
+
21
+ /***/ } ) ,
22
+
23
+ /***/ "./src/index.js" :
24
+ /*!**********************!*\
25
+ !*** ./src/index.js ***!
26
+ \**********************/
27
+ /***/ ( ( __unused_webpack_module , __webpack_exports__ , __webpack_require__ ) => {
28
+
29
+ eval ( "__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _aplayer_meting_api_loader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./aplayer-meting-api-loader */ \"./src/aplayer-meting-api-loader.js\");\n/**\n * docsify-plugin-meting-api\n * lisuke <[email protected] >\n */\n\n\n\nconst MetingAPIOptions = {\n elementId: 'aplayer',\n api: 'https://api.i-meto.com/meting/api',\n fixed: true,\n autoplay: true,\n lrcType: 3,\n order: 'random',\n loop: 'all',\n mutex: true,\n theme: '#b7daff',\n playlists: [],\n};\n\nfunction plugin(hook, vm) {\n let dom = Docsify.dom;\n\n if (!window.$docsify.MetingAPI) {\n return;\n }\n\n hook.mounted(function () {\n let aplayer = dom.create('div');\n aplayer.id = window.$docsify.MetingAPI.elementId;\n dom.appendTo(dom.body, aplayer);\n });\n\n hook.ready(function () {\n let apml = new _aplayer_meting_api_loader__WEBPACK_IMPORTED_MODULE_0__.APlayerMettingAPILoader(window.$docsify.MetingAPI);\n });\n}\n\nwindow.$docsify = window.$docsify || {};\n\nwindow.$docsify.MetingAPI = Object.assign(\n MetingAPIOptions,\n window.$docsify.MetingAPI\n);\n\nwindow.$docsify.plugins = (window.$docsify.plugins || []).concat(plugin);\n\n\n//# sourceURL=webpack://docsify-plugin-meting-api/./src/index.js?" ) ;
30
+
31
+ /***/ } )
32
+
33
+ /******/ } ) ;
34
+ /************************************************************************/
35
+ /******/ // The module cache
36
+ /******/ var __webpack_module_cache__ = { } ;
37
+ /******/
38
+ /******/ // The require function
39
+ /******/ function __webpack_require__ ( moduleId ) {
40
+ /******/ // Check if module is in cache
41
+ /******/ var cachedModule = __webpack_module_cache__ [ moduleId ] ;
42
+ /******/ if ( cachedModule !== undefined ) {
43
+ /******/ return cachedModule . exports ;
44
+ /******/ }
45
+ /******/ // Create a new module (and put it into the cache)
46
+ /******/ var module = __webpack_module_cache__ [ moduleId ] = {
47
+ /******/ // no module.id needed
48
+ /******/ // no module.loaded needed
49
+ /******/ exports : { }
50
+ /******/ } ;
51
+ /******/
52
+ /******/ // Execute the module function
53
+ /******/ __webpack_modules__ [ moduleId ] ( module , module . exports , __webpack_require__ ) ;
54
+ /******/
55
+ /******/ // Return the exports of the module
56
+ /******/ return module . exports ;
57
+ /******/ }
58
+ /******/
59
+ /************************************************************************/
60
+ /******/ /* webpack/runtime/define property getters */
61
+ /******/ ( ( ) => {
62
+ /******/ // define getter functions for harmony exports
63
+ /******/ __webpack_require__ . d = ( exports , definition ) => {
64
+ /******/ for ( var key in definition ) {
65
+ /******/ if ( __webpack_require__ . o ( definition , key ) && ! __webpack_require__ . o ( exports , key ) ) {
66
+ /******/ Object . defineProperty ( exports , key , { enumerable : true , get : definition [ key ] } ) ;
67
+ /******/ }
68
+ /******/ }
69
+ /******/ } ;
70
+ /******/ } ) ( ) ;
71
+ /******/
72
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
73
+ /******/ ( ( ) => {
74
+ /******/ __webpack_require__ . o = ( obj , prop ) => ( Object . prototype . hasOwnProperty . call ( obj , prop ) )
75
+ /******/ } ) ( ) ;
76
+ /******/
77
+ /******/ /* webpack/runtime/make namespace object */
78
+ /******/ ( ( ) => {
79
+ /******/ // define __esModule on exports
80
+ /******/ __webpack_require__ . r = ( exports ) => {
81
+ /******/ if ( typeof Symbol !== 'undefined' && Symbol . toStringTag ) {
82
+ /******/ Object . defineProperty ( exports , Symbol . toStringTag , { value : 'Module' } ) ;
83
+ /******/ }
84
+ /******/ Object . defineProperty ( exports , '__esModule' , { value : true } ) ;
85
+ /******/ } ;
86
+ /******/ } ) ( ) ;
87
+ /******/
88
+ /************************************************************************/
89
+ /******/
90
+ /******/ // startup
91
+ /******/ // Load entry module and return exports
92
+ /******/ // This entry module can't be inlined because the eval devtool is used.
93
+ /******/ var __webpack_exports__ = __webpack_require__ ( "./src/index.js" ) ;
94
+ /******/
95
+ /******/ } ) ( )
96
+ ;
0 commit comments