dashboard-shell-shell 3.0.5-test.4 → 3.0.5-test.6
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/brand/harvester/favicon.png +0 -0
- package/assets/brand/suse/favicon.png +0 -0
- package/assets/images/pl/half-logo.svg +23 -2
- package/assets/images/pl/harvester.png +0 -0
- package/assets/styles/app.scss +0 -4
- package/assets/styles/base/_basic.scss +2 -2
- package/assets/styles/base/_mixins.scss +1 -1
- package/assets/styles/base/_typography.scss +1 -2
- package/assets/styles/base/_variables.scss +4 -11
- package/assets/styles/global/_button.scss +27 -45
- package/assets/styles/global/_columns.scss +1 -3
- package/assets/styles/global/_form.scss +13 -45
- package/assets/styles/global/_labeled-input.scss +26 -54
- package/assets/styles/global/_layout.scss +3 -8
- package/assets/styles/global/_select.scss +17 -25
- package/assets/styles/global/_table.scss +1 -7
- package/assets/styles/global/_tooltip.scss +6 -54
- package/assets/styles/themes/_dark.scss +0 -3
- package/assets/styles/themes/_light.scss +42 -63
- package/assets/styles/vendor/vue-select.scss +9 -22
- package/assets/translations/en-us.yaml +4 -28
- package/assets/translations/zh-hans.yaml +189 -376
- package/components/ActionDropdown.vue +1 -2
- package/components/ActionMenu.vue +2 -2
- package/components/ActionMenuShell.vue +0 -2
- package/components/AppModal.vue +5 -46
- package/components/BrandImage.vue +0 -1
- package/components/ButtonDropdown.vue +4 -26
- package/components/ButtonMultiAction.vue +0 -1
- package/components/ClusterIconMenu.vue +1 -1
- package/components/CodeMirror.vue +6 -20
- package/components/ConsumptionGauge.vue +5 -24
- package/components/CruResource.vue +8 -9
- package/components/CruResourceFooter.vue +2 -2
- package/components/DashboardOptions.vue +17 -29
- package/components/ExplorerProjectsNamespaces.vue +5 -19
- package/components/GlobalRoleBindings.vue +48 -112
- package/components/GrafanaDashboard.vue +4 -4
- package/components/GrowlManager.vue +1 -3
- package/components/HardwareResourceGauge.vue +3 -39
- package/components/IndentedPanel.vue +10 -4
- package/components/InfoBox.vue +3 -3
- package/components/InputOrDisplay.vue +2 -28
- package/components/LabelValue.vue +1 -20
- package/components/ModalWithCard.vue +3 -12
- package/components/PodSecurityAdmission.vue +1 -1
- package/components/PromptModal.vue +1 -1
- package/components/PromptRemove.vue +11 -30
- package/components/ResourceDetail/Masthead/legacy.vue +38 -181
- package/components/ResourceDetail/legacy.vue +13 -29
- package/components/ResourceList/Masthead.vue +54 -226
- package/components/ResourceList/ResourceLoadingIndicator.vue +2 -5
- package/components/ResourceTable.vue +2 -24
- package/components/SideNav.vue +20 -74
- package/components/SortableTable/THead.vue +3 -33
- package/components/SortableTable/index.vue +464 -1017
- package/components/SortableTable/paging.js +16 -26
- package/components/SortableTable/selection.js +2 -2
- package/components/Tabbed/Tab.vue +3 -3
- package/components/Tabbed/index.vue +29 -47
- package/components/YamlEditor.vue +1 -0
- package/components/auth/Principal.vue +12 -36
- package/components/auth/RoleDetailEdit.vue +7 -58
- package/components/auth/SelectPrincipal.vue +0 -1
- package/components/form/ArrayList.vue +33 -41
- package/components/form/ArrayListGrouped.vue +2 -10
- package/components/form/ArrayListSelect.vue +1 -1
- package/components/form/BannerSettings.vue +59 -64
- package/components/form/ChangePassword.vue +4 -4
- package/components/form/ColorInput.vue +8 -32
- package/components/form/Footer.vue +8 -11
- package/components/form/InputWithSelect.vue +5 -8
- package/components/form/KeyValue.vue +7 -47
- package/components/form/LabeledSelect.vue +241 -212
- package/components/form/Labels.vue +3 -3
- package/components/form/MatchExpressions.vue +7 -24
- package/components/form/Members/ClusterPermissionsEditor.vue +2 -1
- package/components/form/Members/MembershipEditor.vue +1 -1
- package/components/form/NameNsDescription.vue +20 -59
- package/components/form/Password.vue +7 -16
- package/components/form/PodAffinity.vue +5 -4
- package/components/form/ResourceQuota/Namespace.vue +4 -4
- package/components/form/ResourceQuota/NamespaceRow.vue +17 -18
- package/components/form/ResourceQuota/Project.vue +4 -4
- package/components/form/ResourceQuota/ProjectRow.vue +6 -3
- package/components/form/Select.vue +2 -5
- package/components/form/SimpleSecretSelector.vue +9 -29
- package/components/form/UnitInput.vue +3 -8
- package/components/formatter/BadgeStateFormatter.vue +5 -8
- package/components/formatter/LiveDate.vue +3 -3
- package/components/nav/Favorite.vue +1 -5
- package/components/nav/Group.vue +99 -132
- package/components/nav/Header.vue +27 -124
- package/components/nav/HeaderPageActionMenu.vue +0 -1
- package/components/nav/NamespaceFilter.vue +15 -19
- package/components/nav/TopLevelMenu.vue +119 -182
- package/components/nav/Type.vue +41 -63
- package/composables/useClickOutside.ts +1 -1
- package/config/private-label.js +11 -15
- package/config/product/auth.js +7 -17
- package/config/product/settings.js +9 -19
- package/config/settings.ts +0 -28
- package/config/table-headers.js +2 -3
- package/dialog/ForceMachineRemoveDialog.vue +2 -2
- package/dialog/ScalePoolDownDialog.vue +2 -2
- package/edit/management.cattle.io.user.vue +4 -17
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +19 -19
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +31 -31
- package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +12 -36
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +6 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +10 -10
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +1 -1
- package/edit/monitoring.coreos.com.receiver/types/email.vue +6 -6
- package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +10 -10
- package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +5 -5
- package/edit/monitoring.coreos.com.receiver/types/slack.vue +4 -4
- package/edit/namespace.vue +2 -1
- package/edit/token.vue +12 -31
- package/edit/workload/index.vue +1 -1
- package/list/management.cattle.io.setting.vue +13 -22
- package/list/management.cattle.io.user.vue +3 -7
- package/list/namespace.vue +0 -3
- package/list/provisioning.cattle.io.cluster.vue +7 -6
- package/mixins/brand.js +0 -17
- package/package.json +1 -1
- package/pages/account/index.vue +12 -74
- package/pages/auth/login.vue +51 -214
- package/pages/auth/setup.vue +19 -142
- package/pages/c/_cluster/_product/namespaces.vue +4 -4
- package/pages/c/_cluster/auth/roles/index.vue +1 -19
- package/pages/c/_cluster/monitoring/monitor/index.vue +2 -2
- package/pages/c/_cluster/settings/banners.vue +102 -174
- package/pages/c/_cluster/settings/brand.vue +302 -350
- package/pages/c/_cluster/settings/performance.vue +38 -61
- package/pages/home.vue +30 -70
- package/pages/prefs.vue +25 -27
- package/promptRemove/mixin/roleDeletionCheck.js +2 -2
- package/public/index.html +4 -4
- package/rancher-components/BadgeState/BadgeState.vue +4 -6
- package/rancher-components/Banner/Banner.vue +8 -12
- package/rancher-components/Card/Card.vue +8 -7
- package/rancher-components/Form/Checkbox/Checkbox.vue +0 -4
- package/rancher-components/Form/LabeledInput/LabeledInput.vue +3 -42
- package/rancher-components/Form/Radio/RadioButton.vue +11 -35
- package/rancher-components/Form/Radio/RadioGroup.vue +5 -13
- package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +3 -3
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +0 -1
- package/rancher-components/LabeledTooltip/LabeledTooltip.vue +4 -12
- package/rancher-components/RcDropdown/RcDropdown.vue +7 -35
- package/rancher-components/RcDropdown/RcDropdownItem.vue +2 -2
- package/rancher-components/RcDropdown/RcDropdownMenu.vue +4 -9
- package/rancher-components/RcDropdown/types.ts +0 -1
- package/rancher-components/StringList/StringList.vue +1 -1
- package/static/favicon.ico +0 -0
- package/static/favicon.png +0 -0
- package/static/loading-indicator.html +3 -3
- package/store/i18n.js +2 -2
- package/store/modal.ts +3 -3
- package/store/prefs.js +4 -11
- package/store/type-map.js +2 -32
- package/types/shell/index.d.ts +67 -74
- package/utils/error.js +8 -87
- package/utils/router.js +0 -21
- package/utils/select.js +3 -26
- package/utils/string.js +5 -8
- package/utils/title.ts +1 -1
- package/assets/icons/demo.css +0 -539
- package/assets/icons/demo.css:Zone.Identifier +0 -0
- package/assets/icons/demo_index.html +0 -1131
- package/assets/icons/demo_index.html:Zone.Identifier +0 -0
- package/assets/icons/iconfont.css +0 -216
- package/assets/icons/iconfont.css:Zone.Identifier +0 -0
- package/assets/icons/iconfont.js +0 -1
- package/assets/icons/iconfont.js:Zone.Identifier +0 -0
- package/assets/icons/iconfont.json +0 -324
- package/assets/icons/iconfont.json:Zone.Identifier +0 -0
- package/assets/icons/iconfont.ttf +0 -0
- package/assets/icons/iconfont.ttf:Zone.Identifier +0 -0
- package/assets/icons/iconfont.woff +0 -0
- package/assets/icons/iconfont.woff2 +0 -0
- package/assets/icons/iconfont.woff2:Zone.Identifier +0 -0
- package/assets/icons/iconfont.woff:Zone.Identifier +0 -0
- package/assets/images/API.svg +0 -3
- package/assets/images/action.svg +0 -6
- package/assets/images/login/password.svg +0 -20
- package/assets/images/login/user.svg +0 -6
- package/assets/images/login-bg.png +0 -0
- package/assets/images/login-left.png +0 -0
- package/assets/images/login-logo.svg +0 -19
- package/assets/images/logo.png +0 -0
- package/assets/images/pl/logo.png +0 -0
- package/assets/images/promp-yellow.svg +0 -5
- package/assets/images/user.png +0 -0
- package/assets/styles/all.scss +0 -63
- package/components/DotState.vue +0 -84
- package/utils/errorTranslate.json +0 -1336
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
import { KUBERNETES, PROJECT } from '@shell/config/labels-annotations';
|
|
3
3
|
import { FLEET, NAMESPACE, MANAGEMENT, HELM } from '@shell/config/types';
|
|
4
4
|
import ButtonGroup from '@shell/components/ButtonGroup';
|
|
5
|
-
|
|
6
|
-
import DotState from '@shell/components/DotState.vue';
|
|
5
|
+
import { BadgeState } from '@components/BadgeState';
|
|
7
6
|
import { Banner } from '@components/Banner';
|
|
8
7
|
import { get } from '@shell/utils/object';
|
|
9
8
|
import { NAME as FLEET_NAME } from '@shell/config/product/fleet';
|
|
@@ -30,8 +29,7 @@ export default {
|
|
|
30
29
|
name: 'MastheadResourceDetail',
|
|
31
30
|
|
|
32
31
|
components: {
|
|
33
|
-
|
|
34
|
-
DotState,
|
|
32
|
+
BadgeState,
|
|
35
33
|
Banner,
|
|
36
34
|
ButtonGroup,
|
|
37
35
|
ExtensionPanel,
|
|
@@ -46,11 +44,6 @@ export default {
|
|
|
46
44
|
}
|
|
47
45
|
},
|
|
48
46
|
|
|
49
|
-
isManuallyHide: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: true
|
|
52
|
-
},
|
|
53
|
-
|
|
54
47
|
mode: {
|
|
55
48
|
type: String,
|
|
56
49
|
default: 'create'
|
|
@@ -119,7 +112,6 @@ export default {
|
|
|
119
112
|
DETAIL_VIEW: _DETAIL,
|
|
120
113
|
extensionType: ExtensionPoint.PANEL,
|
|
121
114
|
extensionLocation: PanelLocation.DETAILS_MASTHEAD,
|
|
122
|
-
Svg: require('~shell/assets/images/API.svg')
|
|
123
115
|
};
|
|
124
116
|
},
|
|
125
117
|
|
|
@@ -272,20 +264,6 @@ export default {
|
|
|
272
264
|
}
|
|
273
265
|
|
|
274
266
|
const typeOptions = this.$store.getters[`type-map/optionsFor`]( this.resource );
|
|
275
|
-
|
|
276
|
-
// 转换为中文
|
|
277
|
-
const displayName_zh_hans = {
|
|
278
|
-
'GlobalRole': '全局角色',
|
|
279
|
-
'RoleTemplate': '集群角色',
|
|
280
|
-
}
|
|
281
|
-
if (displayName_zh_hans[displayName]) {
|
|
282
|
-
displayName = displayName_zh_hans[displayName]
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
if (displayName == '集群角色' && (this.$route.query?.roleContext == 'NAMESPACE' || location.hash == '#NAMESPACE')) {
|
|
286
|
-
displayName = '项目或资源组角色'
|
|
287
|
-
}
|
|
288
|
-
|
|
289
267
|
const out = {
|
|
290
268
|
displayName, location, ...typeOptions
|
|
291
269
|
};
|
|
@@ -336,12 +314,12 @@ export default {
|
|
|
336
314
|
});
|
|
337
315
|
}
|
|
338
316
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
317
|
+
if ( this.canViewYaml ) {
|
|
318
|
+
out.push({
|
|
319
|
+
labelKey: 'resourceDetail.masthead.yaml',
|
|
320
|
+
value: _YAML,
|
|
321
|
+
});
|
|
322
|
+
}
|
|
345
323
|
|
|
346
324
|
if ( out.length < 2 ) {
|
|
347
325
|
return null;
|
|
@@ -415,37 +393,6 @@ export default {
|
|
|
415
393
|
return this.shouldHifenize ? ` - ${ displayName }` : displayName;
|
|
416
394
|
},
|
|
417
395
|
|
|
418
|
-
demoDisplay() {
|
|
419
|
-
const product = this.$store.getters['productId'];
|
|
420
|
-
|
|
421
|
-
const resources = this.location?.params?.resource || ''
|
|
422
|
-
|
|
423
|
-
const productId = this.$store.getters['type-map/groupForBasicType'](this.$store.getters['productId'], resources);
|
|
424
|
-
|
|
425
|
-
if (productId === undefined) {
|
|
426
|
-
return '';
|
|
427
|
-
}
|
|
428
|
-
const parts = productId.split('::');
|
|
429
|
-
const newString = 'root';
|
|
430
|
-
|
|
431
|
-
if (!parts?.includes(newString)) {
|
|
432
|
-
parts.unshift(newString); // 将字符串添加到数组第一位
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
const partsEn = parts.map((item) => {
|
|
436
|
-
return this.$store.getters['i18n/t'](`typeLabel."${ item.toLowerCase() }"`);
|
|
437
|
-
});
|
|
438
|
-
|
|
439
|
-
return partsEn;
|
|
440
|
-
},
|
|
441
|
-
menuIcon() {
|
|
442
|
-
const product = this.$store.getters['productId'];
|
|
443
|
-
|
|
444
|
-
const resources = this.location?.params?.resource || ''
|
|
445
|
-
|
|
446
|
-
return this.$store.getters['type-map/groupsForVirTypes'](product, resources);
|
|
447
|
-
},
|
|
448
|
-
|
|
449
396
|
location() {
|
|
450
397
|
const { parent } = this;
|
|
451
398
|
|
|
@@ -492,81 +439,10 @@ export default {
|
|
|
492
439
|
|
|
493
440
|
<template>
|
|
494
441
|
<div class="masthead">
|
|
495
|
-
<div class="title">
|
|
496
|
-
<!-- 创建api密钥不需要面包屑 -->
|
|
497
|
-
<div
|
|
498
|
-
v-if="!(parentRouteOverride === 'account' && resource=== 'token')"
|
|
499
|
-
class="excram-list"
|
|
500
|
-
>
|
|
501
|
-
<span
|
|
502
|
-
v-for="(item,index) in demoDisplay"
|
|
503
|
-
:key="index"
|
|
504
|
-
>
|
|
505
|
-
<span>{{ item }}</span>
|
|
506
|
-
<span>/</span>
|
|
507
|
-
</span>
|
|
508
|
-
<span class="excram-last-name">
|
|
509
|
-
{{ (realMode === 'view'? '查看': realMode === 'edit' ? '编辑':'创建') + parent.displayName }}
|
|
510
|
-
</span>
|
|
511
|
-
</div>
|
|
512
442
|
<header>
|
|
513
443
|
<div class="title">
|
|
514
444
|
<div class="primaryheader">
|
|
515
|
-
<
|
|
516
|
-
<!-- <nuxt-link
|
|
517
|
-
v-if="location"
|
|
518
|
-
:to="location"
|
|
519
|
-
>
|
|
520
|
-
{{ parent.displayName }}:
|
|
521
|
-
</nuxt-link> -->
|
|
522
|
-
<span class="detailIcon-span">
|
|
523
|
-
<img
|
|
524
|
-
v-if="parentRouteOverride === 'account' && resource=== 'token'"
|
|
525
|
-
:src="Svg"
|
|
526
|
-
style="margin-top: 4px; margin-left: 5px;"
|
|
527
|
-
>
|
|
528
|
-
<i
|
|
529
|
-
v-else
|
|
530
|
-
:class="'icon-'+ menuIcon + ' detailIcon'"
|
|
531
|
-
/>
|
|
532
|
-
</span>
|
|
533
|
-
<span class="detailIcon-span-title">{{ realMode=== 'create'? '创建': '' }}{{ parent.displayName }}{{ realMode=== 'create'? '': '名称:' }}</span>
|
|
534
|
-
<span v-if="realMode !== 'create'">
|
|
535
|
-
<span v-if="value.detailPageHeaderActionOverride && value.detailPageHeaderActionOverride(realMode)">{{ value.detailPageHeaderActionOverride(realMode) }}</span>
|
|
536
|
-
<t
|
|
537
|
-
v-else
|
|
538
|
-
:k="'resourceDetail.header.' + realMode"
|
|
539
|
-
:subtype="resourceSubtype"
|
|
540
|
-
:name="displayName"
|
|
541
|
-
:escapehtml="false"
|
|
542
|
-
/>
|
|
543
|
-
</span>
|
|
544
|
-
<DotState
|
|
545
|
-
v-if="!isCreate && parent.showState"
|
|
546
|
-
class="masthead-state"
|
|
547
|
-
:value="value"
|
|
548
|
-
/>
|
|
549
|
-
<span
|
|
550
|
-
v-if="!isCreate && value.injectionEnabled"
|
|
551
|
-
class="masthead-istio"
|
|
552
|
-
>
|
|
553
|
-
<i
|
|
554
|
-
v-clean-tooltip="t('projectNamespaces.isIstioInjectionEnabled')"
|
|
555
|
-
class="icon icon-sm icon-istio"
|
|
556
|
-
/>
|
|
557
|
-
</span>
|
|
558
|
-
</span>
|
|
559
|
-
<span
|
|
560
|
-
v-if="location"
|
|
561
|
-
class="valid"
|
|
562
|
-
>|</span>
|
|
563
|
-
<router-link
|
|
564
|
-
v-if="location"
|
|
565
|
-
:to="location"
|
|
566
|
-
>
|
|
567
|
-
返回
|
|
568
|
-
</router-link>
|
|
569
|
-
<!-- <h1>
|
|
445
|
+
<h1>
|
|
570
446
|
<TabTitle
|
|
571
447
|
v-if="isCreate"
|
|
572
448
|
:showChild="false"
|
|
@@ -622,9 +498,9 @@ export default {
|
|
|
622
498
|
>
|
|
623
499
|
<i class="icon icon-external-link" />
|
|
624
500
|
</a>
|
|
625
|
-
</h1>
|
|
501
|
+
</h1>
|
|
626
502
|
</div>
|
|
627
|
-
|
|
503
|
+
<div
|
|
628
504
|
v-if="!isCreate"
|
|
629
505
|
class="subheader"
|
|
630
506
|
>
|
|
@@ -669,8 +545,7 @@ export default {
|
|
|
669
545
|
{{ value.createdBy.displayName }}
|
|
670
546
|
</span>
|
|
671
547
|
</span>
|
|
672
|
-
|
|
673
|
-
</div> -->
|
|
548
|
+
</div>
|
|
674
549
|
</div>
|
|
675
550
|
<slot name="right">
|
|
676
551
|
<div class="actions-container align-start">
|
|
@@ -748,30 +623,42 @@ export default {
|
|
|
748
623
|
/>
|
|
749
624
|
|
|
750
625
|
<slot />
|
|
751
|
-
</div>
|
|
752
626
|
</div>
|
|
753
627
|
</template>
|
|
754
628
|
|
|
755
629
|
<style lang='scss' scoped>
|
|
756
630
|
.masthead {
|
|
757
631
|
padding-bottom: 10px;
|
|
758
|
-
|
|
632
|
+
border-bottom: 1px solid var(--border);
|
|
759
633
|
margin-bottom: 10px;
|
|
760
634
|
}
|
|
761
635
|
|
|
762
636
|
HEADER {
|
|
763
637
|
margin: 0;
|
|
638
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
764
639
|
}
|
|
765
640
|
|
|
766
641
|
.primaryheader {
|
|
767
642
|
display: flex;
|
|
768
643
|
flex-direction: row;
|
|
769
644
|
align-items: center;
|
|
770
|
-
font-size:14px;
|
|
771
|
-
height: 50px;
|
|
772
645
|
|
|
773
646
|
h1 {
|
|
774
|
-
margin: 0;
|
|
647
|
+
margin: 0 0 0 -5px;
|
|
648
|
+
display: flex;
|
|
649
|
+
flex-direction: row;
|
|
650
|
+
align-items: center;
|
|
651
|
+
overflow: hidden;
|
|
652
|
+
|
|
653
|
+
.masthead-resource-title {
|
|
654
|
+
text-overflow: ellipsis;
|
|
655
|
+
overflow: hidden;
|
|
656
|
+
white-space: nowrap;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.masthead-resource-list-link {
|
|
660
|
+
margin: 5px;
|
|
661
|
+
}
|
|
775
662
|
}
|
|
776
663
|
}
|
|
777
664
|
|
|
@@ -784,7 +671,8 @@ export default {
|
|
|
784
671
|
}
|
|
785
672
|
|
|
786
673
|
.live-data {
|
|
787
|
-
color: var(--body-text)
|
|
674
|
+
color: var(--body-text);
|
|
675
|
+
margin-left: 3px;
|
|
788
676
|
}
|
|
789
677
|
}
|
|
790
678
|
|
|
@@ -793,12 +681,8 @@ export default {
|
|
|
793
681
|
}
|
|
794
682
|
|
|
795
683
|
.masthead-state {
|
|
684
|
+
margin-left: 8px;
|
|
796
685
|
font-size: initial;
|
|
797
|
-
display: inline-block;
|
|
798
|
-
position: relative;
|
|
799
|
-
/* top: -2px; */
|
|
800
|
-
font-size: 12px;
|
|
801
|
-
margin-left: 5px;
|
|
802
686
|
}
|
|
803
687
|
|
|
804
688
|
.masthead-istio {
|
|
@@ -821,40 +705,13 @@ export default {
|
|
|
821
705
|
}
|
|
822
706
|
}
|
|
823
707
|
|
|
824
|
-
.
|
|
825
|
-
font-size: 18px;
|
|
826
|
-
}
|
|
827
|
-
.excram-list{
|
|
828
|
-
font-size: 14px;
|
|
829
|
-
margin-bottom: 20px;
|
|
830
|
-
}
|
|
831
|
-
.excram-last-name{
|
|
832
|
-
color: var(--link);
|
|
833
|
-
}
|
|
834
|
-
.valid{
|
|
835
|
-
color: #d7d7d7;
|
|
836
|
-
margin: 0px 10px;
|
|
837
|
-
}
|
|
838
|
-
.detailIcon-span{
|
|
839
|
-
width: 24px;
|
|
840
|
-
height: 24px;
|
|
841
|
-
display: inline-block;
|
|
842
|
-
position: relative;
|
|
843
|
-
background: var(--primary);
|
|
844
|
-
margin-right: 10px;
|
|
845
|
-
}
|
|
846
|
-
.detailIcon{
|
|
847
|
-
position: absolute;
|
|
848
|
-
color: #fff;
|
|
849
|
-
font-size: 38px;
|
|
850
|
-
left: 4px;
|
|
851
|
-
top: -2px;
|
|
852
|
-
}
|
|
853
|
-
.primary-title{
|
|
708
|
+
div.actions-container > div.actions {
|
|
854
709
|
display: flex;
|
|
855
|
-
|
|
710
|
+
flex-direction: row;
|
|
711
|
+
justify-content: flex-end;
|
|
856
712
|
}
|
|
857
|
-
|
|
858
|
-
|
|
713
|
+
|
|
714
|
+
.resource-external {
|
|
715
|
+
font-size: 18px;
|
|
859
716
|
}
|
|
860
717
|
</style>
|
|
@@ -6,14 +6,13 @@ import {
|
|
|
6
6
|
_VIEW, _EDIT, _CLONE, _IMPORT, _STAGE, _CREATE,
|
|
7
7
|
AS, _YAML, _DETAIL, _CONFIG, _GRAPH, PREVIEW, MODE,
|
|
8
8
|
} from '@shell/config/query-params';
|
|
9
|
-
import {
|
|
9
|
+
import { SCHEMA } from '@shell/config/types';
|
|
10
10
|
import { createYaml } from '@shell/utils/create-yaml';
|
|
11
11
|
import Masthead from '@shell/components/ResourceDetail/Masthead';
|
|
12
12
|
import DetailTop from '@shell/components/DetailTop';
|
|
13
13
|
import { clone, diff } from '@shell/utils/object';
|
|
14
14
|
import IconMessage from '@shell/components/IconMessage';
|
|
15
15
|
import ForceDirectedTreeChart from '@shell/components/ForceDirectedTreeChart';
|
|
16
|
-
import { checkSchemasForFindAllHash } from '@shell/utils/auth';
|
|
17
16
|
import { stringify } from '@shell/utils/error';
|
|
18
17
|
import { Banner } from '@components/Banner';
|
|
19
18
|
|
|
@@ -172,28 +171,6 @@ export default {
|
|
|
172
171
|
yaml = createYaml(schemas, resourceType, data);
|
|
173
172
|
}
|
|
174
173
|
} else {
|
|
175
|
-
if ( as === _GRAPH ) {
|
|
176
|
-
const graphSchema = await checkSchemasForFindAllHash({
|
|
177
|
-
cluster: {
|
|
178
|
-
inStoreType: 'management',
|
|
179
|
-
type: FLEET.CLUSTER
|
|
180
|
-
},
|
|
181
|
-
bundle: {
|
|
182
|
-
inStoreType: 'management',
|
|
183
|
-
type: FLEET.BUNDLE,
|
|
184
|
-
opt: { excludeFields: ['metadata.managedFields', 'spec.resources'] },
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
bundleDeployment: {
|
|
188
|
-
inStoreType: 'management',
|
|
189
|
-
type: FLEET.BUNDLE_DEPLOYMENT
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
}, this.$store);
|
|
193
|
-
|
|
194
|
-
this.canViewChart = graphSchema.cluster && graphSchema.bundle && graphSchema.bundleDeployment;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
174
|
let fqid = id;
|
|
198
175
|
|
|
199
176
|
if ( schema.attributes?.namespaced && namespace ) {
|
|
@@ -296,7 +273,6 @@ export default {
|
|
|
296
273
|
value: null,
|
|
297
274
|
model: null,
|
|
298
275
|
notFound: null,
|
|
299
|
-
canViewChart: true,
|
|
300
276
|
canViewYaml: null,
|
|
301
277
|
errors: []
|
|
302
278
|
};
|
|
@@ -475,14 +451,15 @@ export default {
|
|
|
475
451
|
:has-graph="hasGraph"
|
|
476
452
|
:has-detail="hasCustomDetail"
|
|
477
453
|
:has-edit="hasCustomEdit"
|
|
454
|
+
:can-view-yaml="canViewYaml"
|
|
478
455
|
:resource-subtype="resourceSubtype"
|
|
479
456
|
:parent-route-override="parentRouteOverride"
|
|
480
457
|
:store-override="storeOverride"
|
|
481
458
|
>
|
|
482
|
-
|
|
459
|
+
<DetailTop
|
|
483
460
|
v-if="isView && isDetail"
|
|
484
461
|
:value="liveModel"
|
|
485
|
-
/>
|
|
462
|
+
/>
|
|
486
463
|
</Masthead>
|
|
487
464
|
<div
|
|
488
465
|
v-if="hasErrors"
|
|
@@ -502,7 +479,7 @@ export default {
|
|
|
502
479
|
</div>
|
|
503
480
|
|
|
504
481
|
<ForceDirectedTreeChart
|
|
505
|
-
v-if="isGraph
|
|
482
|
+
v-if="isGraph"
|
|
506
483
|
:data="chartData"
|
|
507
484
|
:fdc-config="getGraphConfig"
|
|
508
485
|
/>
|
|
@@ -516,8 +493,9 @@ export default {
|
|
|
516
493
|
:offer-preview="offerPreview"
|
|
517
494
|
:done-route="doneRoute"
|
|
518
495
|
:done-override="value ? value.doneOverride : null"
|
|
496
|
+
:show-errors="false"
|
|
519
497
|
@update:value="$emit('input', $event)"
|
|
520
|
-
@error="
|
|
498
|
+
@error="onYamlError"
|
|
521
499
|
/>
|
|
522
500
|
|
|
523
501
|
<component
|
|
@@ -575,4 +553,10 @@ export default {
|
|
|
575
553
|
flex-direction: column;
|
|
576
554
|
flex-grow: 1;
|
|
577
555
|
}
|
|
556
|
+
.cru__errors {
|
|
557
|
+
position: sticky;
|
|
558
|
+
top: 0;
|
|
559
|
+
z-index: 1;
|
|
560
|
+
background-color: var(--header-bg);
|
|
561
|
+
}
|
|
578
562
|
</style>
|