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
08cb9fd7
authored
Jul 21, 2017
by
Heechul Kim
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
added group select
parent
1d3a48f0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
9 deletions
quasar/src/App.vue
quasar/src/components/app/File.vue
quasar/src/components/machine/List.vue
quasar/src/components/os/List.vue
quasar/src/components/section/List.vue
quasar/src/App.vue
View file @
08cb9fd7
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
exact
exact
replace
replace
@
click=
"trigger()"
@
click=
"trigger()"
>
그룹
>
서버
그룹
</q-tab>
</q-tab>
<q-tab
<q-tab
v-if=
"this.$store.state.login"
v-if=
"this.$store.state.login"
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
exact
exact
replace
replace
@
click=
"trigger()"
@
click=
"trigger()"
>
애플리케이션
>
APP
</q-tab>
</q-tab>
<q-tab
<q-tab
v-if=
"this.$store.state.login && this.$store.state.role === 'admin'"
v-if=
"this.$store.state.login && this.$store.state.role === 'admin'"
...
@@ -123,7 +123,7 @@ export default {
...
@@ -123,7 +123,7 @@ export default {
name
:
'app'
,
name
:
'app'
,
data
()
{
data
()
{
return
{
return
{
porchVersion
:
'
0.0.1
'
,
porchVersion
:
'
1.0
'
,
intervalRefresh
:
[],
intervalRefresh
:
[],
position
:
'bottom'
,
position
:
'bottom'
,
reverse
:
false
,
reverse
:
false
,
...
...
quasar/src/components/app/File.vue
View file @
08cb9fd7
...
@@ -193,7 +193,6 @@ export default {
...
@@ -193,7 +193,6 @@ export default {
this
.
$router
.
push
(
'/log/file/'
+
response
.
body
)
this
.
$router
.
push
(
'/log/file/'
+
response
.
body
)
},
response
=>
{
},
response
=>
{
Toast
.
create
.
negative
(
'서버 파일 배포 실패'
)
Toast
.
create
.
negative
(
'서버 파일 배포 실패'
)
return
})
})
},
},
toggle
:
function
()
{
toggle
:
function
()
{
...
...
quasar/src/components/machine/List.vue
View file @
08cb9fd7
...
@@ -433,11 +433,9 @@ export default {
...
@@ -433,11 +433,9 @@ export default {
// Validate data
// Validate data
if
(
!
data
.
mac
)
{
if
(
!
data
.
mac
)
{
Toast
.
create
.
negative
(
'MAC 주소는 필수 입력 항목입니다.'
)
Toast
.
create
.
negative
(
'MAC 주소는 필수 입력 항목입니다.'
)
return
}
}
else
if
(
!
data
.
ip
)
{
else
if
(
!
data
.
ip
)
{
Toast
.
create
.
negative
(
'IP 주소는 필수 입력 항목입니다.'
)
Toast
.
create
.
negative
(
'IP 주소는 필수 입력 항목입니다.'
)
return
}
}
else
{
// all validated. submit it.
else
{
// all validated. submit it.
const
url
=
API_URL
+
`/machine/
${
row
.
name
}
`
const
url
=
API_URL
+
`/machine/
${
row
.
name
}
`
...
...
quasar/src/components/os/List.vue
View file @
08cb9fd7
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<div
ref=
"machine-tab"
>
<div
ref=
"machine-tab"
>
<div
class=
"card"
>
<div
class=
"card"
>
<div
class=
"card-title"
>
<div
class=
"card-title"
>
<input
type=
"checkbox"
@
click=
"toggle"
v-model=
"allSelected"
>
<input
type=
"checkbox"
@
click=
"toggle"
>
선택 OS:
{{
this
.
form
.
os
}}
선택 OS:
{{
this
.
form
.
os
}}
</div>
</div>
<div
class=
"card-content"
>
<div
class=
"card-content"
>
...
@@ -138,6 +138,7 @@ export default {
...
@@ -138,6 +138,7 @@ export default {
},
},
toggle
:
function
()
{
toggle
:
function
()
{
let
selected
=
[]
let
selected
=
[]
this
.
allSelected
=
!
this
.
allSelected
if
(
this
.
allSelected
)
{
if
(
this
.
allSelected
)
{
this
.
machines
.
forEach
(
function
(
machine
)
{
this
.
machines
.
forEach
(
function
(
machine
)
{
selected
.
push
(
machine
)
selected
.
push
(
machine
)
...
@@ -186,7 +187,6 @@ export default {
...
@@ -186,7 +187,6 @@ export default {
})
})
},
response
=>
{
},
response
=>
{
Toast
.
create
.
negative
(
'서버 정보 수신 실패'
)
Toast
.
create
.
negative
(
'서버 정보 수신 실패'
)
return
})
})
},
},
getSupportedOS
:
function
()
{
getSupportedOS
:
function
()
{
...
...
quasar/src/components/section/List.vue
View file @
08cb9fd7
...
@@ -126,7 +126,6 @@ export default {
...
@@ -126,7 +126,6 @@ export default {
if
(
data
.
cn
.
length
<
4
)
{
if
(
data
.
cn
.
length
<
4
)
{
let
err
=
'일반명은 4글자 이상이어야 합니다.'
let
err
=
'일반명은 4글자 이상이어야 합니다.'
Toast
.
create
.
negative
(
err
)
Toast
.
create
.
negative
(
err
)
return
}
}
else
{
// all validated. submit it.
else
{
// all validated. submit it.
const
url
=
API_URL
+
`/section/
${
row
.
name
}
`
const
url
=
API_URL
+
`/section/
${
row
.
name
}
`
...
...
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