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
a2466fa0
Commit
a2466fa0
authored
5 years ago
by
Ole Voldsæter
Browse files
Options
Downloads
Patches
Plain Diff
re meta#60 bruker <q> for sitatdelen av eksempler
parent
c00a1e82
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/DefElement.vue
+6
-2
6 additions, 2 deletions
src/components/DefElement.vue
src/components/Definition.vue
+1
-1
1 addition, 1 deletion
src/components/Definition.vue
src/components/Example.vue
+2
-4
2 additions, 4 deletions
src/components/Example.vue
with
9 additions
and
7 deletions
src/components/DefElement.vue
+
6
−
2
View file @
a2466fa0
<
template
>
<li
:class=
"body.type_"
>
<!--
<li
:is=
"tag"
:class=
"body.type_"
>
<!--
-->
<span
:is=
"item.tag || 'span'"
v-for=
"(item, index) in assemble_text"
:class=
"item.type"
:key=
"index"
>
<!--
...
...
@@ -19,7 +19,11 @@ import languages from '../utils/languages.js'
export
default
{
name
:
'
DefElement
'
,
props
:
{
body
:
Object
body
:
Object
,
tag
:
{
type
:
String
,
default
:
'
li
'
}
}
,
computed
:
{
unparsed
:
function
(){
...
...
This diff is collapsed.
Click to expand it.
src/components/Definition.vue
+
1
−
1
View file @
a2466fa0
...
...
@@ -68,7 +68,7 @@ var Definition = {
export
default
Definition
</
script
>
<
style
>
li
.quote
{
q
{
font-style
:
italic
;
}
...
...
This diff is collapsed.
Click to expand it.
src/components/Example.vue
+
2
−
4
View file @
a2466fa0
<
template
>
<li
class=
"example"
>
<ul>
<DefElement
:body=
"body.quote"
:class=
"'quote'"
@
article-click=
"article_link_click"
/>
<DefElement
:body=
"body.explanation"
v-if=
"body.explanation"
@
article-click=
"article_link_click"
/>
</ul>
<DefElement
tag=
"q"
:body=
"body.quote"
@
article-click=
"article_link_click"
/>
-
<DefElement
tag=
"span"
:body=
"body.explanation"
v-if=
"body.explanation && body.explanation.content.length"
@
article-click=
"article_link_click"
/>
</li>
</
template
>
...
...
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