From 7d84a945bcfb7019dbbcfeb8015a07cec0eb193a Mon Sep 17 00:00:00 2001 From: Rob Phillips Date: Fri, 9 Jan 2026 12:52:41 +0000 Subject: [PATCH 1/3] seperating concerns and fixes --- src/App.vue | 603 +++---------------------------- src/components/Dropdown.vue | 40 +- src/components/DropdownMenu.vue | 38 +- src/components/Editor.vue | 2 +- src/components/Folder.vue | 4 +- src/components/FolderDragger.vue | 4 +- src/components/FolderPanel.vue | 266 ++++++++++++++ src/components/Settings.vue | 317 ++++++++++++++++ src/components/Tab.vue | 6 +- src/components/TabDragger.vue | 3 +- src/composables/index.ts | 46 +++ src/interaces.ts | 20 - src/interfaces.ts | 51 +++ src/utils.ts | 5 +- 14 files changed, 770 insertions(+), 635 deletions(-) create mode 100644 src/components/FolderPanel.vue create mode 100644 src/components/Settings.vue create mode 100644 src/composables/index.ts delete mode 100644 src/interaces.ts create mode 100644 src/interfaces.ts diff --git a/src/App.vue b/src/App.vue index f942609..e8c23b8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,323 +3,32 @@
There was an error setting the rules, did you use an invalid header name
-
-
-
-

- Modbox - ModBox -

-

Folders

-
No folders
- - - - - -
- -
-

Global

-
- -
-
- {{ data.active ? "On" : "Off" }} -
-
-
- -
- -
-
-
-
-
-
- -
-
-
-

Settings

-
- -
-

Compact mode
New

-

- If you need a bit more space to work with your rules, compact mode reduces the left hand column width. -

- -
- -
-
- -
-

- Export -
New
-

-

- You can export your rules into .json packages to backup, or send - to friends/colleagues. Check the folders you want and click - export. -

- -
- -
- -
- -
-
- -
-

- Import -
New
-

-

- You can select and import modbox backup files and append them to - your current set of folders, tabs and rules. -

- -
- - -
- -
- -
- -
- {{ importError }} -
- -
- - -
-
- -
-
-

Confirm rules deletion

-
- - -
-
- -

Delete all rules

-

- If you want to totally reset all of your rules. This cannot be - undone so please use carefully. -

- -
- -
-
- -
-

About

-

- ModBox is a hobby project with the aim of providing developers and - hackers with a tool for testing and debugging. -

- - -
-
-
-
+ :data="data" + :totalActiveRules="totalActiveRules" + @toggleGlobalActive="toggleGlobalActive" + @reset="reset" + @importFolders="importFolders" + @compactChanged="saveCompact" + @activeFolderChanged="saveActiveFolder" + /> diff --git a/src/components/Dropdown.vue b/src/components/Dropdown.vue index ac66705..a163402 100644 --- a/src/components/Dropdown.vue +++ b/src/components/Dropdown.vue @@ -7,7 +7,7 @@ @@ -17,10 +17,11 @@ diff --git a/src/components/DropdownMenu.vue b/src/components/DropdownMenu.vue index 9248730..0ac6062 100644 --- a/src/components/DropdownMenu.vue +++ b/src/components/DropdownMenu.vue @@ -6,7 +6,7 @@