2019-05-22 15:18:17 -04:00
|
|
|
/**
|
|
|
|
* require.js module definitions bundled by webpack
|
|
|
|
*/
|
|
|
|
// Use define from require.js not webpack's define
|
|
|
|
var _define = window.define;
|
|
|
|
|
2019-11-27 22:07:33 +03:00
|
|
|
// document-register-element
|
2020-05-04 12:44:12 +02:00
|
|
|
var docRegister = require('document-register-element');
|
|
|
|
_define('document-register-element', function() {
|
2019-11-27 22:07:33 +03:00
|
|
|
return docRegister;
|
|
|
|
});
|
|
|
|
|
2019-11-11 01:45:01 +09:00
|
|
|
// fetch
|
2020-05-04 12:44:12 +02:00
|
|
|
var fetch = require('whatwg-fetch');
|
|
|
|
_define('fetch', function() {
|
2020-04-05 13:48:10 +02:00
|
|
|
return fetch;
|
2019-11-23 00:29:38 +09:00
|
|
|
});
|
2019-11-11 01:45:01 +09:00
|
|
|
|
2020-03-12 23:55:59 +09:00
|
|
|
// query-string
|
2020-05-04 12:44:12 +02:00
|
|
|
var query = require('query-string');
|
|
|
|
_define('queryString', function() {
|
2020-03-12 23:55:59 +09:00
|
|
|
return query;
|
|
|
|
});
|
|
|
|
|
2019-10-01 00:51:56 +09:00
|
|
|
// flvjs
|
2020-05-04 12:44:12 +02:00
|
|
|
var flvjs = require('flv.js/dist/flv').default;
|
|
|
|
_define('flvjs', function() {
|
2019-11-23 00:29:38 +09:00
|
|
|
return flvjs;
|
|
|
|
});
|
2019-10-01 00:51:56 +09:00
|
|
|
|
2019-09-11 05:35:41 -04:00
|
|
|
// jstree
|
2020-05-04 12:44:12 +02:00
|
|
|
var jstree = require('jstree');
|
|
|
|
require('jstree/dist/themes/default/style.css');
|
|
|
|
_define('jstree', function() {
|
2019-11-23 00:29:38 +09:00
|
|
|
return jstree;
|
|
|
|
});
|
2019-09-12 04:01:53 -07:00
|
|
|
|
|
|
|
// jquery
|
2020-05-04 12:44:12 +02:00
|
|
|
var jquery = require('jquery');
|
|
|
|
_define('jQuery', function() {
|
2019-11-23 00:29:38 +09:00
|
|
|
return jquery;
|
|
|
|
});
|
2019-09-11 05:35:41 -04:00
|
|
|
|
|
|
|
// hlsjs
|
2020-05-04 12:44:12 +02:00
|
|
|
var hlsjs = require('hls.js');
|
|
|
|
_define('hlsjs', function() {
|
2019-11-23 00:29:38 +09:00
|
|
|
return hlsjs;
|
|
|
|
});
|
2019-09-12 03:24:10 -07:00
|
|
|
|
|
|
|
// howler
|
2020-05-04 12:44:12 +02:00
|
|
|
var howler = require('howler');
|
|
|
|
_define('howler', function() {
|
2019-11-23 00:29:38 +09:00
|
|
|
return howler;
|
|
|
|
});
|
2019-09-12 03:40:24 -07:00
|
|
|
|
2019-11-11 01:45:01 +09:00
|
|
|
// resize-observer-polyfill
|
2020-05-04 12:44:12 +02:00
|
|
|
var resize = require('resize-observer-polyfill').default;
|
|
|
|
_define('resize-observer-polyfill', function() {
|
2019-11-23 00:29:38 +09:00
|
|
|
return resize;
|
|
|
|
});
|
2019-11-11 01:45:01 +09:00
|
|
|
|
2019-10-01 00:51:56 +09:00
|
|
|
// shaka
|
2020-05-04 12:44:12 +02:00
|
|
|
var shaka = require('shaka-player');
|
|
|
|
_define('shaka', function() {
|
2019-11-23 00:29:38 +09:00
|
|
|
return shaka;
|
|
|
|
});
|
2019-10-01 00:51:56 +09:00
|
|
|
|
2019-09-12 23:40:43 -07:00
|
|
|
// swiper
|
2020-05-04 12:44:12 +02:00
|
|
|
var swiper = require('swiper/js/swiper');
|
|
|
|
require('swiper/css/swiper.min.css');
|
|
|
|
_define('swiper', function() {
|
2019-11-23 00:29:38 +09:00
|
|
|
return swiper;
|
|
|
|
});
|
2019-09-12 23:40:43 -07:00
|
|
|
|
|
|
|
// sortable
|
2020-05-04 12:44:12 +02:00
|
|
|
var sortable = require('sortablejs').default;
|
|
|
|
_define('sortable', function() {
|
2019-11-23 00:29:38 +09:00
|
|
|
return sortable;
|
|
|
|
});
|
2019-09-12 23:40:43 -07:00
|
|
|
|
2019-11-27 23:55:41 +03:00
|
|
|
// webcomponents
|
2020-05-04 12:44:12 +02:00
|
|
|
var webcomponents = require('webcomponents.js/webcomponents-lite');
|
|
|
|
_define('webcomponents', function() {
|
2020-03-12 23:55:59 +09:00
|
|
|
return webcomponents;
|
2019-11-23 00:29:38 +09:00
|
|
|
});
|
2019-09-27 10:52:15 -04:00
|
|
|
|
|
|
|
// libass-wasm
|
2020-05-04 12:44:12 +02:00
|
|
|
var libassWasm = require('libass-wasm');
|
|
|
|
_define('JavascriptSubtitlesOctopus', function() {
|
2020-04-06 23:45:09 +02:00
|
|
|
return libassWasm;
|
2019-12-28 19:32:42 +09:00
|
|
|
});
|
2020-01-19 12:57:09 +01:00
|
|
|
|
|
|
|
// material-icons
|
2020-05-04 12:44:12 +02:00
|
|
|
var materialIcons = require('material-design-icons-iconfont/dist/material-design-icons.css');
|
|
|
|
_define('material-icons', function() {
|
2020-04-06 23:45:09 +02:00
|
|
|
return materialIcons;
|
2020-01-19 12:57:09 +01:00
|
|
|
});
|
2020-02-03 17:18:15 +01:00
|
|
|
|
2020-03-16 15:36:31 +09:00
|
|
|
// noto font
|
2020-05-04 12:44:12 +02:00
|
|
|
var noto = require('jellyfin-noto');
|
|
|
|
_define('jellyfin-noto', function () {
|
2020-03-12 23:55:59 +09:00
|
|
|
return noto;
|
2020-02-03 17:18:15 +01:00
|
|
|
});
|
2020-03-02 01:15:49 +03:00
|
|
|
|
|
|
|
// page.js
|
2020-05-04 12:44:12 +02:00
|
|
|
var page = require('page');
|
|
|
|
_define('page', function() {
|
2020-03-02 01:15:49 +03:00
|
|
|
return page;
|
|
|
|
});
|
2020-03-13 09:43:30 +01:00
|
|
|
|
2020-03-29 12:26:18 +02:00
|
|
|
// core-js
|
2020-05-04 12:44:12 +02:00
|
|
|
var polyfill = require('@babel/polyfill/dist/polyfill');
|
|
|
|
_define('polyfill', function () {
|
2020-03-13 09:43:30 +01:00
|
|
|
return polyfill;
|
|
|
|
});
|
2020-03-26 13:53:30 +01:00
|
|
|
|
2020-04-04 16:00:38 +02:00
|
|
|
// domtokenlist-shim
|
2020-05-04 12:44:12 +02:00
|
|
|
var classlist = require('classlist.js');
|
|
|
|
_define('classlist-polyfill', function () {
|
2020-04-04 16:00:38 +02:00
|
|
|
return classlist;
|
|
|
|
});
|
2020-04-04 23:11:49 +02:00
|
|
|
|
2020-03-26 13:53:30 +01:00
|
|
|
// Date-FNS
|
2020-05-04 12:44:12 +02:00
|
|
|
var dateFns = require('date-fns');
|
|
|
|
_define('date-fns', function () {
|
2020-04-06 23:45:09 +02:00
|
|
|
return dateFns;
|
2020-03-26 13:53:30 +01:00
|
|
|
});
|
|
|
|
|
2020-05-04 12:44:12 +02:00
|
|
|
var dateFnsLocale = require('date-fns/locale');
|
|
|
|
_define('date-fns/locale', function () {
|
2020-04-06 23:45:09 +02:00
|
|
|
return dateFnsLocale;
|
2020-03-26 13:53:30 +01:00
|
|
|
});
|
2020-04-04 21:29:53 +02:00
|
|
|
|
2020-05-04 12:44:12 +02:00
|
|
|
var fast_text_encoding = require('fast-text-encoding');
|
|
|
|
_define('fast-text-encoding', function () {
|
2020-04-04 21:29:53 +02:00
|
|
|
return fast_text_encoding;
|
|
|
|
});
|
|
|
|
|
2020-04-15 13:08:48 +02:00
|
|
|
// intersection-observer
|
2020-05-04 12:44:12 +02:00
|
|
|
var intersection_observer = require('intersection-observer');
|
|
|
|
_define('intersection-observer', function () {
|
2020-04-04 21:29:53 +02:00
|
|
|
return intersection_observer;
|
|
|
|
});
|
2020-04-15 13:08:48 +02:00
|
|
|
|
|
|
|
// screenfull
|
2020-05-04 12:44:12 +02:00
|
|
|
var screenfull = require('screenfull');
|
|
|
|
_define('screenfull', function () {
|
2020-04-15 13:08:48 +02:00
|
|
|
return screenfull;
|
|
|
|
});
|
2020-04-24 18:03:55 +02:00
|
|
|
|
|
|
|
// headroom.js
|
2020-05-04 12:44:12 +02:00
|
|
|
var headroom = require('headroom.js/dist/headroom');
|
|
|
|
_define('headroom', function () {
|
2020-04-24 18:03:55 +02:00
|
|
|
return headroom;
|
|
|
|
});
|
2020-03-29 12:26:18 +02:00
|
|
|
|
|
|
|
// apiclient
|
2020-05-05 11:28:41 +02:00
|
|
|
var apiclient = require('jellyfin-apiclient');
|
2020-03-29 12:26:18 +02:00
|
|
|
|
2020-05-05 11:28:41 +02:00
|
|
|
_define('apiclient', function () {
|
2020-05-08 01:25:58 +03:00
|
|
|
return apiclient.ApiClient;
|
2020-05-05 11:28:41 +02:00
|
|
|
});
|
2020-05-02 21:40:43 +02:00
|
|
|
|
2020-05-05 11:28:41 +02:00
|
|
|
_define('events', function () {
|
2020-03-29 12:26:18 +02:00
|
|
|
return apiclient.Events;
|
|
|
|
});
|
|
|
|
|
2020-05-05 11:28:41 +02:00
|
|
|
_define('credentialprovider', function () {
|
2020-03-29 12:26:18 +02:00
|
|
|
return apiclient.Credentials;
|
|
|
|
});
|
|
|
|
|
2020-05-05 11:28:41 +02:00
|
|
|
_define('connectionManagerFactory', function () {
|
2020-03-29 12:26:18 +02:00
|
|
|
return apiclient.ConnectionManager;
|
|
|
|
});
|
|
|
|
|
2020-05-05 11:28:41 +02:00
|
|
|
_define('appStorage', function () {
|
2020-03-29 12:26:18 +02:00
|
|
|
return apiclient.AppStorage;
|
|
|
|
});
|