mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 23:12:13 +00:00
legacy services dropped
This commit is contained in:
parent
5c909f8342
commit
dff5529d3e
6 changed files with 0 additions and 47 deletions
|
|
@ -1,6 +0,0 @@
|
||||||
import StremioAPI from 'stremio-api-client';
|
|
||||||
import storage from './storage';
|
|
||||||
|
|
||||||
// const API = new StremioAPI({ storage });
|
|
||||||
|
|
||||||
export default {};
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
import API from './API';
|
|
||||||
|
|
||||||
export default API;
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
const storage = {
|
|
||||||
getUser: function() {
|
|
||||||
try {
|
|
||||||
return JSON.parse(localStorage.getItem('user'));
|
|
||||||
} catch (e) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
setUser: function(user) {
|
|
||||||
try {
|
|
||||||
if (user === null) {
|
|
||||||
localStorage.removeItem('user');
|
|
||||||
} else {
|
|
||||||
localStorage.setItem('user', JSON.stringify(user));
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
export default storage;
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
import { AddonCollection } from 'stremio-addon-client';
|
|
||||||
import officialAddons from 'stremio-official-addons';
|
|
||||||
|
|
||||||
// const addons = new AddonCollection();
|
|
||||||
// addons.load(officialAddons);
|
|
||||||
|
|
||||||
export default {};
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
import addons from './addons';
|
|
||||||
|
|
||||||
export default addons;
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
import addons from './addons';
|
|
||||||
import API from './API';
|
|
||||||
|
|
||||||
export {
|
|
||||||
addons,
|
|
||||||
API
|
|
||||||
};
|
|
||||||
Loading…
Reference in a new issue