From 284442484ad44bedea011c4cd405a8bc86f28b7f Mon Sep 17 00:00:00 2001
From: BlackStartx <26898122+BlackStartx@users.noreply.github.com>
Date: Thu, 26 Jan 2023 20:52:25 +0100
Subject: [PATCH] Add recipe page~
---
src/locales/en.json | 21 ++
src/routes/recipe/index.svelte | 469 +++++++++++++++++++++++++++++++++
2 files changed, 490 insertions(+)
create mode 100644 src/routes/recipe/index.svelte
diff --git a/src/locales/en.json b/src/locales/en.json
index 21d7ed60..cb5a6ed1 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -1000,6 +1000,27 @@
"radiantSpincrystal": {
"title": "Radiant Spincrystals"
},
+ "recipe": {
+ "title": "Recipe",
+ "of": "of",
+ "fastEdit": "Enable this for fast editing",
+ "proficiency": "Proficiency",
+ "collected": "collected",
+ "masteredAll": "You have mastered all owned recipes",
+ "masteredLeft": "recipe can be mastered",
+ "sort": "Show not collected first",
+ "default": "Default",
+ "search": "Search recipe",
+ "missing": "Not yet obtained",
+ "version": "Version",
+ "type": "Type",
+ "searchError": "Cannot find recipe: {query}",
+ "revive": "Revive",
+ "healing": "Healing",
+ "adventurer": "Adventurer",
+ "atk-boost": "ATK-Boosting",
+ "def-boost": "DEF-Boosting"
+ },
"common": {
"dataSynced": "Data has been synced!",
"driveError": "Drive sync not available right now 😔",
diff --git a/src/routes/recipe/index.svelte b/src/routes/recipe/index.svelte
new file mode 100644
index 00000000..50e542d5
--- /dev/null
+++ b/src/routes/recipe/index.svelte
@@ -0,0 +1,469 @@
+
+
+
+
+ {obtainedRecipeCount} {$t('recipe.of')} {totalRecipe} {$t('recipe.collected')} + +
+{$t('recipe.masteredAll')}
+ {:else} +{missingMastery} {$t('recipe.masteredLeft')}
+ {/if} +{category.name}
++ {category.obtained}/{category.total} +
++ {category.missingMastery} +
+ ++ + {el.name} + + {el.ver} + + {#if el.default} + + {$t("recipe.default")} + + {/if} +
+{el.location}
+{$t("recipe.missing")}
+{$t("recipe.proficiency")}: {el.userProf}/{el.proficiency}
+