Updated bartender html and added html editor to article creation.
This commit is contained in:
@@ -29,6 +29,11 @@
|
||||
) {
|
||||
loading.value = true;
|
||||
|
||||
if (ingredients.value != null) {
|
||||
ingredients.value = ingredients.value.replace(/style="[^"]*"/g, '');
|
||||
ingredients.value = ingredients.value.replace(/<\/?p[^>]*>/g, '');
|
||||
}
|
||||
|
||||
const article: Article = new Article(0, name.value, bio.value, origin.value, description.value,
|
||||
ingredients.value, default_unit.value, [],
|
||||
mhd.value, bio_origin.value, allergens_text.value, bio_info.value, topm_id.value);
|
||||
@@ -139,10 +144,11 @@
|
||||
:clearable="true"
|
||||
/>
|
||||
|
||||
<v-textarea
|
||||
v-model.trim="ingredients"
|
||||
<VuetifyTiptap
|
||||
v-model="ingredients"
|
||||
label="Zutaten"
|
||||
:clearable="true"
|
||||
rounded
|
||||
:max-height="200"
|
||||
/>
|
||||
|
||||
<v-row>
|
||||
|
||||
@@ -276,6 +276,7 @@ export const useLabelEditorStore = defineStore('label_editor_store', {
|
||||
try {
|
||||
if (article.ingredients != null) {
|
||||
article.ingredients = article.ingredients.replace(/style="[^"]*"/g, '');
|
||||
article.ingredients = article.ingredients.replace(/<\/?p[^>]*>/g, '');
|
||||
}
|
||||
|
||||
let updatedArticle = await $fetch<Article>(this.config.public.url + '/article/' + article.id, {
|
||||
|
||||
@@ -11,7 +11,8 @@ export default defineNuxtConfig({
|
||||
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
url: process.env.URL || 'http://localhost:9091',
|
||||
//url: process.env.URL || 'http://localhost:9091',
|
||||
url: process.env.URL || 'http://192.168.10.170:9091',
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Generated
+566
-601
File diff suppressed because it is too large
Load Diff
@@ -13,7 +13,7 @@
|
||||
"@fontsource/roboto": "5.2.9",
|
||||
"@mdi/font": "7.4.47",
|
||||
"@pinia/nuxt": "0.11.3",
|
||||
"nuxt": "4.3.0",
|
||||
"nuxt": "4.3.1",
|
||||
"pinia": "3.0.4",
|
||||
"vue": "3.5.27",
|
||||
"vue-router": "5.0.2",
|
||||
|
||||
Reference in New Issue
Block a user