Avtomatsko prevajanje, izbor jezika, ...

pull/57/head
Jurij Podgoršek 2024-05-31 17:44:04 +02:00
parent 9dc26007a0
commit 5dcef94585
110 changed files with 11921 additions and 4368 deletions

View File

@ -1,2 +0,0 @@
[PHP]
xdebug.client_port=9000

31
composer.lock generated
View File

@ -125,16 +125,16 @@
},
{
"name": "chi-teck/drupal-code-generator",
"version": "3.5.0",
"version": "3.6.0",
"source": {
"type": "git",
"url": "https://github.com/Chi-teck/drupal-code-generator.git",
"reference": "74c2dc687e124bfc4001e73e9346b33067e2ec2b"
"reference": "7794c268309a6fd7aeecfd1246a01238c14384c4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Chi-teck/drupal-code-generator/zipball/74c2dc687e124bfc4001e73e9346b33067e2ec2b",
"reference": "74c2dc687e124bfc4001e73e9346b33067e2ec2b",
"url": "https://api.github.com/repos/Chi-teck/drupal-code-generator/zipball/7794c268309a6fd7aeecfd1246a01238c14384c4",
"reference": "7794c268309a6fd7aeecfd1246a01238c14384c4",
"shasum": ""
},
"require": {
@ -179,9 +179,9 @@
"description": "Drupal code generator",
"support": {
"issues": "https://github.com/Chi-teck/drupal-code-generator/issues",
"source": "https://github.com/Chi-teck/drupal-code-generator/tree/3.5.0"
"source": "https://github.com/Chi-teck/drupal-code-generator/tree/3.6.0"
},
"time": "2024-04-11T11:23:44+00:00"
"time": "2024-05-20T12:50:42+00:00"
},
{
"name": "composer/installers",
@ -1839,21 +1839,22 @@
},
{
"name": "drupal/diff",
"version": "1.3.0",
"version": "1.4.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/diff.git",
"reference": "8.x-1.3"
"reference": "8.x-1.4"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/diff-8.x-1.3.zip",
"reference": "8.x-1.3",
"shasum": "7a6e70546d97974600baffd0695105e88699744e"
"url": "https://ftp.drupal.org/files/projects/diff-8.x-1.4.zip",
"reference": "8.x-1.4",
"shasum": "8f1e95e6c7f576999c5b2880023de2c2aaaf99b3"
},
"require": {
"drupal/core": "^9.3 || ^10",
"mkalkbrenner/php-htmldiff-advanced": "~0.0.8"
"drupal/core": "^9.3 || ^10 || ^11",
"mkalkbrenner/php-htmldiff-advanced": "~0.0.8",
"php": "^8.1"
},
"require-dev": {
"jangregor/phpstan-prophecy": "dev-master",
@ -1868,8 +1869,8 @@
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-1.3",
"datestamp": "1712883857",
"version": "8.x-1.4",
"datestamp": "1717130431",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"

View File

@ -0,0 +1 @@
interval: 21600

View File

@ -6,6 +6,7 @@ dependencies:
- field.field.node.concept.body
- field.field.node.concept.field_media
- field.field.node.concept.field_related_concept
- field.field.node.concept.field_strojni_prevod
- node.type.concept
- workflows.workflow.concept_workflow
module:
@ -51,6 +52,13 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
field_strojni_prevod:
type: boolean_checkbox
weight: 26
region: content
settings:
display_label: true
third_party_settings: { }
langcode:
type: language_select
weight: 3

View File

@ -6,6 +6,7 @@ dependencies:
- field.field.node.concept.body
- field.field.node.concept.field_media
- field.field.node.concept.field_related_concept
- field.field.node.concept.field_strojni_prevod
- node.type.concept
module:
- text
@ -23,9 +24,9 @@ content:
weight: 101
region: content
content_moderation_control:
weight: -20
settings: { }
third_party_settings: { }
weight: -20
region: content
field_media:
type: entity_reference_entity_view
@ -44,6 +45,16 @@ content:
third_party_settings: { }
weight: 103
region: content
field_strojni_prevod:
type: boolean
label: above
settings:
format: default
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 104
region: content
links:
settings: { }
third_party_settings: { }

View File

@ -7,6 +7,7 @@ dependencies:
- field.field.node.concept.body
- field.field.node.concept.field_media
- field.field.node.concept.field_related_concept
- field.field.node.concept.field_strojni_prevod
- node.type.concept
module:
- text
@ -25,9 +26,9 @@ content:
weight: 101
region: content
content_moderation_control:
weight: -20
settings: { }
third_party_settings: { }
weight: -20
region: content
links:
settings: { }
@ -37,4 +38,5 @@ content:
hidden:
field_media: true
field_related_concept: true
field_strojni_prevod: true
langcode: true

View File

@ -12,5 +12,6 @@ _core:
default_config_hash: pqZNtad5J9THcdbYjwPD4qINqvrTxnOd8KCWn6tUBRs
id: node.diff
label: 'Revision comparison'
description: ''
targetEntityType: node
cache: true

View File

@ -15,4 +15,5 @@ general_settings:
unified_fields:
enabled: true
weight: 2
visual_default_view_mode: full
visual_inline_theme: default

View File

@ -11,9 +11,9 @@ dependencies:
third_party_settings:
content_translation:
translation_sync:
alt: alt
title: title
file: '0'
file: file
alt: '0'
title: '0'
_core:
default_config_hash: PmVL51L3A9QGbPLoeLHw5epAPszeZRasCeC3imeeDRQ
id: node.article.field_image

View File

@ -0,0 +1,23 @@
uuid: 959946bc-d4cb-47dc-8b5b-ab2bcf6f7bfc
langcode: sl
status: true
dependencies:
config:
- field.storage.node.field_strojni_prevod
- node.type.concept
id: node.concept.field_strojni_prevod
field_name: field_strojni_prevod
entity_type: node
bundle: concept
label: 'Strojni prevod?'
description: ''
required: false
translatable: true
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: Da
off_label: Ne
field_type: boolean

View File

@ -15,7 +15,7 @@ bundle: page
label: Media
description: ''
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings:

View File

@ -0,0 +1,18 @@
uuid: 24af25a5-ec60-4d6f-b3c5-7e22dc08c082
langcode: sl
status: true
dependencies:
module:
- node
id: node.field_strojni_prevod
field_name: field_strojni_prevod
entity_type: node
type: boolean
settings: { }
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,11 @@
uuid: 85dff136-e8f0-4adb-97fc-deb1e45dca2b
langcode: en
status: true
dependencies:
module:
- content_moderation
id: content_moderation_state.content_moderation_state
target_entity_type_id: content_moderation_state
target_bundle: content_moderation_state
default_langcode: site_default
language_alterable: false

View File

@ -10,7 +10,7 @@ third_party_settings:
content_translation:
enabled: true
bundle_settings:
untranslatable_fields_hide: '0'
untranslatable_fields_hide: '1'
id: node.concept
target_entity_type_id: node
target_bundle: concept

View File

@ -0,0 +1,9 @@
uuid: 4179da2f-6dc6-4689-bbab-13b1655171fe
langcode: en
status: true
dependencies: { }
id: de
label: German
direction: ltr
weight: 4
locked: false

View File

@ -0,0 +1,9 @@
uuid: 46587206-0c5c-4431-9e3f-012fc2ca3e73
langcode: en
status: true
dependencies: { }
id: es
label: Spanish
direction: ltr
weight: 5
locked: false

View File

@ -1,9 +1,9 @@
uuid: b3b0ec66-bf9e-4114-8e61-b74b40fe2860
uuid: 32738130-df06-46f9-88b0-0beda10c2fd8
langcode: en
status: true
dependencies: { }
id: hr
label: Croatian
direction: ltr
weight: 2
weight: 6
locked: false

View File

@ -7,5 +7,5 @@ _core:
id: und
label: 'Not specified'
direction: ltr
weight: 4
weight: 7
locked: true

View File

@ -7,5 +7,5 @@ _core:
id: zxx
label: 'Not applicable'
direction: ltr
weight: 5
weight: 8
locked: true

View File

@ -7,11 +7,15 @@ url:
prefixes:
en: en
sl: sl
hr: hr
sr: sr
de: de
es: es
hr: hr
domains:
en: ''
sl: ''
hr: ''
sr: ''
de: ''
es: ''
hr: ''
selected_langcode: site_default

View File

@ -1,2 +0,0 @@
settings:
label: 'Glavni sadržaj stranice'

View File

@ -1,2 +0,0 @@
settings:
label: 'Poruke statusa'

View File

@ -1,2 +0,0 @@
settings:
label: 'Naziv stranice'

View File

@ -1,2 +0,0 @@
settings:
label: 'Primarne oznake'

View File

@ -1,2 +0,0 @@
settings:
label: 'Sekundarne oznake'

View File

@ -1,2 +0,0 @@
settings:
label: 'Glavni sadržaj stranice'

View File

@ -1,2 +0,0 @@
settings:
label: 'Poruke statusa'

View File

@ -1,2 +0,0 @@
settings:
label: 'Naziv stranice'

View File

@ -1,2 +0,0 @@
settings:
label: 'Primarne oznake'

View File

@ -1,2 +0,0 @@
settings:
label: 'Sekundarne oznake'

View File

@ -1,2 +0,0 @@
settings:
label: 'Glavni sadržaj stranice'

View File

@ -1,2 +0,0 @@
settings:
label: 'Poruke statusa'

View File

@ -1,2 +0,0 @@
settings:
label: 'Naziv stranice'

View File

@ -1,2 +0,0 @@
settings:
label: 'Pokreće Drupal'

View File

@ -1,2 +0,0 @@
settings:
label: 'Primarne oznake'

View File

@ -1,2 +0,0 @@
settings:
label: 'Sekundarne oznake'

View File

@ -1,2 +0,0 @@
settings:
label: 'RSS feed'

View File

@ -1,2 +0,0 @@
settings:
label: Administracija

View File

@ -1,2 +0,0 @@
settings:
label: 'Poruke statusa'

View File

@ -1,2 +0,0 @@
settings:
label: 'Naziv stranice'

View File

@ -1,2 +0,0 @@
settings:
label: Alati

View File

@ -1 +0,0 @@
label: 'Registriraj se'

View File

@ -1 +0,0 @@
label: 'Cijeli komentar'

View File

@ -1 +0,0 @@
label: 'Puni sadržaj'

View File

@ -1 +0,0 @@
label: 'Puni sadržaj'

View File

@ -1 +0,0 @@
label: RSS

View File

@ -1 +0,0 @@
label: 'Indeks pretraživanja'

View File

@ -1 +0,0 @@
label: 'Reultati pretrage s istaknutim unosom'

View File

@ -1 +0,0 @@
label: Mamac

View File

@ -1 +0,0 @@
label: 'Stranica taksonomijskog pojma'

View File

@ -1 +0,0 @@
label: 'Korisnički račun'

View File

@ -1 +0,0 @@
name: 'Obični tekst'

View File

@ -1 +0,0 @@
label: Engleski

View File

@ -1 +0,0 @@
label: Sadržaj

View File

@ -1 +0,0 @@
label: 'Izbriši komentar'

View File

@ -1 +0,0 @@
label: 'Objavi komentar'

View File

@ -1 +0,0 @@
label: 'Spremi komentar'

View File

@ -1 +0,0 @@
label: 'Prekini objavu komentara'

View File

@ -1 +0,0 @@
label: 'Učini sadržaj ljepljivim'

View File

@ -1 +0,0 @@
label: 'Ukloni ljepljivost sa sadržaja'

View File

@ -1 +0,0 @@
label: 'Promoviraj sadržaj na naslovnicu'

View File

@ -1 +0,0 @@
label: 'Objavi sadržaj'

View File

@ -1 +0,0 @@
label: 'Spremi sadržaj'

View File

@ -1 +0,0 @@
label: 'Degradiraj sadržaj s naslovnice'

View File

@ -1 +0,0 @@
label: 'Prekini objavu sadržaja'

View File

@ -1 +0,0 @@
message: '@site je trenutno van mreže. Uskoro bi trebao biti umrežen. Hvala na strpljenju.'

View File

@ -1 +0,0 @@
label: Administracija

View File

@ -1 +0,0 @@
label: Podnožje

View File

@ -1 +0,0 @@
label: Alati

View File

@ -1,2 +0,0 @@
register_admin_created:
subject: 'Administrator vam je otvorio račun pri [site:name]'

View File

@ -1 +0,0 @@
label: 'Anonimni korisnik'

View File

@ -1 +0,0 @@
anonymous: Anoniman

View File

@ -1,33 +0,0 @@
label: 'Custom block library'
description: 'Find and manage custom blocks.'
display:
default:
display_title: Zadano
display_options:
title: 'Custom block library'
fields:
info:
label: 'Opis bloka'
changed:
label: Osvježeno
operations:
label: Operacije
exposed_form:
options:
submit_button: Primjeni
reset_button_label: Poništi
exposed_sorts_label: 'Rasporedi po'
sort_asc_label: Uzlazno
sort_desc_label: Silazno
empty:
area_text_custom:
content: 'There are no custom blocks available.'
filters:
info:
expose:
label: 'Opis bloka'
page_1:
display_title: Stranica
display_options:
menu:
title: 'Custom block library'

View File

@ -1,74 +0,0 @@
label: Komentari
display:
default:
display_title: Zadano
display_options:
title: Komentari
fields:
comment_bulk_form:
action_title: Akcija
subject:
label: Naziv
name:
label: Autor
entity_id:
label: 'Objavljeno u'
changed:
label: Osvježeno
operations:
label: Operacije
pager:
options:
tags:
next: 'sljedeća '
previous: ' prethodna'
first: '« prva'
last: 'posljednja »'
exposed_form:
options:
submit_button: Pročisti
reset_button_label: Poništi
exposed_sorts_label: 'Rasporedi po'
sort_asc_label: Uzlazno
sort_desc_label: Silazno
empty:
area_text_custom:
content: 'Nema dostupnih komentara.'
filters:
subject:
expose:
label: Naziv
langcode:
expose:
label: Jezik
use_more_text: više
page_published:
display_title: 'Objavljeni komentari'
display_options:
menu:
title: Komentari
page_unapproved:
display_title: 'Neodobreni komentari'
display_options:
fields:
comment_bulk_form:
action_title: Akcija
subject:
label: Naziv
name:
label: Autor
entity_id:
label: 'Objavljeno u'
changed:
label: Osvježeno
operations:
label: Operacije
filters:
subject:
expose:
label: Naziv
langcode:
expose:
label: Jezik
menu:
title: 'Neodobreni komentari'

View File

@ -1,13 +0,0 @@
label: 'Posljednji komentari'
display:
default:
display_title: Zadano
display_options:
title: 'Posljednji komentari'
empty:
area_text_custom:
content: 'Nema dostupnih komentara.'
block_1:
display_title: Blok
display_options:
block_description: 'Posljednji komentari'

View File

@ -1,55 +0,0 @@
label: Sadržaj
display:
default:
display_title: Zadano
display_options:
title: Sadržaj
fields:
title:
label: Naziv
type:
label: 'Vrsta sadržaja'
name:
label: Autor
status:
label: Status
settings:
format_custom_true: Objavljeno
changed:
label: Osvježeno
operations:
label: Operacije
exposed_form:
options:
submit_button: Pročisti
reset_button_label: Poništi
exposed_sorts_label: 'Rasporedi po'
sort_asc_label: Uzlazno
sort_desc_label: Silazno
empty:
area_text_custom:
content: 'Na voljo ni nobene vsebine.'
filters:
title:
expose:
label: Naziv
type:
expose:
label: 'Vrsta sadržaja'
status:
expose:
label: Status
group_info:
group_items:
1:
title: Objavljeno
langcode:
expose:
label: Jezik
page_1:
display_title: Stranica
display_options:
menu:
title: Sadržaj
tab_options:
title: Sadržaj

View File

@ -1,47 +0,0 @@
label: Mediji
display:
default:
display_title: Zadano
display_options:
title: Mediji
fields:
media_bulk_form:
action_title: Akcija
bundle:
label: Vrsta
uid:
label: Autor
status:
label: Status
settings:
format_custom_true: Objavljeno
changed:
label: Osvježeno
operations:
label: Operacije
exposed_form:
options:
submit_button: Pročisti
reset_button_label: Poništi
exposed_sorts_label: 'Rasporedi po'
sort_asc_label: Uzlazno
sort_desc_label: Silazno
filters:
bundle:
expose:
label: Vrsta
status:
expose:
label: Istina
group_info:
group_items:
1:
title: Objavljeno
langcode:
expose:
label: Jezik
media_page_list:
display_title: Mediji
display_options:
menu:
title: Mediji

View File

@ -1,75 +0,0 @@
display:
default:
display_title: Zadano
display_options:
title: Mediji
fields:
media_bulk_form:
action_title: Akcija
exposed_form:
options:
reset_button_label: Poništi
exposed_sorts_label: 'Rasporedi po'
sort_asc_label: Uzlazno
sort_desc_label: Silazno
filters:
status:
group_info:
label: Objavljeno
group_items:
1:
title: Objavljeno
name:
expose:
label: Naziv
langcode:
expose:
label: Jezik
page:
display_title: Stranica
display_options:
fields:
media_bulk_form:
action_title: Akcija
edit_media:
text: Uredi
delete_media:
text: Ukloni
widget:
display_title: Widget
display_options:
arguments:
bundle:
exception:
title: Svi
filters:
name:
expose:
label: Naziv
header:
display_link_grid:
label: Mreža
display_link_table:
label: Tablica
widget_table:
display_options:
fields:
name:
label: Naziv
uid:
label: Autor
changed:
label: Osvježeno
arguments:
bundle:
exception:
title: Svi
filters:
name:
expose:
label: Naziv
header:
display_link_grid:
label: Mreža
display_link_table:
label: Tablica

View File

@ -1,36 +0,0 @@
label: 'Moderirani sadržaj'
display:
default:
display_title: Zadano
display_options:
title: 'Moderirani sadržaj'
fields:
title:
label: Naziv
type:
label: 'Vrsta sadržaja'
name:
label: Autor
changed:
label: Osvježeno
operations:
label: Operacije
exposed_form:
options:
submit_button: Pročisti
reset_button_label: Poništi
exposed_sorts_label: 'Rasporedi po'
sort_asc_label: Uzlazno
sort_desc_label: Silazno
filters:
title:
expose:
label: Naziv
type:
expose:
label: 'Vrsta sadržaja'
langcode:
expose:
label: Jezik
moderated_content:
display_title: 'Moderirani sadržaj'

View File

@ -1,18 +0,0 @@
label: 'Pojam taksonomije'
display:
default:
display_title: Zadano
display_options:
exposed_form:
options:
submit_button: Primjeni
reset_button_label: Poništi
exposed_sorts_label: 'Rasporedi po'
sort_asc_label: Uzlazno
sort_desc_label: Silazno
arguments:
tid:
exception:
title: Svi
page_1:
display_title: Stranica

View File

@ -0,0 +1 @@
label: German

View File

@ -0,0 +1 @@
label: Španščina

View File

@ -1 +1 @@
label: Sadržaj
label: Poizvedba

View File

@ -7,6 +7,8 @@ display:
fields:
title:
label: Naslov
type:
label: 'Content type'
name:
label: Avtor
changed:
@ -24,6 +26,9 @@ display:
title:
expose:
label: Naslov
type:
expose:
label: 'Content type'
langcode:
expose:
label: Jezik

View File

@ -0,0 +1 @@
label: German

View File

@ -0,0 +1 @@
label: Španščina

View File

@ -9,9 +9,9 @@ third_party_settings:
available_menus:
- main
parent: 'main:'
name: Concept
name: Koncept
type: concept
description: 'Basic element of manifest'
description: 'Osnovni element manifesta'
help: ''
new_revision: true
preview_mode: 1

View File

@ -11,4 +11,4 @@ page:
front: /user/login
admin_compact_mode: false
weight_select_max: 100
default_langcode: en
default_langcode: sl

View File

@ -8,7 +8,7 @@ dependencies:
_core:
default_config_hash: 12Bd0mJQFIaXAkRfMVCAAcZ0oaxm94PoK8oHR9hkLmY
id: content
label: Vsebine
label: Sadržaj
module: node
description: 'Find and manage content.'
tag: default
@ -114,7 +114,7 @@ display:
entity_type: node
entity_field: type
plugin_id: field
label: 'Tip vsebine'
label: 'Content type'
exclude: false
alter:
alter_text: false
@ -451,7 +451,7 @@ display:
exposed: true
expose:
operator_id: type_op
label: 'Tip vsebine'
label: 'Content type'
description: ''
use_operator: false
operator: type_op

View File

@ -3,12 +3,16 @@
const { $i18n } = useNuxtApp()
const nastavitveStore = useNastavitveStore()
const pojmiStore = usePojmiStore()
const straniStore = useStraniStore()
const { izbraniJezik } = storeToRefs(nastavitveStore)
// Nastavi locale ko se jezik spremeni
watch(izbraniJezik, jezik => {
$i18n.setLocale(jezik)
pojmiStore.naloziPojme(jezik)
straniStore.naloziStrani(jezik)
})
// V store nastavi prvotno stanje

View File

@ -92,7 +92,7 @@ img {
}
.meni {
position: absolute;
position: fixed;
top: 0;
left: 0;
width: 100%;

View File

@ -9,7 +9,7 @@ const kodeDrugihJezikov = computed(() => kodeJezikov.value.filter(
))
const slikaJezika = (jezik) => `/images/jezik_${jezik}.png`
console.log('izbrani jezik!', izbraniJezik.value)
// console.log('izbrani jezik!', izbraniJezik.value)
const izbor = ref(false)
@ -22,7 +22,7 @@ const izbor = ref(false)
</div>
<div class="drugiJeziki" v-if="izbor">
<div class="jezik" v-for="jezik in kodeDrugihJezikov" @click="() => { store.izberiJezik(jezik); izbor = false }">
<div class="jezik" :class="`jezik-${jezik}`" v-for="jezik in kodeDrugihJezikov" @click="() => { store.izberiJezik(jezik); izbor = false }">
<img :src="slikaJezika(jezik)" /> {{ store.mozniJeziki[jezik] }}
</div>
</div>
@ -41,6 +41,11 @@ const izbor = ref(false)
align-items: center;
}
.jezik-de img,
.jezik-hr img {
transform: scaleX(-1);
}
.drugiJeziki > div {
margin-top: 5px;
}

View File

@ -43,7 +43,7 @@ const urediPojem = async () => {
onMounted(() => {
// Prazen pojem? Nazaj na manifest
if ((!pojem.value || !pojem.value.id) && store.pojmi) {
navigateTo('/manifest#skrol')
navigateTo(localePath('manifest') + '#skrol')
}
// Link na editiranje pojma? Poskrolaj nanj + odpri editiranje
@ -67,7 +67,10 @@ onUpdated(() => {
<section ref="container">
<div v-if="!urejanje" class="gumb" @click="urediPojem">{{ $t('Uredi')}}</div>
<div v-if="pojem" class="pojem">
<h2>{{ naslov }}</h2>
<h2>
{{ naslov }}
<span v-if="pojem.strojni_prevod">strojni prevod</span>
</h2>
<div class="tekst" v-html="pojem.tekst" />
</div>
<div class="obrazec" ref="obrazec">

View File

@ -35,7 +35,7 @@ const oddajPredlog = async data => {
stvarjenje.then(() => {
console.log('NOV NASLOV?', starNaslov, props.pojem.naslov)
if (starNaslov !== props.pojem.naslov) {
navigateTo('/manifest/' + encodeURIComponent(props.pojem.naslov))
navigateTo(localePath({ name: 'pojem_poglej', params: { naslov: props.pojem.naslov }}))
}
})
@ -50,7 +50,7 @@ const etherNalozen = ev => {
})
} else {
navigateTo(localePath({ name: 'pojem_uredi', params: {
naslov: encodeURIComponent(props.pojem.naslov),
naslov: props.pojem.naslov,
guid: props.revisionId
}}), { replace: true })
}

View File

@ -1,10 +1,23 @@
/* uporabne zadeve za vmesnik */
function getScrollParent(node) {
if (node == null) {
return null;
}
if (node.scrollHeight > node.clientHeight) {
return node;
} else {
return getScrollParent(node.parentNode);
}
}
export const useUi = () => ({
poskrolaj: (sekcija, timeout = 50) => {
setTimeout(() => {
if (sekcija && sekcija.scrollIntoView) {
sekcija.scrollIntoView({ behavior: 'smooth' })
if (sekcija) {
const top = sekcija.getBoundingClientRect().top
getScrollParent(sekcija).scrollTo({ top, behavior: 'smooth' })
}
}, timeout)
}

11
nuxt/lang/de.json 100644
View File

@ -0,0 +1,11 @@
{
"domov": "home",
"jugofuturizem": "yugofuturismus",
"manifest": "manifest",
"Nazaj": "Zurück",
"Vsak lahko prispeva k vsebinam manifesta. Predlaga lahko nov pojem ali ureja, dopolni ali predela obstoječe.": "Jeder kann dem Manifest Inhalte hinzufügen. Sie können ein neues Konzept vorschlagen oder ein bestehendes Konzept bearbeiten, ändern oder anpassen.",
"Dodaj nov pojem": "Neues konzept hinzufügen",
"Uredi": "Bearbeiten",
"Predlagaj": "Vorschlag",
"Zapri": "Schließen"
}

11
nuxt/lang/es.json 100644
View File

@ -0,0 +1,11 @@
{
"domov": "home",
"jugofuturizem": "yugofuturismo",
"manifest": "manifesto",
"Nazaj": "Atrás",
"Vsak lahko prispeva k vsebinam manifesta. Predlaga lahko nov pojem ali ureja, dopolni ali predela obstoječe.": "Cualquiera puede contribuir al contenido del manifiesto. Puede proponer un nuevo concepto o regular, complementar o procesar el existente.",
"Dodaj nov pojem": "Añadir nuevo concepto",
"Uredi": "Editar",
"Predlagaj": "Sugerencias",
"Zapri": "Cerca"
}

View File

@ -1,21 +0,0 @@
import { defineNuxtModule, extendPages } from '@nuxt/kit'
export default defineNuxtModule({
setup(moduleOptions, nuxt) {
extendPages((pages) => {
pages.push({
name: 'pojem_poglej',
path: '/manifest/:naslov',
file: '../../pages/manifest/pojem.vue'
}, {
name: 'pojem_uredi',
path: '/manifest/:naslov/uredi/:guid',
file: '../../pages/manifest/pojem.vue'
}, {
name: 'pojem_dodaj',
path: '/manifest/dodaj/:guid',
file: '../../pages/manifest/dodaj.vue'
})
})
}
})

View File

@ -20,10 +20,26 @@ export default defineNuxtConfig({
},
modules: [
['@pinia/nuxt', { autoImports: ['defineStore', 'acceptHMRUpdate']}],
'./modules/yufu-strani/module',
'@nuxtjs/i18n'
//'nuxt-proxy'
],
hooks: {
'pages:extend' (pages) {
pages.push({
name: 'pojem_poglej',
path: '/manifest/:naslov',
file: '~/pages/manifest/pojem.vue'
}, {
name: 'pojem_uredi',
path: '/manifest/:naslov/uredi/:guid',
file: '~/pages/manifest/pojem.vue'
}, {
name: 'pojem_dodaj',
path: '/manifest/dodaj/:guid',
file: '~/pages/manifest/dodaj.vue'
})
}
},
proxy: {
options: {
target: process.env.BASE_URL,
@ -50,6 +66,12 @@ export default defineNuxtConfig({
}, {
code: 'hr',
file: 'hr.json'
}, {
code: 'es',
file: 'es.json'
}, {
code: 'de',
file: 'de.json'
}],
langDir: 'lang',
defaultLocale: 'sl',

7931
nuxt/package-lock.json generated

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More