diff --git a/frontend/assets/css/style.css b/frontend/assets/css/style.css index aeb5c4c1..3ac66daf 100644 --- a/frontend/assets/css/style.css +++ b/frontend/assets/css/style.css @@ -167,10 +167,3 @@ body { .is-strike-through { text-decoration: line-through; } - -div.content img { - display: block; - max-width: 100%; - height: auto; - margin: 0 auto; -} diff --git a/frontend/pages/backend/[backend]/libraries.vue b/frontend/pages/backend/[backend]/libraries.vue index 1519b7a8..c7f14c20 100644 --- a/frontend/pages/backend/[backend]/libraries.vue +++ b/frontend/pages/backend/[backend]/libraries.vue @@ -24,14 +24,18 @@ - +
@@ -85,8 +89,7 @@
  • Ignoring library will prevent any content from being added to the local database from that library during import process, and via webhook events.
  • -
  • Libraries that shows Supported: No will not be processed by the system. -
  • +
  • Libraries that shows Supported: No will not be processed by the system.
  • @@ -105,43 +108,40 @@ const isLoading = ref(false) const show_page_tips = useStorage('show_page_tips', true) const loadContent = async () => { - isLoading.value = true - items.value = [] - - let response, json - try { - response = await request(`/backend/${backend}/library`) - } catch (e) { - isLoading.value = false - return notification('error', 'Error', e.message) - } + isLoading.value = true + items.value = [] - try { - json = await response.json() - } catch (e) { - json = { - error: { - code: response.status, - message: response.statusText + const response = await request(`/backend/${backend}/library`) + let json + + try { + json = await response.json() + } catch (e) { + json = { + error: { + code: response.status, + message: response.statusText + } } } + + if (200 !== response.status) { + notification('error', 'Error', `${json.error.code}: ${json.error.message}`) + return + } + + items.value = json + } catch (e) { + return notification('error', 'Error', `Request error. ${e.message}`) + } finally { + isLoading.value = false } - - isLoading.value = false - - if (!response.ok) { - notification('error', 'Error', `${json.error.code}: ${json.error.message}`) - return - } - - items.value = json } const toggleIgnore = async (library) => { - const newState = !library.ignored - try { + const newState = !library.ignored const response = await request(`/backend/${backend}/library/${library.id}`, { method: newState ? 'POST' : 'DELETE', }); diff --git a/frontend/pages/backend/[backend]/users.vue b/frontend/pages/backend/[backend]/users.vue new file mode 100644 index 00000000..f1c173fb --- /dev/null +++ b/frontend/pages/backend/[backend]/users.vue @@ -0,0 +1,148 @@ + + + diff --git a/src/Backends/Jellyfin/Action/GetUsersList.php b/src/Backends/Jellyfin/Action/GetUsersList.php index 1d7a6afe..645f1992 100644 --- a/src/Backends/Jellyfin/Action/GetUsersList.php +++ b/src/Backends/Jellyfin/Action/GetUsersList.php @@ -120,7 +120,7 @@ class GetUsersList 'id' => ag($user, 'Id'), 'name' => ag($user, 'Name'), 'admin' => (bool)ag($user, 'Policy.IsAdministrator'), - 'Hidden' => (bool)ag($user, 'Policy.IsHidden'), + 'hidden' => (bool)ag($user, 'Policy.IsHidden'), 'disabled' => (bool)ag($user, 'Policy.IsDisabled'), 'updatedAt' => null !== $date ? makeDate($date) : 'Never', ];