Bug fixes
This commit is contained in:
@@ -144,7 +144,7 @@ const ApplicationSettings = () => {
|
|||||||
key={form.key('name')}
|
key={form.key('name')}
|
||||||
{...form.getInputProps('name')}
|
{...form.getInputProps('name')}
|
||||||
label={'Name'}
|
label={'Name'}
|
||||||
placeholder='Nextcloud'
|
placeholder='eg. Nextcloud'
|
||||||
className={textInputClasses.settingsItem}
|
className={textInputClasses.settingsItem}
|
||||||
w={'45%'}
|
w={'45%'}
|
||||||
classNames={textInputClasses}
|
classNames={textInputClasses}
|
||||||
@@ -154,7 +154,7 @@ const ApplicationSettings = () => {
|
|||||||
key={form.key('baseUrl')}
|
key={form.key('baseUrl')}
|
||||||
{...form.getInputProps('baseUrl')}
|
{...form.getInputProps('baseUrl')}
|
||||||
label={'Base URL'}
|
label={'Base URL'}
|
||||||
placeholder='/nextcloud'
|
placeholder='eg. /nextcloud'
|
||||||
className={textInputClasses.settingsItem}
|
className={textInputClasses.settingsItem}
|
||||||
w={'45%'}
|
w={'45%'}
|
||||||
classNames={textInputClasses}
|
classNames={textInputClasses}
|
||||||
@@ -165,7 +165,7 @@ const ApplicationSettings = () => {
|
|||||||
key={form.key('url')}
|
key={form.key('url')}
|
||||||
{...form.getInputProps('url')}
|
{...form.getInputProps('url')}
|
||||||
label={'URL'}
|
label={'URL'}
|
||||||
placeholder='https://domain.example.com/nextcloud'
|
placeholder='eg. https://domain.example.com/nextcloud'
|
||||||
className={textInputClasses.settingsItem}
|
className={textInputClasses.settingsItem}
|
||||||
w={'100%'}
|
w={'100%'}
|
||||||
classNames={textInputClasses}
|
classNames={textInputClasses}
|
||||||
@@ -214,7 +214,7 @@ const ApplicationSettings = () => {
|
|||||||
key={form.key('filter')}
|
key={form.key('filter')}
|
||||||
{...form.getInputProps('filter')}
|
{...form.getInputProps('filter')}
|
||||||
label={'Filter'}
|
label={'Filter'}
|
||||||
placeholder='Storage'
|
placeholder='eg. Storage'
|
||||||
className={textInputClasses.settingsItem}
|
className={textInputClasses.settingsItem}
|
||||||
pt={'1rem'}
|
pt={'1rem'}
|
||||||
w={'45%'}
|
w={'45%'}
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ const BookmarkSettings = () => {
|
|||||||
key={form.key('categoryName')}
|
key={form.key('categoryName')}
|
||||||
{...form.getInputProps('categoryName')}
|
{...form.getInputProps('categoryName')}
|
||||||
label={'Category Name'}
|
label={'Category Name'}
|
||||||
placeholder='Shopping'
|
placeholder='eg. Shopping'
|
||||||
className={textInputClasses.settingsItem}
|
className={textInputClasses.settingsItem}
|
||||||
classNames={textInputClasses}
|
classNames={textInputClasses}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
@@ -154,7 +154,7 @@ const BookmarkSettings = () => {
|
|||||||
key={form.key('filterName')}
|
key={form.key('filterName')}
|
||||||
{...form.getInputProps('filterName')}
|
{...form.getInputProps('filterName')}
|
||||||
label={'Filter Name'}
|
label={'Filter Name'}
|
||||||
placeholder='Personal'
|
placeholder='eg. Personal'
|
||||||
className={textInputClasses.settingsItem}
|
className={textInputClasses.settingsItem}
|
||||||
classNames={textInputClasses}
|
classNames={textInputClasses}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ function DebouncedGroupSettingsItem({
|
|||||||
label={'Delete'}
|
label={'Delete'}
|
||||||
>
|
>
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
mt={'1.5rem'}
|
mt={'2.5rem'}
|
||||||
size={'lg'}
|
size={'lg'}
|
||||||
color='red'
|
color='red'
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -336,7 +336,7 @@ function DebouncedGroupSettingsItem({
|
|||||||
key={form.key('name')}
|
key={form.key('name')}
|
||||||
{...form.getInputProps('name')}
|
{...form.getInputProps('name')}
|
||||||
label={'Name'}
|
label={'Name'}
|
||||||
placeholder='Google'
|
placeholder='eg. Google'
|
||||||
labelProps={{
|
labelProps={{
|
||||||
style: {
|
style: {
|
||||||
color: 'var(--mantine-color-primary-0)',
|
color: 'var(--mantine-color-primary-0)',
|
||||||
@@ -368,7 +368,7 @@ function DebouncedGroupSettingsItem({
|
|||||||
key={form.key('url')}
|
key={form.key('url')}
|
||||||
{...form.getInputProps('url')}
|
{...form.getInputProps('url')}
|
||||||
label={'URL'}
|
label={'URL'}
|
||||||
placeholder='https://google.com'
|
placeholder='eg. https://google.com'
|
||||||
labelProps={{
|
labelProps={{
|
||||||
style: {
|
style: {
|
||||||
color: 'var(--mantine-color-primary-0)',
|
color: 'var(--mantine-color-primary-0)',
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ const SearchProviderSettings = () => {
|
|||||||
key={form.key('name')}
|
key={form.key('name')}
|
||||||
{...form.getInputProps('name')}
|
{...form.getInputProps('name')}
|
||||||
label={'Name'}
|
label={'Name'}
|
||||||
placeholder='Google'
|
placeholder='eg. Google'
|
||||||
className={textInputClasses.settingsItem}
|
className={textInputClasses.settingsItem}
|
||||||
classNames={textInputClasses}
|
classNames={textInputClasses}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
@@ -104,7 +104,7 @@ const SearchProviderSettings = () => {
|
|||||||
key={form.key('prefix')}
|
key={form.key('prefix')}
|
||||||
{...form.getInputProps('prefix')}
|
{...form.getInputProps('prefix')}
|
||||||
label={'Prefix'}
|
label={'Prefix'}
|
||||||
placeholder='/g'
|
placeholder='eg. /g'
|
||||||
className={textInputClasses.settingsItem}
|
className={textInputClasses.settingsItem}
|
||||||
classNames={textInputClasses}
|
classNames={textInputClasses}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
@@ -114,7 +114,7 @@ const SearchProviderSettings = () => {
|
|||||||
key={form.key('url')}
|
key={form.key('url')}
|
||||||
{...form.getInputProps('url')}
|
{...form.getInputProps('url')}
|
||||||
label={'Url'}
|
label={'Url'}
|
||||||
placeholder='https://www.google.com/search?q='
|
placeholder='eg. https://www.google.com/search?q='
|
||||||
className={textInputClasses.settingsItem}
|
className={textInputClasses.settingsItem}
|
||||||
w={'64%'}
|
w={'64%'}
|
||||||
classNames={textInputClasses}
|
classNames={textInputClasses}
|
||||||
|
|||||||
@@ -231,15 +231,33 @@ function ThemeCard({
|
|||||||
setShiftShuffle(0);
|
setShiftShuffle(0);
|
||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const themeList = JSON.parse(
|
if (currentThemePlaylist === 'All') {
|
||||||
themePlaylists?.find(
|
handleThemeChange(allThemes, false);
|
||||||
(t: ThemePlaylist) => t?.name === currentThemePlaylist,
|
} else if (currentThemePlaylist === 'Backgrounds') {
|
||||||
)?.themeList ?? '[]',
|
handleThemeChange(
|
||||||
);
|
allThemes.filter(
|
||||||
const filteredThemes = allThemes.filter((t: Theme) =>
|
(a: any) => !a.backgroundImage.toLowerCase().includes('none'),
|
||||||
themeList.includes(t.id),
|
),
|
||||||
);
|
false,
|
||||||
handleThemeChange(filteredThemes, false);
|
);
|
||||||
|
} else if (currentThemePlaylist === 'No Backgrounds') {
|
||||||
|
handleThemeChange(
|
||||||
|
allThemes.filter((a: any) =>
|
||||||
|
a.backgroundImage.toLowerCase().includes('none'),
|
||||||
|
),
|
||||||
|
false,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
const themeList = JSON.parse(
|
||||||
|
themePlaylists?.find(
|
||||||
|
(t: ThemePlaylist) => t?.name === currentThemePlaylist,
|
||||||
|
)?.themeList ?? '[]',
|
||||||
|
);
|
||||||
|
const filteredThemes = allThemes.filter((t: Theme) =>
|
||||||
|
themeList.includes(t.id),
|
||||||
|
);
|
||||||
|
handleThemeChange(filteredThemes, false);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
gap={0}
|
gap={0}
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ const WolClientSettings = () => {
|
|||||||
key={form.key('hostname')}
|
key={form.key('hostname')}
|
||||||
{...form.getInputProps('hostname')}
|
{...form.getInputProps('hostname')}
|
||||||
label={'Hostname'}
|
label={'Hostname'}
|
||||||
placeholder='Workstation'
|
placeholder='eg. Workstation'
|
||||||
className={textInputClasses.settingsItem}
|
className={textInputClasses.settingsItem}
|
||||||
classNames={textInputClasses}
|
classNames={textInputClasses}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
@@ -99,7 +99,7 @@ const WolClientSettings = () => {
|
|||||||
key={form.key('macAddress')}
|
key={form.key('macAddress')}
|
||||||
{...form.getInputProps('macAddress')}
|
{...form.getInputProps('macAddress')}
|
||||||
label={'MAC Address'}
|
label={'MAC Address'}
|
||||||
placeholder='00:00:00:00:00:00'
|
placeholder='eg. 00:00:00:00:00:00'
|
||||||
className={textInputClasses.settingsItem}
|
className={textInputClasses.settingsItem}
|
||||||
classNames={textInputClasses}
|
classNames={textInputClasses}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
|
|||||||
Reference in New Issue
Block a user