From 41bdc3346fc134116a51a30468e8a865800c33df Mon Sep 17 00:00:00 2001 From: YunYouJun Date: Sun, 15 Sep 2024 18:07:50 +0800 Subject: [PATCH] refactor: use nuxt compatiable 4 folder --- app.vue => app/app.vue | 0 {components => app/components}/BaseFooter.vue | 0 .../components}/BasketButton.vue | 0 {components => app/components}/ChooseFood.vue | 0 .../components}/CommonHeader.vue | 0 {components => app/components}/Counter.vue | 0 {components => app/components}/FAQItem.vue | 0 .../components}/FeedbackActions.vue | 0 {components => app/components}/README.md | 0 .../components}/RandomRecipe.vue | 0 .../components}/RecipePanel.vue | 0 .../components}/RecipePanelTitle.vue | 0 .../components}/SearchFoodInput.vue | 0 {components => app/components}/Switch.vue | 0 .../components}/TheBottomMenu.vue | 0 {components => app/components}/ToggleMode.vue | 0 .../components}/common/BackBtn.vue | 0 .../components}/common/DarkToggle.vue | 0 .../components}/common/SearchRecipe.vue | 2 +- .../components}/content/AboutMe.vue | 0 .../components}/content/AboutMenu.vue | 0 .../components}/cookbook/CookbookCard.vue | 0 .../components}/cookbook/CookbookDetail.vue | 0 .../components}/cookbook/NewCookbookCard.vue | 0 .../components}/features/InstallPwa.vue | 0 .../components}/features/ReloadPrompt.vue | 0 .../components}/layout/CurrentVersion.vue | 2 +- .../components}/layout/SimpleCopyright.vue | 0 .../components}/recipe/RecipeTable.vue | 0 .../components}/recipe/RecipeTableItem.vue | 0 .../components}/tags/DishTag.vue | 0 .../components}/tags/MeatTag.vue | 0 .../components}/tags/StapleTag.vue | 0 .../components}/tags/ToolTag.vue | 0 .../components}/tags/VegetableTag.vue | 0 .../components}/ylf/YlfForm.vue | 0 .../components}/ylf/YlfFormItem.vue | 0 .../components}/ylf/YlfIconButton.vue | 0 .../components}/ylf/YlfIconItem.vue | 0 .../components}/ylf/YlfSwitch.vue | 0 {composables => app/composables}/animation.ts | 0 {composables => app/composables}/count.ts | 0 {composables => app/composables}/db.ts | 0 {composables => app/composables}/helper.ts | 0 {composables => app/composables}/index.ts | 0 {composables => app/composables}/recipe.ts | 0 {composables => app/composables}/store/app.ts | 0 .../composables}/store/history.ts | 0 .../composables}/store/index.ts | 0 .../composables}/store/recipe.ts | 0 .../composables}/store/user.ts | 0 {config => app/config}/index.ts | 0 {config => app/config}/pwa.ts | 0 {constants => app/constants}/index.ts | 0 {constants => app/constants}/links.ts | 0 {data => app/data}/README.md | 0 {data => app/data}/food.ts | 0 {data => app/data}/recipe.csv | 1200 ++--- app/data/recipe.json | 1 + {layouts => app/layouts}/README.md | 0 {layouts => app/layouts}/child.vue | 0 {layouts => app/layouts}/default.vue | 2 +- {pages => app/pages}/404.vue | 0 {pages => app/pages}/about.vue | 0 {pages => app/pages}/cookbooks/index.vue | 0 {pages => app/pages}/cookbooks/new.vue | 0 {pages => app/pages}/help.vue | 0 {pages => app/pages}/index.vue | 0 {pages => app/pages}/random.vue | 0 {pages => app/pages}/recipes/collect.vue | 0 {pages => app/pages}/recipes/history.vue | 0 {pages => app/pages}/recipes/index.vue | 0 {pages => app/pages}/recipes/new.vue | 0 {pages => app/pages}/settings.vue | 0 {pages => app/pages}/user.vue | 0 {styles => app/styles}/animation.scss | 0 {styles => app/styles}/css-vars.scss | 0 {styles => app/styles}/index.scss | 0 {styles => app/styles}/markdown.scss | 0 {types => app/types}/cookbook.ts | 0 {types => app/types}/index.ts | 0 {types => app/types}/recipe.ts | 0 {utils => app/utils}/cookbook.ts | 0 {utils => app/utils}/db.ts | 0 {utils => app/utils}/index.ts | 0 {utils => app/utils}/pwa.ts | 0 {utils => app/utils}/random.ts | 0 {utils => app/utils}/settings.ts | 0 nuxt.config.ts | 24 +- package.json | 58 +- pnpm-lock.yaml | 3925 ++++++++--------- pnpm-workspace.yaml | 2 + scripts/config.ts | 11 + scripts/convert.ts | 14 +- scripts/package.json | 7 + uno.config.ts | 2 +- 96 files changed, 2577 insertions(+), 2673 deletions(-) rename app.vue => app/app.vue (100%) rename {components => app/components}/BaseFooter.vue (100%) rename {components => app/components}/BasketButton.vue (100%) rename {components => app/components}/ChooseFood.vue (100%) rename {components => app/components}/CommonHeader.vue (100%) rename {components => app/components}/Counter.vue (100%) rename {components => app/components}/FAQItem.vue (100%) rename {components => app/components}/FeedbackActions.vue (100%) rename {components => app/components}/README.md (100%) rename {components => app/components}/RandomRecipe.vue (100%) rename {components => app/components}/RecipePanel.vue (100%) rename {components => app/components}/RecipePanelTitle.vue (100%) rename {components => app/components}/SearchFoodInput.vue (100%) rename {components => app/components}/Switch.vue (100%) rename {components => app/components}/TheBottomMenu.vue (100%) rename {components => app/components}/ToggleMode.vue (100%) rename {components => app/components}/common/BackBtn.vue (100%) rename {components => app/components}/common/DarkToggle.vue (100%) rename {components => app/components}/common/SearchRecipe.vue (99%) rename {components => app/components}/content/AboutMe.vue (100%) rename {components => app/components}/content/AboutMenu.vue (100%) rename {components => app/components}/cookbook/CookbookCard.vue (100%) rename {components => app/components}/cookbook/CookbookDetail.vue (100%) rename {components => app/components}/cookbook/NewCookbookCard.vue (100%) rename {components => app/components}/features/InstallPwa.vue (100%) rename {components => app/components}/features/ReloadPrompt.vue (100%) rename {components => app/components}/layout/CurrentVersion.vue (94%) rename {components => app/components}/layout/SimpleCopyright.vue (100%) rename {components => app/components}/recipe/RecipeTable.vue (100%) rename {components => app/components}/recipe/RecipeTableItem.vue (100%) rename {components => app/components}/tags/DishTag.vue (100%) rename {components => app/components}/tags/MeatTag.vue (100%) rename {components => app/components}/tags/StapleTag.vue (100%) rename {components => app/components}/tags/ToolTag.vue (100%) rename {components => app/components}/tags/VegetableTag.vue (100%) rename {components => app/components}/ylf/YlfForm.vue (100%) rename {components => app/components}/ylf/YlfFormItem.vue (100%) rename {components => app/components}/ylf/YlfIconButton.vue (100%) rename {components => app/components}/ylf/YlfIconItem.vue (100%) rename {components => app/components}/ylf/YlfSwitch.vue (100%) rename {composables => app/composables}/animation.ts (100%) rename {composables => app/composables}/count.ts (100%) rename {composables => app/composables}/db.ts (100%) rename {composables => app/composables}/helper.ts (100%) rename {composables => app/composables}/index.ts (100%) rename {composables => app/composables}/recipe.ts (100%) rename {composables => app/composables}/store/app.ts (100%) rename {composables => app/composables}/store/history.ts (100%) rename {composables => app/composables}/store/index.ts (100%) rename {composables => app/composables}/store/recipe.ts (100%) rename {composables => app/composables}/store/user.ts (100%) rename {config => app/config}/index.ts (100%) rename {config => app/config}/pwa.ts (100%) rename {constants => app/constants}/index.ts (100%) rename {constants => app/constants}/links.ts (100%) rename {data => app/data}/README.md (100%) rename {data => app/data}/food.ts (100%) rename {data => app/data}/recipe.csv (98%) create mode 100644 app/data/recipe.json rename {layouts => app/layouts}/README.md (100%) rename {layouts => app/layouts}/child.vue (100%) rename {layouts => app/layouts}/default.vue (84%) rename {pages => app/pages}/404.vue (100%) rename {pages => app/pages}/about.vue (100%) rename {pages => app/pages}/cookbooks/index.vue (100%) rename {pages => app/pages}/cookbooks/new.vue (100%) rename {pages => app/pages}/help.vue (100%) rename {pages => app/pages}/index.vue (100%) rename {pages => app/pages}/random.vue (100%) rename {pages => app/pages}/recipes/collect.vue (100%) rename {pages => app/pages}/recipes/history.vue (100%) rename {pages => app/pages}/recipes/index.vue (100%) rename {pages => app/pages}/recipes/new.vue (100%) rename {pages => app/pages}/settings.vue (100%) rename {pages => app/pages}/user.vue (100%) rename {styles => app/styles}/animation.scss (100%) rename {styles => app/styles}/css-vars.scss (100%) rename {styles => app/styles}/index.scss (100%) rename {styles => app/styles}/markdown.scss (100%) rename {types => app/types}/cookbook.ts (100%) rename {types => app/types}/index.ts (100%) rename {types => app/types}/recipe.ts (100%) rename {utils => app/utils}/cookbook.ts (100%) rename {utils => app/utils}/db.ts (100%) rename {utils => app/utils}/index.ts (100%) rename {utils => app/utils}/pwa.ts (100%) rename {utils => app/utils}/random.ts (100%) rename {utils => app/utils}/settings.ts (100%) create mode 100644 pnpm-workspace.yaml create mode 100644 scripts/config.ts create mode 100644 scripts/package.json diff --git a/app.vue b/app/app.vue similarity index 100% rename from app.vue rename to app/app.vue diff --git a/components/BaseFooter.vue b/app/components/BaseFooter.vue similarity index 100% rename from components/BaseFooter.vue rename to app/components/BaseFooter.vue diff --git a/components/BasketButton.vue b/app/components/BasketButton.vue similarity index 100% rename from components/BasketButton.vue rename to app/components/BasketButton.vue diff --git a/components/ChooseFood.vue b/app/components/ChooseFood.vue similarity index 100% rename from components/ChooseFood.vue rename to app/components/ChooseFood.vue diff --git a/components/CommonHeader.vue b/app/components/CommonHeader.vue similarity index 100% rename from components/CommonHeader.vue rename to app/components/CommonHeader.vue diff --git a/components/Counter.vue b/app/components/Counter.vue similarity index 100% rename from components/Counter.vue rename to app/components/Counter.vue diff --git a/components/FAQItem.vue b/app/components/FAQItem.vue similarity index 100% rename from components/FAQItem.vue rename to app/components/FAQItem.vue diff --git a/components/FeedbackActions.vue b/app/components/FeedbackActions.vue similarity index 100% rename from components/FeedbackActions.vue rename to app/components/FeedbackActions.vue diff --git a/components/README.md b/app/components/README.md similarity index 100% rename from components/README.md rename to app/components/README.md diff --git a/components/RandomRecipe.vue b/app/components/RandomRecipe.vue similarity index 100% rename from components/RandomRecipe.vue rename to app/components/RandomRecipe.vue diff --git a/components/RecipePanel.vue b/app/components/RecipePanel.vue similarity index 100% rename from components/RecipePanel.vue rename to app/components/RecipePanel.vue diff --git a/components/RecipePanelTitle.vue b/app/components/RecipePanelTitle.vue similarity index 100% rename from components/RecipePanelTitle.vue rename to app/components/RecipePanelTitle.vue diff --git a/components/SearchFoodInput.vue b/app/components/SearchFoodInput.vue similarity index 100% rename from components/SearchFoodInput.vue rename to app/components/SearchFoodInput.vue diff --git a/components/Switch.vue b/app/components/Switch.vue similarity index 100% rename from components/Switch.vue rename to app/components/Switch.vue diff --git a/components/TheBottomMenu.vue b/app/components/TheBottomMenu.vue similarity index 100% rename from components/TheBottomMenu.vue rename to app/components/TheBottomMenu.vue diff --git a/components/ToggleMode.vue b/app/components/ToggleMode.vue similarity index 100% rename from components/ToggleMode.vue rename to app/components/ToggleMode.vue diff --git a/components/common/BackBtn.vue b/app/components/common/BackBtn.vue similarity index 100% rename from components/common/BackBtn.vue rename to app/components/common/BackBtn.vue diff --git a/components/common/DarkToggle.vue b/app/components/common/DarkToggle.vue similarity index 100% rename from components/common/DarkToggle.vue rename to app/components/common/DarkToggle.vue diff --git a/components/common/SearchRecipe.vue b/app/components/common/SearchRecipe.vue similarity index 99% rename from components/common/SearchRecipe.vue rename to app/components/common/SearchRecipe.vue index aefcb3d..5ca7136 100644 --- a/components/common/SearchRecipe.vue +++ b/app/components/common/SearchRecipe.vue @@ -25,7 +25,7 @@ const filteredRecipes = computedAsync(async () => {