mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 01:15:47 +01:00
Prettier
This commit is contained in:
@@ -35,7 +35,13 @@ export default function AddItemShelfItem(props: any) {
|
|||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Modal size="xl" radius="lg" opened={props.opened || opened} onClose={() => setOpened(false)} title="Add a service">
|
<Modal
|
||||||
|
size="xl"
|
||||||
|
radius="lg"
|
||||||
|
opened={props.opened || opened}
|
||||||
|
onClose={() => setOpened(false)}
|
||||||
|
title="Add a service"
|
||||||
|
>
|
||||||
<Center>
|
<Center>
|
||||||
<Image
|
<Image
|
||||||
height={120}
|
height={120}
|
||||||
|
|||||||
10
components/AppShelf/AppShelf.d.ts
vendored
10
components/AppShelf/AppShelf.d.ts
vendored
@@ -1,12 +1,4 @@
|
|||||||
export const ServiceTypes = [
|
export const ServiceTypes = ['Other', 'Sonarr', 'Radarr', 'Lidarr', 'qBittorrent', 'Plex', 'Emby'];
|
||||||
'Other',
|
|
||||||
'Sonarr',
|
|
||||||
'Radarr',
|
|
||||||
'Lidarr',
|
|
||||||
'qBittorrent',
|
|
||||||
'Plex',
|
|
||||||
'Emby',
|
|
||||||
];
|
|
||||||
|
|
||||||
export interface serviceItem {
|
export interface serviceItem {
|
||||||
[x: string]: any;
|
[x: string]: any;
|
||||||
|
|||||||
@@ -4,6 +4,4 @@ export default {
|
|||||||
title: 'Item Shelf',
|
title: 'Item Shelf',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const Default = (args: any) => (
|
export const Default = (args: any) => <AppShelf {...args} />;
|
||||||
<AppShelf {...args} />
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -20,12 +20,10 @@ function SettingsMenu(props: any) {
|
|||||||
}, []);
|
}, []);
|
||||||
return (
|
return (
|
||||||
<Group direction="column" grow>
|
<Group direction="column" grow>
|
||||||
|
|
||||||
<TextInput
|
<TextInput
|
||||||
label="Search bar querry url"
|
label="Search bar querry url"
|
||||||
defaultValue={config.searchUrl}
|
defaultValue={config.searchUrl}
|
||||||
onChange={
|
onChange={(e) => {
|
||||||
(e) => {
|
|
||||||
setConfig({
|
setConfig({
|
||||||
...config,
|
...config,
|
||||||
searchUrl: e.target.value,
|
searchUrl: e.target.value,
|
||||||
@@ -37,8 +35,7 @@ function SettingsMenu(props: any) {
|
|||||||
searchUrl: e.target.value,
|
searchUrl: e.target.value,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}}
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
<Group direction="column">
|
<Group direction="column">
|
||||||
<Switch
|
<Switch
|
||||||
|
|||||||
@@ -13,5 +13,5 @@ export function loadSettings(path: string): Settings | null {
|
|||||||
|
|
||||||
export interface Settings {
|
export interface Settings {
|
||||||
searchUrl: string;
|
searchUrl: string;
|
||||||
searchBar: boolean,
|
searchBar: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user