Revert "sort imports" (#6100)

Revert "sort imports (#6094)"

This reverts commit 2fc8cb5376.
This commit is contained in:
Jess Frazelle
2025-04-01 15:31:19 -07:00
committed by GitHub
parent 964d81dc0e
commit 879b471aed
342 changed files with 2630 additions and 2939 deletions

View File

@ -1,13 +1,4 @@
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,
@ -15,15 +6,23 @@ import {
baseUnitsUnion,
} from 'lib/settings/settingsTypes'
import { Themes } from 'lib/theme'
import { reportRejection } from 'lib/trap'
import { isEnumMember } from 'lib/types'
import { isArray, toSync } from 'lib/utils'
import {
CameraSystem,
cameraMouseDragGuards,
cameraSystems,
} from 'lib/cameraControls'
import { isDesktop } from 'lib/isDesktop'
import { useRef } from 'react'
import { CameraOrbitType } from '@rust/kcl-lib/bindings/CameraOrbitType'
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 { NamedView } from '@rust/kcl-lib/bindings/NamedView'
import { OnboardingStatus } from '@rust/kcl-lib/bindings/OnboardingStatus'
import { NamedView } from '@rust/kcl-lib/bindings/NamedView'
import { CameraOrbitType } from '@rust/kcl-lib/bindings/CameraOrbitType'
import { DEFAULT_DEFAULT_LENGTH_UNIT } from 'lib/constants'
/**
* A setting that can be set at the user or project level
@ -92,8 +91,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,16 +1,14 @@
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,14 +1,12 @@
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,11 +21,9 @@ 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 { NamedView } from '@rust/kcl-lib/bindings/NamedView'
import { ProjectConfiguration } from '@rust/kcl-lib/bindings/ProjectConfiguration'
import { NamedView } from '@rust/kcl-lib/bindings/NamedView'
import { SaveSettingsPayload, SettingsLevel } from './settingsTypes'
/**