From ae6ce0426bb4999c63500bf7f111991603a412fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurij=20Podgor=C5=A1ek?= Date: Thu, 11 Jul 2024 11:46:20 +0200 Subject: [PATCH 01/10] Premik yufu data --- web/modules/{ => custom}/yufu_data/content/homepage.content.yml | 0 .../{ => custom}/yufu_data/content/jadran_potem.content.yml | 0 web/modules/{ => custom}/yufu_data/content/juga_2023.content.yml | 0 web/modules/{ => custom}/yufu_data/content/meni.content.yml | 0 web/modules/{ => custom}/yufu_data/content/onas.content.yml | 0 .../yufu_data/content/yugofuturist_manifesto.content.yml | 0 web/modules/{ => custom}/yufu_data/yufu_data.info.yml | 0 7 files changed, 0 insertions(+), 0 deletions(-) rename web/modules/{ => custom}/yufu_data/content/homepage.content.yml (100%) rename web/modules/{ => custom}/yufu_data/content/jadran_potem.content.yml (100%) rename web/modules/{ => custom}/yufu_data/content/juga_2023.content.yml (100%) rename web/modules/{ => custom}/yufu_data/content/meni.content.yml (100%) rename web/modules/{ => custom}/yufu_data/content/onas.content.yml (100%) rename web/modules/{ => custom}/yufu_data/content/yugofuturist_manifesto.content.yml (100%) rename web/modules/{ => custom}/yufu_data/yufu_data.info.yml (100%) diff --git a/web/modules/yufu_data/content/homepage.content.yml b/web/modules/custom/yufu_data/content/homepage.content.yml similarity index 100% rename from web/modules/yufu_data/content/homepage.content.yml rename to web/modules/custom/yufu_data/content/homepage.content.yml diff --git a/web/modules/yufu_data/content/jadran_potem.content.yml b/web/modules/custom/yufu_data/content/jadran_potem.content.yml similarity index 100% rename from web/modules/yufu_data/content/jadran_potem.content.yml rename to web/modules/custom/yufu_data/content/jadran_potem.content.yml diff --git a/web/modules/yufu_data/content/juga_2023.content.yml b/web/modules/custom/yufu_data/content/juga_2023.content.yml similarity index 100% rename from web/modules/yufu_data/content/juga_2023.content.yml rename to web/modules/custom/yufu_data/content/juga_2023.content.yml diff --git a/web/modules/yufu_data/content/meni.content.yml b/web/modules/custom/yufu_data/content/meni.content.yml similarity index 100% rename from web/modules/yufu_data/content/meni.content.yml rename to web/modules/custom/yufu_data/content/meni.content.yml diff --git a/web/modules/yufu_data/content/onas.content.yml b/web/modules/custom/yufu_data/content/onas.content.yml similarity index 100% rename from web/modules/yufu_data/content/onas.content.yml rename to web/modules/custom/yufu_data/content/onas.content.yml diff --git a/web/modules/yufu_data/content/yugofuturist_manifesto.content.yml b/web/modules/custom/yufu_data/content/yugofuturist_manifesto.content.yml similarity index 100% rename from web/modules/yufu_data/content/yugofuturist_manifesto.content.yml rename to web/modules/custom/yufu_data/content/yugofuturist_manifesto.content.yml diff --git a/web/modules/yufu_data/yufu_data.info.yml b/web/modules/custom/yufu_data/yufu_data.info.yml similarity index 100% rename from web/modules/yufu_data/yufu_data.info.yml rename to web/modules/custom/yufu_data/yufu_data.info.yml -- 2.30.2 From 6b4cd9d7848d04a73f03341181e979c6881a1ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurij=20Podgor=C5=A1ek?= Date: Thu, 11 Jul 2024 11:47:49 +0200 Subject: [PATCH 02/10] URL do pojma preko guid namesto naslova --- nuxt/components/Pojem.vue | 8 ++++---- nuxt/nuxt.config.js | 4 ++-- nuxt/pages/manifest/index.vue | 13 ++++++------- nuxt/pages/manifest/pojem.vue | 4 ++-- nuxt/stores/pojmi.js | 4 ++-- 5 files changed, 16 insertions(+), 17 deletions(-) diff --git a/nuxt/components/Pojem.vue b/nuxt/components/Pojem.vue index 59e3285..5f66d39 100644 --- a/nuxt/components/Pojem.vue +++ b/nuxt/components/Pojem.vue @@ -12,10 +12,10 @@ const route = useRoute() const { izbraniJezik } = storeToRefs(nastavitveStore) const props = defineProps({ - naslov: String + pojemid: String }) -if (props.naslov && !(props.naslov in store.pojmi)) { +if (props.pojemid && !(props.pojemid in store.pojmi)) { await store.naloziPojme(izbraniJezik.value) } @@ -23,7 +23,7 @@ watch(izbraniJezik, jezik => { store.naloziPojme(jezik) }) -const pojem = computed(() => store.pojmi[props.naslov]) +const pojem = computed(() => store.pojmi[props.pojemid]) const revisionId = computed(() => pojem.value ? pojem.value.id : null) const urejanje = ref(false) @@ -68,7 +68,7 @@ onUpdated(() => {
{{ $t('Uredi')}}

- {{ naslov }} + {{ pojem.naslov }}

diff --git a/nuxt/nuxt.config.js b/nuxt/nuxt.config.js index 2da3fc2..fd0925a 100644 --- a/nuxt/nuxt.config.js +++ b/nuxt/nuxt.config.js @@ -27,11 +27,11 @@ export default defineNuxtConfig({ 'pages:extend' (pages) { pages.push({ name: 'pojem_poglej', - path: '/manifest/:naslov', + path: '/manifest/:pojemid', file: '~/pages/manifest/pojem.vue' }, { name: 'pojem_uredi', - path: '/manifest/:naslov/uredi/:guid', + path: '/manifest/:pojemid/uredi/:guid', file: '~/pages/manifest/pojem.vue' }, { name: 'pojem_dodaj', diff --git a/nuxt/pages/manifest/index.vue b/nuxt/pages/manifest/index.vue index d1769cf..beea113 100644 --- a/nuxt/pages/manifest/index.vue +++ b/nuxt/pages/manifest/index.vue @@ -4,7 +4,6 @@ const store = usePojmiStore() const nastavitveStore = useNastavitveStore() const { poskrolaj } = useUi() -const { getRandomUUID } = useCrypto() const { izbraniJezik } = storeToRefs(nastavitveStore) @@ -22,17 +21,17 @@ onMounted(() => { diff --git a/nuxt/pages/manifest/pojem.vue b/nuxt/pages/manifest/pojem.vue index 52fa552..072b740 100644 --- a/nuxt/pages/manifest/pojem.vue +++ b/nuxt/pages/manifest/pojem.vue @@ -1,13 +1,13 @@