sort imports (#6094)

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2025-04-01 14:20:42 -07:00
committed by GitHub
parent ee20a09e7e
commit 2fc8cb5376
342 changed files with 3008 additions and 2699 deletions

View File

@ -1,4 +1,13 @@
import { CustomIcon } from 'components/CustomIcon'
import Tooltip from 'components/Tooltip'
import {
CameraSystem,
cameraMouseDragGuards,
cameraSystems,
} from 'lib/cameraControls'
import { DEFAULT_PROJECT_NAME } from 'lib/constants'
import { DEFAULT_DEFAULT_LENGTH_UNIT } from 'lib/constants'
import { isDesktop } from 'lib/isDesktop'
import {
BaseUnit,
SettingProps,
@ -6,23 +15,15 @@ import {
baseUnitsUnion,
} from 'lib/settings/settingsTypes'
import { Themes } from 'lib/theme'
import { isEnumMember } from 'lib/types'
import {
CameraSystem,
cameraMouseDragGuards,
cameraSystems,
} from 'lib/cameraControls'
import { isDesktop } from 'lib/isDesktop'
import { useRef } from 'react'
import { CustomIcon } from 'components/CustomIcon'
import Tooltip from 'components/Tooltip'
import { isArray, toSync } from 'lib/utils'
import { reportRejection } from 'lib/trap'
import { CameraProjectionType } from '@rust/kcl-lib/bindings/CameraProjectionType'
import { OnboardingStatus } from '@rust/kcl-lib/bindings/OnboardingStatus'
import { NamedView } from '@rust/kcl-lib/bindings/NamedView'
import { isEnumMember } from 'lib/types'
import { isArray, toSync } from 'lib/utils'
import { useRef } from 'react'
import { CameraOrbitType } from '@rust/kcl-lib/bindings/CameraOrbitType'
import { DEFAULT_DEFAULT_LENGTH_UNIT } from 'lib/constants'
import { CameraProjectionType } from '@rust/kcl-lib/bindings/CameraProjectionType'
import { NamedView } from '@rust/kcl-lib/bindings/NamedView'
import { OnboardingStatus } from '@rust/kcl-lib/bindings/OnboardingStatus'
/**
* A setting that can be set at the user or project level
@ -91,8 +92,8 @@ export class Setting<T = unknown> {
return this._project !== undefined
? this._project
: this._user !== undefined
? this._user
: this._default
? this._user
: this._default
}
/**
* @param {SettingsLevel} level - The level to get the fallback for

View File

@ -1,14 +1,16 @@
import { type Models } from '@kittycad/lib'
import { Setting, settings } from './initialSettings'
import { AtLeast, PathValue, Paths } from 'lib/types'
import { CommandArgumentConfig } from 'lib/commandTypes'
import { Themes } from 'lib/theme'
import { CameraProjectionType } from '@rust/kcl-lib/bindings/CameraProjectionType'
import {
UnitAngle_type,
UnitLength_type,
} from '@kittycad/lib/dist/types/src/models'
import { CommandArgumentConfig } from 'lib/commandTypes'
import { Themes } from 'lib/theme'
import { AtLeast, PathValue, Paths } from 'lib/types'
import { CameraOrbitType } from '@rust/kcl-lib/bindings/CameraOrbitType'
import { CameraProjectionType } from '@rust/kcl-lib/bindings/CameraProjectionType'
import { Setting, settings } from './initialSettings'
export interface SettingsViaQueryString {
pool: string | null

View File

@ -1,12 +1,14 @@
import { DeepPartial } from 'lib/types'
import { Configuration } from '@rust/kcl-lib/bindings/Configuration'
import { createSettings } from './initialSettings'
import {
configurationToSettingsPayload,
getAllCurrentSettings,
projectConfigurationToSettingsPayload,
setSettingsAtLevel,
} from './settingsUtils'
import { createSettings } from './initialSettings'
describe(`testing settings initialization`, () => {
it(`sets settings at the 'user' level`, () => {

View File

@ -21,9 +21,11 @@ import { Setting, createSettings, settings } from 'lib/settings/initialSettings'
import { appThemeToTheme } from 'lib/theme'
import { err } from 'lib/trap'
import { DeepPartial } from 'lib/types'
import { Configuration } from '@rust/kcl-lib/bindings/Configuration'
import { ProjectConfiguration } from '@rust/kcl-lib/bindings/ProjectConfiguration'
import { NamedView } from '@rust/kcl-lib/bindings/NamedView'
import { ProjectConfiguration } from '@rust/kcl-lib/bindings/ProjectConfiguration'
import { SaveSettingsPayload, SettingsLevel } from './settingsTypes'
/**