Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove API Client from the tree #1007

Merged
merged 17 commits into from
May 7, 2020
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ module.exports = {
'one-var': ["error", "never"],
'quotes': ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": false }],
'semi': ["error"],
'space-before-blocks': ["error"]
'space-before-blocks': ["error"],
// Disable while it's buggy
'compat/compat': ["off"]
},
overrides: [
{
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"hls.js": "^0.13.1",
"howler": "^2.1.3",
"intersection-observer": "^0.10.0",
"jellyfin-apiclient": "^1.1.1",
"jellyfin-noto": "https://github.com/jellyfin/jellyfin-noto",
"jquery": "^3.5.0",
"jstree": "^3.3.7",
Expand All @@ -91,9 +92,9 @@
"src/components/autoFocuser.js",
"src/components/cardbuilder/cardBuilder.js",
"src/components/filedownloader.js",
"src/components/playback/mediasession.js",
"src/components/images/imageLoader.js",
"src/components/lazyloader/lazyloader-intersectionobserver.js",
"src/components/playback/mediasession.js",
"src/components/sanatizefilename.js",
"src/components/scrollManager.js",
"src/scripts/dfnshelper.js",
Expand Down
24 changes: 24 additions & 0 deletions src/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ _define('page', function() {
return page;
});

// core-js
var polyfill = require('@babel/polyfill/dist/polyfill');
_define('polyfill', function () {
return polyfill;
Expand Down Expand Up @@ -152,3 +153,26 @@ var headroom = require('headroom.js/dist/headroom');
_define('headroom', function () {
return headroom;
});

// apiclient
var apiclient = require('jellyfin-apiclient');

_define('apiclient', function () {
return apiclient.apiclient;
});

_define('events', function () {
return apiclient.Events;
});

_define('credentialprovider', function () {
return apiclient.Credentials;
});

_define('connectionManagerFactory', function () {
return apiclient.ConnectionManager;
});

_define('appStorage', function () {
return apiclient.AppStorage;
});
236 changes: 0 additions & 236 deletions src/libraries/apiclient/apiclient.js

This file was deleted.

53 changes: 0 additions & 53 deletions src/libraries/apiclient/appStorage.js

This file was deleted.

Loading