Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
jijisa
/
porch
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
78535512
authored
Mar 31, 2017
by
Heechul Kim
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
clean console.log
parent
7233a199
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
2 additions
and
18 deletions
quasar/src/App.vue
quasar/src/components/Login.vue
quasar/src/components/app/Create.vue
quasar/src/components/machine/Create.vue
quasar/src/components/machine/Install.vue
quasar/src/components/machine/List.vue
quasar/src/components/os/List.vue
quasar/src/components/play/List.vue
quasar/src/components/section/Create.vue
quasar/src/App.vue
View file @
78535512
...
@@ -173,9 +173,7 @@ export default {
...
@@ -173,9 +173,7 @@ export default {
}
}
}
}
const
url
=
API_URL
+
'/account/refresh'
const
url
=
API_URL
+
'/account/refresh'
console
.
log
(
url
)
this
.
$http
.
post
(
url
,
{},
headers
).
then
(
response
=>
{
this
.
$http
.
post
(
url
,
{},
headers
).
then
(
response
=>
{
console
.
log
(
response
.
body
.
token
)
// this.$cookie.set('token', response.body.token)
// this.$cookie.set('token', response.body.token)
this
.
$store
.
commit
(
'setToken'
,
response
.
body
.
token
)
this
.
$store
.
commit
(
'setToken'
,
response
.
body
.
token
)
},
response
=>
{
},
response
=>
{
...
...
quasar/src/components/Login.vue
View file @
78535512
...
@@ -88,7 +88,6 @@ export default {
...
@@ -88,7 +88,6 @@ export default {
this
.
$router
.
push
(
'/section'
)
this
.
$router
.
push
(
'/section'
)
},
response
=>
{
},
response
=>
{
console
.
log
(
response
.
body
)
Toast
.
create
.
negative
({
Toast
.
create
.
negative
({
html
:
'로그인 실패: '
+
response
.
body
.
error
,
html
:
'로그인 실패: '
+
response
.
body
.
error
,
timeout
:
5000
timeout
:
5000
...
...
quasar/src/components/app/Create.vue
View file @
78535512
...
@@ -105,7 +105,6 @@ export default {
...
@@ -105,7 +105,6 @@ export default {
desc
:
this
.
form
.
desc
desc
:
this
.
form
.
desc
}
}
if
(
!
payload
.
repo
)
{
if
(
!
payload
.
repo
)
{
console
.
log
(
payload
)
return
return
}
}
const
token
=
this
.
$store
.
state
.
token
const
token
=
this
.
$store
.
state
.
token
...
@@ -118,7 +117,6 @@ export default {
...
@@ -118,7 +117,6 @@ export default {
this
.
$http
.
post
(
url
,
payload
,
headers
).
then
(
response
=>
{
this
.
$http
.
post
(
url
,
payload
,
headers
).
then
(
response
=>
{
this
.
$router
.
push
(
'/app'
)
this
.
$router
.
push
(
'/app'
)
},
response
=>
{
},
response
=>
{
console
.
log
(
response
.
status
)
Toast
.
create
.
negative
(
'애플리케이션 정보 수신 실패'
)
Toast
.
create
.
negative
(
'애플리케이션 정보 수신 실패'
)
this
.
$refs
.
name
.
focus
()
this
.
$refs
.
name
.
focus
()
})
})
...
...
quasar/src/components/machine/Create.vue
View file @
78535512
...
@@ -230,7 +230,6 @@ export default {
...
@@ -230,7 +230,6 @@ export default {
preseed
:
''
preseed
:
''
}
}
if
(
!
payload
.
os
)
{
if
(
!
payload
.
os
)
{
console
.
log
(
payload
)
return
return
}
}
const
token
=
this
.
$store
.
state
.
token
const
token
=
this
.
$store
.
state
.
token
...
...
quasar/src/components/machine/Install.vue
View file @
78535512
...
@@ -170,7 +170,6 @@ export default {
...
@@ -170,7 +170,6 @@ export default {
}
}
}
}
let
url
=
API_URL
+
`/machine/
${
this
.
machine
}
/console/close`
let
url
=
API_URL
+
`/machine/
${
this
.
machine
}
/console/close`
console
.
log
(
url
)
this
.
$http
.
post
(
url
,
{},
headers
).
then
(
response
=>
{
this
.
$http
.
post
(
url
,
{},
headers
).
then
(
response
=>
{
},
response
=>
{
},
response
=>
{
})
})
...
@@ -183,7 +182,6 @@ export default {
...
@@ -183,7 +182,6 @@ export default {
}
}
}
}
let
url
=
API_URL
+
`/machine/
${
row
.
name
}
/console`
let
url
=
API_URL
+
`/machine/
${
row
.
name
}
/console`
console
.
log
(
url
)
this
.
$http
.
get
(
url
,
headers
).
then
(
response
=>
{
this
.
$http
.
get
(
url
,
headers
).
then
(
response
=>
{
this
.
machine
=
row
.
name
this
.
machine
=
row
.
name
this
.
consoleUrl
=
response
.
body
this
.
consoleUrl
=
response
.
body
...
...
quasar/src/components/machine/List.vue
View file @
78535512
...
@@ -220,7 +220,6 @@ export default {
...
@@ -220,7 +220,6 @@ export default {
}
}
}
}
let
url
=
API_URL
+
`/machine/
${
this
.
machine
}
/console/close`
let
url
=
API_URL
+
`/machine/
${
this
.
machine
}
/console/close`
console
.
log
(
url
)
this
.
$http
.
post
(
url
,
{},
headers
).
then
(
response
=>
{
this
.
$http
.
post
(
url
,
{},
headers
).
then
(
response
=>
{
},
response
=>
{
},
response
=>
{
})
})
...
@@ -233,7 +232,6 @@ export default {
...
@@ -233,7 +232,6 @@ export default {
}
}
}
}
let
url
=
API_URL
+
`/machine/
${
row
.
name
}
/console`
let
url
=
API_URL
+
`/machine/
${
row
.
name
}
/console`
console
.
log
(
url
)
this
.
$http
.
get
(
url
,
headers
).
then
(
response
=>
{
this
.
$http
.
get
(
url
,
headers
).
then
(
response
=>
{
this
.
machine
=
row
.
name
this
.
machine
=
row
.
name
this
.
consoleUrl
=
response
.
body
this
.
consoleUrl
=
response
.
body
...
...
quasar/src/components/os/List.vue
View file @
78535512
...
@@ -135,12 +135,10 @@ export default {
...
@@ -135,12 +135,10 @@ export default {
}
}
const
url
=
API_URL
+
'/machine/os'
const
url
=
API_URL
+
'/machine/os'
this
.
$http
.
post
(
url
,
this
.
form
,
headers
).
then
(
response
=>
{
this
.
$http
.
post
(
url
,
this
.
form
,
headers
).
then
(
response
=>
{
console
.
log
(
response
.
body
)
this
.
$router
.
push
(
'/log'
)
},
response
=>
{
},
response
=>
{
console
.
log
(
response
.
statusText
)
Toast
.
create
.
negative
(
'서버 OS 배포 실패'
)
// Toast.create.negative('서버 OS 배포 실패')
})
})
this
.
$router
.
push
(
'/log'
)
},
},
toggle
:
function
()
{
toggle
:
function
()
{
let
selected
=
[]
let
selected
=
[]
...
...
quasar/src/components/play/List.vue
View file @
78535512
...
@@ -167,7 +167,6 @@ export default {
...
@@ -167,7 +167,6 @@ export default {
else
{
else
{
this
.
sameAsBefore
=
0
this
.
sameAsBefore
=
0
}
}
console
.
log
(
this
.
sameAsBefore
)
if
(
this
.
sameAsBefore
===
30
)
{
if
(
this
.
sameAsBefore
===
30
)
{
clearInterval
(
this
.
intervalLogObj
)
clearInterval
(
this
.
intervalLogObj
)
}
}
...
@@ -190,7 +189,6 @@ export default {
...
@@ -190,7 +189,6 @@ export default {
Toast
.
create
.
negative
(
'서버 애플리케이션 배포 실패'
)
Toast
.
create
.
negative
(
'서버 애플리케이션 배포 실패'
)
return
return
})
})
// this.intervalLogObj = setInterval(this.getLog, 5 * 1000)
},
},
toggle
:
function
()
{
toggle
:
function
()
{
let
selected
=
[]
let
selected
=
[]
...
@@ -275,7 +273,6 @@ export default {
...
@@ -275,7 +273,6 @@ export default {
this
.
$http
.
get
(
url
,
headers
).
then
(
response
=>
{
this
.
$http
.
get
(
url
,
headers
).
then
(
response
=>
{
let
self
=
this
let
self
=
this
let
result
=
response
.
body
let
result
=
response
.
body
console
.
log
(
result
)
result
.
forEach
(
function
(
element
)
{
result
.
forEach
(
function
(
element
)
{
self
.
sections
[
element
.
section
]
=
[]
self
.
sections
[
element
.
section
]
=
[]
})
})
...
...
quasar/src/components/section/Create.vue
View file @
78535512
...
@@ -115,7 +115,6 @@ export default {
...
@@ -115,7 +115,6 @@ export default {
}
}
}
}
this
.
$http
.
post
(
url
,
payload
,
headers
).
then
(
response
=>
{
this
.
$http
.
post
(
url
,
payload
,
headers
).
then
(
response
=>
{
console
.
log
(
response
.
status
)
this
.
$router
.
push
(
'/section'
)
this
.
$router
.
push
(
'/section'
)
},
response
=>
{
},
response
=>
{
Toast
.
create
.
negative
(
'그룹 생성 실패'
)
Toast
.
create
.
negative
(
'그룹 생성 실패'
)
...
...
Write
Preview
Markdown
is supported
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