Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spaß mit Wappen
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rasmus Thomsen
Spaß mit Wappen
Merge requests
!3
frontend: Spieleseite weiterentwickelt
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
frontend: Spieleseite weiterentwickelt
thorben
into
master
Overview
1
Commits
30
Pipelines
0
Changes
3
Merged
Thorben Rolf
requested to merge
thorben
into
master
3 years ago
Overview
1
Commits
30
Pipelines
0
Changes
3
Expand
Icons Integriert (Hinzugefügt in frontend/static/img/)
Quiz Anleitung durch hover anzeigen
Default Quizseite integriert
Link auf Spiele in Index hinzugefügt
0
0
Merge request reports
Viewing commit
3965985c
Prev
Next
Show latest version
3 files
+
48
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
3965985c
frontend: add backend connection/proxy; add axios example
· 3965985c
TimFB
authored
3 years ago
frontend/pages/info.vue
+
33
−
0
Options
@@ -10,6 +10,39 @@ export default {
components
:
{
NavSwitcher
,
},
created
()
{
this
.
getRibbons
();
},
methods
:
{
async
getRibbonsBrickedDemo
()
{
await
this
.
$axios
.
get
(
"
/api/ribbons?from=2&to=1
"
)
.
then
((
res
)
=>
{
console
.
log
(
res
.
data
);
})
.
catch
((
e
)
=>
{
if
(
e
.
response
)
{
console
.
log
(
`The API returned with an error status code:
${
e
.
response
.
status
}
`
);
}
});
},
async
getRibbons
()
{
await
this
.
$axios
.
get
(
"
/api/ribbons
"
)
.
then
((
res
)
=>
{
console
.
log
(
res
.
data
);
})
.
catch
((
e
)
=>
{
if
(
e
.
response
)
{
console
.
log
(
`The API returned with an error status code:
${
e
.
response
.
status
}
`
);
}
});
},
},
};
</
script
>
Loading