2024-04-02 10:29:34 -04:00
|
|
|
import { SaveSettingsPayload } from 'lib/settings/settingsTypes'
|
|
|
|
import { Themes } from 'lib/theme'
|
|
|
|
|
2024-04-25 00:13:09 -07:00
|
|
|
export const TEST_SETTINGS_KEY = '/settings.toml'
|
2024-04-11 13:37:49 -04:00
|
|
|
export const TEST_SETTINGS = {
|
2024-04-02 10:29:34 -04:00
|
|
|
app: {
|
|
|
|
theme: Themes.Dark,
|
|
|
|
onboardingStatus: 'dismissed',
|
|
|
|
projectDirectory: '',
|
2024-04-24 13:59:25 -07:00
|
|
|
enableSSAO: false,
|
2024-04-02 10:29:34 -04:00
|
|
|
},
|
|
|
|
modeling: {
|
|
|
|
defaultUnit: 'in',
|
|
|
|
mouseControls: 'KittyCAD',
|
|
|
|
showDebugPanel: true,
|
|
|
|
},
|
|
|
|
projects: {
|
|
|
|
defaultProjectName: 'project-$nnn',
|
|
|
|
},
|
|
|
|
textEditor: {
|
|
|
|
textWrapping: true,
|
|
|
|
},
|
|
|
|
} satisfies Partial<SaveSettingsPayload>
|
|
|
|
|
2024-04-26 13:20:03 -04:00
|
|
|
export const TEST_SETTINGS_ONBOARDING_EXPORT = {
|
2024-04-11 13:37:49 -04:00
|
|
|
...TEST_SETTINGS,
|
2024-04-25 00:13:09 -07:00
|
|
|
app: { ...TEST_SETTINGS.app, onboardingStatus: '/export' },
|
2024-04-11 13:37:49 -04:00
|
|
|
} satisfies Partial<SaveSettingsPayload>
|
|
|
|
|
2024-04-26 13:20:03 -04:00
|
|
|
export const TEST_SETTINGS_ONBOARDING_START = {
|
|
|
|
...TEST_SETTINGS,
|
|
|
|
app: { ...TEST_SETTINGS.app, onboardingStatus: '' },
|
|
|
|
} satisfies Partial<SaveSettingsPayload>
|
|
|
|
|
2024-04-11 13:37:49 -04:00
|
|
|
export const TEST_SETTINGS_CORRUPTED = {
|
|
|
|
app: {
|
|
|
|
theme: Themes.Dark,
|
|
|
|
onboardingStatus: 'dismissed',
|
|
|
|
projectDirectory: 123 as any,
|
|
|
|
},
|
|
|
|
modeling: {
|
|
|
|
defaultUnit: 'invalid' as any,
|
|
|
|
mouseControls: `() => alert('hack the planet')` as any,
|
|
|
|
showDebugPanel: true,
|
|
|
|
},
|
|
|
|
projects: {
|
|
|
|
defaultProjectName: false as any,
|
|
|
|
},
|
|
|
|
textEditor: {
|
|
|
|
textWrapping: true,
|
|
|
|
},
|
|
|
|
} satisfies Partial<SaveSettingsPayload>
|