Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vue-cdbp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Markus Opolka
vue-cdbp
Commits
e7c39480
Commit
e7c39480
authored
7 years ago
by
Markus Opolka
Browse files
Options
Downloads
Patches
Plain Diff
Replace some list calls with quicker endpoint
- Improves the user experience
parent
d3e965e9
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib.js
+4
-1
4 additions, 1 deletion
lib.js
src/components/Features.vue
+3
-3
3 additions, 3 deletions
src/components/Features.vue
src/components/Letters.vue
+1
-1
1 addition, 1 deletion
src/components/Letters.vue
with
8 additions
and
5 deletions
lib.js
+
4
−
1
View file @
e7c39480
...
@@ -155,12 +155,15 @@ function metadataTable (objs) {
...
@@ -155,12 +155,15 @@ function metadataTable (objs) {
try
{
try
{
items
.
push
({
items
.
push
({
title
:
meta
.
title
.
_text
,
title
:
meta
.
title
.
_text
,
name
:
item
.
name
,
collection
:
meta
.
collection
.
_text
,
collection
:
meta
.
collection
.
_text
,
author
:
meta
.
author
.
_text
,
author
:
meta
.
author
.
_text
,
recipient
:
meta
.
recipient
.
_text
,
recipient
:
meta
.
recipient
.
_text
,
gender
:
meta
.
gender
.
_text
,
gender
:
meta
.
gender
.
_text
,
date
:
meta
.
date
.
_text
,
date
:
meta
.
date
.
_text
,
place
:
meta
.
place
.
_text
place
:
meta
.
place
.
_text
,
url
:
item
.
url
,
link
:
item
.
link
})
})
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
log
(
arguments
.
callee
)
// eslint-disable-line no-caller
console
.
log
(
arguments
.
callee
)
// eslint-disable-line no-caller
...
...
This diff is collapsed.
Click to expand it.
src/components/Features.vue
+
3
−
3
View file @
e7c39480
...
@@ -149,9 +149,9 @@ export default {
...
@@ -149,9 +149,9 @@ export default {
},
},
created
()
{
created
()
{
// Create list of all letters
// Create list of all letters
this
.
$http
.
get
(
'
http://localhost:3000/api/
l
et
ters
'
).
then
(
function
(
data
)
{
this
.
$http
.
get
(
'
http://localhost:3000/api/
m
et
adata/table
'
).
then
(
function
(
data
)
{
for
(
let
value
of
data
.
body
)
{
for
(
let
letter
of
data
.
body
)
{
this
.
letters
.
push
({
text
:
value
.
name
})
this
.
letters
.
push
({
text
:
letter
.
name
})
}
}
})
})
}
}
...
...
This diff is collapsed.
Click to expand it.
src/components/Letters.vue
+
1
−
1
View file @
e7c39480
...
@@ -42,7 +42,7 @@ export default {
...
@@ -42,7 +42,7 @@ export default {
}
}
},
},
created
()
{
created
()
{
this
.
$http
.
get
(
'
http://localhost:3000/api/
l
et
ters
'
).
then
(
function
(
data
)
{
this
.
$http
.
get
(
'
http://localhost:3000/api/
m
et
adata/table
'
).
then
(
function
(
data
)
{
this
.
letters
=
data
.
body
this
.
letters
=
data
.
body
})
})
}
}
...
...
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