mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(electron): onboarding at first launch logic for client and web (#5183)
- Added a simple abstraction of persistent storage class.
- Different persistence solutions are provided for web and client.
- web: stored in localStorage
- client: stored in the application directory as `.json` file
- Define persistent app-config schema
- Add a new hook that can interactive with persistent-app-config reactively
This commit is contained in:
2
tools/@types/env/__all.d.ts
vendored
2
tools/@types/env/__all.d.ts
vendored
@@ -1,5 +1,6 @@
|
||||
import type { Environment, RuntimeConfig } from '@affine/env/global';
|
||||
import type {
|
||||
ConfigStorageHandlerManager,
|
||||
DBHandlerManager,
|
||||
DebugHandlerManager,
|
||||
DialogHandlerManager,
|
||||
@@ -24,6 +25,7 @@ declare global {
|
||||
ui: UnwrapManagerHandlerToClientSide<UIHandlerManager>;
|
||||
updater: UnwrapManagerHandlerToClientSide<UpdaterHandlerManager>;
|
||||
workspace: UnwrapManagerHandlerToClientSide<WorkspaceHandlerManager>;
|
||||
configStorage: UnwrapManagerHandlerToClientSide<ConfigStorageHandlerManager>;
|
||||
};
|
||||
events: EventMap;
|
||||
affine: {
|
||||
|
||||
Reference in New Issue
Block a user