Update Workspace Settings on frontend

This commit is contained in:
2024-10-27 16:53:15 +01:00
parent 4544af8f0f
commit 17c03c2d14
4 changed files with 43 additions and 47 deletions

View File

@@ -26,7 +26,8 @@ export const IMAGE_EXTENSIONS = [
'.svg',
];
export const DEFAULT_SETTINGS = {
// Renamed from DEFAULT_SETTINGS to be more specific
export const DEFAULT_WORKSPACE_SETTINGS = {
theme: THEMES.LIGHT,
autoSave: false,
gitEnabled: false,
@@ -37,6 +38,12 @@ export const DEFAULT_SETTINGS = {
gitCommitMsgTemplate: '${action} ${filename}',
};
// Template for creating new workspaces
export const DEFAULT_WORKSPACE = {
name: '',
...DEFAULT_WORKSPACE_SETTINGS,
};
export const DEFAULT_FILE = {
name: 'New File.md',
path: 'New File.md',