diff --git a/apps/client/src/features/app-settings/panel/Panel.module.scss b/apps/client/src/features/app-settings/panel-utils/PanelUtils.module.scss similarity index 100% rename from apps/client/src/features/app-settings/panel/Panel.module.scss rename to apps/client/src/features/app-settings/panel-utils/PanelUtils.module.scss diff --git a/apps/client/src/features/app-settings/panel/PanelUtils.tsx b/apps/client/src/features/app-settings/panel-utils/PanelUtils.tsx similarity index 98% rename from apps/client/src/features/app-settings/panel/PanelUtils.tsx rename to apps/client/src/features/app-settings/panel-utils/PanelUtils.tsx index 919670933..6e844a523 100644 --- a/apps/client/src/features/app-settings/panel/PanelUtils.tsx +++ b/apps/client/src/features/app-settings/panel-utils/PanelUtils.tsx @@ -2,7 +2,7 @@ import { HTMLAttributes, ReactNode } from 'react'; import { cx } from '../../../common/utils/styleUtils'; -import style from './Panel.module.scss'; +import style from './PanelUtils.module.scss'; export function Header({ children }: { children: ReactNode }) { return

{children}

; diff --git a/apps/client/src/features/app-settings/panel/about-panel/AboutPanel.tsx b/apps/client/src/features/app-settings/panel/about-panel/AboutPanel.tsx index 2fca9de49..0a1452f72 100644 --- a/apps/client/src/features/app-settings/panel/about-panel/AboutPanel.tsx +++ b/apps/client/src/features/app-settings/panel/about-panel/AboutPanel.tsx @@ -1,6 +1,6 @@ import ExternalLink from '../../../../common/components/external-link/ExternalLink'; import { documentationUrl, githubUrl, websiteUrl } from '../../../../externals'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import AppVersion from './AppVersion'; diff --git a/apps/client/src/features/app-settings/panel/about-panel/AppVersion.tsx b/apps/client/src/features/app-settings/panel/about-panel/AppVersion.tsx index 4938434b3..12a202b0a 100644 --- a/apps/client/src/features/app-settings/panel/about-panel/AppVersion.tsx +++ b/apps/client/src/features/app-settings/panel/about-panel/AppVersion.tsx @@ -1,7 +1,7 @@ import { version } from '../../../../../package.json'; import ExternalLink from '../../../../common/components/external-link/ExternalLink'; import useAppVersion from '../../../../common/hooks-query/useAppVersion'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; export default function AppVersion() { const { data, isError } = useAppVersion(); diff --git a/apps/client/src/features/app-settings/panel/client-control-panel/ClientControlPanel.tsx b/apps/client/src/features/app-settings/panel/client-control-panel/ClientControlPanel.tsx index 2ba676229..c272a2001 100644 --- a/apps/client/src/features/app-settings/panel/client-control-panel/ClientControlPanel.tsx +++ b/apps/client/src/features/app-settings/panel/client-control-panel/ClientControlPanel.tsx @@ -1,4 +1,4 @@ -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import ClientList from './ClientList'; diff --git a/apps/client/src/features/app-settings/panel/client-control-panel/ClientList.tsx b/apps/client/src/features/app-settings/panel/client-control-panel/ClientList.tsx index 2e30ff1dc..61a0b4dad 100644 --- a/apps/client/src/features/app-settings/panel/client-control-panel/ClientList.tsx +++ b/apps/client/src/features/app-settings/panel/client-control-panel/ClientList.tsx @@ -5,7 +5,7 @@ import { RedirectClientModal } from '../../../../common/components/client-modal/ import { RenameClientModal } from '../../../../common/components/client-modal/RenameClientModal'; import { setClientRemote } from '../../../../common/hooks/useSocket'; import { useClientStore } from '../../../../common/stores/clientStore'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import style from './ClientControlPanel.module.scss'; diff --git a/apps/client/src/features/app-settings/panel/feature-settings-panel/FeatureSettingsPanel.tsx b/apps/client/src/features/app-settings/panel/feature-settings-panel/FeatureSettingsPanel.tsx index 079978a10..e12601167 100644 --- a/apps/client/src/features/app-settings/panel/feature-settings-panel/FeatureSettingsPanel.tsx +++ b/apps/client/src/features/app-settings/panel/feature-settings-panel/FeatureSettingsPanel.tsx @@ -1,6 +1,6 @@ import useScrollIntoView from '../../../../common/hooks/useScrollIntoView'; import type { PanelBaseProps } from '../../panel-list/PanelList'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import CustomFields from './custom-fields/CustomFields'; import UrlPresetsForm from './UrlPresetsForm'; diff --git a/apps/client/src/features/app-settings/panel/feature-settings-panel/UrlPresetsForm.tsx b/apps/client/src/features/app-settings/panel/feature-settings-panel/UrlPresetsForm.tsx index 5eea0d92e..523fbf2cf 100644 --- a/apps/client/src/features/app-settings/panel/feature-settings-panel/UrlPresetsForm.tsx +++ b/apps/client/src/features/app-settings/panel/feature-settings-panel/UrlPresetsForm.tsx @@ -13,7 +13,7 @@ import ExternalLink from '../../../../common/components/external-link/ExternalLi import useUrlPresets from '../../../../common/hooks-query/useUrlPresets'; import { handleLinks } from '../../../../common/utils/linkUtils'; import { validateUrlPresetPath } from '../../../../common/utils/urlPresets'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import style from './FeatureSettings.module.scss'; diff --git a/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFieldForm.tsx b/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFieldForm.tsx index 379af991f..2de9777ca 100644 --- a/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFieldForm.tsx +++ b/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFieldForm.tsx @@ -7,7 +7,7 @@ import { customFieldLabelToKey, isAlphanumericWithSpace } from 'ontime-utils'; import { maybeAxiosError } from '../../../../../common/api/utils'; import SwatchSelect from '../../../../../common/components/input/colour-input/SwatchSelect'; import useCustomFields from '../../../../../common/hooks-query/useCustomFields'; -import * as Panel from '../../PanelUtils'; +import * as Panel from '../../../panel-utils/PanelUtils'; import style from '../FeatureSettings.module.scss'; diff --git a/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFields.tsx b/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFields.tsx index b1cc1a71e..8b3daee5a 100644 --- a/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFields.tsx +++ b/apps/client/src/features/app-settings/panel/feature-settings-panel/custom-fields/CustomFields.tsx @@ -7,7 +7,7 @@ import { deleteCustomField, editCustomField, postCustomField } from '../../../.. import ExternalLink from '../../../../../common/components/external-link/ExternalLink'; import useCustomFields from '../../../../../common/hooks-query/useCustomFields'; import { customFieldsDocsUrl } from '../../../../../externals'; -import * as Panel from '../../PanelUtils'; +import * as Panel from '../../../panel-utils/PanelUtils'; import CustomFieldEntry from './CustomFieldEntry'; import CustomFieldForm from './CustomFieldForm'; diff --git a/apps/client/src/features/app-settings/panel/general-panel/GeneralPanel.tsx b/apps/client/src/features/app-settings/panel/general-panel/GeneralPanel.tsx index 2e11e30ae..c54e667da 100644 --- a/apps/client/src/features/app-settings/panel/general-panel/GeneralPanel.tsx +++ b/apps/client/src/features/app-settings/panel/general-panel/GeneralPanel.tsx @@ -1,7 +1,7 @@ import useScrollIntoView from '../../../../common/hooks/useScrollIntoView'; import type { PanelBaseProps } from '../../panel-list/PanelList'; +import * as Panel from '../../panel-utils/PanelUtils'; import EditorSettingsForm from '../interface-panel/EditorSettingsForm'; -import * as Panel from '../PanelUtils'; import GeneralPanelForm from './GeneralPanelForm'; import ViewSettingsForm from './ViewSettingsForm'; diff --git a/apps/client/src/features/app-settings/panel/general-panel/GeneralPanelForm.tsx b/apps/client/src/features/app-settings/panel/general-panel/GeneralPanelForm.tsx index 01302b776..12e066bc0 100644 --- a/apps/client/src/features/app-settings/panel/general-panel/GeneralPanelForm.tsx +++ b/apps/client/src/features/app-settings/panel/general-panel/GeneralPanelForm.tsx @@ -7,7 +7,7 @@ import { postSettings } from '../../../../common/api/settings'; import { maybeAxiosError } from '../../../../common/api/utils'; import useSettings from '../../../../common/hooks-query/useSettings'; import { isOnlyNumbers } from '../../../../common/utils/regex'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import GeneralPinInput from './GeneralPinInput'; @@ -154,7 +154,7 @@ export default function GeneralPanelForm() { - + diff --git a/apps/client/src/features/app-settings/panel/general-panel/ViewSettingsForm.tsx b/apps/client/src/features/app-settings/panel/general-panel/ViewSettingsForm.tsx index 9764ab74f..f6745d8fa 100644 --- a/apps/client/src/features/app-settings/panel/general-panel/ViewSettingsForm.tsx +++ b/apps/client/src/features/app-settings/panel/general-panel/ViewSettingsForm.tsx @@ -9,7 +9,7 @@ import ExternalLink from '../../../../common/components/external-link/ExternalLi import { PopoverPickerRHF } from '../../../../common/components/input/popover-picker/PopoverPicker'; import useInfo from '../../../../common/hooks-query/useInfo'; import useViewSettings from '../../../../common/hooks-query/useViewSettings'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import style from './GeneralPanel.module.scss'; @@ -139,7 +139,7 @@ export default function ViewSettingsForm() { diff --git a/apps/client/src/features/app-settings/panel/project-panel/ProjectList.tsx b/apps/client/src/features/app-settings/panel/project-panel/ProjectList.tsx index 726fde6cd..a7ddd4475 100644 --- a/apps/client/src/features/app-settings/panel/project-panel/ProjectList.tsx +++ b/apps/client/src/features/app-settings/panel/project-panel/ProjectList.tsx @@ -1,7 +1,7 @@ import { useMemo, useState } from 'react'; import { useProjectList } from '../../../../common/hooks-query/useProjectList'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import ProjectListItem, { EditMode } from './ProjectListItem'; diff --git a/apps/client/src/features/app-settings/panel/project-panel/ProjectListItem.tsx b/apps/client/src/features/app-settings/panel/project-panel/ProjectListItem.tsx index 8104270b8..858c23072 100644 --- a/apps/client/src/features/app-settings/panel/project-panel/ProjectListItem.tsx +++ b/apps/client/src/features/app-settings/panel/project-panel/ProjectListItem.tsx @@ -12,7 +12,7 @@ import { } from '../../../../common/api/db'; import { invalidateAllCaches, maybeAxiosError } from '../../../../common/api/utils'; import { cx } from '../../../../common/utils/styleUtils'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import ProjectForm, { ProjectFormValues } from './ProjectForm'; import ProjectMergeForm from './ProjectMergeForm'; diff --git a/apps/client/src/features/app-settings/panel/project-panel/ProjectMergeForm.tsx b/apps/client/src/features/app-settings/panel/project-panel/ProjectMergeForm.tsx index 72c976acd..25f386f3d 100644 --- a/apps/client/src/features/app-settings/panel/project-panel/ProjectMergeForm.tsx +++ b/apps/client/src/features/app-settings/panel/project-panel/ProjectMergeForm.tsx @@ -7,7 +7,7 @@ import { PROJECT_DATA } from '../../../../common/api/constants'; import { getDb, patchData } from '../../../../common/api/db'; import { maybeAxiosError } from '../../../../common/api/utils'; import { cx } from '../../../../common/utils/styleUtils'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import { makeProjectPatch } from './project.utils'; diff --git a/apps/client/src/features/app-settings/panel/project-panel/ProjectPanel.tsx b/apps/client/src/features/app-settings/panel/project-panel/ProjectPanel.tsx index 83b25cf61..3fdf6fe7d 100644 --- a/apps/client/src/features/app-settings/panel/project-panel/ProjectPanel.tsx +++ b/apps/client/src/features/app-settings/panel/project-panel/ProjectPanel.tsx @@ -1,6 +1,6 @@ import useScrollIntoView from '../../../../common/hooks/useScrollIntoView'; import type { PanelBaseProps } from '../../panel-list/PanelList'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import ManageProjects from './ManageProjects'; import ProjectData from './ProjectData'; diff --git a/apps/client/src/features/app-settings/panel/shutdown-panel/ShutdownPanel.tsx b/apps/client/src/features/app-settings/panel/shutdown-panel/ShutdownPanel.tsx index cf23a4d61..3961312a8 100644 --- a/apps/client/src/features/app-settings/panel/shutdown-panel/ShutdownPanel.tsx +++ b/apps/client/src/features/app-settings/panel/shutdown-panel/ShutdownPanel.tsx @@ -12,7 +12,7 @@ import { import { isLocalhost } from '../../../../common/api/constants'; import useElectronEvent from '../../../../common/hooks/useElectronEvent'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; export default function ShutdownPanel() { const { isElectron, sendToElectron } = useElectronEvent(); diff --git a/apps/client/src/features/app-settings/panel/sources-panel/GSheetSetup.tsx b/apps/client/src/features/app-settings/panel/sources-panel/GSheetSetup.tsx index 192663cea..62a50bbff 100644 --- a/apps/client/src/features/app-settings/panel/sources-panel/GSheetSetup.tsx +++ b/apps/client/src/features/app-settings/panel/sources-panel/GSheetSetup.tsx @@ -7,7 +7,7 @@ import { getWorksheetNames } from '../../../../common/api/sheets'; import { maybeAxiosError } from '../../../../common/api/utils'; import CopyTag from '../../../../common/components/copy-tag/CopyTag'; import { openLink } from '../../../../common/utils/linkUtils'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import useGoogleSheet from './useGoogleSheet'; import { useSheetStore } from './useSheetStore'; diff --git a/apps/client/src/features/app-settings/panel/sources-panel/ImportReview.tsx b/apps/client/src/features/app-settings/panel/sources-panel/ImportReview.tsx index 71a426c11..e19efe5f6 100644 --- a/apps/client/src/features/app-settings/panel/sources-panel/ImportReview.tsx +++ b/apps/client/src/features/app-settings/panel/sources-panel/ImportReview.tsx @@ -2,7 +2,7 @@ import { useState } from 'react'; import { Button } from '@chakra-ui/react'; import { CustomFields, OntimeRundown } from 'ontime-types'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import PreviewSpreadsheet from './preview/PreviewRundown'; import useGoogleSheet from './useGoogleSheet'; diff --git a/apps/client/src/features/app-settings/panel/sources-panel/SourcesPanel.tsx b/apps/client/src/features/app-settings/panel/sources-panel/SourcesPanel.tsx index f68420c4a..a6c0711a7 100644 --- a/apps/client/src/features/app-settings/panel/sources-panel/SourcesPanel.tsx +++ b/apps/client/src/features/app-settings/panel/sources-panel/SourcesPanel.tsx @@ -12,7 +12,7 @@ import { import { getWorksheetNames } from '../../../../common/api/sheets'; import { maybeAxiosError } from '../../../../common/api/utils'; import { validateExcelImport } from '../../../../common/utils/uploadUtils'; -import * as Panel from '../PanelUtils'; +import * as Panel from '../../panel-utils/PanelUtils'; import ImportMapForm from './import-map/ImportMapForm'; import GSheetInfo from './GSheetInfo'; diff --git a/apps/client/src/features/app-settings/panel/sources-panel/import-map/ImportMapForm.tsx b/apps/client/src/features/app-settings/panel/sources-panel/import-map/ImportMapForm.tsx index 2c009342a..a83b38ed2 100644 --- a/apps/client/src/features/app-settings/panel/sources-panel/import-map/ImportMapForm.tsx +++ b/apps/client/src/features/app-settings/panel/sources-panel/import-map/ImportMapForm.tsx @@ -5,7 +5,7 @@ import { IoAdd } from '@react-icons/all-files/io5/IoAdd'; import { IoTrash } from '@react-icons/all-files/io5/IoTrash'; import { ImportMap, isAlphanumericWithSpace } from 'ontime-utils'; -import * as Panel from '../../PanelUtils'; +import * as Panel from '../../../panel-utils/PanelUtils'; import useGoogleSheet from '../useGoogleSheet'; import { useSheetStore } from '../useSheetStore'; diff --git a/apps/client/src/features/app-settings/panel/sources-panel/preview/PreviewRundown.tsx b/apps/client/src/features/app-settings/panel/sources-panel/preview/PreviewRundown.tsx index ddb40bc6a..1ede1ef04 100644 --- a/apps/client/src/features/app-settings/panel/sources-panel/preview/PreviewRundown.tsx +++ b/apps/client/src/features/app-settings/panel/sources-panel/preview/PreviewRundown.tsx @@ -5,7 +5,7 @@ import { millisToString } from 'ontime-utils'; import Tag from '../../../../../common/components/tag/Tag'; import { getAccessibleColour } from '../../../../../common/utils/styleUtils'; -import * as Panel from '../../PanelUtils'; +import * as Panel from '../../../panel-utils/PanelUtils'; import style from './PreviewRundown.module.scss';