mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
cleanup vueform
This commit is contained in:
@@ -508,7 +508,6 @@ export default {
|
||||
} else {
|
||||
entry.from_date = target_date
|
||||
entry.to_date = moment(target_date).add(fromToDiff, 'd')
|
||||
console.log('UPDAAAATING: ', entry.fromDate, entry.toDate)
|
||||
this.saveEntry(entry)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
"@types/luxon": "^3.4.2",
|
||||
"@vueform/multiselect": "^2.6.7",
|
||||
"@vueuse/core": "^10.9.0",
|
||||
"lodash": "^4.17.21",
|
||||
"luxon": "^3.4.4",
|
||||
"mavon-editor": "^3.0.1",
|
||||
"pinia": "^2.1.7",
|
||||
|
||||
@@ -13,8 +13,6 @@ import RecipeViewPage from "@/pages/RecipeViewPage.vue";
|
||||
import luxonPlugin from "@/plugins/luxonPlugin";
|
||||
import RecipeEditPage from "@/pages/RecipeEditPage.vue";
|
||||
import MealPlanPage from "@/pages/MealPlanPage.vue";
|
||||
import Vueform from '@vueform/vueform'
|
||||
import vueform from '@/vueform'
|
||||
import SearchPage from "@/pages/SearchPage.vue";
|
||||
|
||||
const routes = [
|
||||
@@ -39,7 +37,6 @@ app.use(createPinia())
|
||||
app.use(vuetify)
|
||||
app.use(router)
|
||||
app.use(luxonPlugin)
|
||||
app.use(Vueform, vueform)
|
||||
app.use(mavonEditor) // TODO only use on pages that need it
|
||||
|
||||
app.mount('#app')
|
||||
|
||||
@@ -19,36 +19,6 @@
|
||||
</v-card>
|
||||
|
||||
|
||||
<Vueform :endpoint="false" @submit="createCookLog" class="mt-2">
|
||||
<textarea-element name="comment" label="Comment"></textarea-element>
|
||||
<text-element type="number" name="rating" label="Rating" :default="5">
|
||||
<template #addon-before>
|
||||
<v-btn-group class="rounded-0">
|
||||
|
||||
<v-btn color="secondary">-</v-btn>
|
||||
</v-btn-group>
|
||||
</template>
|
||||
<template #addon-after>
|
||||
<v-btn-group class="rounded-0">
|
||||
<v-btn color="primary">+</v-btn>
|
||||
</v-btn-group>
|
||||
</template>
|
||||
</text-element>
|
||||
<text-element type="number" name="servings" label="Servings" :default="recipe.servings">
|
||||
<template #addon-before>
|
||||
<v-btn-group class="rounded-0">
|
||||
|
||||
<v-btn color="secondary">-</v-btn>
|
||||
</v-btn-group>
|
||||
</template>
|
||||
<template #addon-after>
|
||||
<v-btn-group class="rounded-0">
|
||||
<v-btn color="primary">+</v-btn>
|
||||
</v-btn-group>
|
||||
</template>
|
||||
</text-element>
|
||||
<button-element name="submit" :submits="true" button-label="Submit"></button-element>
|
||||
</Vueform>
|
||||
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import en from '@vueform/vueform/locales/en'
|
||||
import material from '@vueform/vueform/dist/material'
|
||||
import { defineConfig } from '@vueform/vueform'
|
||||
|
||||
// You might place these anywhere else in your project
|
||||
import '@vueform/vueform/dist/material.css';
|
||||
import './assets/vueform.css'
|
||||
|
||||
export default defineConfig({
|
||||
theme: material,
|
||||
locales: { en },
|
||||
locale: 'en',
|
||||
overrideClasses: {
|
||||
ElementAddon: {
|
||||
container: 'vf-addon ps-0 pe-0',
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
@@ -744,6 +744,11 @@ jsdom@^22.1.0:
|
||||
ws "^8.13.0"
|
||||
xml-name-validator "^4.0.0"
|
||||
|
||||
lodash@^4.17.21:
|
||||
version "4.17.21"
|
||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
|
||||
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
|
||||
|
||||
lru-cache@^6.0.0:
|
||||
version "6.0.0"
|
||||
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
|
||||
@@ -1024,11 +1029,6 @@ vue-i18n@9:
|
||||
"@intlify/shared" "9.13.1"
|
||||
"@vue/devtools-api" "^6.5.0"
|
||||
|
||||
vue-multiselect@^3.0.0-beta.3:
|
||||
version "3.0.0-beta.3"
|
||||
resolved "https://registry.yarnpkg.com/vue-multiselect/-/vue-multiselect-3.0.0-beta.3.tgz#b1348238a84c435582c3f46f2a9c045b29bb976c"
|
||||
integrity sha512-P7Fx+ovVF7WMERSZ0lw6N3p4H4bnQ3NcaY3ORjzFPv0r/6lpIqvFWmK9Xnwze9mgAvmNV1foI1VWrBmjnfBTLQ==
|
||||
|
||||
vue-router@4:
|
||||
version "4.2.5"
|
||||
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.2.5.tgz#b9e3e08f1bd9ea363fdd173032620bc50cf0e98a"
|
||||
|
||||
Reference in New Issue
Block a user