Skip to content

Commit

Permalink
refactor main process
Browse files Browse the repository at this point in the history
  • Loading branch information
olvidalo committed Apr 28, 2023
1 parent 0b30f5f commit d6b2edc
Show file tree
Hide file tree
Showing 7 changed files with 481 additions and 317 deletions.
5 changes: 4 additions & 1 deletion src/common/ipcEvents.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
export const BACKEND_STARTING = "backend-starting"
export const BACKEND_STOPPING = "backend-stopping"
export const BACKEND_STOPPED = "backend-stopped"
export const IS_BACKEND_RUNNING = "is-backend-running"


export const OPEN_A_WORKSPACE = "open-a-workspace"
export const CREATE_A_WORKSPACE = "create-a-workspace"
export const CHOOSE_DIRECTORY = "choose-directory"

export const IS_BACKEND_RUNNING = "is-backend-running"
export const SHOW_LINK_CONTEXT_MENU = "show-link-context-menu"
export const OPEN_NEW_WINDOW = "open-new-window"
3 changes: 3 additions & 0 deletions src/common/store.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import ElectronStore from "electron-store";

export const SK_DEFAULT_WORKSPACE_PARENT_PATH = "defaultWorkspaceParentPath"
export const SK_KNOWN_WORKSPACES = "knownWorkspaces"

export interface Workspace {
path: string
}
Expand Down
Loading

0 comments on commit d6b2edc

Please sign in to comment.