Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dashboard
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
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
AURA
dashboard
Commits
ff57d477
Commit
ff57d477
authored
7 years ago
by
jackie / Andrea Ida Malkah Klaura
Browse files
Options
Downloads
Patches
Plain Diff
added simple debug panel
parent
b5a64b84
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/App.vue
+2
-1
2 additions, 1 deletion
src/App.vue
src/components/Debug.vue
+67
-0
67 additions, 0 deletions
src/components/Debug.vue
src/router/index.js
+3
-1
3 additions, 1 deletion
src/router/index.js
with
72 additions
and
2 deletions
src/App.vue
+
2
−
1
View file @
ff57d477
...
...
@@ -25,7 +25,8 @@ export default {
{
slug
:
'
shows
'
,
title
:
'
Sendungen verwalten
'
},
{
slug
:
'
files
'
,
title
:
'
Dateien und Playlists
'
},
{
slug
:
'
settings
'
,
title
:
'
Settings
'
},
{
slug
:
'
credits
'
,
title
:
'
Credits
'
}
{
slug
:
'
credits
'
,
title
:
'
Credits
'
},
{
slug
:
'
debug
'
,
title
:
'
Debug
'
}
],
'
user
'
:
{
name
:
'
jackie
'
,
...
...
This diff is collapsed.
Click to expand it.
src/components/Debug.vue
0 → 100644
+
67
−
0
View file @
ff57d477
<
template
>
<b-container>
<h1>
Debugging page
</h1>
<p>
This page is only used for debugging purposes and should be removed from
a productive version.
</p>
<p>
Here we go:
<b-button
size=
"lg"
variant=
"warning"
@
click=
"debug()"
>
Debug now!
</b-button>
</p>
Response headers:
<br
/>
<div
style=
"border: 1px dotted #aaa"
>
{{
response
.
headers
}}
</div>
Response data:
<br
/>
<div
style=
"border: 1px dotted #aaa"
>
{{
response
.
data
}}
</div>
</b-container>
</
template
>
<
script
>
import
axios
from
'
axios
'
function
debugErrorRequest
(
data
,
headers
)
{
console
.
log
(
'
Request headers:
'
)
console
.
log
(
headers
)
console
.
log
(
'
Request data:
'
)
console
.
log
(
data
)
return
data
}
function
debugErrorResponse
(
data
)
{
console
.
log
(
'
Response data:
'
)
console
.
log
(
data
)
return
data
}
export
default
{
data
()
{
return
{
response
:
''
}
},
methods
:
{
debug
()
{
axios
.
get
(
process
.
env
.
API_STEERING_SHOWS
+
'
user/
'
,
{
widthCredentials
:
true
,
transformRequest
:
[
debugErrorRequest
],
transformResponse
:
[
debugErrorResponse
]
}).
then
(
response
=>
{
this
.
response
=
response
console
.
log
(
response
)
}).
catch
(
error
=>
{
console
.
log
(
error
)
alert
(
error
)
})
}
}
}
</
script
>
<
style
scoped
>
p
{
text-align
:
left
;
}
</
style
>
This diff is collapsed.
Click to expand it.
src/router/index.js
+
3
−
1
View file @
ff57d477
...
...
@@ -7,6 +7,7 @@ import Credits from '@/components/Credits'
import
Settings
from
'
@/components/Settings
'
import
ShowManager
from
'
@/components/ShowManager
'
import
FileManager
from
'
@/components/FileManager
'
import
Debug
from
'
@/components/Debug
'
Vue
.
use
(
Router
)
...
...
@@ -18,6 +19,7 @@ export default new Router({
{
path
:
'
/login
'
,
name
:
'
login
'
,
component
:
LogIn
},
{
path
:
'
/help
'
,
name
:
'
help
'
,
component
:
Help
},
{
path
:
'
/settings
'
,
name
:
'
settings
'
,
component
:
Settings
},
{
path
:
'
/credits
'
,
name
:
'
credits
'
,
component
:
Credits
}
{
path
:
'
/credits
'
,
name
:
'
credits
'
,
component
:
Credits
},
{
path
:
'
/debug
'
,
name
:
'
debug
'
,
component
:
Debug
}
]
})
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