From 84864a057879fa45a0d7a83cab09b917fed4c387 Mon Sep 17 00:00:00 2001 From: ajnart Date: Sun, 8 Jan 2023 13:59:24 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Prettier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Overview/AvailableElementsOverview.tsx | 1 - src/components/Dashboard/Tiles/TileWrapper.tsx | 1 - src/components/Dashboard/Wrappers/Sidebar/Sidebar.tsx | 1 + .../layout/header/Actions/ToggleEditMode/ToggleEditMode.tsx | 1 - src/pages/index.tsx | 2 +- src/pages/migrate.tsx | 3 +-- 6 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/Dashboard/Modals/SelectElement/Components/Overview/AvailableElementsOverview.tsx b/src/components/Dashboard/Modals/SelectElement/Components/Overview/AvailableElementsOverview.tsx index 0304bc473..97c62de4c 100644 --- a/src/components/Dashboard/Modals/SelectElement/Components/Overview/AvailableElementsOverview.tsx +++ b/src/components/Dashboard/Modals/SelectElement/Components/Overview/AvailableElementsOverview.tsx @@ -10,7 +10,6 @@ import { useConfigContext } from '../../../../../../config/provider'; import { useConfigStore } from '../../../../../../config/store'; import { openContextModalGeneric } from '../../../../../../tools/mantineModalManagerExtensions'; import { AppType } from '../../../../../../types/app'; -import { appTileDefinition } from '../../../../Tiles/Apps/AppTile'; import { CategoryEditModalInnerProps } from '../../../../Wrappers/Category/CategoryEditModal'; import { useStyles } from '../Shared/styles'; diff --git a/src/components/Dashboard/Tiles/TileWrapper.tsx b/src/components/Dashboard/Tiles/TileWrapper.tsx index c0c114bcc..8d94abdd7 100644 --- a/src/components/Dashboard/Tiles/TileWrapper.tsx +++ b/src/components/Dashboard/Tiles/TileWrapper.tsx @@ -1,6 +1,5 @@ /* eslint-disable react/no-unknown-property */ import { ReactNode, RefObject } from 'react'; -import widgets from '../../../widgets'; interface GridstackTileWrapperProps { id: string; diff --git a/src/components/Dashboard/Wrappers/Sidebar/Sidebar.tsx b/src/components/Dashboard/Wrappers/Sidebar/Sidebar.tsx index d7fbbdb68..a8bd89ebe 100644 --- a/src/components/Dashboard/Wrappers/Sidebar/Sidebar.tsx +++ b/src/components/Dashboard/Wrappers/Sidebar/Sidebar.tsx @@ -42,6 +42,7 @@ const SidebarInner = ({ location }: DashboardSidebarInnerProps) => { className="grid-stack grid-stack-sidebar" style={{ transitionDuration: '0s', height: '100%' }} data-sidebar={location} + // eslint-disable-next-line react/no-unknown-property gs-min-row={minRow} > diff --git a/src/components/layout/header/Actions/ToggleEditMode/ToggleEditMode.tsx b/src/components/layout/header/Actions/ToggleEditMode/ToggleEditMode.tsx index a4b7a8df5..d25192249 100644 --- a/src/components/layout/header/Actions/ToggleEditMode/ToggleEditMode.tsx +++ b/src/components/layout/header/Actions/ToggleEditMode/ToggleEditMode.tsx @@ -4,7 +4,6 @@ import { ActionIcon, Button, Group, Title, Tooltip } from '@mantine/core'; import { IconEditCircle, IconEditCircleOff } from '@tabler/icons'; import { getCookie } from 'cookies-next'; import { Trans, useTranslation } from 'next-i18next'; -import { useEffect } from 'react'; import { hideNotification, showNotification } from '@mantine/notifications'; import { useConfigContext } from '../../../../../config/provider'; import { useScreenSmallerThan } from '../../../../../hooks/useScreenSmallerThan'; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 961e6f9e7..b3db0f195 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -17,7 +17,7 @@ export async function getServerSideProps({ res, locale, }: GetServerSidePropsContext): Promise<{ props: DashboardServerSideProps }> { - // Get all the configs in the /data/configs folder + // Get all the configs in the /data/configs folder // All the files that end in ".json" const configs = fs.readdirSync('./data/configs').filter((file) => file.endsWith('.json')); diff --git a/src/pages/migrate.tsx b/src/pages/migrate.tsx index f38a8dd3c..428e7e564 100644 --- a/src/pages/migrate.tsx +++ b/src/pages/migrate.tsx @@ -37,10 +37,9 @@ import { IconSun, } from '@tabler/icons'; import { motion } from 'framer-motion'; +import axios from 'axios'; import { Logo } from '../components/layout/Logo'; import { usePrimaryGradient } from '../components/layout/useGradient'; -import { backendMigrateConfig } from '../tools/config/backendMigrateConfig'; -import axios from 'axios'; const useStyles = createStyles((theme) => ({ root: {