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
da8ad0e2
Commit
da8ad0e2
authored
4 years ago
by
jackie / Andrea Ida Malkah Klaura
Browse files
Options
Downloads
Patches
Plain Diff
remove Debug.vue component
parent
c3966aa5
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
+0
-1
0 additions, 1 deletion
src/App.vue
src/components/Debug.vue
+0
-73
0 additions, 73 deletions
src/components/Debug.vue
src/router.js
+0
-2
0 additions, 2 deletions
src/router.js
with
0 additions
and
76 deletions
src/App.vue
+
0
−
1
View file @
da8ad0e2
...
...
@@ -41,7 +41,6 @@ export default {
{
slug
:
'
emissions
'
,
title
:
'
Emissions
'
},
{
slug
:
'
settings
'
,
title
:
'
Settings
'
},
{
slug
:
'
credits
'
,
title
:
'
Credits
'
},
{
slug
:
'
debug
'
,
title
:
'
Debug
'
}
],
}
},
...
...
This diff is collapsed.
Click to expand it.
src/components/Debug.vue
deleted
100644 → 0
+
0
−
73
View file @
c3966aa5
<
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
)
{
this
.
$log
.
debug
(
'
Request headers:
'
)
this
.
$log
.
debug
(
headers
)
this
.
$log
.
debug
(
'
Request data:
'
)
this
.
$log
.
debug
(
data
)
return
data
}
function
debugErrorResponse
(
data
)
{
this
.
$log
.
debug
(
'
Response data:
'
)
this
.
$log
.
debug
(
data
)
return
data
}
export
default
{
data
()
{
return
{
response
:
''
}
},
methods
:
{
debug
()
{
axios
.
get
(
process
.
env
.
VUE_APP_API_STEERING
+
'
users/
'
,
{
withCredentials
:
true
,
transformRequest
:
[
debugErrorRequest
],
transformResponse
:
[
debugErrorResponse
]
}).
then
(
response
=>
{
this
.
response
=
response
this
.
$log
.
debug
(
response
)
}).
catch
(
error
=>
{
this
.
$log
.
error
(
error
)
alert
(
'
Error: see console for details
'
)
})
}
}
}
</
script
>
<
style
scoped
>
p
{
text-align
:
left
;
}
</
style
>
This diff is collapsed.
Click to expand it.
src/router.js
+
0
−
2
View file @
da8ad0e2
...
...
@@ -7,7 +7,6 @@ import Settings from '@/components/Settings'
import
ShowManager
from
'
@/components/ShowManager
'
import
FileManager
from
'
@/components/FileManager
'
import
EmissionManager
from
'
@/components/EmissionManager
'
import
Debug
from
'
@/components/Debug
'
Vue
.
use
(
Router
)
...
...
@@ -20,6 +19,5 @@ export default new Router({
{
path
:
'
/help
'
,
name
:
'
help
'
,
component
:
Help
},
{
path
:
'
/settings
'
,
name
:
'
settings
'
,
component
:
Settings
},
{
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