Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
dashboard
Commits
da8ad0e2
Commit
da8ad0e2
authored
Jun 15, 2020
by
jackie / Andrea Ida Malkah Klaura
Browse files
remove Debug.vue component
parent
c3966aa5
Changes
3
Show whitespace changes
Inline
Side-by-side
src/App.vue
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
'
}
],
}
},
...
...
src/components/Debug.vue
deleted
100644 → 0
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
>
src/router.js
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
}
]
})
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment