This commit is contained in:
Kurt Hutten
2024-02-14 06:19:52 +11:00
committed by GitHub
parent f30601bd2c
commit 00ede7ec1a
5 changed files with 2 additions and 13 deletions

View File

@ -24,8 +24,6 @@ import { type IndexLoaderData } from 'lib/types'
import { paths } from 'lib/paths' import { paths } from 'lib/paths'
import { useGlobalStateContext } from 'hooks/useGlobalStateContext' import { useGlobalStateContext } from 'hooks/useGlobalStateContext'
import { onboardingPaths } from 'routes/Onboarding/paths' import { onboardingPaths } from 'routes/Onboarding/paths'
import { cameraMouseDragGuards } from 'lib/cameraControls'
import { CameraDragInteractionType_type } from '@kittycad/lib/dist/types/src/models'
import { CodeMenu } from 'components/CodeMenu' import { CodeMenu } from 'components/CodeMenu'
import { TextEditor } from 'components/TextEditor' import { TextEditor } from 'components/TextEditor'
import { Themes, getSystemTheme } from 'lib/theme' import { Themes, getSystemTheme } from 'lib/theme'
@ -56,8 +54,7 @@ export function App() {
})) }))
const { settings } = useGlobalStateContext() const { settings } = useGlobalStateContext()
const { showDebugPanel, onboardingStatus, cameraControls, theme } = const { showDebugPanel, onboardingStatus, theme } = settings?.context || {}
settings?.context || {}
const { state, send } = useModelingContext() const { state, send } = useModelingContext()
const editorTheme = theme === Themes.System ? getSystemTheme() : theme const editorTheme = theme === Themes.System ? getSystemTheme() : theme

View File

@ -1,8 +1,4 @@
import { import { readBinaryFile, exists as tauriExists } from '@tauri-apps/api/fs'
readBinaryFile,
exists as tauriExists,
BaseDirectory,
} from '@tauri-apps/api/fs'
import { isTauri } from 'lib/isTauri' import { isTauri } from 'lib/isTauri'
import { join } from '@tauri-apps/api/path' import { join } from '@tauri-apps/api/path'

View File

@ -4,7 +4,6 @@ import {
EngineCommand, EngineCommand,
} from '../lang/std/engineConnection' } from '../lang/std/engineConnection'
import { Models } from '@kittycad/lib' import { Models } from '@kittycad/lib'
import { v4 as uuidv4 } from 'uuid'
type WebSocketResponse = Models['OkWebSocketResponseData_type'] type WebSocketResponse = Models['OkWebSocketResponseData_type']

View File

@ -1,6 +1,5 @@
import { PathToNode, VariableDeclarator } from 'lang/wasm' import { PathToNode, VariableDeclarator } from 'lang/wasm'
import { engineCommandManager } from 'lang/std/engineConnection' import { engineCommandManager } from 'lang/std/engineConnection'
import { isReducedMotion } from 'lib/utils'
import { import {
Axis, Axis,
Selection, Selection,
@ -8,7 +7,6 @@ import {
Selections, Selections,
} from 'lib/selections' } from 'lib/selections'
import { assign, createMachine } from 'xstate' import { assign, createMachine } from 'xstate'
import { v4 as uuidv4 } from 'uuid'
import { isCursorInSketchCommandRange } from 'lang/util' import { isCursorInSketchCommandRange } from 'lang/util'
import { getNodePathFromSourceRange } from 'lang/queryAst' import { getNodePathFromSourceRange } from 'lang/queryAst'
import { kclManager } from 'lang/KclSingleton' import { kclManager } from 'lang/KclSingleton'

View File

@ -22,7 +22,6 @@ const SignIn = () => {
}, },
} = useGlobalStateContext() } = useGlobalStateContext()
const appliedTheme = theme === Themes.System ? getSystemTheme() : theme
const signInTauri = async () => { const signInTauri = async () => {
// We want to invoke our command to login via device auth. // We want to invoke our command to login via device auth.
try { try {