dashboard-shell-shell 3.0.5-logtest.2 → 3.0.5-order.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/images/arrow.svg +1 -0
- package/assets/images/headerIcon/auth.svg +1 -0
- package/assets/images/headerIcon/settings.svg +1 -0
- package/assets/images/home.svg +6 -0
- package/assets/images/pl/logo.png +0 -0
- package/assets/styles/global/_layout.scss +2 -2
- package/assets/styles/global/_tooltip.scss +3 -1
- package/assets/translations/en-us.yaml +1 -0
- package/assets/translations/zh-hans.yaml +41 -36
- package/components/HoverDropdown.vue +0 -0
- package/components/ResourceList/Masthead.vue +8 -1
- package/components/form/NameNsDescription.vue +15 -0
- package/components/nav/Header copy.vue +1157 -0
- package/components/nav/Header.vue +70 -59
- package/components/nav/TopLevelMenu.vue +0 -1
- package/components/nav/TopLevelMenuNew.vue +607 -0
- package/components/nav/configurationApps.vue +102 -0
- package/components/nav/menuDropdown.vue +132 -0
- package/components/nav/menuPrompt.vue +204 -0
- package/components/templates/omsLayout.vue +109 -0
- package/config/product/order.js +117 -0
- package/config/router/routes.js +39 -2
- package/list/IframePage.vue +3 -0
- package/list/provisioning.cattle.io.cluster.vue +33 -2
- package/package.json +1 -1
- package/pages/auth/login.vue +11 -2
- package/pages/csm/ServiceMarket-iframe.vue +32 -0
- package/pages/csm/order-iframe.vue +32 -0
- package/pages/csm/orderInfo-iframe.vue +32 -0
- package/pages/csm/shelfist-iframe.vue +32 -0
- package/pages/csm/tenant-iframe.vue +32 -0
- package/pages/home.vue +1 -1
- package/rancher-components/Accordion/Accordion.vue +3 -1
- package/rancher-components/RcDropdown/RcDropdown.vue +1 -1
- package/scripts/publish-shell.sh +1 -1
- package/store/index.js +4 -4
- package/store/type-map.js +4 -0
package/pages/auth/login.vue
CHANGED
|
@@ -19,7 +19,7 @@ import { configType } from '@shell/models/management.cattle.io.authconfig';
|
|
|
19
19
|
import { mapGetters } from 'vuex';
|
|
20
20
|
import { markRaw } from 'vue';
|
|
21
21
|
import { _MULTI } from '@shell/plugins/dashboard-store/actions';
|
|
22
|
-
import { MANAGEMENT, NORMAN } from '@shell/config/types';
|
|
22
|
+
import { CAPI, MANAGEMENT, NORMAN } from '@shell/config/types';
|
|
23
23
|
import { SETTING } from '@shell/config/settings';
|
|
24
24
|
import { LOGIN_ERRORS } from '@shell/store/auth';
|
|
25
25
|
import {
|
|
@@ -33,6 +33,7 @@ import Loading from '@shell/components/Loading';
|
|
|
33
33
|
import { HARVESTER_NAME as HARVESTER } from '@shell/config/features';
|
|
34
34
|
import TabTitle from '@shell/components/TabTitle.vue';
|
|
35
35
|
import { AFTER_LOGIN_ROUTE } from '@shell/store/prefs';
|
|
36
|
+
import { BLANK_CLUSTER } from '@shell/store/store-types.js';
|
|
36
37
|
|
|
37
38
|
export default {
|
|
38
39
|
name: 'Login',
|
|
@@ -306,13 +307,21 @@ export default {
|
|
|
306
307
|
$plugin: this.$store.$plugin
|
|
307
308
|
});
|
|
308
309
|
|
|
310
|
+
const routerParmas = {
|
|
311
|
+
name: 'c-cluster-product-resource',
|
|
312
|
+
params: {
|
|
313
|
+
cluster: BLANK_CLUSTER,
|
|
314
|
+
product: 'manager',
|
|
315
|
+
resource: CAPI.RANCHER_CLUSTER
|
|
316
|
+
}
|
|
317
|
+
}
|
|
309
318
|
|
|
310
319
|
// 登录跳转
|
|
311
320
|
if (this.firstLogin || user[0]?.mustChangePassword) {
|
|
312
321
|
this.$store.dispatch('auth/setInitialPass', this.password);
|
|
313
322
|
this.$router.push({ name: 'auth-setup' });
|
|
314
323
|
} else {
|
|
315
|
-
this.$router.push(
|
|
324
|
+
this.$router.push(routerParmas);
|
|
316
325
|
}
|
|
317
326
|
|
|
318
327
|
} catch (err) {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="iframe-page">
|
|
3
|
+
<iframe
|
|
4
|
+
width="100%"
|
|
5
|
+
height="100%"
|
|
6
|
+
:src="Data.iframeSrc"
|
|
7
|
+
frameborder="0"
|
|
8
|
+
id="IframeDo"
|
|
9
|
+
allowfullscreen="true"
|
|
10
|
+
></iframe>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup>
|
|
15
|
+
import { onMounted, reactive } from 'vue'
|
|
16
|
+
|
|
17
|
+
const Data = reactive({
|
|
18
|
+
iframeSrc: 'https://10.21.255.163:8011/Cloud/securityServiceMarket?accessToken=source=rancher;sessionid_rem=123123;account=zhjtest&username=zhjtest&password=cloudmap&AccountType=tenant',
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
onMounted(()=>{
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<style scoped>
|
|
27
|
+
.iframe-page {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
padding: 0;
|
|
31
|
+
}
|
|
32
|
+
</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="iframe-page">
|
|
3
|
+
<iframe
|
|
4
|
+
width="100%"
|
|
5
|
+
height="100%"
|
|
6
|
+
:src="Data.iframeSrc"
|
|
7
|
+
frameborder="0"
|
|
8
|
+
id="IframeDo"
|
|
9
|
+
allowfullscreen="true"
|
|
10
|
+
></iframe>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup>
|
|
15
|
+
import { onMounted, reactive } from 'vue'
|
|
16
|
+
|
|
17
|
+
const Data = reactive({
|
|
18
|
+
iframeSrc: 'https://10.21.255.163:8011/Cloud/orderManagement?accessToken=source=rancher;sessionid_rem=123123;account=admin&username=admin&password=cloudmap&AccountType=admin',
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
onMounted(()=>{
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<style scoped>
|
|
27
|
+
.iframe-page {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
padding: 0;
|
|
31
|
+
}
|
|
32
|
+
</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="iframe-page">
|
|
3
|
+
<iframe
|
|
4
|
+
width="100%"
|
|
5
|
+
height="100%"
|
|
6
|
+
:src="Data.iframeSrc"
|
|
7
|
+
frameborder="0"
|
|
8
|
+
id="IframeDo"
|
|
9
|
+
allowfullscreen="true"
|
|
10
|
+
></iframe>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup>
|
|
15
|
+
import { onMounted, reactive } from 'vue'
|
|
16
|
+
|
|
17
|
+
const Data = reactive({
|
|
18
|
+
iframeSrc: 'https://10.21.255.163:8011/Cloud/orderingInformation?accessToken=source=rancher;sessionid_rem=123123;account=zhjtest&username=zhjtest&password=cloudmap&AccountType=tenant',
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
onMounted(()=>{
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<style scoped>
|
|
27
|
+
.iframe-page {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
padding: 0;
|
|
31
|
+
}
|
|
32
|
+
</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="iframe-page">
|
|
3
|
+
<iframe
|
|
4
|
+
width="100%"
|
|
5
|
+
height="100%"
|
|
6
|
+
:src="Data.iframeSrc"
|
|
7
|
+
frameborder="0"
|
|
8
|
+
id="IframeDo"
|
|
9
|
+
allowfullscreen="true"
|
|
10
|
+
></iframe>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup>
|
|
15
|
+
import { onMounted, reactive } from 'vue'
|
|
16
|
+
|
|
17
|
+
const Data = reactive({
|
|
18
|
+
iframeSrc: 'https://10.21.255.163:8011/Cloud/shelfistManagement?accessToken=source=rancher;sessionid_rem=123123;account=admin&username=admin&password=cloudmap&AccountType=admin',
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
onMounted(()=>{
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<style scoped>
|
|
27
|
+
.iframe-page {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
padding: 0;
|
|
31
|
+
}
|
|
32
|
+
</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="iframe-page">
|
|
3
|
+
<iframe
|
|
4
|
+
width="100%"
|
|
5
|
+
height="100%"
|
|
6
|
+
:src="Data.iframeSrc"
|
|
7
|
+
frameborder="0"
|
|
8
|
+
id="IframeDo"
|
|
9
|
+
allowfullscreen="true"
|
|
10
|
+
></iframe>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup>
|
|
15
|
+
import { onMounted, reactive } from 'vue'
|
|
16
|
+
|
|
17
|
+
const Data = reactive({
|
|
18
|
+
iframeSrc: 'https://10.21.255.163:8011/Cloud/tenantManagement?accessToken=source=rancher;sessionid_rem=123123;account=admin&username=admin&password=cloudmap&AccountType=admin',
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
onMounted(()=>{
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<style scoped>
|
|
27
|
+
.iframe-page {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
padding: 0;
|
|
31
|
+
}
|
|
32
|
+
</style>
|
package/pages/home.vue
CHANGED
|
@@ -70,14 +70,16 @@ export default defineComponent({
|
|
|
70
70
|
border: 1px solid var(--border)
|
|
71
71
|
}
|
|
72
72
|
.accordion-header {
|
|
73
|
+
cursor: pointer;
|
|
73
74
|
padding: 16px 16px 16px 11px;
|
|
74
75
|
display: flex;
|
|
75
76
|
align-items: center;
|
|
76
77
|
&>*{
|
|
78
|
+
font-size: 14px;
|
|
77
79
|
padding: 5px 0px 5px 0px;
|
|
78
80
|
}
|
|
79
81
|
I {
|
|
80
|
-
margin:
|
|
82
|
+
margin-right: 10px;
|
|
81
83
|
}
|
|
82
84
|
}
|
|
83
85
|
.accordion-body {
|
|
@@ -150,7 +150,7 @@ const applyShow = () => {
|
|
|
150
150
|
|
|
151
151
|
.dropdownTarget {
|
|
152
152
|
overflow: auto;
|
|
153
|
-
padding:
|
|
153
|
+
padding: 10px 0; // Need padding at top and bottom in order to show the focus border for the notification
|
|
154
154
|
|
|
155
155
|
&:focus-visible, &:focus {
|
|
156
156
|
outline: none;
|
package/scripts/publish-shell.sh
CHANGED
package/store/index.js
CHANGED
|
@@ -519,10 +519,10 @@ export const getters = {
|
|
|
519
519
|
(!isAll && filteredMap && filteredMap[out] );
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
522
|
+
out = rootGetters['prefs/get'](LAST_NAMESPACE);
|
|
523
|
+
if ( isOk() ) {
|
|
524
|
+
return out;
|
|
525
|
+
}
|
|
526
526
|
|
|
527
527
|
out = 'default';
|
|
528
528
|
if ( isOk() ) {
|
package/store/type-map.js
CHANGED
|
@@ -218,6 +218,7 @@ export const IF_HAVE = {
|
|
|
218
218
|
MULTI_CLUSTER: 'multi-cluster',
|
|
219
219
|
NEUVECTOR_NAMESPACE: 'neuvector-namespace',
|
|
220
220
|
ADMIN: 'admin-user',
|
|
221
|
+
TENANT: 'tenant-user',
|
|
221
222
|
MCM_DISABLED: 'mcm-disabled',
|
|
222
223
|
NOT_STANDALONE_HARVESTER: 'not-standalone-harvester',
|
|
223
224
|
};
|
|
@@ -1950,6 +1951,9 @@ function ifHave(getters, option) {
|
|
|
1950
1951
|
case IF_HAVE.NOT_STANDALONE_HARVESTER: {
|
|
1951
1952
|
return !getters['isStandaloneHarvester'];
|
|
1952
1953
|
}
|
|
1954
|
+
case IF_HAVE.TENANT: {
|
|
1955
|
+
return !isAdminUser(getters);
|
|
1956
|
+
}
|
|
1953
1957
|
default:
|
|
1954
1958
|
return false;
|
|
1955
1959
|
}
|