mirror of
https://github.com/LukeHagar/Warden.git
synced 2025-12-06 04:22:06 +00:00
Last nights updates
This commit is contained in:
12
package-lock.json
generated
12
package-lock.json
generated
@@ -13978,9 +13978,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/plex-api-oauth": {
|
"node_modules/plex-api-oauth": {
|
||||||
"version": "1.0.125",
|
"version": "1.0.128",
|
||||||
"resolved": "https://registry.npmjs.org/plex-api-oauth/-/plex-api-oauth-1.0.125.tgz",
|
"resolved": "https://registry.npmjs.org/plex-api-oauth/-/plex-api-oauth-1.0.128.tgz",
|
||||||
"integrity": "sha512-d4SXGeaRhlM1es40AxY+9buejBLmZzoRnwMXrnmwuusWezUNfFZgfdTA6nZq1rmtj4PIKixcMa6WO6KWW1Iasg==",
|
"integrity": "sha512-TIwu+KQB1dYZBTLFpEzXN5MWNq348q4rV6zjeQKNkiaxqozoWegxh6mwwix2IeLeFJVGzZPyYIZGrjRXOWmqbQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.27.2",
|
"axios": "^0.27.2",
|
||||||
"plex-oauth": "^2.0.2",
|
"plex-oauth": "^2.0.2",
|
||||||
@@ -28912,9 +28912,9 @@
|
|||||||
"integrity": "sha512-Igl37++MSa+4H8LNP3Ene9GU0e1YypmXvFVNvVUwoAx44e74jbUlJXy4Q5rLSBisn0O2lBKdE6VkFIwrDl+UnQ=="
|
"integrity": "sha512-Igl37++MSa+4H8LNP3Ene9GU0e1YypmXvFVNvVUwoAx44e74jbUlJXy4Q5rLSBisn0O2lBKdE6VkFIwrDl+UnQ=="
|
||||||
},
|
},
|
||||||
"plex-api-oauth": {
|
"plex-api-oauth": {
|
||||||
"version": "1.0.125",
|
"version": "1.0.128",
|
||||||
"resolved": "https://registry.npmjs.org/plex-api-oauth/-/plex-api-oauth-1.0.125.tgz",
|
"resolved": "https://registry.npmjs.org/plex-api-oauth/-/plex-api-oauth-1.0.128.tgz",
|
||||||
"integrity": "sha512-d4SXGeaRhlM1es40AxY+9buejBLmZzoRnwMXrnmwuusWezUNfFZgfdTA6nZq1rmtj4PIKixcMa6WO6KWW1Iasg==",
|
"integrity": "sha512-TIwu+KQB1dYZBTLFpEzXN5MWNq348q4rV6zjeQKNkiaxqozoWegxh6mwwix2IeLeFJVGzZPyYIZGrjRXOWmqbQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"axios": "^0.27.2",
|
"axios": "^0.27.2",
|
||||||
"plex-oauth": "^2.0.2",
|
"plex-oauth": "^2.0.2",
|
||||||
|
|||||||
@@ -67,14 +67,6 @@ function App() {
|
|||||||
const [activePage, setActivePage] = useState(0);
|
const [activePage, setActivePage] = useState(0);
|
||||||
const [plexStateTracker, setPlexStateTracker] = useState(0);
|
const [plexStateTracker, setPlexStateTracker] = useState(0);
|
||||||
|
|
||||||
function delay(delayInms) {
|
|
||||||
return new Promise((resolve) => {
|
|
||||||
setTimeout(() => {
|
|
||||||
resolve(2);
|
|
||||||
}, delayInms);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (window.matchMedia('(prefers-color-scheme)').media !== 'not all') {
|
if (window.matchMedia('(prefers-color-scheme)').media !== 'not all') {
|
||||||
// console.log('🎉 Dark mode is supported');
|
// console.log('🎉 Dark mode is supported');
|
||||||
}
|
}
|
||||||
@@ -101,13 +93,6 @@ function App() {
|
|||||||
console.log('Theme');
|
console.log('Theme');
|
||||||
console.log(activeTheme);
|
console.log(activeTheme);
|
||||||
|
|
||||||
// let PlexSessionData;
|
|
||||||
// try {
|
|
||||||
// PlexSessionData = JSON.parse(localStorage.getItem('plexSessionData'));
|
|
||||||
// } catch (e) {
|
|
||||||
// PlexSessionData = null;
|
|
||||||
// }
|
|
||||||
|
|
||||||
const PlexSession = new PlexAPIOAuth();
|
const PlexSession = new PlexAPIOAuth();
|
||||||
PlexSession.LoadPlexSession();
|
PlexSession.LoadPlexSession();
|
||||||
|
|
||||||
@@ -333,15 +318,9 @@ function App() {
|
|||||||
await PlexSession.PlexLogin();
|
await PlexSession.PlexLogin();
|
||||||
await PlexSession.GetPlexUserData();
|
await PlexSession.GetPlexUserData();
|
||||||
await PlexSession.GetPlexServers();
|
await PlexSession.GetPlexServers();
|
||||||
|
await PlexSession.GetPlexLibraries();
|
||||||
|
await PlexSession.GetPlexLibraryContent();
|
||||||
|
|
||||||
await PlexSession.plexServers.forEach(async (server) => {
|
|
||||||
await PlexSession.GetPlexLibraries(server);
|
|
||||||
});
|
|
||||||
await PlexSession.plexServers.forEach(async (server) => {
|
|
||||||
await server.libraries.forEach(async (library) => {
|
|
||||||
await PlexSession.GetPlexLibraryContent(server, library);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
await PlexSession.SavePlexSession();
|
await PlexSession.SavePlexSession();
|
||||||
|
|
||||||
setPlexStateTracker(plexStateTracker + 1);
|
setPlexStateTracker(plexStateTracker + 1);
|
||||||
|
|||||||
@@ -7665,9 +7665,9 @@
|
|||||||
"version" "1.1.0"
|
"version" "1.1.0"
|
||||||
|
|
||||||
"plex-api-oauth@^1.0.4":
|
"plex-api-oauth@^1.0.4":
|
||||||
"integrity" "sha512-d4SXGeaRhlM1es40AxY+9buejBLmZzoRnwMXrnmwuusWezUNfFZgfdTA6nZq1rmtj4PIKixcMa6WO6KWW1Iasg=="
|
"integrity" "sha512-TIwu+KQB1dYZBTLFpEzXN5MWNq348q4rV6zjeQKNkiaxqozoWegxh6mwwix2IeLeFJVGzZPyYIZGrjRXOWmqbQ=="
|
||||||
"resolved" "https://registry.npmjs.org/plex-api-oauth/-/plex-api-oauth-1.0.125.tgz"
|
"resolved" "https://registry.npmjs.org/plex-api-oauth/-/plex-api-oauth-1.0.128.tgz"
|
||||||
"version" "1.0.125"
|
"version" "1.0.128"
|
||||||
dependencies:
|
dependencies:
|
||||||
"axios" "^0.27.2"
|
"axios" "^0.27.2"
|
||||||
"plex-oauth" "^2.0.2"
|
"plex-oauth" "^2.0.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user