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
aec7b9b7
Commit
aec7b9b7
authored
3 years ago
by
Henrik Askjer
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
d74dc080
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/DictionaryView.vue
+0
-10
0 additions, 10 deletions
src/components/DictionaryView.vue
src/components/SearchResults.vue
+0
-1
0 additions, 1 deletion
src/components/SearchResults.vue
with
0 additions
and
11 deletions
src/components/DictionaryView.vue
+
0
−
10
View file @
aec7b9b7
...
...
@@ -161,11 +161,7 @@ function load_articles(self, query, offset, n, dict) {
else
{
self
.
error
=
null
}
self
.
search_results
[
dict
]
=
results
console
.
log
(
"
DICT
"
,
dict
,
"
OFFSET
"
,
offset
,
"
N
"
,
n
,
"
RESULTS
"
,
results
)
})
.
catch
(
error
=>
{
self
.
waiting_for_articles
=
false
...
...
@@ -174,7 +170,6 @@ function load_articles(self, query, offset, n, dict) {
}
else
{
self
.
search_results
[
dict
]
=
[]
console
.
log
(
"
NO
"
)
}
}
return
Promise
.
resolve
()
...
...
@@ -192,7 +187,6 @@ function navigate_to_query(self, word) {
let
offset
=
0
if
(
self
.
page
)
{
offset
=
10
*
(
self
.
page
-
1
)
console
.
log
(
"
PAGE
"
,
self
.
page
)
}
if
(
self
.
pos_selected
!=
"
ALL
"
)
params
.
wc
=
self
.
pos_selected
api
.
get
(
'
articles?
'
,
{
params
}).
then
((
response
)
=>
{
...
...
@@ -294,7 +288,6 @@ export default {
let
path
=
`/
${
this
.
lang
}
/search`
let
pos
=
this
.
pos_param
()
let
query
=
{
q
:
event
.
match
||
event
.
q
}
console
.
log
(
pos
)
if
(
pos
!=
"
all
"
)
query
[
"
pos
"
]
=
pos
if
(
this
.
scope
)
query
[
"
scope
"
]
=
this
.
scope
this
.
$router
.
push
({
path
,
query
})
...
...
@@ -323,9 +316,7 @@ export default {
let
offset
=
0
if
(
this
.
page
)
{
offset
=
10
*
(
this
.
page
-
1
)
console
.
log
(
"
PAGE
"
,
this
.
page
)
}
console
.
log
(
query
.
q
)
console
.
log
(
this
)
let
self
=
this
...
...
@@ -365,7 +356,6 @@ export default {
},
update_lang_form
:
function
(
lang
)
{
console
.
log
(
this
.
article_info
)
this
.
lang
=
lang
this
.
page
=
1
this
.
reload_params
()
...
...
This diff is collapsed.
Click to expand it.
src/components/SearchResults.vue
+
0
−
1
View file @
aec7b9b7
...
...
@@ -72,7 +72,6 @@ export default {
},
both_hash
:
function
(){
console
.
log
(
this
.
both_dicts
.
length
)
return
this
.
both_dicts
.
reduce
((
hash
,
hit
)
=>
(
hash
+
hit
.
article_id
)
%
10000
,
0
)
},
bm_hash
:
function
(){
...
...
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