From 2f0b7ca1aa6fffb55f70ee9262a3676f71505aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurij=20Podgor=C5=A1ek?= Date: Fri, 14 Jun 2024 13:45:13 +0200 Subject: [PATCH] Frontend indikator za strojni prevod --- nuxt/components/Pojem.vue | 2 +- nuxt/components/StrojniPrevod.vue | 15 +++++++++++++++ nuxt/pages/manifest/index.vue | 8 +++++++- nuxt/public/images/Strojni prevod.png | Bin 500 -> 4549 bytes nuxt/stores/pojmi.js | 4 ++-- nuxt/stores/strani.js | 2 +- 6 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 nuxt/components/StrojniPrevod.vue diff --git a/nuxt/components/Pojem.vue b/nuxt/components/Pojem.vue index 3fe0418..59e3285 100644 --- a/nuxt/components/Pojem.vue +++ b/nuxt/components/Pojem.vue @@ -69,7 +69,7 @@ onUpdated(() => {

{{ naslov }} - strojni prevod +

diff --git a/nuxt/components/StrojniPrevod.vue b/nuxt/components/StrojniPrevod.vue new file mode 100644 index 0000000..69c4138 --- /dev/null +++ b/nuxt/components/StrojniPrevod.vue @@ -0,0 +1,15 @@ + + + diff --git a/nuxt/pages/manifest/index.vue b/nuxt/pages/manifest/index.vue index f7d5a1c..d1769cf 100644 --- a/nuxt/pages/manifest/index.vue +++ b/nuxt/pages/manifest/index.vue @@ -30,7 +30,10 @@ onMounted(() => { :naslov="pojem" :to="localePath({ name: 'pojem_poglej', params: { naslov: pojem }})" class="okvir"> -

{{ pojem }}

+

+ {{ pojem }} + +

@@ -47,4 +50,7 @@ onMounted(() => { padding-right: 2rem; text-align: center; } + + .strojni-prevod { + } diff --git a/nuxt/public/images/Strojni prevod.png b/nuxt/public/images/Strojni prevod.png index de8824626d771c9ee74b9f2ff37077bb780aca4a..d5d060589648f57736a031db8e28db358e46642a 100644 GIT binary patch literal 4549 zcmeHLdsGu=77vda6+wJZ=z{JLQAA1Rkz`0lf(r>swgylT!D?kPGl5w$NtjGXz$zl@ zs%zEKwH{lnXhEzGs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nuxt/stores/pojmi.js @@ -11,7 +11,8 @@ export const usePojmiStore = defineStore('pojmi', { id: s.id, naslov: s.title, tekst: s.body ? s.body.processed : '', - media: s.field_media + media: s.fieldMedia, + strojni_prevod: s.fieldStrojniPrevod }), 'naslov') }, @@ -28,7 +29,6 @@ export const usePojmiStore = defineStore('pojmi', { }) const resp = await req.json() - console.log('nov pojem?', resp) } } }) diff --git a/nuxt/stores/strani.js b/nuxt/stores/strani.js index 9ea411d..9b0b142 100644 --- a/nuxt/stores/strani.js +++ b/nuxt/stores/strani.js @@ -10,7 +10,7 @@ export const useStraniStore = defineStore('strani', { this.strani = await deserialize(data, s => ({ id: s.id, naslov: s.title, - tekst: s.body.processed + tekst: s.body ? s.body.processed : '' }), 'naslov') } }