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
be494843
Commit
be494843
authored
4 years ago
by
Ole Voldsæter
Browse files
Options
Downloads
Patches
Plain Diff
klar for å legge til vuetify
parent
53638ded
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
package.json
+0
-1
0 additions, 1 deletion
package.json
src/App.vue
+3
-7
3 additions, 7 deletions
src/App.vue
src/components/Autocomplete.vue
+28
-0
28 additions, 0 deletions
src/components/Autocomplete.vue
with
31 additions
and
8 deletions
package.json
+
0
−
1
View file @
be494843
...
...
@@ -8,7 +8,6 @@
"lint"
:
"vue-cli-service lint"
},
"dependencies"
:
{
"
@trevoreyre/autocomplete-vue
"
:
"
^2.2.0
"
,
"
axios
"
:
"
^0.19.2
"
,
"
core-js
"
:
"
^2.6.11
"
,
"
vue
"
:
"
^2.6.11
"
,
...
...
This diff is collapsed.
Click to expand it.
src/App.vue
+
3
−
7
View file @
be494843
...
...
@@ -7,11 +7,8 @@
</header>
<main
:class=
"(article.error || article.lemmas.length || search_results.length || waiting) ? '' : 'welcome '"
>
<div
class=
"search_container"
>
<autocomplete
:debounceTime=
"100"
:auto-select=
"true"
:search=
"search"
@
submit=
"select_result"
placeholder=
"søk..."
ref=
"search"
>
<template
#result
="
{result, props}">
<li
class=
"suggestion"
v-bind=
"props"
>
{{
result
.
label
}}
</li>
</
template
>
</autocomplete>
<Autocomplete
@
submit=
"select_result"
>
</Autocomplete>
<div
class=
"lang_select_container"
>
<select
class=
"lang_select"
name=
"lang"
v-model=
"lang"
>
<option
value=
"bob,nob"
>
Begge ordbøker
</option>
...
...
@@ -46,8 +43,7 @@ import entities from './utils/entities.js'
import
Article
from
'
./components/Article.vue
'
import
Preview
from
'
./components/Preview.vue
'
import
SearchResults
from
'
./components/SearchResults.vue
'
import
Autocomplete
from
'
@trevoreyre/autocomplete-vue
'
import
'
@trevoreyre/autocomplete-vue/dist/style.css
'
import
Autocomplete
from
'
./components/Autocomplete.vue
'
var
api_endpoint
=
'
https://beta.ordbok.uib.no/api/dict
'
...
...
This diff is collapsed.
Click to expand it.
src/components/Autocomplete.vue
0 → 100644
+
28
−
0
View file @
be494843
<
template
>
<div
class=
""
>
</div>
</
template
>
<
script
>
import
DefElement
from
'
./DefElement.vue
'
export
default
{
name
:
'
Autocomplete
'
,
props
:
{
},
components
:
{
DefElement
},
methods
:
{
article_link_click
:
function
(
item
)
{
this
.
$emit
(
'
article-click
'
,
item
)
}
}
}
</
script
>
<
style
scoped
>
li
.compound_list
ul
li
{
display
:
inline
;
}
</
style
>
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