Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beta.ordbok.uib.no
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
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
Margunn.Rauset
beta.ordbok.uib.no
Commits
e568bccd
Commit
e568bccd
authored
4 years ago
by
Ole Voldsæter
Browse files
Options
Downloads
Patches
Plain Diff
paradigmer i samme bøyningsgruppe i samme tabell
parent
e6092f9b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Header.vue
+17
-5
17 additions, 5 deletions
src/components/Header.vue
with
17 additions
and
5 deletions
src/components/Header.vue
+
17
−
5
View file @
e568bccd
...
...
@@ -6,12 +6,12 @@
<details
title=
"Klikk for å se bøyninger"
>
<summary>
{{
group_list
}}
</summary>
<div
class=
"inflection"
>
<div
v-for=
"(lemma, index) in lemma
s
"
:key=
"index"
>
<div
v-for=
"(lemma, index) in
inflection_groups_by_
lemma"
:key=
"index"
>
<h4>
{{
lemma
.
lemma
}}
</h4>
<component
v-for=
"
(std, index) in lemma.paradigm_info
"
:key=
"
index
"
:is=
"
std.inflection_grou
p.replace('/', '_')"
:standardisations=
"
[std
]"
></component>
<component
v-for=
"
grp in Object.keys(lemma.inflection_groups)
"
:key=
"
grp.replace('/', '_')
"
:is=
"
gr
p.replace('/', '_')"
:standardisations=
"
lemma.inflection_groups[grp
]"
></component>
</div>
</div>
</details>
...
...
@@ -41,6 +41,18 @@ export default {
computed
:
{
group_list
:
function
()
{
return
helpers
.
group_list
(
this
.
lemmas
)
},
inflection_groups_by_lemma
:
function
()
{
return
this
.
lemmas
.
map
(
function
(
lemma_
){
let
inflection_groups
=
lemma_
.
paradigm_info
.
reduce
((
acc
,
std
)
=>
Object
.
assign
(
acc
,
{[
std
.
inflection_group
]:
[]}),
{})
lemma_
.
paradigm_info
.
forEach
(
std
=>
inflection_groups
[
std
.
inflection_group
].
push
(
std
))
return
{
lemma
:
lemma_
.
lemma
,
inflection_groups
:
inflection_groups
}
}
)
}
},
components
:
{
...
...
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