Updating paths
All checks were successful
Deploy to production / build (push) Successful in 11s

This commit is contained in:
Sean Edmunds
2026-07-09 15:44:47 -05:00
parent 076c7afbb7
commit 5df600381f
14 changed files with 21 additions and 19 deletions

View File

@@ -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';

View File

@@ -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})`,
}}
>
<Outlet />

View File

@@ -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',

View File

@@ -36,7 +36,7 @@ export function BackgroundLightbox({
<Image
style={{ cursor: 'zoom-out' }}
onClick={close}
src={`../../api/backgroundImages/${background}`}
src={`../../trigger/api/backgroundImages/${background}`}
/>
</Modal.Body>
</Modal.Content>

View File

@@ -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',

View File

@@ -49,7 +49,7 @@ export function EditBackground({
: undefined
}
/>
<Image src={`../../api/backgroundImages/thumbs/${fileName}`} />
<Image src={`../../trigger/api/backgroundImages/thumbs/${fileName}`} />
</Stack>
<Group>
<Button

View File

@@ -62,7 +62,7 @@ export function ThemeSelect({
backgroundImage:
theme?.backgroundImage.toLocaleLowerCase() === 'none'
? undefined
: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), url(../../api/backgroundImages/thumbs/${theme?.backgroundImage})`,
: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), url(../../trigger/api/backgroundImages/thumbs/${theme?.backgroundImage})`,
backgroundSize:
theme?.backgroundImage.toLocaleLowerCase() === 'none' ? undefined : 'cover',
backgroundColor:
@@ -89,7 +89,7 @@ export function ThemeSelect({
backgroundImage:
theme?.backgroundImage.toLocaleLowerCase() === 'none'
? undefined
: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), url(../../api/backgroundImages/thumbs/${theme?.backgroundImage})`,
: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), url(../../trigger/api/backgroundImages/thumbs/${theme?.backgroundImage})`,
backgroundSize:
theme?.backgroundImage.toLocaleLowerCase() === 'none'
? undefined

View File

@@ -114,7 +114,7 @@ export function ThemeCard({
backgroundImage:
cardTheme?.backgroundImage.toLocaleLowerCase() === 'none'
? undefined
: `linear-gradient(${cardTheme?.backgroundColor}33, ${cardTheme?.backgroundColor}33), url(../../api/backgroundImages/thumbs/${cardTheme?.backgroundImage})`,
: `linear-gradient(${cardTheme?.backgroundColor}33, ${cardTheme?.backgroundColor}33), url(../../trigger/api/backgroundImages/thumbs/${cardTheme?.backgroundImage})`,
backgroundSize:
cardTheme?.backgroundImage.toLocaleLowerCase() === 'none'
? undefined

View File

@@ -15,7 +15,7 @@ export function ThemeMiniCard({ miniTheme }: { miniTheme: Theme | undefined }) {
backgroundImage:
miniTheme?.backgroundImage.toLocaleLowerCase() === 'none'
? undefined
: `linear-gradient(${miniTheme?.backgroundColor}33, ${miniTheme?.backgroundColor}33), url(../../api/backgroundImages/thumbs/${miniTheme?.backgroundImage})`,
: `linear-gradient(${miniTheme?.backgroundColor}33, ${miniTheme?.backgroundColor}33), url(../../trigger/api/backgroundImages/thumbs/${miniTheme?.backgroundImage})`,
backgroundSize:
miniTheme?.backgroundImage.toLocaleLowerCase() === 'none' ? undefined : 'cover',
backgroundColor:

View File

@@ -24,8 +24,8 @@ export default function BackgroundItem({
background:
item !== 'none' && item !== 'None'
? index === hovered
? `linear-gradient(${designerTheme.backgroundColor}88, ${designerTheme.backgroundColor}88), no-repeat center url(../../api/backgroundImages/thumbs/${item})`
: `no-repeat center url(../../api/backgroundImages/thumbs/${item})`
? `linear-gradient(${designerTheme.backgroundColor}88, ${designerTheme.backgroundColor}88), no-repeat center url(../../trigger/api/backgroundImages/thumbs/${item})`
: `no-repeat center url(../../trigger/api/backgroundImages/thumbs/${item})`
: 'repeating-linear-gradient(45deg, #33333366, #33333366 10px, #88888866 10px, #88888866 20px)',
backgroundSize: item === 'none' ? undefined : 'cover',
backgroundColor: item === 'none' ? '#00000088' : undefined,

View File

@@ -171,7 +171,7 @@ export default function ThemeChanges({
defaultTheme[key as keyof Theme] as string
).toLocaleLowerCase() === 'none'
? 'https://placehold.co/540x360?text=None'
: `../../api/backgroundImages/thumbs/${defaultTheme[key as keyof Theme] as string}`
: `../../trigger/api/backgroundImages/thumbs/${defaultTheme[key as keyof Theme] as string}`
}
/>
<Text>→</Text>
@@ -182,7 +182,7 @@ export default function ThemeChanges({
designerTheme[key as keyof Theme] as string
).toLocaleLowerCase() === 'none'
? 'https://placehold.co/540x360?text=None'
: `../../api/backgroundImages/thumbs/${designerTheme[key as keyof Theme] as string}`
: `../../trigger/api/backgroundImages/thumbs/${designerTheme[key as keyof Theme] as string}`
}
/>
</>

View File

@@ -12,7 +12,7 @@ export function ThemeModalContent({ selectedTheme }: { selectedTheme: Theme }) {
backgroundImage:
selectedTheme?.backgroundImage.toLocaleLowerCase() === 'none'
? undefined
: `linear-gradient(${selectedTheme?.backgroundColor}33, ${selectedTheme?.backgroundColor}33), url(../../api/backgroundImages/thumbs/${selectedTheme?.backgroundImage})`,
: `linear-gradient(${selectedTheme?.backgroundColor}33, ${selectedTheme?.backgroundColor}33), url(../../trigger/api/backgroundImages/thumbs/${selectedTheme?.backgroundImage})`,
backgroundSize:
selectedTheme?.backgroundImage.toLocaleLowerCase() === 'none'
? undefined