mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:13:32 -04:00 
			
		
		
		
	cleanup todos
This commit is contained in:
		| @@ -1,15 +1,5 @@ | |||||||
| // TODO: Fix date/time Localization |  | ||||||
|  |  | ||||||
| <template> | <template> | ||||||
|   <div> |   <div> | ||||||
|     <!-- <BaseDialog |  | ||||||
|       ref="deleteEventConfirm" |  | ||||||
|       :title="$t('events.delete-event')" |  | ||||||
|       :message="$t('general.confirm-delete-generic')" |  | ||||||
|       color="error" |  | ||||||
|       :icon="$globals.icons.alertCircle" |  | ||||||
|       @confirm="emitDelete()" |  | ||||||
|     /> --> |  | ||||||
|     <BaseStatCard :icon="$globals.icons.bellAlert" :color="color"> |     <BaseStatCard :icon="$globals.icons.bellAlert" :color="color"> | ||||||
|       <template #after-heading> |       <template #after-heading> | ||||||
|         <div class="ml-auto text-right"> |         <div class="ml-auto text-right"> | ||||||
|   | |||||||
| @@ -1,5 +1,3 @@ | |||||||
| // TODO: Fix composition API "Should only be called once" error |  | ||||||
|  |  | ||||||
| export default { | export default { | ||||||
|   // Global page headers: https://go.nuxtjs.dev/config-head |   // Global page headers: https://go.nuxtjs.dev/config-head | ||||||
|   head: { |   head: { | ||||||
| @@ -47,6 +45,8 @@ export default { | |||||||
|     "@nuxtjs/composition-api/module", |     "@nuxtjs/composition-api/module", | ||||||
|     // https://vite.nuxtjs.org/getting-started/installation |     // https://vite.nuxtjs.org/getting-started/installation | ||||||
|     "nuxt-vite", |     "nuxt-vite", | ||||||
|  |     // https://github.com/antfu/vue2-script-setup-transform | ||||||
|  |     "vue2-script-setup-transform/nuxt", | ||||||
|   ], |   ], | ||||||
|  |  | ||||||
|   // Modules: https://go.nuxtjs.dev/config-modules |   // Modules: https://go.nuxtjs.dev/config-modules | ||||||
|   | |||||||
| @@ -44,7 +44,8 @@ | |||||||
|     "eslint-plugin-vue": "^7.12.1", |     "eslint-plugin-vue": "^7.12.1", | ||||||
|     "lint-staged": "^10.5.4", |     "lint-staged": "^10.5.4", | ||||||
|     "nuxt-vite": "^0.1.1", |     "nuxt-vite": "^0.1.1", | ||||||
|     "prettier": "^2.3.2" |     "prettier": "^2.3.2", | ||||||
|  |     "vue2-script-setup-transform": "^0.2.0" | ||||||
|   }, |   }, | ||||||
|   "resolutions": { |   "resolutions": { | ||||||
|     "vite": "2.3.8" |     "vite": "2.3.8" | ||||||
|   | |||||||
| @@ -1,6 +1,4 @@ | |||||||
| // TODO: Add Loading Indicator...Maybe? |  | ||||||
| // TODO: Edit Group | // TODO: Edit Group | ||||||
| // TODO: Migrate all stuff to setup() |  | ||||||
| <template> | <template> | ||||||
|   <v-container fluid> |   <v-container fluid> | ||||||
|     <BaseCardSectionTitle title="Group Management"> </BaseCardSectionTitle> |     <BaseCardSectionTitle title="Group Management"> </BaseCardSectionTitle> | ||||||
| @@ -69,33 +67,30 @@ | |||||||
| </template> | </template> | ||||||
|  |  | ||||||
| <script lang="ts"> | <script lang="ts"> | ||||||
| import { defineComponent } from "@nuxtjs/composition-api"; | import { defineComponent, reactive, toRefs, useContext } from "@nuxtjs/composition-api"; | ||||||
| import { fieldTypes } from "~/composables/forms"; | import { fieldTypes } from "~/composables/forms"; | ||||||
| import { useApiSingleton } from "~/composables/use-api"; |  | ||||||
| import { useGroups } from "~/composables/use-groups"; | import { useGroups } from "~/composables/use-groups"; | ||||||
|  |  | ||||||
| export default defineComponent({ | export default defineComponent({ | ||||||
|   layout: "admin", |   layout: "admin", | ||||||
|   setup() { |   setup() { | ||||||
|     const api = useApiSingleton(); |     const { i18n } = useContext(); | ||||||
|     const { groups, refreshAllGroups, deleteGroup, createGroup } = useGroups(); |     const { groups, refreshAllGroups, deleteGroup, createGroup } = useGroups(); | ||||||
|     return { api, groups, refreshAllGroups, deleteGroup, createGroup }; |  | ||||||
|   }, |     const state = reactive({ | ||||||
|   data() { |  | ||||||
|     return { |  | ||||||
|       search: "", |       search: "", | ||||||
|       headers: [ |       headers: [ | ||||||
|         { |         { | ||||||
|           text: this.$t("group.group"), |           text: i18n.t("group.group"), | ||||||
|           align: "start", |           align: "start", | ||||||
|           sortable: false, |           sortable: false, | ||||||
|           value: "id", |           value: "id", | ||||||
|         }, |         }, | ||||||
|         { text: this.$t("general.name"), value: "name" }, |         { text: i18n.t("general.name"), value: "name" }, | ||||||
|         { text: this.$t("user.total-users"), value: "users" }, |         { text: i18n.t("user.total-users"), value: "users" }, | ||||||
|         { text: this.$t("user.webhooks-enabled"), value: "webhookEnable" }, |         { text: i18n.t("user.webhooks-enabled"), value: "webhookEnable" }, | ||||||
|         { text: this.$t("user.total-mealplans"), value: "mealplans" }, |         { text: i18n.t("user.total-mealplans"), value: "mealplans" }, | ||||||
|         { text: this.$t("shopping-list.shopping-lists"), value: "shoppingLists" }, |         { text: i18n.t("shopping-list.shopping-lists"), value: "shoppingLists" }, | ||||||
|         { value: "actions" }, |         { value: "actions" }, | ||||||
|       ], |       ], | ||||||
|       updateMode: false, |       updateMode: false, | ||||||
| @@ -112,7 +107,9 @@ export default defineComponent({ | |||||||
|           name: "", |           name: "", | ||||||
|         }, |         }, | ||||||
|       }, |       }, | ||||||
|     }; |     }); | ||||||
|  |  | ||||||
|  |     return { ...toRefs(state), groups, refreshAllGroups, deleteGroup, createGroup }; | ||||||
|   }, |   }, | ||||||
| }); | }); | ||||||
| </script> | </script> | ||||||
|   | |||||||
| @@ -37,7 +37,7 @@ | |||||||
|   resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.15.0.tgz#2dbaf8b85334796cafbb0f5793a90a2fc010b176" |   resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.15.0.tgz#2dbaf8b85334796cafbb0f5793a90a2fc010b176" | ||||||
|   integrity sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA== |   integrity sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA== | ||||||
|  |  | ||||||
| "@babel/core@^7.11.6", "@babel/core@^7.12.16", "@babel/core@^7.14.0": | "@babel/core@^7.11.6", "@babel/core@^7.12.16", "@babel/core@^7.14.0", "@babel/core@^7.15.0": | ||||||
|   version "7.15.0" |   version "7.15.0" | ||||||
|   resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.15.0.tgz#749e57c68778b73ad8082775561f67f5196aafa8" |   resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.15.0.tgz#749e57c68778b73ad8082775561f67f5196aafa8" | ||||||
|   integrity sha512-tXtmTminrze5HEUPn/a0JtOzzfp0nk+UEXQ/tqIJo3WDGypl/2OFQEMll/zSFU8f/lfmfLXvTaORHF3cfXIQMw== |   integrity sha512-tXtmTminrze5HEUPn/a0JtOzzfp0nk+UEXQ/tqIJo3WDGypl/2OFQEMll/zSFU8f/lfmfLXvTaORHF3cfXIQMw== | ||||||
| @@ -288,6 +288,11 @@ | |||||||
|   resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.2.tgz#08d4ffcf90d211bf77e7cc7154c6f02d468d2b1d" |   resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.2.tgz#08d4ffcf90d211bf77e7cc7154c6f02d468d2b1d" | ||||||
|   integrity sha512-bMJXql1Ss8lFnvr11TZDH4ArtwlAS5NG9qBmdiFW2UHHm6MVoR+GDc5XE2b9K938cyjc9O6/+vjjcffLDtfuDg== |   integrity sha512-bMJXql1Ss8lFnvr11TZDH4ArtwlAS5NG9qBmdiFW2UHHm6MVoR+GDc5XE2b9K938cyjc9O6/+vjjcffLDtfuDg== | ||||||
|  |  | ||||||
|  | "@babel/parser@^7.15.3": | ||||||
|  |   version "7.15.3" | ||||||
|  |   resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.3.tgz#3416d9bea748052cfcb63dbcc27368105b1ed862" | ||||||
|  |   integrity sha512-O0L6v/HvqbdJawj0iBEfVQMc3/6WP+AeOsovsIgBFyJaG+W2w7eqvZB7puddATmWuARlm1SX7DwxJ/JJUnDpEA== | ||||||
|  |  | ||||||
| "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.14.5": | "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.14.5": | ||||||
|   version "7.14.5" |   version "7.14.5" | ||||||
|   resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.14.5.tgz#4b467302e1548ed3b1be43beae2cc9cf45e0bb7e" |   resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.14.5.tgz#4b467302e1548ed3b1be43beae2cc9cf45e0bb7e" | ||||||
| @@ -2049,6 +2054,11 @@ | |||||||
|   dependencies: |   dependencies: | ||||||
|     tslib "^2.3.0" |     tslib "^2.3.0" | ||||||
|  |  | ||||||
|  | "@vue/shared@^3.2.4": | ||||||
|  |   version "3.2.4" | ||||||
|  |   resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.4.tgz#ba2a09527afff27b28d08f921b4a597e9504ca7a" | ||||||
|  |   integrity sha512-j2j1MRmjalVKr3YBTxl/BClSIc8UQ8NnPpLYclxerK65JIowI4O7n8O8lElveEtEoHxy1d7BelPUDI0Q4bumqg== | ||||||
|  |  | ||||||
| "@vueuse/core@^5.2.0": | "@vueuse/core@^5.2.0": | ||||||
|   version "5.2.0" |   version "5.2.0" | ||||||
|   resolved "https://registry.yarnpkg.com/@vueuse/core/-/core-5.2.0.tgz#c2c0b89d9506fdfca41cd3056e38478226bc5e31" |   resolved "https://registry.yarnpkg.com/@vueuse/core/-/core-5.2.0.tgz#c2c0b89d9506fdfca41cd3056e38478226bc5e31" | ||||||
| @@ -10019,6 +10029,13 @@ unpipe@1.0.0, unpipe@~1.0.0: | |||||||
|   resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" |   resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" | ||||||
|   integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= |   integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= | ||||||
|  |  | ||||||
|  | unplugin@^0.0.6: | ||||||
|  |   version "0.0.6" | ||||||
|  |   resolved "https://registry.yarnpkg.com/unplugin/-/unplugin-0.0.6.tgz#f5b07162b3e2de66e7553fe72079241ae375d1bb" | ||||||
|  |   integrity sha512-ZqRcCVRS5/cmYwx36ms/jJ0CLXMIjxjvk4iU2ahzn81kO0dzex9t8YzjM9IuH8vyqXTSLLBnoNm+mz5Gt5aI/g== | ||||||
|  |   dependencies: | ||||||
|  |     webpack-virtual-modules "^0.4.3" | ||||||
|  |  | ||||||
| unquote@~1.1.1: | unquote@~1.1.1: | ||||||
|   version "1.1.1" |   version "1.1.1" | ||||||
|   resolved "https://registry.yarnpkg.com/unquote/-/unquote-1.1.1.tgz#8fded7324ec6e88a0ff8b905e7c098cdc086d544" |   resolved "https://registry.yarnpkg.com/unquote/-/unquote-1.1.1.tgz#8fded7324ec6e88a0ff8b905e7c098cdc086d544" | ||||||
| @@ -10296,6 +10313,21 @@ vue-template-es2015-compiler@^1.9.0, vue-template-es2015-compiler@^1.9.1: | |||||||
|   resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825" |   resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825" | ||||||
|   integrity sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw== |   integrity sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw== | ||||||
|  |  | ||||||
|  | vue2-script-setup-transform@^0.2.0: | ||||||
|  |   version "0.2.0" | ||||||
|  |   resolved "https://registry.yarnpkg.com/vue2-script-setup-transform/-/vue2-script-setup-transform-0.2.0.tgz#5c4de063bf07cd5286103578bb483b483ae6a621" | ||||||
|  |   integrity sha512-2EMUIqJP3LyfX3ST3n8BcEtyVLPURKqIOVO0/WT6PrXH3lXlPe0X7cJ4fqv/mp4POigmH8xJtoJ0imToOLLIQQ== | ||||||
|  |   dependencies: | ||||||
|  |     "@babel/core" "^7.15.0" | ||||||
|  |     "@babel/generator" "^7.15.0" | ||||||
|  |     "@babel/parser" "^7.15.3" | ||||||
|  |     "@babel/traverse" "^7.15.0" | ||||||
|  |     "@babel/types" "^7.15.0" | ||||||
|  |     "@vue/shared" "^3.2.4" | ||||||
|  |     htmlparser2 "^6.1.0" | ||||||
|  |     magic-string "^0.25.7" | ||||||
|  |     unplugin "^0.0.6" | ||||||
|  |  | ||||||
| vue@^2.6.12: | vue@^2.6.12: | ||||||
|   version "2.6.14" |   version "2.6.14" | ||||||
|   resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.14.tgz#e51aa5250250d569a3fbad3a8a5a687d6036e235" |   resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.14.tgz#e51aa5250250d569a3fbad3a8a5a687d6036e235" | ||||||
| @@ -10400,6 +10432,11 @@ webpack-sources@^1.0.1, webpack-sources@^1.1.0, webpack-sources@^1.4.0, webpack- | |||||||
|     source-list-map "^2.0.0" |     source-list-map "^2.0.0" | ||||||
|     source-map "~0.6.1" |     source-map "~0.6.1" | ||||||
|  |  | ||||||
|  | webpack-virtual-modules@^0.4.3: | ||||||
|  |   version "0.4.3" | ||||||
|  |   resolved "https://registry.yarnpkg.com/webpack-virtual-modules/-/webpack-virtual-modules-0.4.3.tgz#cd597c6d51d5a5ecb473eea1983a58fa8a17ded9" | ||||||
|  |   integrity sha512-5NUqC2JquIL2pBAAo/VfBP6KuGkHIZQXW/lNKupLPfhViwh8wNsu0BObtl09yuKZszeEUfbXz8xhrHvSG16Nqw== | ||||||
|  |  | ||||||
| webpack@^4.46.0: | webpack@^4.46.0: | ||||||
|   version "4.46.0" |   version "4.46.0" | ||||||
|   resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.46.0.tgz#bf9b4404ea20a073605e0a011d188d77cb6ad542" |   resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.46.0.tgz#bf9b4404ea20a073605e0a011d188d77cb6ad542" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user