Skip to content
This repository was archived by the owner on Jan 20, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
6a5973a
Merge pull request #1 from apache/master
Jan 31, 2020
16c67a4
Add filter possibility to selections
Feb 3, 2020
e5e9d9e
Merge pull request #2 from apache/master
Feb 4, 2020
85c5fe9
Network selection: Add new network
Feb 4, 2020
72e9df3
Implement submit method
Feb 5, 2020
7e23d6e
Merge branch master into utchoang:feature/vm-wizard
Feb 6, 2020
ccb2267
Merge branch master into utchoang:feature/vm-wizard
Feb 7, 2020
48dca07
Merge branch master into utchoang:feature/vm-wizard
Feb 10, 2020
e9681c7
Merge branch master into utchoang:feature/vm-wizard
Feb 11, 2020
c345f1e
Remove network creation
Feb 11, 2020
1a9c849
Remove methods of network creation
Feb 11, 2020
2776b4b
Change layout from collapse to steps
Feb 11, 2020
0cf26b8
Add translations for all input placeholders & reset the form on navig…
Feb 11, 2020
28e351e
Add pod, cluster and host in step Basic Setup
Feb 11, 2020
fbddc73
Change the step mechanism & add parameters to the api
Feb 12, 2020
ed8e825
Add network configuration (ip, mac) to network list params
Feb 12, 2020
9221aa0
Merge branch master into utchoang:feature/vm-wizard
Feb 12, 2020
e49cf9d
Delete unused components
Feb 13, 2020
376c18f
Implement submit method (fix pollJob error)
Feb 13, 2020
1e5d252
Merge branch master into utchoang:feature/vm-wizard
Feb 13, 2020
591c8ab
Format Info card for vm config summary
Feb 13, 2020
87440f0
Add scrollable into each section
Feb 14, 2020
3401b7f
Fix show error from developer tool console
Feb 14, 2020
47cbc08
Merge branch master into utchoang:feature/vm-wizard
Feb 17, 2020
76521fa
Fixes:
Feb 17, 2020
323853c
Fixes style info card of SSHKeypair detail
Feb 17, 2020
892375b
Add scrollable to network configuration
Feb 17, 2020
7748344
Merge remote-tracking branch 'origin/master' into feature/vm-wizard
yadvr Feb 17, 2020
4646c80
fix placeholder bug, failing component
yadvr Feb 17, 2020
048c4ce
Add support to specify keyboard, userdata, group
Feb 18, 2020
9e09c61
Fixes:
Feb 19, 2020
c04f269
Merge branch master into utchoang:feature/vm-wizard
Feb 19, 2020
ddf585f
Merge branch master into utchoang:feature/vm-wizard
Feb 20, 2020
2d1be4d
Merge remote-tracking branch 'origin/master' into feature/vm-wizard
yadvr Feb 23, 2020
02f5e87
Merge remote-tracking branch 'origin/master' into feature/vm-wizard
yadvr Mar 2, 2020
1f4a3f6
Merge branch master into utchoang:feature/vm-wizard
Mar 18, 2020
bd34d57
Merge branch 'master' into feature/vm-wizard
yadvr Mar 25, 2020
decb479
minor fixes
shwstppr Mar 25, 2020
58efc73
Merge remote-tracking branch 'origin/master' into feature/vm-wizard
yadvr Mar 25, 2020
e775ea9
Merge remote-tracking branch 'origin/master' into feature/vm-wizard
yadvr Mar 25, 2020
6a3e4be
pg size fix
yadvr Mar 25, 2020
13cb2f9
view port fixes
yadvr Mar 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@
"sshKeyPairs": "SSH keypairs",
"wednesday": "Wednesday",
"noselect": "No thanks",
"groupname": "Add to group",
"group": "Group",
"keyboard": "Keyboard language",
"userdata": "Userdata",
"label.back": "Back",
Expand Down
7 changes: 3 additions & 4 deletions src/utils/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ export const deviceEnquire = function (callback) {
}
}

// screen and (max-width: 1087.99px)
enquireJs
.register('screen and (max-width: 576px)', matchMobile)
.register('screen and (min-width: 576px) and (max-width: 1280px)', matchTablet)
.register('screen and (min-width: 1281px)', matchDesktop)
.register('screen and (max-width: 800px)', matchMobile)
.register('screen and (min-width: 800px) and (max-width: 1366px)', matchTablet)
.register('screen and (min-width: 1367px)', matchDesktop)
}
2 changes: 1 addition & 1 deletion src/views/AutogenView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
:pageSize="pageSize"
:total="itemCount"
:showTotal="total => `Total ${total} items`"
:pageSizeOptions="['10', '20', '40', '80', '100']"
:pageSizeOptions="['10', '20', '40', '80', '100', '500']"
@change="changePage"
@showSizeChange="changePageSize"
showSizeChanger
Expand Down
806 changes: 649 additions & 157 deletions src/views/compute/DeployVM.vue

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/views/compute/KubernetesServiceTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<a-spin :spinning="networkLoading">
<a-tabs
:activeKey="currentTab"
:tabPosition="device === 'tablet' || device === 'mobile' ? 'top' : 'left'"
:tabPosition="device === 'mobile' ? 'top' : 'left'"
:animated="false"
@change="handleChangeTab">
<a-tab-pane :tab="$t('details')" key="details">
Expand Down
51 changes: 42 additions & 9 deletions src/views/compute/wizard/AffinityGroupSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,24 @@
// under the License.

<template>
<a-table
:columns="columns"
:dataSource="items"
:rowKey="record => record.id"
:pagination="{showSizeChanger: true}"
:rowSelection="rowSelection"
size="middle"
>
</a-table>
<div>
<a-input-search
style="width: 25vw;float: right;margin-bottom: 10px; z-index: 8"
placeholder="Search"
v-model="filter"
@search="handleSearch" />
<a-table
:loading="loading"
:columns="columns"
:dataSource="items"
:rowKey="record => record.id"
:pagination="{showSizeChanger: true}"
:rowSelection="rowSelection"
size="middle"
:scroll="{ y: 225 }"
>
</a-table>
</div>
</template>

<script>
Expand All @@ -40,10 +49,15 @@ export default {
value: {
type: Array,
default: () => []
},
loading: {
type: Boolean,
default: false
}
},
data () {
return {
filter: '',
columns: [
{
dataIndex: 'name',
Expand All @@ -60,6 +74,13 @@ export default {
}
},
computed: {
options () {
return {
page: 1,
pageSize: 10,
keyword: ''
}
},
rowSelection () {
return {
type: 'checkbox',
Expand All @@ -76,6 +97,18 @@ export default {
this.selectedRowKeys = newValue
}
}
},
methods: {
handleSearch (value) {
this.filter = value
this.options.keyword = this.filter
this.$emit('handle-search-filter', this.options)
},
handleTableChange (pagination) {
this.options.page = pagination.current
this.options.pageSize = pagination.pageSize
this.$emit('handle-search-filter', this.options)
}
}
}
</script>
Expand Down
62 changes: 49 additions & 13 deletions src/views/compute/wizard/ComputeSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,26 @@
// under the License.

<template>
<a-table
:columns="columns"
:dataSource="tableSource"
:pagination="{showSizeChanger: true}"
:rowSelection="rowSelection"
size="middle"
>
<span slot="cpuTitle"><a-icon type="appstore" /> {{ $t('cpu') }}</span>
<span slot="ramTitle"><a-icon type="bulb" /> {{ $t('memory') }}</span>
</a-table>
<div>
<a-input-search
style="width: 25vw;float: right;margin-bottom: 10px; z-index: 8"
placeholder="Search"
v-model="filter"
@search="handleSearch" />
<a-table
:columns="columns"
:dataSource="tableSource"
:pagination="{showSizeChanger: true}"
:rowSelection="rowSelection"
:loading="loading"
size="middle"
@change="handleTableChange"
:scroll="{ y: 225 }"
>
<span slot="cpuTitle"><a-icon type="appstore" /> {{ $t('cpu') }}</span>
<span slot="ramTitle"><a-icon type="bulb" /> {{ $t('memory') }}</span>
</a-table>
</div>
</template>

<script>
Expand All @@ -39,10 +49,15 @@ export default {
value: {
type: String,
default: ''
},
loading: {
type: Boolean,
default: false
}
},
data () {
return {
filter: '',
columns: [
{
dataIndex: 'name',
Expand All @@ -64,6 +79,13 @@ export default {
}
},
computed: {
options () {
return {
page: 1,
pageSize: 10,
keyword: ''
}
},
tableSource () {
return this.computeItems.map((item) => {
return {
Expand All @@ -78,9 +100,7 @@ export default {
return {
type: 'radio',
selectedRowKeys: this.selectedRowKeys,
onSelect: (row) => {
this.$emit('select-compute-item', row.key)
}
onChange: this.onSelectRow
}
}
},
Expand All @@ -90,6 +110,22 @@ export default {
this.selectedRowKeys = [newValue]
}
}
},
methods: {
onSelectRow (value) {
this.selectedRowKeys = value
this.$emit('select-compute-item', value[0])
},
handleSearch (value) {
this.filter = value
this.options.keyword = this.filter
this.$emit('handle-search-filter', this.options)
},
handleTableChange (pagination) {
this.options.page = pagination.current
this.options.pageSize = pagination.pageSize
this.$emit('handle-search-filter', this.options)
}
}
}
</script>
Expand Down
108 changes: 85 additions & 23 deletions src/views/compute/wizard/DiskOfferingSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,37 @@
// under the License.

<template>
<a-table
:columns="columns"
:dataSource="tableSource"
:pagination="{showSizeChanger: true}"
:rowSelection="rowSelection"
size="middle"
>
<span slot="diskSizeTitle"><a-icon type="hdd" /> {{ $t('disksize') }}</span>
<span slot="iopsTitle"><a-icon type="rocket" /> {{ $t('minMaxIops') }}</span>
<template slot="diskSize" slot-scope="text, record">
<div v-if="record.isCustomized">{{ $t('isCustomized') }}</div>
<div v-else>{{ record.diskSize }} GB</div>
</template>
</a-table>
<div>
<a-input-search
style="width: 25vw;float: right;margin-bottom: 10px; z-index: 8"
placeholder="Search"
v-model="filter"
@search="handleSearch" />
<a-table
:loading="loading"
:columns="columns"
:dataSource="tableSource"
:pagination="{showSizeChanger: true}"
:rowSelection="rowSelection"
size="middle"
@change="handleTableChange"
:scroll="{ y: 225 }"
>
<span slot="diskSizeTitle"><a-icon type="hdd" /> {{ $t('disksize') }}</span>
<span slot="iopsTitle"><a-icon type="rocket" /> {{ $t('minMaxIops') }}</span>
<template slot="diskSize" slot-scope="text, record">
<div v-if="record.isCustomized">{{ $t('isCustomized') }}</div>
<div v-else-if="record.diskSize">{{ record.diskSize }} GB</div>
<div v-else>-</div>
</template>
<template slot="iops" slot-scope="text, record">
<span v-if="record.miniops && record.maxiops">{{ record.miniops }} - {{ record.maxiops }}</span>
<span v-else-if="record.miniops && !record.maxiops">{{ record.miniops }}</span>
<span v-else-if="!record.miniops && record.maxiops">{{ record.maxiops }}</span>
<span v-else>-</span>
</template>
</a-table>
</div>
</template>

<script>
Expand All @@ -43,39 +60,65 @@ export default {
value: {
type: String,
default: ''
},
loading: {
type: Boolean,
default: false
}
},
data () {
return {
filter: '',
columns: [
{
dataIndex: 'name',
title: this.$t('diskOffering'),
title: this.$t('diskoffering'),
width: '40%'
},
{
dataIndex: 'diskSize',
dataIndex: 'disksize',
slots: { title: 'diskSizeTitle' },
width: '30%',
scopedSlots: { customRender: 'diskSize' }
},
{
dataIndex: 'iops',
slots: { title: 'iopsTitle' },
width: '30%'
width: '30%',
scopedSlots: { customRender: 'iops' }
}
],
selectedRowKeys: []
selectedRowKeys: ['0'],
dataItems: []
}
},
created () {
this.dataItems = []
this.dataItems.push({
id: '0',
name: this.$t('noselect'),
diskSize: undefined,
miniops: undefined,
maxiops: undefined,
isCustomized: undefined
})
},
computed: {
options () {
return {
page: 1,
pageSize: 10,
keyword: ''
}
},
tableSource () {
return this.items.map((item) => {
return this.dataItems.map((item) => {
return {
key: item.id,
name: item.name,
diskSize: item.disksize,
iops: `${item.miniops} – ${item.maxiops}`,
miniops: item.miniops,
maxiops: item.maxiops,
isCustomized: item.iscustomized
}
})
Expand All @@ -84,9 +127,7 @@ export default {
return {
type: 'radio',
selectedRowKeys: this.selectedRowKeys,
onSelect: (row) => {
this.$emit('select-disk-offering-item', row.key)
}
onChange: this.onSelectRow
}
}
},
Expand All @@ -95,6 +136,27 @@ export default {
if (newValue && newValue !== oldValue) {
this.selectedRowKeys = [newValue]
}
},
items (newData, oldData) {
if (newData && newData.length > 0) {
this.dataItems = this.dataItems.concat(newData)
}
}
},
methods: {
onSelectRow (value) {
this.selectedRowKeys = value
this.$emit('select-disk-offering-item', value[0])
},
handleSearch (value) {
this.filter = value
this.options.keyword = this.filter
this.$emit('handle-search-filter', this.options)
},
handleTableChange (pagination) {
this.options.page = pagination.current
this.options.pageSize = pagination.pageSize
this.$emit('handle-search-filter', this.options)
}
}
}
Expand Down
Loading