diff --git a/tools/app-index.json b/tools/app-index.json index 5f6b055..39efde5 100644 --- a/tools/app-index.json +++ b/tools/app-index.json @@ -1,5 +1,30 @@ { "categories": [ + { + "id": "featured", + "experiences": [ + "zen_system", + "para_tasks_resources_meeting_notes_crm", + "integrated_library", + "meeting_notes_management", + "para_and_coder_setup" + ], + "icon": "heart" + }, + { + "id": "made-by-any", + "experiences": [ + "daily_journal", + "movie_database", + "trip_planner", + "data_vault", + "recipe_book_and_meal_planner", + "habit_tracker", + "study_hub", + "language_flashcards" + ], + "icon": "any" + }, { "id": "dashboard", "experiences": [ @@ -88,29 +113,6 @@ "experiences": [ "data_vault" ] - }, - { - "id": "featured", - "experiences": [ - "zen_system", - "para_tasks_resources_meeting_notes_crm", - "integrated_library", - "meeting_notes_management", - "para_and_coder_setup" - ] - }, - { - "id": "made-by-any", - "experiences": [ - "daily_journal", - "movie_database", - "trip_planner", - "data_vault", - "recipe_book_and_meal_planner", - "habit_tracker", - "study_hub", - "language_flashcards" - ] } ], "experiences": [ diff --git a/tools/index.json b/tools/index.json index 057debc..18e6c31 100644 --- a/tools/index.json +++ b/tools/index.json @@ -1,5 +1,22 @@ { "categories": { + "Featured": [ + "zen_system", + "para_tasks_resources_meeting_notes_crm", + "integrated_library", + "meeting_notes_management", + "para_and_coder_setup" + ], + "Made by Any": [ + "daily_journal", + "movie_database", + "trip_planner", + "data_vault", + "recipe_book_and_meal_planner", + "habit_tracker", + "study_hub", + "language_flashcards" + ], "Dashboard": [ "data_vault", "para_tasks_resources_meeting_notes_crm", @@ -49,23 +66,6 @@ "Home": [], "Other": [ "data_vault" - ], - "Featured": [ - "zen_system", - "para_tasks_resources_meeting_notes_crm", - "integrated_library", - "meeting_notes_management", - "para_and_coder_setup" - ], - "Made by Any": [ - "daily_journal", - "movie_database", - "trip_planner", - "data_vault", - "recipe_book_and_meal_planner", - "habit_tracker", - "study_hub", - "language_flashcards" ] }, "experiences": { diff --git a/tools/prepare-index.js b/tools/prepare-index.js index 34712ff..9614ddb 100644 --- a/tools/prepare-index.js +++ b/tools/prepare-index.js @@ -4,8 +4,8 @@ const featured = require("./featured.json"); const made_by_any = require("./made_by_any.json"); var categories = schema.$defs.category.enum; -categories.push("Featured"); -categories.push("Made by Any"); +categories.unshift("Made by Any"); +categories.unshift("Featured"); var index = { categories: {}, @@ -50,5 +50,8 @@ for (var i = 0; i < categories.length; i++) { appIndex.categories.push(obj); } +appIndex.categories.find((x) => x.id === "made-by-any").icon = "any"; +appIndex.categories.find((x) => x.id === "featured").icon = "heart"; + fs.writeFileSync("tools/index.json", JSON.stringify(index, null, 2)); fs.writeFileSync("tools/app-index.json", JSON.stringify(appIndex, null, 2));