diff --git a/nuxt/app.vue b/nuxt/app.vue index 245da50..30f4384 100644 --- a/nuxt/app.vue +++ b/nuxt/app.vue @@ -26,6 +26,10 @@ background: var(--siva); } + a { + color: var(--crna); + } + h1 { text-align: center; font-size: 5rem; @@ -46,7 +50,6 @@ a.gumb { text-decoration: underline; font-size: 3rem; - color: var(--crna); position: relative; display: flex; width: 100%; @@ -85,6 +88,7 @@ .navodila { padding-left: 2rem; padding-right: 2rem; + text-align: center; } footer { @@ -93,7 +97,7 @@ } - @media screen and (max-width: 325px) { + @media screen and (max-width: 420px) { .vsebina { padding-right: 0; padding-left: 0; @@ -103,7 +107,7 @@ } } - section.pojem { + .okvir { position: relative; background: var(--bela); margin: 2rem; diff --git a/nuxt/components/Glava.vue b/nuxt/components/Glava.vue index 3b5fa09..2192caf 100644 --- a/nuxt/components/Glava.vue +++ b/nuxt/components/Glava.vue @@ -2,21 +2,34 @@ const route = useRoute() const pot = computed(() => route.path) -const naManifestu = computed(() => route.path.indexOf('/pojmi') === 0) +const naManifestu = computed(() => route.path.indexOf('/manifest') === 0) diff --git a/nuxt/components/Noga.vue b/nuxt/components/Noga.vue index 6947c6b..562d48d 100644 --- a/nuxt/components/Noga.vue +++ b/nuxt/components/Noga.vue @@ -8,37 +8,40 @@ const naManifestu = computed(() => route.path.indexOf('/pojmi') === 0) diff --git a/nuxt/components/PojemForm.vue b/nuxt/components/PojemForm.vue index 551ffee..3470cd5 100644 --- a/nuxt/components/PojemForm.vue +++ b/nuxt/components/PojemForm.vue @@ -30,9 +30,9 @@ const oddajPredlog = async data => { // @TODO tole raje v pojmi.vue oz nov_pojem.vue - page! const etherNalozen = ev => { if (props.pojem.nov) { - navigateTo('/nov_pojem/' + props.revisionId) + navigateTo('/manifest/dodaj/' + props.revisionId) } else { - navigateTo('/pojmi/' + props.revisionId) + navigateTo('/manifest/' + props.revisionId) } //window.location.hash = props.revisionId } diff --git a/nuxt/composables/crypto.js b/nuxt/composables/crypto.js new file mode 100644 index 0000000..f164870 --- /dev/null +++ b/nuxt/composables/crypto.js @@ -0,0 +1,10 @@ +import * as cryptoServer from 'crypto' + +export const useCrypto = () => { + + return { + getRandomUUID: () => (typeof window === 'undefined') + ? cryptoServer.randomBytes(16).toString('hex') // Server code + : crypto.randomUUID() // Browser code + } +} diff --git a/nuxt/nuxt.config.js b/nuxt/nuxt.config.js index 38ef142..858152b 100644 --- a/nuxt/nuxt.config.js +++ b/nuxt/nuxt.config.js @@ -41,13 +41,17 @@ export default defineNuxtConfig({ hooks: { 'pages:extend' (pages) { pages.push({ - name: 'pojem', - path: '/pojmi/:guid', - file: '~/pages/pojmi.vue' + name: 'poglej_pojem', + path: '/manifest/:naslov', + file: '~/pages/manifest/pojem.vue' + }, { + name: 'uredi_pojem', + path: '/manifest/:naslov/uredi/:guid', + file: '~/pages/manifest/pojem.vue' }, { name: 'nov_pojem_guid', - path: '/nov_pojem/:guid', - file: '~/pages/nov_pojem.vue' + path: '/manifest/dodaj/:guid', + file: '~/pages/manifest/dodaj.vue' }) } } diff --git a/nuxt/pages/nov_pojem.vue b/nuxt/pages/manifest/dodaj.vue similarity index 76% rename from nuxt/pages/nov_pojem.vue rename to nuxt/pages/manifest/dodaj.vue index dd72843..0247e39 100644 --- a/nuxt/pages/nov_pojem.vue +++ b/nuxt/pages/manifest/dodaj.vue @@ -1,9 +1,6 @@ + + diff --git a/nuxt/public/images/kompot_sm.png b/nuxt/public/images/kompot_sm.png new file mode 100644 index 0000000..441c96e Binary files /dev/null and b/nuxt/public/images/kompot_sm.png differ diff --git a/nuxt/public/images/peripheralvisions.png b/nuxt/public/images/peripheralvisions.png new file mode 100644 index 0000000..51fa62a Binary files /dev/null and b/nuxt/public/images/peripheralvisions.png differ diff --git a/nuxt/stores/pojmi.js b/nuxt/stores/pojmi.js index 74c7719..1b83922 100644 --- a/nuxt/stores/pojmi.js +++ b/nuxt/stores/pojmi.js @@ -6,7 +6,7 @@ export const usePojmiStore = defineStore('pojmi', { async naloziPojme() { const { jsonApiUrl, headers, deserialize } = useApi() - const data = await $fetch(`${jsonApiUrl}/node/concept?sort=created`, { headers }) + const data = await $fetch(`${jsonApiUrl}/node/concept?sort=-changed`, { headers }) this.pojmi = await deserialize(data, s => ({ id: s.id, naslov: s.title,