mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
🚨 Fix build errors
This commit is contained in:
@@ -27,7 +27,7 @@ export const NetworkTab = ({ form }: NetworkTabProps) => {
|
||||
data={StatusCodes}
|
||||
clearable
|
||||
searchable
|
||||
defaultValue={form.values.network.statusCodes}
|
||||
defaultValue={form.values.network.okStatus.map((x) => `${x}`)}
|
||||
variant="default"
|
||||
{...form.getInputProps('network.statusCodes')}
|
||||
/>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Anchor, Box, Stack, Title, UnstyledButton } from '@mantine/core';
|
||||
import { NextLink } from '@mantine/next';
|
||||
import { Box, Stack, Title, UnstyledButton } from '@mantine/core';
|
||||
import { createStyles } from '@mantine/styles';
|
||||
import { motion } from 'framer-motion';
|
||||
import Link from 'next/link';
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import React from 'react';
|
||||
import {
|
||||
createStyles,
|
||||
Container,
|
||||
Title,
|
||||
Text,
|
||||
Button,
|
||||
Container,
|
||||
createStyles,
|
||||
Group,
|
||||
Text,
|
||||
Title,
|
||||
useMantineTheme,
|
||||
} from '@mantine/core';
|
||||
import { NextLink } from '@mantine/next';
|
||||
import React from 'react';
|
||||
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
||||
import Link from 'next/link';
|
||||
|
||||
@@ -2,6 +2,7 @@ import { getCookie, setCookie } from 'cookies-next';
|
||||
import { GetServerSidePropsContext } from 'next';
|
||||
|
||||
import fs from 'fs';
|
||||
import { LoadConfigComponent } from '../components/Config/LoadConfig';
|
||||
import { Dashboard } from '../components/Dashboard/Dashboard';
|
||||
import Layout from '../components/layout/Layout';
|
||||
import { useInitConfig } from '../config/init';
|
||||
@@ -9,9 +10,6 @@ import { getFrontendConfig } from '../tools/config/getFrontendConfig';
|
||||
import { getServerSideTranslations } from '../tools/getServerSideTranslations';
|
||||
import { dashboardNamespaces } from '../tools/translation-namespaces';
|
||||
import { DashboardServerSideProps } from '../types/dashboardPageType';
|
||||
import { LoadConfigComponent } from '../components/Config/LoadConfig';
|
||||
import dayjs from 'dayjs';
|
||||
import { useTranslation } from 'next-i18next';
|
||||
|
||||
export async function getServerSideProps({
|
||||
req,
|
||||
|
||||
@@ -1,21 +1,23 @@
|
||||
export const StatusCodes = [
|
||||
{ value: 200, label: '200 - OK', group: 'Sucessful responses' },
|
||||
{ value: 204, label: '204 - No Content', group: 'Sucessful responses' },
|
||||
{ value: 301, label: '301 - Moved Permanently', group: 'Redirection responses' },
|
||||
{ value: 302, label: '302 - Found / Moved Temporarily', group: 'Redirection responses' },
|
||||
{ value: 304, label: '304 - Not Modified', group: 'Redirection responses' },
|
||||
{ value: 307, label: '307 - Temporary Redirect', group: 'Redirection responses' },
|
||||
{ value: 308, label: '308 - Permanent Redirect', group: 'Redirection responses' },
|
||||
{ value: 400, label: '400 - Bad Request', group: 'Client error responses' },
|
||||
{ value: 401, label: '401 - Unauthorized', group: 'Client error responses' },
|
||||
{ value: 403, label: '403 - Forbidden', group: 'Client error responses' },
|
||||
{ value: 404, label: '404 - Not Found', group: 'Client error responses' },
|
||||
{ value: 405, label: '405 - Method Not Allowed', group: 'Client error responses' },
|
||||
{ value: 408, label: '408 - Request Timeout', group: 'Client error responses' },
|
||||
{ value: 410, label: '410 - Gone', group: 'Client error responses' },
|
||||
{ value: 429, label: '429 - Too Many Requests', group: 'Client error responses' },
|
||||
{ value: 500, label: '500 - Internal Server Error', group: 'Server error responses' },
|
||||
{ value: 502, label: '502 - Bad Gateway', group: 'Server error responses' },
|
||||
{ value: 503, label: '503 - Service Unavailable', group: 'Server error responses' },
|
||||
{ value: 504, label: '504 - Gateway Timeout Error', group: 'Server error responses' },
|
||||
import { SelectItem } from '@mantine/core';
|
||||
|
||||
export const StatusCodes: SelectItem[] = [
|
||||
{ value: '200', label: '200 - OK', group: 'Sucessful responses' },
|
||||
{ value: '204', label: '204 - No Content', group: 'Sucessful responses' },
|
||||
{ value: '301', label: '301 - Moved Permanently', group: 'Redirection responses' },
|
||||
{ value: '302', label: '302 - Found / Moved Temporarily', group: 'Redirection responses' },
|
||||
{ value: '304', label: '304 - Not Modified', group: 'Redirection responses' },
|
||||
{ value: '307', label: '307 - Temporary Redirect', group: 'Redirection responses' },
|
||||
{ value: '308', label: '308 - Permanent Redirect', group: 'Redirection responses' },
|
||||
{ value: '400', label: '400 - Bad Request', group: 'Client error responses' },
|
||||
{ value: '401', label: '401 - Unauthorized', group: 'Client error responses' },
|
||||
{ value: '403', label: '403 - Forbidden', group: 'Client error responses' },
|
||||
{ value: '404', label: '404 - Not Found', group: 'Client error responses' },
|
||||
{ value: '405', label: '405 - Method Not Allowed', group: 'Client error responses' },
|
||||
{ value: '408', label: '408 - Request Timeout', group: 'Client error responses' },
|
||||
{ value: '410', label: '410 - Gone', group: 'Client error responses' },
|
||||
{ value: '429', label: '429 - Too Many Requests', group: 'Client error responses' },
|
||||
{ value: '500', label: '500 - Internal Server Error', group: 'Server error responses' },
|
||||
{ value: '502', label: '502 - Bad Gateway', group: 'Server error responses' },
|
||||
{ value: '503', label: '503 - Service Unavailable', group: 'Server error responses' },
|
||||
{ value: '504', label: '504 - Gateway Timeout Error', group: 'Server error responses' },
|
||||
];
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { IconKey, IconPassword, IconUser, TablerIcon } from '@tabler/icons';
|
||||
|
||||
import { TileBaseType } from './tile';
|
||||
|
||||
export interface AppType extends TileBaseType {
|
||||
|
||||
@@ -4568,7 +4568,7 @@ __metadata:
|
||||
|
||||
"fsevents@patch:fsevents@^2.3.2#~builtin<compat/fsevents>, fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>":
|
||||
version: 2.3.2
|
||||
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"
|
||||
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=df0bf1"
|
||||
dependencies:
|
||||
node-gyp: latest
|
||||
conditions: os=darwin
|
||||
@@ -7519,7 +7519,7 @@ __metadata:
|
||||
|
||||
"resolve@patch:resolve@^1.19.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.0#~builtin<compat/resolve>":
|
||||
version: 1.22.1
|
||||
resolution: "resolve@patch:resolve@npm%3A1.22.1#~builtin<compat/resolve>::version=1.22.1&hash=07638b"
|
||||
resolution: "resolve@patch:resolve@npm%3A1.22.1#~builtin<compat/resolve>::version=1.22.1&hash=c3c19d"
|
||||
dependencies:
|
||||
is-core-module: ^2.9.0
|
||||
path-parse: ^1.0.7
|
||||
@@ -7532,7 +7532,7 @@ __metadata:
|
||||
|
||||
"resolve@patch:resolve@^2.0.0-next.3#~builtin<compat/resolve>":
|
||||
version: 2.0.0-next.4
|
||||
resolution: "resolve@patch:resolve@npm%3A2.0.0-next.4#~builtin<compat/resolve>::version=2.0.0-next.4&hash=07638b"
|
||||
resolution: "resolve@patch:resolve@npm%3A2.0.0-next.4#~builtin<compat/resolve>::version=2.0.0-next.4&hash=c3c19d"
|
||||
dependencies:
|
||||
is-core-module: ^2.9.0
|
||||
path-parse: ^1.0.7
|
||||
@@ -8370,7 +8370,7 @@ __metadata:
|
||||
|
||||
"typescript@patch:typescript@^4.7.4#~builtin<compat/typescript>":
|
||||
version: 4.9.4
|
||||
resolution: "typescript@patch:typescript@npm%3A4.9.4#~builtin<compat/typescript>::version=4.9.4&hash=7ad353"
|
||||
resolution: "typescript@patch:typescript@npm%3A4.9.4#~builtin<compat/typescript>::version=4.9.4&hash=d73830"
|
||||
bin:
|
||||
tsc: bin/tsc
|
||||
tsserver: bin/tsserver
|
||||
|
||||
Reference in New Issue
Block a user