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