Skip to content

Commit a00ac17

Browse files
committed
Add new menus in CS ui
1 parent f903871 commit a00ac17

5 files changed

Lines changed: 132 additions & 2 deletions

File tree

ui/public/locales/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@
423423
"label.availablevirtualmachinecount": "Available Instances",
424424
"label.back": "Back",
425425
"label.back.login": "Back to login",
426+
"label.backroll": "Backroll",
426427
"label.backup": "Backups",
427428
"label.backup.attach.restore": "Restore and attach backup volume",
428429
"label.backup.configure.schedule": "Configure Backup Schedule",
@@ -794,6 +795,8 @@
794795
"label.deviceid": "Device ID",
795796
"label.devices": "Devices",
796797
"label.dhcp": "DHCP",
798+
"label.dimsi": "Dimsi",
799+
"label.dashboarddimsi": "Dashboard Dimsi",
797800
"label.direct.attached.public.ip": "Direct attached public IP",
798801
"label.direct.ips": "Shared Network IPs",
799802
"label.directdownload": "Direct download",

ui/src/config/router.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { shallowRef } from 'vue'
2525
import { vueProps } from '@/vue-app'
2626

2727
import compute from '@/config/section/compute'
28+
import dimsi from '@/config/section/dimsi'
2829
import storage from '@/config/section/storage'
2930
import network from '@/config/section/network'
3031
import image from '@/config/section/image'
@@ -208,7 +209,18 @@ export function asyncRouterMap () {
208209
component: () => import('@/views/dashboard/Dashboard')
209210
},
210211

212+
{
213+
path: '/dashboarddimsi',
214+
name: 'Dashboard Dimsi',
215+
meta: {
216+
title: 'label.dashboarddimsi',
217+
icon: 'DashboardOutlined'
218+
},
219+
component: () => import('@/views/dimsi/backroll')
220+
},
221+
211222
generateRouterMap(compute),
223+
generateRouterMap(dimsi),
212224
generateRouterMap(storage),
213225
generateRouterMap(network),
214226
generateRouterMap(image),

ui/src/config/section/dimsi.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The ASF licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
17+
import { shallowRef } from 'vue'
18+
export default {
19+
name: 'dimsi',
20+
title: 'label.dimsi',
21+
icon: 'cloud-outlined',
22+
children: [
23+
{
24+
name: 'dimsi',
25+
title: 'label.backroll',
26+
icon: 'ReadOutlined',
27+
component: shallowRef(() => import('@/views/dimsi/backroll.vue'))
28+
}
29+
]
30+
}

ui/src/store/modules/user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ const user = {
442442
const ldapEnable = (response.ldapconfigurationresponse.count > 0)
443443
commit('SET_LDAP', ldapEnable)
444444
}).catch(error => {
445-
reject(error)
445+
console.error(error)
446446
})
447447

448448
api('cloudianIsEnabled').then(response => {
@@ -567,7 +567,7 @@ const user = {
567567
const ldapEnable = (response.ldapconfigurationresponse.count > 0)
568568
commit('SET_LDAP', ldapEnable)
569569
}).catch(error => {
570-
reject(error)
570+
console.error(error)
571571
})
572572
})
573573
},

ui/src/views/dimsi/backroll.vue

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The ASF licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
17+
18+
<template>
19+
<div>
20+
<h2>Dimsi !</h2>
21+
</div>
22+
</template>
23+
24+
<script>
25+
26+
export default {
27+
name: 'Backroll',
28+
components: {
29+
},
30+
data () {
31+
return {
32+
}
33+
},
34+
beforeCreate () {
35+
this.apiParams = this.$getApiParams('uploadCustomCertificate')
36+
},
37+
created () {
38+
this.initForm()
39+
this.fetchData()
40+
},
41+
methods: {
42+
initForm () {
43+
},
44+
fetchData () {
45+
this.routes = {}
46+
}
47+
}
48+
}
49+
</script>
50+
51+
<style lang="scss" scoped>
52+
.breadcrumb-card {
53+
margin-left: -24px;
54+
margin-right: -24px;
55+
margin-top: -16px;
56+
margin-bottom: 12px;
57+
}
58+
59+
.chart-card-inner {
60+
text-align: center;
61+
white-space: nowrap;
62+
overflow: hidden;
63+
}
64+
.intermediate-certificate {
65+
opacity: 1;
66+
transform: none;
67+
transition: opacity 0.2s ease 0s, transform 0.5s ease;
68+
will-change: transform;
69+
}
70+
.intermediate-certificate.fadeInUp-enter-active {
71+
opacity: 0;
72+
transform: translateY(10px);
73+
transition: none;
74+
}
75+
.controls {
76+
display: flex;
77+
justify-content: flex-end;
78+
}
79+
.close-button {
80+
margin-right: 20px;
81+
}
82+
.ant-form-item {
83+
margin-bottom: 10px;
84+
}
85+
</style>

0 commit comments

Comments
 (0)