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
Commits
1afbe7f4
Commit
1afbe7f4
authored
3 years ago
by
Paul Meurer
Browse files
Options
Downloads
Plain Diff
responsive footer
parents
589465b1
9dd277db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/DefElement.vue
+1
-2
1 addition, 2 deletions
src/components/DefElement.vue
src/components/DictionaryView.vue
+14
-2
14 additions, 2 deletions
src/components/DictionaryView.vue
with
15 additions
and
4 deletions
src/components/DefElement.vue
+
1
−
2
View file @
1afbe7f4
...
...
@@ -56,11 +56,10 @@ export default {
ref
:
'
/
'
+
lang
+
'
/
'
+
item
.
article_id
+
'
/
'
+
encodeURIComponent
(
item
.
word_form
||
item
.
lemmas
[
0
].
lemma
)
+
(
item
.
definition_id
?
'
#def
'
+
item
.
definition_id
:
''
),
article_id
:
item
.
article_id
,
definition_id
:
item
.
definition_id
,
definition_order
:
item
.
definition_order
,
source
:
path
}
else
if
(
item
.
type_
==
'
pronunciation
'
)
return
{
type
:
item
.
type_
,
html
:
item
.
string
}
else
if
(
item
.
type_
==
'
pronunciation_guide
'
)
return
{
type
:
'
pronunciation_guide
'
,
html
:
replace_grammar_id
(
item
,
lang
)
}
else
if
(
item
.
type_
==
'
pronunciation_guide
'
)
return
{
type
:
item
.
type_
,
body
:
item
,
html
:
''
,
tag
:
'
DefElement
'
,
props
:
{
body
:
item
,
tag
:
'
i
'
,
dictionary
:
lang
}
}
else
if
(
item
.
type_
==
'
superscript
'
)
return
{
type
:
item
.
type_
,
html
:
item
.
text
,
tag
:
'
sup
'
}
else
if
(
item
.
type_
==
'
subscript
'
)
return
{
type
:
item
.
type_
,
html
:
item
.
text
,
'
tag
'
:
'
sub
'
}
else
if
(
item
.
type_
==
'
quote_inset
'
)
return
{
type
:
item
.
type_
,
body
:
item
,
html
:
''
,
tag
:
'
DefElement
'
,
props
:
{
body
:
item
,
tag
:
'
i
'
,
dictionary
:
lang
}}
...
...
This diff is collapsed.
Click to expand it.
src/components/DictionaryView.vue
+
14
−
2
View file @
1afbe7f4
...
...
@@ -2,7 +2,7 @@
<main>
<div
class=
"search_container"
>
<div
class=
"lang_select_container"
>
<v-radio-group
row
v-model=
"lang"
>
<v-radio-group
row
v-model=
"lang"
@
change=
"update_lang_form"
>
<template
v-slot:label
>
<span>
VIS
</span>
</
template
>
...
...
@@ -37,6 +37,7 @@
</div>
<SearchResults
:hits=
"search_results"
:lang=
"lang"
:key=
"lang"
@
article-click=
"article_link_click"
@
details-click=
"details_click"
v-if=
"search_results.length && ! waiting && ! article"
/>
...
...
@@ -177,7 +178,8 @@ export default {
article
:
null
,
error
:
null
,
monthly_bm
:
null
,
monthly_nn
:
null
monthly_nn
:
null
,
event
:
null
}
},
computed
:
{
...
...
@@ -195,6 +197,7 @@ export default {
},
methods
:
{
select_result
:
function
(
event
)
{
this
.
event
=
event
if
(
event
.
articles
){
let
source
=
'
/
'
+
this
.
lang
+
'
/w/
'
+
event
.
word
this
.
$router
.
push
(
source
)
...
...
@@ -211,6 +214,15 @@ export default {
this
.
$plausible
.
trackEvent
(
'
dropdown selection
'
,
{
props
:
{
query
:
event
.
label
,
match
:
'
<fritekstsøk>
'
}})
}
},
update_lang_form
:
function
(
event
)
{
if
(
this
.
event
){
this
.
event
.
articles
=
null
this
.
select_result
(
this
.
event
)
}
else
{
navigate_to_search
(
this
,
this
.
$router
.
history
.
current
.
params
.
word
||
this
.
$router
.
history
.
current
.
params
.
query
)
}
},
article_link_click
:
function
(
item
)
{
if
(
this
.
article
&&
this
.
article
.
article_id
==
item
.
article_id
){
this
.
article_key
++
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment