Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beta.ordbok.uib.no
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Språksamlingane
beta.ordbok.uib.no
Compare revisions
08bea87bf3a90b2883d7c38b8deb2430a65fd962 to prod
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
spraksamlingane/beta.ordbok.uib.no
Select target project
No results found
prod
Select Git revision
Swap
Target
Margunn.Rauset/beta.ordbok.uib.no
Select target project
No results found
08bea87bf3a90b2883d7c38b8deb2430a65fd962
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/sitemap/xml/sitemap.xml
+16
-0
16 additions, 0 deletions
src/sitemap/xml/sitemap.xml
src/utils/entities.js
+2
-2
2 additions, 2 deletions
src/utils/entities.js
src/utils/helpers.js
+9
-74
9 additions, 74 deletions
src/utils/helpers.js
vue.config.js
+16
-1
16 additions, 1 deletion
vue.config.js
with
43 additions
and
77 deletions
src/sitemap/xml/sitemap.xml
0 → 100644
View file @
1dbc5209
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns=
"http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml=
"http://www.w3.org/1999/xhtml"
>
<url>
<loc>
https://ordbokene.no
</loc>
<xhtml:link
rel=
"alternative"
href=
"https://ordbokene.no/bm,nn"
/>
</url>
<url>
<loc>
https://ordbokene.no/bm
</loc>
</url>
<url>
<loc>
https://ordbokene.no/nn
</loc>
</url>
<url>
<loc>
https://ordbokene.no/om
</loc>
</url>
</urlset>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/utils/entities.js
View file @
1dbc5209
var
entities
=
{
'
b
ob
'
:
{
'
b
m
'
:
{
},
'
n
ob
'
:
{
'
n
n
'
:
{
}
}
...
...
This diff is collapsed.
Click to expand it.
src/utils/helpers.js
View file @
1dbc5209
var
mapping
=
{
"
bob
"
:
{
"
NOUN
"
:
"
substantiv
"
,
"
VERB
"
:
"
verb
"
,
"
ADJ
"
:
"
adjektiv
"
,
"
ADP
"
:
"
preposisjon
"
,
"
PFX
"
:
"
prefiks
"
,
"
ADV
"
:
"
adverb
"
,
"
DET
"
:
"
determinativ
"
,
"
PROPN
"
:
"
egennavn
"
,
"
ABBR
"
:
"
forkortelse
"
,
"
INTJ
"
:
"
interjeksjon
"
,
"
SYM
"
:
"
symbol
"
,
"
PRON
"
:
"
pronomen
"
,
"
CCONJ
"
:
"
konjunksjon
"
,
"
SCONJ
"
:
"
subjunksjon
"
,
"
INFM
"
:
"
infinitivsmerke
"
,
"
COMPPFX
"
:
"
i sammensetting
"
,
"
Masc
"
:
"
hankjønn
"
,
"
Fem
"
:
"
hunkjønn
"
,
"
Neuter
"
:
"
intetkjønn
"
,
"
Uninfl
"
:
"
ubøyelig
"
},
"
nob
"
:
{
"
NOUN
"
:
"
substantiv
"
,
"
VERB
"
:
"
verb
"
,
"
ADJ
"
:
"
adjektiv
"
,
"
ADP
"
:
"
preposisjon
"
,
"
PFX
"
:
"
prefiks
"
,
"
ADV
"
:
"
adverb
"
,
"
DET
"
:
"
determinativ
"
,
"
PROPN
"
:
"
eigennamn
"
,
"
ABBR
"
:
"
forkorting
"
,
"
INTJ
"
:
"
interjeksjon
"
,
"
SYM
"
:
"
symbol
"
,
"
PRON
"
:
"
pronomen
"
,
"
CCONJ
"
:
"
konjunksjon
"
,
"
SCONJ
"
:
"
subjunksjon
"
,
"
INFM
"
:
"
infinitivsmerke
"
,
"
COMPPFX
"
:
"
i samansetjing
"
,
"
Masc
"
:
"
hankjønn
"
,
"
Fem
"
:
"
hokjønn
"
,
"
Neuter
"
:
"
inkjekjønn
"
,
"
Uninfl
"
:
"
ubøyd
"
}
}
var
group_list
=
function
(
grps
,
dictionary
)
{
var
grp_collection
=
new
Set
()
var
noun_grp_collection
=
new
Set
()
grps
.
forEach
(
function
(
lemma
){
lemma
.
paradigm_info
.
forEach
(
function
(
grp
){
if
(
grp
.
tags
){
if
(
grp
.
tags
[
0
]
==
'
NOUN
'
)
{
noun_grp_collection
.
add
(
grp
.
tags
[
1
])
}
else
{
grp_collection
.
add
(
mapping
[
dictionary
][
grp
.
tags
[
0
]])
}
}
})
})
if
(
noun_grp_collection
.
size
)
{
let
noun_grp_text
=
'
substantiv
'
if
(
noun_grp_collection
.
size
==
3
)
{
noun_grp_text
+=
mapping
[
dictionary
][
'
Masc
'
]
+
'
,
'
+
mapping
[
dictionary
][
'
Fem
'
]
+
'
eller
'
+
mapping
[
dictionary
][
'
Neuter
'
]
}
else
{
noun_grp_text
+=
Array
.
from
(
noun_grp_collection
).
map
(
code
=>
mapping
[
dictionary
][
code
]).
sort
().
join
(
'
eller
'
)
}
grp_collection
.
add
(
noun_grp_text
)
}
return
Array
.
from
(
grp_collection
).
join
(
'
-
'
)
}
var
fraction
=
function
(
numerator
,
denominator
)
{
var
superscript
=
{
'
0
'
:
'
⁰
'
,
...
...
@@ -188,4 +115,12 @@ var fraction = function(numerator, denominator) {
}
export
default
{
group_list
,
fraction
}
const
roman_hgno
=
function
(
lemma
)
{
let
hgint
=
parseInt
(
lemma
.
hgno
)
if
(
hgint
>
0
)
{
return
[
"
I
"
,
"
II
"
,
"
III
"
,
"
IV
"
,
"
V
"
,
"
VI
"
,
"
VII
"
,
"
VIII
"
,
"
IX
"
,
"
X
"
,
"
XI
"
,
"
XII
"
,
"
XIII
"
,
"
XIV
"
,
"
XV
"
,
"
XVI
"
][
hgint
-
1
]
}
return
""
}
export
default
{
fraction
,
roman_hgno
}
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
1dbc5209
module
.
exports
=
{
runtimeCompiler
:
true
,
transpileDependencies
:
[
'
vuetify
'
]
],
devServer
:
{
https
:
false
},
pluginOptions
:
{
i18n
:
{
fallbackLocale
:
'
eng
'
,
localeDir
:
'
locales
'
,
enableInSFC
:
true
,
includeLocales
:
false
,
enableBridge
:
true
}
}
}
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
Next