Files
obsidian-livesync/src/common/events.ts

53 lines
2.2 KiB
TypeScript
Raw Normal View History

import { eventHub } from "../lib/src/hub/hub";
// import type ObsidianLiveSyncPlugin from "../main";
- 0.23.21: - New Features: - Case-insensitive file handling - Files can now be handled case-insensitively. - This behaviour can be modified in the settings under `Handle files as Case-Sensitive` (Default: Prompt, Enabled for previous behaviour). - Improved chunk revision fixing - Revisions for chunks can now be fixed for faster chunk creation. - This can be adjusted in the settings under `Compute revisions for chunks` (Default: Prompt, Enabled for previous behaviour). - Bulk chunk transfer - Chunks can now be transferred in bulk during uploads. - This feature is enabled by default through `Send chunks in bulk`. - Creation of missing chunks without - Missing chunks can be created without storing notes, enhancing efficiency for first synchronisation or after prolonged periods without synchronisation. - Improvements: - File status scanning on the startup - Quite significant performance improvements. - No more missing scans of some files. - Status in editor enhancements - Significant performance improvements in the status display within the editor. - Notifications for files that will not be synchronised will now be properly communicated. - Encryption and Decryption - These processes are now performed in background threads to ensure fast and stable transfers. - Verify and repair all files - Got faster through parallel checking. - Migration on update - Migration messages and wizards have become more helpful. - Behavioural changes: - Chunk size adjustments - Large chunks will no longer be created for older, stable files, addressing storage consumption issues. - Flag file automation - Confirmation will be shown and we can cancel it. - Fixed: - Database File Scanning - All files in the database will now be enumerated correctly. - Miscellaneous - Dependency updated. - Now, tree shaking is left to terser, from esbuild.
2024-09-07 01:43:21 +09:00
export const EVENT_PLUGIN_LOADED = "plugin-loaded";
export const EVENT_PLUGIN_UNLOADED = "plugin-unloaded";
2024-10-16 12:44:07 +01:00
export const EVENT_FILE_SAVED = "file-saved";
- 0.23.21: - New Features: - Case-insensitive file handling - Files can now be handled case-insensitively. - This behaviour can be modified in the settings under `Handle files as Case-Sensitive` (Default: Prompt, Enabled for previous behaviour). - Improved chunk revision fixing - Revisions for chunks can now be fixed for faster chunk creation. - This can be adjusted in the settings under `Compute revisions for chunks` (Default: Prompt, Enabled for previous behaviour). - Bulk chunk transfer - Chunks can now be transferred in bulk during uploads. - This feature is enabled by default through `Send chunks in bulk`. - Creation of missing chunks without - Missing chunks can be created without storing notes, enhancing efficiency for first synchronisation or after prolonged periods without synchronisation. - Improvements: - File status scanning on the startup - Quite significant performance improvements. - No more missing scans of some files. - Status in editor enhancements - Significant performance improvements in the status display within the editor. - Notifications for files that will not be synchronised will now be properly communicated. - Encryption and Decryption - These processes are now performed in background threads to ensure fast and stable transfers. - Verify and repair all files - Got faster through parallel checking. - Migration on update - Migration messages and wizards have become more helpful. - Behavioural changes: - Chunk size adjustments - Large chunks will no longer be created for older, stable files, addressing storage consumption issues. - Flag file automation - Confirmation will be shown and we can cancel it. - Fixed: - Database File Scanning - All files in the database will now be enumerated correctly. - Miscellaneous - Dependency updated. - Now, tree shaking is left to terser, from esbuild.
2024-09-07 01:43:21 +09:00
export const EVENT_LEAF_ACTIVE_CHANGED = "leaf-active-changed";
2024-10-16 12:44:07 +01:00
export const EVENT_REQUEST_OPEN_SETTINGS = "request-open-settings";
2024-10-18 11:14:58 +01:00
export const EVENT_REQUEST_OPEN_SETTING_WIZARD = "request-open-setting-wizard";
2024-10-16 12:44:07 +01:00
export const EVENT_REQUEST_OPEN_SETUP_URI = "request-open-setup-uri";
export const EVENT_REQUEST_COPY_SETUP_URI = "request-copy-setup-uri";
export const EVENT_REQUEST_SHOW_SETUP_QR = "request-show-setup-qr";
2024-10-16 12:44:07 +01:00
export const EVENT_REQUEST_RELOAD_SETTING_TAB = "reload-setting-tab";
export const EVENT_REQUEST_OPEN_PLUGIN_SYNC_DIALOG = "request-open-plugin-sync-dialog";
export const EVENT_REQUEST_OPEN_P2P = "request-open-p2p";
export const EVENT_REQUEST_CLOSE_P2P = "request-close-p2p";
export const EVENT_REQUEST_RUN_DOCTOR = "request-run-doctor";
export const EVENT_REQUEST_RUN_FIX_INCOMPLETE = "request-run-fix-incomplete";
export const EVENT_ANALYSE_DB_USAGE = "analyse-db-usage";
export const EVENT_REQUEST_PERFORM_GC_V3 = "request-perform-gc-v3";
// export const EVENT_REQUEST_CHECK_REMOTE_SIZE = "request-check-remote-size";
- 0.23.21: - New Features: - Case-insensitive file handling - Files can now be handled case-insensitively. - This behaviour can be modified in the settings under `Handle files as Case-Sensitive` (Default: Prompt, Enabled for previous behaviour). - Improved chunk revision fixing - Revisions for chunks can now be fixed for faster chunk creation. - This can be adjusted in the settings under `Compute revisions for chunks` (Default: Prompt, Enabled for previous behaviour). - Bulk chunk transfer - Chunks can now be transferred in bulk during uploads. - This feature is enabled by default through `Send chunks in bulk`. - Creation of missing chunks without - Missing chunks can be created without storing notes, enhancing efficiency for first synchronisation or after prolonged periods without synchronisation. - Improvements: - File status scanning on the startup - Quite significant performance improvements. - No more missing scans of some files. - Status in editor enhancements - Significant performance improvements in the status display within the editor. - Notifications for files that will not be synchronised will now be properly communicated. - Encryption and Decryption - These processes are now performed in background threads to ensure fast and stable transfers. - Verify and repair all files - Got faster through parallel checking. - Migration on update - Migration messages and wizards have become more helpful. - Behavioural changes: - Chunk size adjustments - Large chunks will no longer be created for older, stable files, addressing storage consumption issues. - Flag file automation - Confirmation will be shown and we can cancel it. - Fixed: - Database File Scanning - All files in the database will now be enumerated correctly. - Miscellaneous - Dependency updated. - Now, tree shaking is left to terser, from esbuild.
2024-09-07 01:43:21 +09:00
// export const EVENT_FILE_CHANGED = "file-changed";
declare global {
interface LSEvents {
[EVENT_PLUGIN_LOADED]: undefined;
[EVENT_PLUGIN_UNLOADED]: undefined;
[EVENT_REQUEST_OPEN_PLUGIN_SYNC_DIALOG]: undefined;
[EVENT_REQUEST_OPEN_SETTINGS]: undefined;
[EVENT_REQUEST_OPEN_SETTING_WIZARD]: undefined;
[EVENT_REQUEST_RELOAD_SETTING_TAB]: undefined;
[EVENT_LEAF_ACTIVE_CHANGED]: undefined;
[EVENT_REQUEST_CLOSE_P2P]: undefined;
[EVENT_REQUEST_OPEN_P2P]: undefined;
[EVENT_REQUEST_OPEN_SETUP_URI]: undefined;
[EVENT_REQUEST_COPY_SETUP_URI]: undefined;
[EVENT_REQUEST_SHOW_SETUP_QR]: undefined;
[EVENT_REQUEST_RUN_DOCTOR]: string;
[EVENT_REQUEST_RUN_FIX_INCOMPLETE]: undefined;
[EVENT_ANALYSE_DB_USAGE]: undefined;
[EVENT_REQUEST_PERFORM_GC_V3]: undefined;
}
}
- 0.23.21: - New Features: - Case-insensitive file handling - Files can now be handled case-insensitively. - This behaviour can be modified in the settings under `Handle files as Case-Sensitive` (Default: Prompt, Enabled for previous behaviour). - Improved chunk revision fixing - Revisions for chunks can now be fixed for faster chunk creation. - This can be adjusted in the settings under `Compute revisions for chunks` (Default: Prompt, Enabled for previous behaviour). - Bulk chunk transfer - Chunks can now be transferred in bulk during uploads. - This feature is enabled by default through `Send chunks in bulk`. - Creation of missing chunks without - Missing chunks can be created without storing notes, enhancing efficiency for first synchronisation or after prolonged periods without synchronisation. - Improvements: - File status scanning on the startup - Quite significant performance improvements. - No more missing scans of some files. - Status in editor enhancements - Significant performance improvements in the status display within the editor. - Notifications for files that will not be synchronised will now be properly communicated. - Encryption and Decryption - These processes are now performed in background threads to ensure fast and stable transfers. - Verify and repair all files - Got faster through parallel checking. - Migration on update - Migration messages and wizards have become more helpful. - Behavioural changes: - Chunk size adjustments - Large chunks will no longer be created for older, stable files, addressing storage consumption issues. - Flag file automation - Confirmation will be shown and we can cancel it. - Fixed: - Database File Scanning - All files in the database will now be enumerated correctly. - Miscellaneous - Dependency updated. - Now, tree shaking is left to terser, from esbuild.
2024-09-07 01:43:21 +09:00
export * from "../lib/src/events/coreEvents.ts";
- 0.23.21: - New Features: - Case-insensitive file handling - Files can now be handled case-insensitively. - This behaviour can be modified in the settings under `Handle files as Case-Sensitive` (Default: Prompt, Enabled for previous behaviour). - Improved chunk revision fixing - Revisions for chunks can now be fixed for faster chunk creation. - This can be adjusted in the settings under `Compute revisions for chunks` (Default: Prompt, Enabled for previous behaviour). - Bulk chunk transfer - Chunks can now be transferred in bulk during uploads. - This feature is enabled by default through `Send chunks in bulk`. - Creation of missing chunks without - Missing chunks can be created without storing notes, enhancing efficiency for first synchronisation or after prolonged periods without synchronisation. - Improvements: - File status scanning on the startup - Quite significant performance improvements. - No more missing scans of some files. - Status in editor enhancements - Significant performance improvements in the status display within the editor. - Notifications for files that will not be synchronised will now be properly communicated. - Encryption and Decryption - These processes are now performed in background threads to ensure fast and stable transfers. - Verify and repair all files - Got faster through parallel checking. - Migration on update - Migration messages and wizards have become more helpful. - Behavioural changes: - Chunk size adjustments - Large chunks will no longer be created for older, stable files, addressing storage consumption issues. - Flag file automation - Confirmation will be shown and we can cancel it. - Fixed: - Database File Scanning - All files in the database will now be enumerated correctly. - Miscellaneous - Dependency updated. - Now, tree shaking is left to terser, from esbuild.
2024-09-07 01:43:21 +09:00
export { eventHub };