-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Refactor] Desktop core features (#8709)
* refactor: window management and electron store Moves window management related code into a dedicated directory. Removes electron-log and type definitions for electron store. Electron store is now handled globally in a dedicated module. Console logging will be handled by the renderer process. * refactor: store and adds logger utility Moves store related services into a dedicated store directory. Introduces a new logger utility for better logging and debugging. The logger is initialized and setup for Electron. * refactor: desktop store to use core services Replaces direct `electron-store` usage with core services for managing application settings, configurations, authentication, and project information. This change improves code organization, reduces redundancy, and promotes consistency with the core application logic. It centralizes data management and simplifies updates to the stored data. * refactor: config management and logging Centralizes environment variable assignment to `environment.ts`. Improves theme preference handling by simplifying the logic and setting a default theme if no setting exists. Updates server start logic to directly update config store instead of using a temporary object. Moves logging setup and node modules path output to after environment setup. Removes redundant `electron-log` imports and uses `@gauzy/desktop-core` logger. Refactors and simplifies setting default config by using `LocalStore.setAllDefaultConfig`. Simplifies timer duration update logging. * feat(desktop-core): add optional db field to IConfig interface - Introduced an optional `db` property to the `IConfig` interface to allow for database configuration specifications. - This change enables more flexible configurations within the desktop core setup.
- Loading branch information
Showing
50 changed files
with
1,135 additions
and
942 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
export * from './lib/concretes/default-window'; | ||
export * from './lib/concretes/window-config'; | ||
export * from './lib/concretes/window.manager'; | ||
export * from './lib/interfaces/base-window'; | ||
export * from './lib/interfaces/ibase-window'; | ||
export * from './lib/interfaces/iwindow-config'; | ||
export * from './lib/interfaces/iwindow.manager'; | ||
export * from './lib/electron-helpers'; | ||
export * from './lib/interfaces/types'; | ||
export * from './lib/window-manager/concretes/default-window'; | ||
export * from './lib/window-manager/concretes/window-config'; | ||
export * from './lib/window-manager/concretes/window.manager'; | ||
export * from './lib/window-manager/interfaces/base-window'; | ||
export * from './lib/window-manager/interfaces/ibase-window'; | ||
export * from './lib/window-manager/interfaces/iwindow-config'; | ||
export * from './lib/window-manager/interfaces/iwindow.manager'; | ||
export * from './lib/store/electron-helpers'; | ||
export * from './lib/store/local.store'; | ||
export * from './lib/store/types'; | ||
export * from './lib/logger/logger'; | ||
export * from './lib/logger/types'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.