diff --git a/src/App.tsx b/src/App.tsx index 9f1cd7f..690ff66 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,6 +6,7 @@ import { mergeMantineTheme, } from '@mantine/core'; import { Notifications } from '@mantine/notifications'; +import { Loading, MainLayout } from 'components'; import { useCommonHooks, useQueryAPI } from 'hooks'; import { useEffect, useState } from 'react'; import { @@ -15,7 +16,6 @@ import { Route, RouterProvider, } from 'react-router-dom'; -import { Loading, MainLayout } from './components'; import '@mantine/core/styles.css'; import '@mantine/dates/styles.css'; import '@mantine/notifications/styles.css'; diff --git a/src/components/MainLayout.tsx b/src/components/MainLayout.tsx index 353c887..6d8e48d 100644 --- a/src/components/MainLayout.tsx +++ b/src/components/MainLayout.tsx @@ -12,7 +12,7 @@ export function MainLayout() { '--image-background': theme.backgroundImage.toLocaleLowerCase() === 'none' ? undefined - : `linear-gradient(${theme.backgroundColor}33, ${theme.backgroundColor}33), url(../../api/backgroundImages/${theme.backgroundImage})`, + : `linear-gradient(${theme.backgroundColor}33, ${theme.backgroundColor}33), url(../../trigger/api/backgroundImages/${theme.backgroundImage})`, }} > diff --git a/src/pages/settings/components/Theming/Backgrounds/BackgroundModal.tsx b/src/pages/settings/components/Theming/Backgrounds/BackgroundModal.tsx index c964661..b7cbe6d 100644 --- a/src/pages/settings/components/Theming/Backgrounds/BackgroundModal.tsx +++ b/src/pages/settings/components/Theming/Backgrounds/BackgroundModal.tsx @@ -248,7 +248,7 @@ export function BackgroundModal({ style={{ aspectRatio: '16/9', width: '100%', - backgroundImage: `url(../../api/backgroundImages/thumbs/${background})`, + backgroundImage: `url(../../trigger/api/backgroundImages/thumbs/${background})`, backgroundSize: 'cover', backgroundPosition: 'center', backgroundRepeat: 'no-repeat', diff --git a/src/pages/settings/components/Theming/Backgrounds/components/BackgroundLightbox.tsx b/src/pages/settings/components/Theming/Backgrounds/components/BackgroundLightbox.tsx index 87547e2..910613c 100644 --- a/src/pages/settings/components/Theming/Backgrounds/components/BackgroundLightbox.tsx +++ b/src/pages/settings/components/Theming/Backgrounds/components/BackgroundLightbox.tsx @@ -36,7 +36,7 @@ export function BackgroundLightbox({ diff --git a/src/pages/settings/components/Theming/Backgrounds/components/DeleteBackground.tsx b/src/pages/settings/components/Theming/Backgrounds/components/DeleteBackground.tsx index 76ac6cd..059e8f2 100644 --- a/src/pages/settings/components/Theming/Backgrounds/components/DeleteBackground.tsx +++ b/src/pages/settings/components/Theming/Backgrounds/components/DeleteBackground.tsx @@ -41,7 +41,7 @@ export function DeleteBackground({ style={{ aspectRatio: '16/9', height: '100%', - backgroundImage: `url(../../api/backgroundImages/thumbs/${fileName})`, + backgroundImage: `url(../../trigger/api/backgroundImages/thumbs/${fileName})`, backgroundSize: 'cover', backgroundPosition: 'center', backgroundRepeat: 'no-repeat', diff --git a/src/pages/settings/components/Theming/Backgrounds/components/EditBackground.tsx b/src/pages/settings/components/Theming/Backgrounds/components/EditBackground.tsx index d9eb5dd..c8f949d 100644 --- a/src/pages/settings/components/Theming/Backgrounds/components/EditBackground.tsx +++ b/src/pages/settings/components/Theming/Backgrounds/components/EditBackground.tsx @@ -49,7 +49,7 @@ export function EditBackground({ : undefined } /> - +