dashboard-shell-shell 3.0.5-test.6 → 3.0.5-test.61
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/csp/favicon.png +0 -0
- package/assets/brand/harvester/favicon.png +0 -0
- package/assets/brand/suse/favicon.png +0 -0
- package/assets/icons/demo.css +539 -0
- package/assets/icons/demo.css:Zone.Identifier +0 -0
- package/assets/icons/demo_index.html +1131 -0
- package/assets/icons/demo_index.html:Zone.Identifier +0 -0
- package/assets/icons/iconfont.css +219 -0
- package/assets/icons/iconfont.css:Zone.Identifier +0 -0
- package/assets/icons/iconfont.js +1 -0
- package/assets/icons/iconfont.js:Zone.Identifier +0 -0
- package/assets/icons/iconfont.json +324 -0
- 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/iconsNew/demo.css +539 -0
- package/assets/iconsNew/demo.css:Zone.Identifier +0 -0
- package/assets/iconsNew/demo_index.html +303 -0
- package/assets/iconsNew/demo_index.html:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.css +43 -0
- package/assets/iconsNew/iconfont.css:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.js +1 -0
- package/assets/iconsNew/iconfont.js:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.json +44 -0
- package/assets/iconsNew/iconfont.json:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.ttf +0 -0
- package/assets/iconsNew/iconfont.ttf:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.woff +0 -0
- package/assets/iconsNew/iconfont.woff2 +0 -0
- package/assets/iconsNew/iconfont.woff2:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.woff:Zone.Identifier +0 -0
- package/assets/images/API.svg +3 -0
- package/assets/images/action.svg +6 -0
- package/assets/images/login/password.svg +20 -0
- package/assets/images/login/user.svg +6 -0
- package/assets/images/login-bg.png +0 -0
- package/assets/images/login-left.png +0 -0
- package/assets/images/login-logo.svg +44 -0
- package/assets/images/logo.png +0 -0
- package/assets/images/logo.svg +47 -0
- package/assets/images/pl/dark/logo.png +0 -0
- package/assets/images/pl/half-logo.svg +2 -23
- package/assets/images/pl/harvester.png +0 -0
- package/assets/images/pl/logo.png +0 -0
- package/assets/images/promp-yellow.svg +5 -0
- package/assets/images/user.png +0 -0
- package/assets/styles/all.scss +83 -0
- package/assets/styles/app.scss +5 -0
- package/assets/styles/base/_basic.scss +2 -2
- package/assets/styles/base/_helpers.scss +1 -1
- package/assets/styles/base/_mixins.scss +1 -1
- package/assets/styles/base/_typography.scss +2 -1
- package/assets/styles/base/_variables.scss +14 -7
- package/assets/styles/fonts/_icons.scss +3 -2
- package/assets/styles/global/_button.scss +44 -26
- package/assets/styles/global/_columns.scss +3 -1
- package/assets/styles/global/_form.scss +46 -13
- package/assets/styles/global/_labeled-input.scss +54 -26
- package/assets/styles/global/_layout.scss +8 -3
- package/assets/styles/global/_select.scss +25 -17
- package/assets/styles/global/_table.scss +7 -1
- package/assets/styles/global/_tooltip.scss +60 -8
- package/assets/styles/themes/_dark.scss +3 -0
- package/assets/styles/themes/_light.scss +69 -46
- package/assets/styles/vendor/vue-select.scss +24 -10
- package/assets/translations/en-us.yaml +92 -4
- package/assets/translations/zh-hans.yaml +668 -206
- package/components/ActionDropdown.vue +2 -1
- package/components/ActionMenu.vue +2 -2
- package/components/ActionMenuShell.vue +2 -0
- package/components/AppModal.vue +46 -5
- package/components/BrandImage.vue +1 -0
- package/components/ButtonDropdown.vue +28 -4
- package/components/ButtonMultiAction.vue +1 -0
- package/components/ClusterIconMenu.vue +2 -2
- package/components/CodeMirror.vue +26 -10
- package/components/ConsumptionGauge.vue +24 -5
- package/components/ContainerResourceLimit.vue +2 -2
- package/components/CopyToClipboard.vue +15 -0
- package/components/CruResource.vue +12 -10
- package/components/CruResourceFooter.vue +2 -2
- package/components/DashboardOptions.vue +29 -17
- package/components/DotState.vue +84 -0
- package/components/Drawer/Chrome.vue +2 -2
- package/components/Drawer/ResourceDetailDrawer/ConfigTab.vue +30 -27
- package/components/Drawer/ResourceDetailDrawer/YamlTab.vue +1 -1
- package/components/Drawer/ResourceDetailDrawer/index.vue +5 -4
- package/components/ExplorerMembers.vue +28 -4
- package/components/ExplorerProjectsNamespaces.vue +19 -5
- package/components/GlobalRoleBindings.vue +23 -4
- package/components/GrafanaDashboard.vue +4 -4
- package/components/GrowlManager.vue +3 -1
- package/components/HardwareResourceGauge.vue +39 -3
- package/components/IndentedPanel.vue +4 -10
- package/components/InfoBox.vue +3 -3
- package/components/InputOrDisplay.vue +28 -2
- package/components/LabelValue.vue +20 -1
- package/components/ModalWithCard.vue +12 -3
- package/components/PodSecurityAdmission.vue +2 -2
- package/components/PromptModal.vue +1 -1
- package/components/PromptRemove.vue +53 -12
- package/components/RelatedResources.vue +3 -0
- package/components/Resource/Detail/Metadata/IdentifyingInformation/index.vue +1 -3
- package/components/Resource/Detail/Metadata/KeyValue.vue +8 -4
- package/components/Resource/Detail/Metadata/index.vue +3 -1
- package/components/Resource/Detail/TitleBar/Title.vue +4 -3
- package/components/Resource/Detail/TitleBar/Top.vue +2 -0
- package/components/Resource/Detail/TitleBar/composables.ts +16 -1
- package/components/Resource/Detail/TitleBar/index.vue +125 -27
- package/components/ResourceDetail/Masthead/index.vue +1 -1
- package/components/ResourceDetail/Masthead/latest.vue +1 -1
- package/components/ResourceDetail/Masthead/legacy.vue +183 -39
- package/components/ResourceDetail/legacy.vue +47 -29
- package/components/ResourceList/Masthead.vue +222 -54
- package/components/ResourceList/ResourceLoadingIndicator.vue +5 -2
- package/components/ResourceTable.vue +40 -2
- package/components/SideNav.vue +74 -20
- package/components/SingleClusterInfo.vue +2 -1
- package/components/SortableTable/THead.vue +79 -4
- package/components/SortableTable/index.vue +1053 -464
- package/components/SortableTable/paging.js +26 -16
- package/components/SortableTable/selection.js +2 -2
- package/components/Tabbed/Tab.vue +3 -3
- package/components/Tabbed/index.vue +53 -30
- package/components/YamlEditor.vue +0 -1
- package/components/auth/Principal.vue +51 -19
- package/components/auth/RoleDetailEdit.vue +69 -14
- package/components/auth/SelectPrincipal.vue +1 -0
- package/components/breadcrumb/index.vue +119 -0
- package/components/form/ArrayList.vue +177 -152
- package/components/form/ArrayListGrouped.vue +13 -3
- package/components/form/ArrayListSelect.vue +1 -1
- package/components/form/BannerSettings.vue +64 -59
- package/components/form/ChangePassword.vue +5 -5
- package/components/form/ClusterAppearance.vue +4 -3
- package/components/form/ColorInput.vue +32 -8
- package/components/form/Command.vue +4 -5
- package/components/form/Conditions.vue +15 -1
- package/components/form/Footer.vue +12 -8
- package/components/form/HealthCheck.vue +0 -2
- package/components/form/HookOption.vue +87 -58
- package/components/form/InputWithSelect.vue +8 -4
- package/components/form/KeyValue.vue +66 -8
- package/components/form/LabeledSelect.vue +216 -242
- package/components/form/Labels.vue +4 -4
- package/components/form/MatchExpressions.vue +28 -11
- package/components/form/Members/ClusterMembershipEditor.vue +1 -1
- package/components/form/Members/ClusterPermissionsEditor.vue +61 -43
- package/components/form/Members/MembershipEditor.vue +4 -4
- package/components/form/Members/ProjectMembershipEditor.vue +1 -1
- package/components/form/NameNsDescription.vue +62 -22
- package/components/form/Networking.vue +6 -9
- package/components/form/NodeAffinity.vue +29 -28
- package/components/form/Password.vue +16 -7
- package/components/form/PodAffinity.vue +24 -25
- package/components/form/Probe.vue +15 -11
- package/components/form/ProjectMemberEditor.vue +66 -48
- package/components/form/ResourceQuota/Namespace.vue +4 -4
- package/components/form/ResourceQuota/NamespaceRow.vue +26 -23
- package/components/form/ResourceQuota/Project.vue +4 -4
- package/components/form/ResourceQuota/ProjectRow.vue +38 -35
- package/components/form/ResourceSelector.vue +1 -1
- package/components/form/SecretSelector.vue +24 -23
- package/components/form/Security.vue +1 -3
- package/components/form/Select.vue +12 -3
- package/components/form/ServiceNameSelect.vue +2 -5
- package/components/form/ServicePorts.vue +149 -75
- package/components/form/SimpleSecretSelector.vue +29 -9
- package/components/form/Taints.vue +2 -1
- package/components/form/Tolerations.vue +13 -9
- package/components/form/UnitInput.vue +8 -3
- package/components/form/ValueFromResource.vue +110 -96
- package/components/form/WorkloadPorts.vue +143 -123
- package/components/formatter/BadgeStateFormatter.vue +8 -5
- package/components/formatter/LiveDate.vue +3 -3
- package/components/formatter/WorkloadHealthScale.vue +4 -3
- package/components/nav/Favorite.vue +5 -1
- package/components/nav/Group.vue +139 -99
- package/components/nav/Header.vue +138 -164
- package/components/nav/HeaderPageActionMenu.vue +1 -0
- package/components/nav/NamespaceFilter.vue +34 -36
- package/components/nav/TopLevelMenu.vue +62 -25
- package/components/nav/Type.vue +73 -43
- package/composables/useClickOutside.ts +1 -1
- package/config/menuRouteMap.js +10 -0
- package/config/private-label.js +14 -11
- package/config/product/auth.js +17 -7
- package/config/product/explorer.js +32 -10
- package/config/product/manager.js +28 -17
- package/config/product/settings.js +19 -9
- package/config/product/uiplugins.js +13 -10
- package/config/router/navigation-guards/index.js +61 -3
- package/config/settings.ts +28 -0
- package/config/table-headers.js +3 -2
- package/detail/node.vue +28 -23
- package/dialog/AddCustomBadgeDialog.vue +17 -9
- package/dialog/ForceMachineRemoveDialog.vue +2 -2
- package/dialog/RollbackWorkloadDialog.vue +1 -1
- package/dialog/ScalePoolDownDialog.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +1 -1
- package/edit/autoscaling.horizontalpodautoscaler/hpa-scaling-rule.vue +9 -6
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +3 -1
- package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/metric-object-reference.vue +7 -5
- package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +5 -3
- package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +1 -1
- package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +2 -2
- package/edit/configmap.vue +4 -0
- package/edit/logging-flow/index.vue +1 -2
- package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +19 -19
- package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +23 -23
- package/edit/logging.banzaicloud.io.output/providers/datadog.vue +19 -19
- package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +14 -14
- package/edit/logging.banzaicloud.io.output/providers/forward.vue +12 -12
- package/edit/logging.banzaicloud.io.output/providers/gcs.vue +23 -23
- package/edit/logging.banzaicloud.io.output/providers/gelf.vue +6 -6
- package/edit/logging.banzaicloud.io.output/providers/kafka.vue +10 -10
- package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +8 -8
- package/edit/logging.banzaicloud.io.output/providers/logdna.vue +17 -17
- package/edit/logging.banzaicloud.io.output/providers/logz.vue +7 -7
- package/edit/logging.banzaicloud.io.output/providers/loki.vue +12 -12
- package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/opensearch.vue +14 -14
- package/edit/logging.banzaicloud.io.output/providers/redis.vue +6 -6
- package/edit/logging.banzaicloud.io.output/providers/s3.vue +23 -23
- package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +13 -13
- package/edit/logging.banzaicloud.io.output/providers/sumologic.vue +2 -2
- package/edit/logging.banzaicloud.io.output/providers/syslog.vue +54 -54
- package/edit/management.cattle.io.user.vue +17 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +19 -19
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +50 -26
- package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +36 -12
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/dingding.vue +32 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +6 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/message.vue +52 -0
- 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/snmp.vue +45 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +1 -1
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/work.vue +31 -0
- 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 +1 -2
- package/edit/networking.k8s.io.ingress/Certificate.vue +14 -5
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +2 -2
- package/edit/networking.k8s.io.ingress/Rule.vue +5 -11
- package/edit/networking.k8s.io.ingress/RulePath.vue +105 -96
- package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +3 -3
- package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +4 -2
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +12 -11
- package/edit/networking.k8s.io.networkpolicy/index.vue +1 -1
- package/edit/persistentvolume/index.vue +3 -1
- package/edit/persistentvolumeclaim.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/tabs/Basics.vue +1 -1
- package/edit/secret/index.vue +2 -2
- package/edit/service.vue +4 -1
- package/edit/storage.k8s.io.storageclass/index.vue +10 -8
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +34 -27
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +15 -13
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +41 -39
- package/edit/token.vue +31 -12
- package/edit/workload/Job.vue +31 -34
- package/edit/workload/Upgrading.vue +5 -5
- package/edit/workload/index.vue +22 -18
- package/edit/workload/storage/Mount.vue +1 -0
- package/edit/workload/storage/awsElasticBlockStore.vue +9 -7
- package/edit/workload/storage/azureDisk.vue +14 -10
- package/edit/workload/storage/azureFile.vue +9 -7
- package/edit/workload/storage/csi/index.vue +6 -9
- package/edit/workload/storage/emptyDir.vue +7 -5
- package/edit/workload/storage/gcePersistentDisk.vue +9 -7
- package/edit/workload/storage/hostPath.vue +7 -5
- package/edit/workload/storage/nfs.vue +8 -6
- package/edit/workload/storage/persistentVolumeClaim/index.vue +12 -10
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +20 -15
- package/edit/workload/storage/secret.vue +9 -6
- package/edit/workload/storage/vsphereVolume.vue +11 -7
- package/initialize/app-extended.js +7 -1
- package/list/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +8 -6
- package/list/management.cattle.io.setting.vue +22 -13
- package/list/management.cattle.io.user.vue +7 -3
- package/list/namespace.vue +3 -0
- package/list/provisioning.cattle.io.cluster.vue +6 -7
- package/mixins/brand.js +17 -0
- package/mixins/create-edit-view/impl.js +10 -0
- package/models/provisioning.cattle.io.cluster.js +19 -18
- package/models/workload.js +2 -2
- package/package.json +1 -1
- package/pages/account/index.vue +93 -58
- package/pages/account/pri.vue +229 -0
- package/pages/auth/login.vue +216 -51
- package/pages/auth/setup.vue +175 -33
- package/pages/c/_cluster/_product/namespaces.vue +5 -5
- package/pages/c/_cluster/auth/roles/index.vue +83 -8
- package/pages/c/_cluster/explorer/ConfigBadge.vue +1 -1
- package/pages/c/_cluster/explorer/index.vue +2 -1
- package/pages/c/_cluster/explorer/tools/index.vue +6 -6
- package/pages/c/_cluster/monitoring/monitor/index.vue +2 -2
- package/pages/c/_cluster/settings/banners.vue +174 -102
- package/pages/c/_cluster/settings/brand.vue +350 -302
- package/pages/c/_cluster/settings/performance.vue +61 -38
- package/pages/home.vue +119 -37
- package/pages/prefs.vue +27 -25
- package/pkg/tsconfig.json +9 -9
- package/pkg/vue.config.js +1 -1
- package/plugins/dashboard-store/actions.js +1 -1
- package/plugins/dashboard-store/resource-class.js +28 -27
- package/promptRemove/mixin/roleDeletionCheck.js +2 -2
- package/public/index.html +4 -4
- package/rancher-components/BadgeState/BadgeState.vue +38 -55
- package/rancher-components/Banner/Banner.vue +25 -9
- package/rancher-components/Card/Card.vue +7 -8
- package/rancher-components/Form/Checkbox/Checkbox.vue +4 -0
- package/rancher-components/Form/LabeledInput/LabeledInput.vue +42 -3
- package/rancher-components/Form/Radio/RadioButton.vue +35 -11
- package/rancher-components/Form/Radio/RadioGroup.vue +22 -6
- package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +3 -3
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +1 -0
- package/rancher-components/LabeledTooltip/LabeledTooltip.vue +41 -4
- package/rancher-components/RcDropdown/RcDropdown.vue +35 -7
- package/rancher-components/RcDropdown/RcDropdownItem.vue +2 -2
- package/rancher-components/RcDropdown/RcDropdownMenu.vue +12 -6
- package/rancher-components/RcDropdown/types.ts +1 -0
- package/rancher-components/StringList/StringList.vue +1 -1
- package/scripts/build-pkg.sh +18 -23
- package/scripts/publish-shell.sh +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 +6 -2
- package/store/modal.ts +3 -3
- package/store/prefs.js +11 -4
- package/store/type-map.js +30 -2
- package/types/shell/index.d.ts +86 -97
- package/utils/error.js +109 -8
- package/utils/errorTranslate.json +1740 -0
- package/utils/errorTranslateNew.json +39 -0
- package/utils/roleFiltering.js +33 -0
- package/utils/router.js +21 -0
- package/utils/select.js +26 -3
- package/utils/string.js +8 -5
- package/utils/title.ts +1 -1
- package/vue.config.js +1 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Vue, { PropType, defineComponent } from 'vue';
|
|
3
|
+
import { mapGetters } from 'vuex';
|
|
4
|
+
|
|
5
|
+
interface Dot {
|
|
6
|
+
stateBackground: string;
|
|
7
|
+
stateDisplay: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default defineComponent({
|
|
11
|
+
|
|
12
|
+
name: 'DotState',
|
|
13
|
+
|
|
14
|
+
props: {
|
|
15
|
+
value: {
|
|
16
|
+
type: Object as PropType<Dot>,
|
|
17
|
+
default: null
|
|
18
|
+
},
|
|
19
|
+
color: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: null
|
|
22
|
+
},
|
|
23
|
+
label: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: null
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
computed: {
|
|
30
|
+
...mapGetters({ t: 'i18n/t' }),
|
|
31
|
+
bg(): string | null {
|
|
32
|
+
return this.value?.stateBackground || this.color;
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
msg(): string | null {
|
|
36
|
+
let text = this.value?.stateDisplay || this.label;
|
|
37
|
+
let zhText = this.t(`stateLabel.${ text }`)
|
|
38
|
+
return zhText ? zhText : text
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<template>
|
|
46
|
+
<div style="display: flex;flex-direction: row;align-items: center;">
|
|
47
|
+
<div :class="{ [bg]: true }"></div>
|
|
48
|
+
<span style="margin-left: 5px;">{{ msg }}</span>
|
|
49
|
+
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
</template>
|
|
53
|
+
<style lang="scss" scoped>
|
|
54
|
+
.bg-error {
|
|
55
|
+
width: 10px; /* 圆点的宽度 */
|
|
56
|
+
height: 10px; /* 圆点的高度 */
|
|
57
|
+
background-color: #DD0C17; /* 圆点的颜色 */
|
|
58
|
+
border-radius: 50%; /* 设置为圆形 */
|
|
59
|
+
}
|
|
60
|
+
.bg-darker {
|
|
61
|
+
width: 10px; /* 圆点的宽度 */
|
|
62
|
+
height: 10px; /* 圆点的高度 */
|
|
63
|
+
background-color: #DD0C17; /* 圆点的颜色 */
|
|
64
|
+
border-radius: 50%; /* 设置为圆形 */
|
|
65
|
+
}
|
|
66
|
+
.bg-success {
|
|
67
|
+
width: 10px; /* 圆点的宽度 */
|
|
68
|
+
height: 10px; /* 圆点的高度 */
|
|
69
|
+
background-color: #95F204 !important; /* 圆点的颜色 */
|
|
70
|
+
border-radius: 50%; /* 设置为圆形 */
|
|
71
|
+
}
|
|
72
|
+
.bg-warning {
|
|
73
|
+
width: 10px; /* 圆点的宽度 */
|
|
74
|
+
height: 10px; /* 圆点的高度 */
|
|
75
|
+
background-color: #DAC342; /* 圆点的颜色 */
|
|
76
|
+
border-radius: 50%; /* 设置为圆形 */
|
|
77
|
+
}
|
|
78
|
+
.bg-info {
|
|
79
|
+
width: 10px; /* 圆点的宽度 */
|
|
80
|
+
height: 10px; /* 圆点的高度 */
|
|
81
|
+
background-color: #1890FF; /* 圆点的颜色 */
|
|
82
|
+
border-radius: 50%; /* 设置为圆形 */
|
|
83
|
+
}
|
|
84
|
+
</style>
|
|
@@ -35,7 +35,7 @@ const ariaLabel = computed(() => i18n.t('component.drawer.chrome.ariaLabel.close
|
|
|
35
35
|
</div>
|
|
36
36
|
</slot>
|
|
37
37
|
</div>
|
|
38
|
-
<div class="body
|
|
38
|
+
<div class="body">
|
|
39
39
|
<slot name="body" />
|
|
40
40
|
</div>
|
|
41
41
|
<div class="footer pp-4">
|
|
@@ -93,7 +93,7 @@ const ariaLabel = computed(() => i18n.t('component.drawer.chrome.ariaLabel.close
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.body {
|
|
96
|
-
background-color: var(--
|
|
96
|
+
background-color: var(--body-bg);
|
|
97
97
|
flex: 1;
|
|
98
98
|
overflow-y: scroll;
|
|
99
99
|
}
|
|
@@ -16,38 +16,41 @@ const store = useStore();
|
|
|
16
16
|
const i18n = useI18n(store);
|
|
17
17
|
</script>
|
|
18
18
|
<template>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
:initial-value="props.resource"
|
|
33
|
-
:use-tabbed-hash="false /* Have to disable hashing on child components or it modifies the url and closes the drawer */"
|
|
34
|
-
as="config"
|
|
35
|
-
/>
|
|
36
|
-
</div>
|
|
37
|
-
</Tab>
|
|
19
|
+
<div class="container">
|
|
20
|
+
<component
|
|
21
|
+
:is="props.component"
|
|
22
|
+
:value="props.resource"
|
|
23
|
+
:liveValue="props.resource"
|
|
24
|
+
:resourceType="props.resourceType"
|
|
25
|
+
:mode="_VIEW"
|
|
26
|
+
:real-mode="_VIEW"
|
|
27
|
+
:initial-value="props.resource"
|
|
28
|
+
:use-tabbed-hash="false /* Have to disable hashing on child components or it modifies the url and closes the drawer */"
|
|
29
|
+
as="config"
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
38
32
|
</template>
|
|
39
33
|
|
|
40
34
|
<style lang="scss" scoped>
|
|
41
|
-
.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
.container {
|
|
36
|
+
background-color: var(--body-bg);
|
|
37
|
+
border-radius: var(--border-radius-md);
|
|
38
|
+
padding: 20px;
|
|
39
|
+
max-width: 100%;
|
|
40
|
+
width: 100%;
|
|
41
|
+
position: relative;
|
|
42
|
+
// Handle the loading indicator
|
|
43
|
+
:deep() .overlay-content-mode {
|
|
44
|
+
left: 0;
|
|
45
|
+
top: 0;
|
|
49
46
|
}
|
|
50
47
|
|
|
48
|
+
:deep() .cru-resource-footer {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.config-tab {
|
|
53
|
+
|
|
51
54
|
// Handle the loading indicator
|
|
52
55
|
:deep() .overlay-content-mode {
|
|
53
56
|
left: 0;
|
|
@@ -38,7 +38,7 @@ const yamlComponent: any = useTemplateRef('yaml');
|
|
|
38
38
|
:deep() .codemirror-container {
|
|
39
39
|
background-color: var(--body-bg);
|
|
40
40
|
border-radius: var(--border-radius-md);
|
|
41
|
-
padding:
|
|
41
|
+
padding: 20px;
|
|
42
42
|
|
|
43
43
|
.CodeMirror, .CodeMirror-gutter {
|
|
44
44
|
background-color: var(--body-bg);
|
|
@@ -3,7 +3,7 @@ import Drawer from '@shell/components/Drawer/Chrome.vue';
|
|
|
3
3
|
import { useI18n } from '@shell/composables/useI18n';
|
|
4
4
|
import { useStore } from 'vuex';
|
|
5
5
|
import Tabbed from '@shell/components/Tabbed/index.vue';
|
|
6
|
-
import YamlTab, { Props as YamlProps } from '@shell/components/Drawer/ResourceDetailDrawer/YamlTab.vue';
|
|
6
|
+
// import YamlTab, { Props as YamlProps } from '@shell/components/Drawer/ResourceDetailDrawer/YamlTab.vue';
|
|
7
7
|
import { useDefaultConfigTabProps, useDefaultYamlTabProps } from '@shell/components/Drawer/ResourceDetailDrawer/composables';
|
|
8
8
|
import ConfigTab from '@shell/components/Drawer/ResourceDetailDrawer/ConfigTab.vue';
|
|
9
9
|
import { computed, ref } from 'vue';
|
|
@@ -27,6 +27,8 @@ const i18n = useI18n(store);
|
|
|
27
27
|
const yamlTabProps = ref<YamlProps | null>(null);
|
|
28
28
|
const configTabProps = useDefaultConfigTabProps(props.resource);
|
|
29
29
|
|
|
30
|
+
console.log(configTabProps, ' configTabProps---------------------------------2');
|
|
31
|
+
|
|
30
32
|
useDefaultYamlTabProps(props.resource).then((props) => {
|
|
31
33
|
yamlTabProps.value = props;
|
|
32
34
|
});
|
|
@@ -85,10 +87,10 @@ const canEdit = computed(() => {
|
|
|
85
87
|
v-if="configTabProps"
|
|
86
88
|
v-bind="configTabProps"
|
|
87
89
|
/>
|
|
88
|
-
<YamlTab
|
|
90
|
+
<!-- <YamlTab
|
|
89
91
|
v-if="yamlTabProps"
|
|
90
92
|
v-bind="yamlTabProps"
|
|
91
|
-
/>
|
|
93
|
+
/> -->
|
|
92
94
|
</Tabbed>
|
|
93
95
|
</template>
|
|
94
96
|
<template #additional-actions>
|
|
@@ -116,7 +118,6 @@ const canEdit = computed(() => {
|
|
|
116
118
|
border: none;
|
|
117
119
|
border-top: 1px solid var(--border);
|
|
118
120
|
padding: 0;
|
|
119
|
-
padding-top: 24px;
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
}
|
|
@@ -115,6 +115,10 @@ export default {
|
|
|
115
115
|
labelKey: 'tableHeaders.role',
|
|
116
116
|
value: 'roleTemplate.nameDisplay'
|
|
117
117
|
},
|
|
118
|
+
{
|
|
119
|
+
name: '操作',
|
|
120
|
+
labelKey: 'tableHeaders.action',
|
|
121
|
+
},
|
|
118
122
|
],
|
|
119
123
|
loadingProjectBindings: true,
|
|
120
124
|
loadingClusterBindings: true
|
|
@@ -293,6 +297,7 @@ export default {
|
|
|
293
297
|
:create-button-label="t('members.createActionLabel')"
|
|
294
298
|
:is-creatable="false"
|
|
295
299
|
:type-display="t('members.clusterAndProject')"
|
|
300
|
+
|
|
296
301
|
/>
|
|
297
302
|
<Banner
|
|
298
303
|
v-if="isLocal"
|
|
@@ -304,7 +309,7 @@ export default {
|
|
|
304
309
|
name="cluster-membership"
|
|
305
310
|
:label="t('members.clusterMembership')"
|
|
306
311
|
>
|
|
307
|
-
<div
|
|
312
|
+
<!-- <div
|
|
308
313
|
v-if="canEditClusterMembers"
|
|
309
314
|
class="row mb-10 cluster-add"
|
|
310
315
|
>
|
|
@@ -314,7 +319,7 @@ export default {
|
|
|
314
319
|
>
|
|
315
320
|
{{ t('members.createActionLabel') }}
|
|
316
321
|
</router-link>
|
|
317
|
-
</div>
|
|
322
|
+
</div> -->
|
|
318
323
|
<ResourceTable
|
|
319
324
|
:schema="schema"
|
|
320
325
|
:headers="headers"
|
|
@@ -325,7 +330,21 @@ export default {
|
|
|
325
330
|
:loading="$fetchState.pending || !currentCluster || loadingClusterBindings"
|
|
326
331
|
sub-search="subSearch"
|
|
327
332
|
:sub-fields="['nameDisplay']"
|
|
328
|
-
|
|
333
|
+
>
|
|
334
|
+
<template #header-right>
|
|
335
|
+
<div
|
|
336
|
+
v-if="canEditClusterMembers"
|
|
337
|
+
class="row mb-10 mr-10 cluster-add"
|
|
338
|
+
>
|
|
339
|
+
<router-link
|
|
340
|
+
:to="createLocation"
|
|
341
|
+
class="btn role-primary pull-right"
|
|
342
|
+
>
|
|
343
|
+
{{ t('members.createActionLabel') }}
|
|
344
|
+
</router-link>
|
|
345
|
+
</div>
|
|
346
|
+
</template>
|
|
347
|
+
</ResourceTable>
|
|
329
348
|
</Tab>
|
|
330
349
|
<Tab
|
|
331
350
|
v-if="canManageProjectMembers && !isHarvester"
|
|
@@ -346,12 +365,13 @@ export default {
|
|
|
346
365
|
v-trim-whitespace
|
|
347
366
|
class="group-tab"
|
|
348
367
|
>
|
|
368
|
+
|
|
349
369
|
<div
|
|
350
370
|
v-clean-html="getProjectLabel(group)"
|
|
351
371
|
class="project-name"
|
|
352
372
|
/>
|
|
353
373
|
</div>
|
|
354
|
-
<div class="right">
|
|
374
|
+
<div class="right" style="margin-right: 80px;">
|
|
355
375
|
<button
|
|
356
376
|
v-if="canEditProjectMembers"
|
|
357
377
|
type="button"
|
|
@@ -445,8 +465,12 @@ export default {
|
|
|
445
465
|
& :deep() .group-bar{
|
|
446
466
|
display: flex;
|
|
447
467
|
justify-content: space-between;
|
|
468
|
+
align-items: center;
|
|
448
469
|
}
|
|
449
470
|
}
|
|
471
|
+
.role-secondary.btn-sm:focus, .role-secondary.btn-sm.focused{
|
|
472
|
+
border: 1px solid #d7d7d7;
|
|
473
|
+
}
|
|
450
474
|
.cluster-add {
|
|
451
475
|
justify-content: flex-end;
|
|
452
476
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { mapGetters, useStore } from 'vuex';
|
|
3
3
|
import ResourceTable, { defaultTableSortGenerationFn } from '@shell/components/ResourceTable';
|
|
4
|
-
import {
|
|
5
|
-
STATE, AGE, NAME, NS_SNAPSHOT_QUOTA, DESCRIPTION
|
|
4
|
+
import {
|
|
5
|
+
STATE, AGE, NAME, NS_SNAPSHOT_QUOTA, DESCRIPTION
|
|
6
6
|
} from '@shell/config/table-headers';
|
|
7
7
|
import { uniq } from '@shell/utils/array';
|
|
8
8
|
import { MANAGEMENT, NAMESPACE, VIRTUAL_TYPES, HCI } from '@shell/config/types';
|
|
@@ -494,19 +494,22 @@ export default {
|
|
|
494
494
|
{{ projectDescription(group.group) }}
|
|
495
495
|
</div>
|
|
496
496
|
</div>
|
|
497
|
-
<div class="right
|
|
497
|
+
<div class="right">
|
|
498
498
|
<router-link
|
|
499
499
|
v-if="isNamespaceCreatable && (canSeeProjectlessNamespaces || group.group.key !== notInProjectKey)"
|
|
500
|
-
class="create-namespace
|
|
500
|
+
class="create-namespace"
|
|
501
|
+
style="margin-bottom: 3px;"
|
|
501
502
|
:to="createNamespaceLocation(group.group)"
|
|
502
503
|
>
|
|
503
504
|
{{ t('projectNamespaces.createNamespace') }}
|
|
504
505
|
</router-link>
|
|
506
|
+
<span v-if="showProjectActionButton(group.group)" style="margin-bottom: 3px;color: var(--link);margin-left: 20px;">|</span>
|
|
505
507
|
<template v-if="featureDropdownMenu">
|
|
506
508
|
<ActionMenu
|
|
507
509
|
v-if="showProjectActionButton(group.group)"
|
|
508
510
|
:resource="getProjectActions(group.group)"
|
|
509
511
|
data-testid="action-button"
|
|
512
|
+
:showIcon="true"
|
|
510
513
|
:button-aria-label="t('projectNamespaces.tableActionsLabel', { resource: projectResource(group.group) })"
|
|
511
514
|
/>
|
|
512
515
|
<div
|
|
@@ -588,7 +591,7 @@ export default {
|
|
|
588
591
|
<style lang="scss" scoped>
|
|
589
592
|
.invisible {
|
|
590
593
|
display: inline-block;
|
|
591
|
-
min-width:
|
|
594
|
+
min-width: 58px;
|
|
592
595
|
}
|
|
593
596
|
|
|
594
597
|
.project-namespaces {
|
|
@@ -602,9 +605,20 @@ export default {
|
|
|
602
605
|
}
|
|
603
606
|
|
|
604
607
|
.project-bar {
|
|
608
|
+
padding-right: 20px;
|
|
605
609
|
display: flex;
|
|
606
610
|
flex-direction: row;
|
|
607
611
|
justify-content: space-between;
|
|
612
|
+
background-color: var(--sortable-table-bg) !important;
|
|
613
|
+
|
|
614
|
+
.right {
|
|
615
|
+
display: flex;
|
|
616
|
+
align-items: center;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.create-namespace {
|
|
620
|
+
color: var(--link);
|
|
621
|
+
}
|
|
608
622
|
|
|
609
623
|
.group-tab {
|
|
610
624
|
max-width: calc(100% - 230px);
|
|
@@ -103,18 +103,36 @@ export default {
|
|
|
103
103
|
this.sortedRoles.global.push(...remainingGlobalRoles);
|
|
104
104
|
// End sort of global roles
|
|
105
105
|
|
|
106
|
+
if (!(sessionStorage.getItem('TOPLEVELPERMISSIONS') && sessionStorage.getItem('TOPLEVELPERMISSIONS') === 'superadmin')) {
|
|
107
|
+
delete this.sortedRoles.builtin
|
|
108
|
+
delete this.sortedRoles.custom
|
|
109
|
+
}
|
|
110
|
+
|
|
106
111
|
this.update();
|
|
107
112
|
}
|
|
108
113
|
} catch (e) { }
|
|
109
114
|
},
|
|
110
115
|
data() {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
116
|
+
|
|
117
|
+
let globalPermissions = [
|
|
118
|
+
'admin',
|
|
119
|
+
'safe-admin',
|
|
120
|
+
'tenant',
|
|
121
|
+
]
|
|
122
|
+
|
|
123
|
+
if (sessionStorage.getItem('TOPLEVELPERMISSIONS') === 'superadmin') {
|
|
124
|
+
globalPermissions = [
|
|
114
125
|
'admin',
|
|
126
|
+
'safe-admin',
|
|
115
127
|
'user',
|
|
116
128
|
'user-base',
|
|
117
|
-
|
|
129
|
+
'tenant',
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
// This not only identifies global roles but the order here is the order we want to display them in the UI
|
|
135
|
+
globalPermissions,
|
|
118
136
|
globalRoleBindings: null,
|
|
119
137
|
sortedRoles: null,
|
|
120
138
|
selectedRoles: [],
|
|
@@ -426,4 +444,5 @@ export default {
|
|
|
426
444
|
}
|
|
427
445
|
}
|
|
428
446
|
}
|
|
447
|
+
|
|
429
448
|
</style>
|
|
@@ -262,22 +262,22 @@ export default {
|
|
|
262
262
|
<div v-if="loading">
|
|
263
263
|
<Loading />
|
|
264
264
|
</div>
|
|
265
|
-
<div
|
|
265
|
+
<!-- <div
|
|
266
266
|
v-if="!loading && !error"
|
|
267
267
|
class="external-link"
|
|
268
|
-
>
|
|
268
|
+
> -->
|
|
269
269
|
<!-- https://github.com/harvester/harvester-installer/pull/512/files -->
|
|
270
270
|
<!-- It is necessary to include the parameter referer when accessing the Grafana page. -->
|
|
271
271
|
<!-- This parameter is required by the backend to identify the origin of the request from which cluster -->
|
|
272
272
|
<!-- The matching mechanism as follows: -->
|
|
273
273
|
<!-- ~.*/k8s/clusters/(c-m-.+)/.* -->
|
|
274
274
|
<!-- ~.*/dashboard/harvester/c/(c-m-.+)/.* -->
|
|
275
|
-
<a
|
|
275
|
+
<!-- <a
|
|
276
276
|
:href="grafanaUrl"
|
|
277
277
|
target="_blank"
|
|
278
278
|
rel="noopener nofollow"
|
|
279
279
|
>{{ t('grafanaDashboard.grafana') }} <i class="icon icon-external-link" /></a>
|
|
280
|
-
</div>
|
|
280
|
+
</div> -->
|
|
281
281
|
</div>
|
|
282
282
|
</template>
|
|
283
283
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { mapState } from 'vuex';
|
|
3
|
+
import { translateError } from '@shell/utils/error'
|
|
3
4
|
|
|
4
5
|
export default {
|
|
5
6
|
data() {
|
|
@@ -25,6 +26,7 @@ export default {
|
|
|
25
26
|
},
|
|
26
27
|
|
|
27
28
|
methods: {
|
|
29
|
+
translateError,
|
|
28
30
|
remove(growl) {
|
|
29
31
|
this.$store.dispatch('growl/remove', growl.id);
|
|
30
32
|
},
|
|
@@ -131,7 +133,7 @@ export default {
|
|
|
131
133
|
:id="`growl-message-${ growl.id }`"
|
|
132
134
|
:class="{ 'has-title': !!growl.title }"
|
|
133
135
|
>
|
|
134
|
-
|
|
136
|
+
{{ translateError(growl.message) }}
|
|
135
137
|
</p>
|
|
136
138
|
</div>
|
|
137
139
|
</div>
|
|
@@ -85,8 +85,9 @@ export default {
|
|
|
85
85
|
:capacity="reserved.total"
|
|
86
86
|
:used="reserved.useful"
|
|
87
87
|
:color-stops="colorStops"
|
|
88
|
+
:reserveText="`已分配`"
|
|
88
89
|
>
|
|
89
|
-
<template #title>
|
|
90
|
+
<!-- <template #title>
|
|
90
91
|
<span>
|
|
91
92
|
{{ reservedTitle ?? t('clusterIndexPage.hardwareResourceGauge.reserved') }}
|
|
92
93
|
<span class="values text-muted">
|
|
@@ -108,6 +109,23 @@ export default {
|
|
|
108
109
|
<span>
|
|
109
110
|
{{ percentage(reserved) }}
|
|
110
111
|
</span>
|
|
112
|
+
</template> -->
|
|
113
|
+
<template #content>
|
|
114
|
+
<span>
|
|
115
|
+
{{ percentage(reserved) }}(
|
|
116
|
+
共 <span v-if="reserved.formattedTotal">
|
|
117
|
+
{{ reserved.formattedTotal }}
|
|
118
|
+
</span>
|
|
119
|
+
<span v-else>
|
|
120
|
+
{{ maxDecimalPlaces(reserved.total) }} {{ reserved.units }}
|
|
121
|
+
</span>,{{ reservedTitle === '分配'? '已分配': '预留' }} <span v-if="reserved.formattedUseful">
|
|
122
|
+
{{ reserved.formattedUseful }} {{ reserved.units }}
|
|
123
|
+
</span>
|
|
124
|
+
<span v-else>
|
|
125
|
+
{{ maxDecimalPlaces(reserved.useful) }} {{ reserved.units }}
|
|
126
|
+
</span>
|
|
127
|
+
)
|
|
128
|
+
</span>
|
|
111
129
|
</template>
|
|
112
130
|
</ConsumptionGauge>
|
|
113
131
|
</div>
|
|
@@ -119,8 +137,26 @@ export default {
|
|
|
119
137
|
:capacity="used.total"
|
|
120
138
|
:used="used.useful"
|
|
121
139
|
:color-stops="colorStops"
|
|
140
|
+
:reserveText="`已使用`"
|
|
122
141
|
>
|
|
123
|
-
|
|
142
|
+
<template #content>
|
|
143
|
+
<span>
|
|
144
|
+
{{ percentage(used) }}(
|
|
145
|
+
共 <span v-if="used.formattedTotal">
|
|
146
|
+
{{ used.formattedTotal }}
|
|
147
|
+
</span>
|
|
148
|
+
<span v-else>
|
|
149
|
+
{{ maxDecimalPlaces(used.total) }} {{ used.units }}
|
|
150
|
+
</span>,已使用 <span v-if="used.formattedUseful">
|
|
151
|
+
{{ used.formattedUseful }} {{ used.units }}
|
|
152
|
+
</span>
|
|
153
|
+
<span v-else>
|
|
154
|
+
{{ maxDecimalPlaces(used.useful) }} {{ used.units }}
|
|
155
|
+
</span>
|
|
156
|
+
)
|
|
157
|
+
</span>
|
|
158
|
+
</template>
|
|
159
|
+
<!-- <template #title>
|
|
124
160
|
<span>
|
|
125
161
|
{{ usedTitle ?? t('clusterIndexPage.hardwareResourceGauge.used') }}
|
|
126
162
|
<span class="values text-muted">
|
|
@@ -142,7 +178,7 @@ export default {
|
|
|
142
178
|
<span>
|
|
143
179
|
{{ percentage(used) }}
|
|
144
180
|
</span>
|
|
145
|
-
</template>
|
|
181
|
+
</template> -->
|
|
146
182
|
</ConsumptionGauge>
|
|
147
183
|
</div>
|
|
148
184
|
</div>
|
|
@@ -4,23 +4,17 @@ export default {};
|
|
|
4
4
|
|
|
5
5
|
<template>
|
|
6
6
|
<div
|
|
7
|
-
class="indented-
|
|
7
|
+
class="indented-panels"
|
|
8
8
|
>
|
|
9
9
|
<slot />
|
|
10
10
|
</div>
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<style lang="scss">
|
|
14
|
-
.indented-
|
|
14
|
+
.indented-panels {
|
|
15
15
|
height: 100%;
|
|
16
|
-
width:
|
|
17
|
-
|
|
16
|
+
width: 100%;
|
|
17
|
+
padding: 0 20px;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
@media only screen and (max-width: map-get($breakpoints, '--viewport-9')) {
|
|
21
|
-
.indented-panel {
|
|
22
|
-
margin: 0 20px;
|
|
23
|
-
width: initial;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
20
|
</style>
|
package/components/InfoBox.vue
CHANGED
|
@@ -26,8 +26,8 @@ export default {
|
|
|
26
26
|
|
|
27
27
|
<style lang="scss" scoped>
|
|
28
28
|
.info-box {
|
|
29
|
-
border:
|
|
30
|
-
padding:
|
|
29
|
+
border: 1px solid var(--tabbed-border);
|
|
30
|
+
padding: 20px;
|
|
31
31
|
margin-bottom: 20px;
|
|
32
32
|
border-radius: var(--border-radius);
|
|
33
33
|
flex-grow: 1;
|
|
@@ -81,4 +81,4 @@ export default {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
</style>
|
|
84
|
+
</style>
|
|
@@ -45,7 +45,9 @@ export default {
|
|
|
45
45
|
</div>
|
|
46
46
|
<div class="value">
|
|
47
47
|
<slot name="value">
|
|
48
|
-
|
|
48
|
+
<span v-clean-tooltip="displayValue">
|
|
49
|
+
{{ displayValue }}
|
|
50
|
+
</span>
|
|
49
51
|
</slot>
|
|
50
52
|
</div>
|
|
51
53
|
</div>
|
|
@@ -53,7 +55,7 @@ export default {
|
|
|
53
55
|
</template>
|
|
54
56
|
|
|
55
57
|
<style lang="scss" scoped>
|
|
56
|
-
.label {
|
|
58
|
+
/* .label {
|
|
57
59
|
display: flex;
|
|
58
60
|
flex-direction: column;
|
|
59
61
|
|
|
@@ -61,5 +63,29 @@ export default {
|
|
|
61
63
|
font-size: 14px;
|
|
62
64
|
line-height: $input-line-height;
|
|
63
65
|
}
|
|
66
|
+
} */
|
|
67
|
+
.label {
|
|
68
|
+
display: flex;
|
|
69
|
+
/* align-items: center; */
|
|
70
|
+
/* flex-direction: column; */
|
|
71
|
+
|
|
72
|
+
.text-label{
|
|
73
|
+
width: 160px;
|
|
74
|
+
line-height: 32px;
|
|
75
|
+
}
|
|
76
|
+
.value {
|
|
77
|
+
/* font-size: 14px; */
|
|
78
|
+
/* line-height: $input-line-height; */
|
|
79
|
+
line-height: 32px;
|
|
80
|
+
flex: 1;
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
text-overflow: ellipsis;
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
|
|
85
|
+
ul{
|
|
86
|
+
line-height: $input-line-height;
|
|
87
|
+
list-style:none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
64
90
|
}
|
|
65
91
|
</style>
|
|
@@ -30,7 +30,7 @@ export default {
|
|
|
30
30
|
</template>
|
|
31
31
|
|
|
32
32
|
<style lang="scss" scoped>
|
|
33
|
-
.label {
|
|
33
|
+
/* .label {
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: column;
|
|
36
36
|
|
|
@@ -38,5 +38,24 @@ export default {
|
|
|
38
38
|
font-size: 14px;
|
|
39
39
|
line-height: $input-line-height;
|
|
40
40
|
}
|
|
41
|
+
} */
|
|
42
|
+
.label {
|
|
43
|
+
display: flex;
|
|
44
|
+
/* flex-direction: column; */
|
|
45
|
+
/* align-items: center; */
|
|
46
|
+
.text-label{
|
|
47
|
+
width: 160px;
|
|
48
|
+
line-height: 32px;
|
|
49
|
+
}
|
|
50
|
+
.value {
|
|
51
|
+
line-height: $input-line-height;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
text-overflow: ellipsis;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
line-height: 32px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
:deep() ul {
|
|
59
|
+
margin: 0px;
|
|
41
60
|
}
|
|
42
61
|
</style>
|