Skip to content

Commit

Permalink
Add icons for Featured and Any
Browse files Browse the repository at this point in the history
  • Loading branch information
fuksman committed Feb 11, 2024
1 parent 9fac042 commit 6dfe303
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 42 deletions.
48 changes: 25 additions & 23 deletions tools/app-index.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down
34 changes: 17 additions & 17 deletions tools/index.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
7 changes: 5 additions & 2 deletions tools/prepare-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {},
Expand Down Expand Up @@ -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));

0 comments on commit 6dfe303

Please sign in to comment.