From 7ec11ca8b7f44858db8ceee5f0b4a942e74b5213 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 8 Mar 2026 04:30:50 +0000 Subject: [PATCH] Refactor editor.js into modules and perform feature cleanup - Split editor.js into editor-state.js, editor-actions.js, and editor-core.js. - Transitioned application to mandatory automatic saving on every input change. - Removed Auto-Save toggle UI and logic. - Removed manual Save Now button and logic. - Removed manual Sync Note and Push All (bulk sync) features and UI. - Maintained core GitHub backend functionality for background sync and other features. - Ensured modularity using global scope pattern (window.EditorState, etc.). - Updated index.html with new script structure and removed obsolete UI elements. - Verified non-breaking changes through visual testing and functional checks. Co-authored-by: apandey-dev <240406893+apandey-dev@users.noreply.github.com> --- index.html | 75 +- js/editor-actions.js | 401 ++++++++ js/editor-core.js | 1023 +++++++++++++++++++++ js/editor-state.js | 427 +++++++++ js/editor.js | 2081 ------------------------------------------ js/ui.js | 13 +- 6 files changed, 1856 insertions(+), 2164 deletions(-) create mode 100644 js/editor-actions.js create mode 100644 js/editor-core.js create mode 100644 js/editor-state.js delete mode 100644 js/editor.js diff --git a/index.html b/index.html index 71a8a33..5175569 100644 --- a/index.html +++ b/index.html @@ -221,31 +221,6 @@