From ec7d6ef70735ef24198bf81c1c4bf5bf91e51414 Mon Sep 17 00:00:00 2001 From: redd-ravenn Date: Fri, 23 Aug 2024 19:23:13 +0200 Subject: [PATCH] Edit addon manifest feature and responsive enhancements - Added an "Edit Manifest" button next to existing addon management buttons - Implemented a modal popup with the following features: - In classic mode, a dynamically generated form based on the addon's manifest allows editing of: - Name - Description - Logo URL - Background URL - Catalogs (rename or delete) - In advanced mode, the raw JSON of the manifest.json file is displayed for more advanced configuration - Changes are saved only if the save button is pressed; clicking outside the modal will close it and discard any changes - Updated synchronization logic to include changes made to the manifest.json - Enhanced the responsive layout of the addon list for improved mobile experience - Fixed mobile layout distortion caused by code block command (Summary.vue) --- src/components/AddonItem.vue | 201 ++++++++++++++----- src/components/Configuration.vue | 76 +++++++- src/components/DynamicForm.vue | 321 +++++++++++++++++++++++++++++++ src/components/Summary.vue | 28 ++- 4 files changed, 569 insertions(+), 57 deletions(-) create mode 100644 src/components/DynamicForm.vue diff --git a/src/components/AddonItem.vue b/src/components/AddonItem.vue index 2d9cc85..d8ff099 100644 --- a/src/components/AddonItem.vue +++ b/src/components/AddonItem.vue @@ -1,57 +1,57 @@ diff --git a/src/components/DynamicForm.vue b/src/components/DynamicForm.vue new file mode 100644 index 0000000..f5166f8 --- /dev/null +++ b/src/components/DynamicForm.vue @@ -0,0 +1,321 @@ + + + + + diff --git a/src/components/Summary.vue b/src/components/Summary.vue index e9022b6..e7dc597 100644 --- a/src/components/Summary.vue +++ b/src/components/Summary.vue @@ -32,7 +32,9 @@
  • Open the developer console (?) and paste the follow code snippet: - JSON.parse(localStorage.getItem("profile")).auth.key +
    + JSON.parse(localStorage.getItem("profile")).auth.key +
  • Take the output value and paste it into the form below.
  • @@ -46,3 +48,27 @@ + +