mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
Fix Capitalization
This commit is contained in:
@@ -22,7 +22,7 @@ import { IconApps as Apps } from '@tabler/icons';
|
|||||||
import { v4 as uuidv4 } from 'uuid';
|
import { v4 as uuidv4 } from 'uuid';
|
||||||
import { useDebouncedValue } from '@mantine/hooks';
|
import { useDebouncedValue } from '@mantine/hooks';
|
||||||
import { useConfig } from '../../tools/state';
|
import { useConfig } from '../../tools/state';
|
||||||
import { ServiceTypeList, statusCodes, targets } from '../../tools/types';
|
import { ServiceTypeList, StatusCodes, Targets } from '../../tools/types';
|
||||||
|
|
||||||
export function AddItemShelfButton(props: any) {
|
export function AddItemShelfButton(props: any) {
|
||||||
const [opened, setOpened] = useState(false);
|
const [opened, setOpened] = useState(false);
|
||||||
@@ -341,7 +341,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
|
|||||||
<MultiSelect
|
<MultiSelect
|
||||||
required
|
required
|
||||||
label="HTTP Status Codes"
|
label="HTTP Status Codes"
|
||||||
data={statusCodes}
|
data={StatusCodes}
|
||||||
placeholder="Select valid status codes"
|
placeholder="Select valid status codes"
|
||||||
clearButtonLabel="Clear selection"
|
clearButtonLabel="Clear selection"
|
||||||
nothingFound="Nothing found"
|
nothingFound="Nothing found"
|
||||||
@@ -352,7 +352,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
|
|||||||
/>
|
/>
|
||||||
<Select
|
<Select
|
||||||
label="Open Tab in: "
|
label="Open Tab in: "
|
||||||
data={targets}
|
data={Targets}
|
||||||
defaultValue="_blank"
|
defaultValue="_blank"
|
||||||
placeholder="Pick one"
|
placeholder="Pick one"
|
||||||
{...form.getInputProps('target')}
|
{...form.getInputProps('target')}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ interface ConfigModule {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export const statusCodes = [
|
export const StatusCodes = [
|
||||||
{value: '200', label: '200 - OK', group:'Sucessful responses'},
|
{value: '200', label: '200 - OK', group:'Sucessful responses'},
|
||||||
{value: '204', label: '204 - No Content', group:'Sucessful responses'},
|
{value: '204', label: '204 - No Content', group:'Sucessful responses'},
|
||||||
{value: '301', label: '301 - Moved Permanently', group:'Redirection responses'},
|
{value: '301', label: '301 - Moved Permanently', group:'Redirection responses'},
|
||||||
@@ -52,7 +52,7 @@ export const statusCodes = [
|
|||||||
{value: '054', label: '504 - Gateway Timeout Error', group:'Server error responses'},
|
{value: '054', label: '504 - Gateway Timeout Error', group:'Server error responses'},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const targets = [
|
export const Targets = [
|
||||||
{value: '_blank', label: 'New Tab'},
|
{value: '_blank', label: 'New Tab'},
|
||||||
{value: '_top', label: 'Same Window'}
|
{value: '_top', label: 'Same Window'}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user