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
92df5fd1
Commit
92df5fd1
authored
5 years ago
by
Ole Voldsæter
Browse files
Options
Downloads
Patches
Plain Diff
erstattet nesten alle div-elementer med semantiske elementer
parent
3e19f84e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/App.vue
+5
-5
5 additions, 5 deletions
src/App.vue
src/components/Article.vue
+9
-9
9 additions, 9 deletions
src/components/Article.vue
src/components/SearchResults.vue
+2
-2
2 additions, 2 deletions
src/components/SearchResults.vue
with
16 additions
and
16 deletions
src/App.vue
+
5
−
5
View file @
92df5fd1
<
template
>
<
div
id=
"app"
>
<
main
id=
"app"
>
<img
alt=
"Vue logo"
src=
"./assets/logo.png"
>
<
div
class=
""
>
<
header
>
<form
class=
""
action=
"search"
method=
"get"
>
<input
placeholder=
"Søk..."
name=
"q"
/>
<select
class=
""
name=
"lang"
>
...
...
@@ -10,11 +10,11 @@
</select>
<input
type=
"submit"
name=
""
value=
"Yay!"
>
</form>
</
div
>
<img
id=
"spinner"
:class=
"waiting ? 'show' : 'hide'"
src=
"./assets/spinner.gif"
alt=
""
/>
</
header
>
<img
id=
"spinner"
:class=
"waiting ? 'show' : 'hide'"
src=
"./assets/spinner.gif"
alt=
"
Venter på innhold
"
/>
<SearchResults
:hits=
"search_results"
:lang=
"query_lang"
/>
<Article
:article=
"article"
/>
</
div
>
</
main
>
</
template
>
<
script
>
...
...
This diff is collapsed.
Click to expand it.
src/components/Article.vue
+
9
−
9
View file @
92df5fd1
<
template
>
<
div
class=
"
article
"
v-show=
"article.lemmas.length"
>
<article
v-show=
"article.lemmas.length"
>
<Header
:lemmas=
"article.lemmas"
/>
<
div
class=
""
v-if=
"article.body.pronunciation.length"
>
<
section
v-if=
"article.body.pronunciation.length"
>
<h3>
Uttale
</h3>
<ul>
<DefElement
v-for=
"(element, index) in article.body.pronunciation"
:key=
"index"
:body=
'element'
/>
</ul>
</
div
>
<
div
class=
""
v-if=
"article.body.etymology"
>
</
section
>
<
section
v-if=
"article.body.etymology"
>
<h3>
Etymologi
</h3>
<ul>
<DefElement
v-for=
"(element, index) in article.body.etymology"
:key=
"index"
:body=
'element'
/>
</ul>
</
div
>
<
div
class=
""
>
</
section
>
<
section
>
<h3>
Definisjoner
</h3>
<ol>
<Definition
v-for=
"(definition, index) in definitions"
:key=
"index"
:body=
'definition'
/>
</ol>
</
div
>
</
div
>
</
section
>
</
article
>
</
template
>
<
script
>
...
...
@@ -55,7 +55,7 @@ export default {
<!-- Add "scoped" attribute to limit CSS to this component only -->
<
style
>
.
article
{
article
{
margin-top
:
30px
;
}
...
...
This diff is collapsed.
Click to expand it.
src/components/SearchResults.vue
+
2
−
2
View file @
92df5fd1
<
template
>
<
div
class=
""
>
<
section
class=
""
>
<h2
v-if=
"hits.length"
>
Søkeresultater
</h2>
<ul>
<li
v-for=
"(result, index) in extended_results"
:key=
"index"
>
<a
:href=
"'/' + lang + '/' + result.id"
>
{{
result
.
label
}}
</a>
(
{{
result
.
classification
}}
)
</li>
</ul>
</
div
>
</
section
>
</
template
>
<
script
>
...
...
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