@rancher/shell 2.0.0 → 2.0.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/translations/en-us.yaml +18 -3
- package/components/AlertTable.vue +17 -7
- package/components/GrafanaDashboard.vue +6 -4
- package/components/PromptRemove.vue +1 -0
- package/components/form/KeyValue.vue +1 -0
- package/components/form/Taints.vue +13 -7
- package/components/form/__tests__/Taints.test.ts +70 -0
- package/components/nav/Header.vue +1 -1
- package/components/nav/TopLevelMenu.vue +1 -4
- package/config/product/auth.js +1 -1
- package/config/router/navigation-guards/i18n.js +13 -0
- package/config/router/navigation-guards/index.js +2 -1
- package/creators/app/app.package.json +2 -1
- package/detail/__tests__/provisioning.cattle.io.cluster.test.ts +42 -0
- package/detail/provisioning.cattle.io.cluster.vue +4 -4
- package/dialog/DeactivateDriverDialog.vue +30 -11
- package/edit/auth/__tests__/oidc.test.ts +2 -2
- package/edit/token.vue +2 -1
- package/initialize/entry-helpers.js +10 -13
- package/list/management.cattle.io.feature.vue +4 -2
- package/middleware/authenticated.js +0 -19
- package/mixins/auth-config.js +1 -1
- package/models/driver.js +3 -2
- package/models/kontainerdriver.js +30 -13
- package/models/management.cattle.io.authconfig.js +2 -2
- package/models/nodedriver.js +30 -13
- package/package.json +3 -2
- package/pages/c/_cluster/apps/charts/install.vue +3 -2
- package/pages/c/_cluster/manager/drivers/kontainerDriver/index.vue +0 -3
- package/pages/c/_cluster/manager/drivers/nodeDriver/index.vue +1 -4
- package/pages/c/_cluster/uiplugins/InstallDialog.vue +2 -1
- package/promptRemove/pod.vue +15 -7
- package/scripts/publish-shell.sh +1 -0
- package/store/auth.js +1 -1
- package/store/index.js +1 -1
- package/utils/__tests__/kontainer.test.ts +89 -1
- package/utils/auth.js +1 -1
- package/utils/kontainer.ts +5 -1
- package/utils/version.js +2 -1
- package/rancher-components/components/Accordion/Accordion.test.ts +0 -45
- package/rancher-components/components/Accordion/Accordion.vue +0 -86
- package/rancher-components/components/Accordion/index.ts +0 -1
- package/rancher-components/components/BadgeState/BadgeState.test.ts +0 -12
- package/rancher-components/components/BadgeState/BadgeState.vue +0 -111
- package/rancher-components/components/BadgeState/index.ts +0 -1
- package/rancher-components/components/Banner/Banner.test.ts +0 -59
- package/rancher-components/components/Banner/Banner.vue +0 -244
- package/rancher-components/components/Banner/index.ts +0 -1
- package/rancher-components/components/Card/Card.test.ts +0 -37
- package/rancher-components/components/Card/Card.vue +0 -167
- package/rancher-components/components/Card/index.ts +0 -1
- package/rancher-components/components/Form/Checkbox/Checkbox.test.ts +0 -68
- package/rancher-components/components/Form/Checkbox/Checkbox.vue +0 -421
- package/rancher-components/components/Form/Checkbox/index.ts +0 -1
- package/rancher-components/components/Form/LabeledInput/LabeledInput.test.ts +0 -40
- package/rancher-components/components/Form/LabeledInput/LabeledInput.vue +0 -402
- package/rancher-components/components/Form/LabeledInput/index.ts +0 -1
- package/rancher-components/components/Form/Radio/RadioButton.test.ts +0 -33
- package/rancher-components/components/Form/Radio/RadioButton.vue +0 -293
- package/rancher-components/components/Form/Radio/RadioGroup.test.ts +0 -30
- package/rancher-components/components/Form/Radio/RadioGroup.vue +0 -259
- package/rancher-components/components/Form/Radio/index.ts +0 -2
- package/rancher-components/components/Form/TextArea/TextAreaAutoGrow.vue +0 -172
- package/rancher-components/components/Form/TextArea/index.ts +0 -1
- package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.test.ts +0 -94
- package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.vue +0 -152
- package/rancher-components/components/Form/ToggleSwitch/index.ts +0 -1
- package/rancher-components/components/Form/index.ts +0 -5
- package/rancher-components/components/LabeledTooltip/LabeledTooltip.vue +0 -156
- package/rancher-components/components/LabeledTooltip/index.ts +0 -1
- package/rancher-components/components/StringList/StringList.test.ts +0 -754
- package/rancher-components/components/StringList/StringList.vue +0 -650
- package/rancher-components/components/StringList/index.ts +0 -1
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { defineComponent } from 'vue';
|
|
3
|
-
|
|
4
|
-
export default defineComponent({
|
|
5
|
-
props: {
|
|
6
|
-
/**
|
|
7
|
-
* The Labeled Tooltip value.
|
|
8
|
-
*/
|
|
9
|
-
value: {
|
|
10
|
-
type: [String, Object],
|
|
11
|
-
default: null
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The status for the Labeled Tooltip. Controls the Labeled Tooltip class.
|
|
16
|
-
* @values info, success, warning, error
|
|
17
|
-
*/
|
|
18
|
-
status: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: 'error'
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Displays the Labeled Tooltip on mouse hover.
|
|
25
|
-
*/
|
|
26
|
-
hover: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: true
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
computed: {
|
|
32
|
-
iconClass(): string {
|
|
33
|
-
return this.status === 'error' ? 'icon-warning' : 'icon-info';
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
methods: {
|
|
37
|
-
isObject(value: string | Record<string, unknown>): value is Record<string, unknown> {
|
|
38
|
-
return typeof value === 'object' && value !== null && !!value.content;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
<template>
|
|
45
|
-
<div
|
|
46
|
-
ref="container"
|
|
47
|
-
class="labeled-tooltip"
|
|
48
|
-
:class="{[status]: true, hoverable: hover}"
|
|
49
|
-
>
|
|
50
|
-
<template v-if="hover">
|
|
51
|
-
<i
|
|
52
|
-
v-clean-tooltip="isObject(value) ? { ...{content: value.content, classes: [`tooltip-${status}`]}, ...value } : value"
|
|
53
|
-
:class="{'hover':!value, [iconClass]: true}"
|
|
54
|
-
class="icon status-icon"
|
|
55
|
-
/>
|
|
56
|
-
</template>
|
|
57
|
-
<template v-else>
|
|
58
|
-
<i
|
|
59
|
-
:class="{'hover':!value}"
|
|
60
|
-
class="icon status-icon"
|
|
61
|
-
/>
|
|
62
|
-
<div
|
|
63
|
-
v-if="value"
|
|
64
|
-
class="tooltip"
|
|
65
|
-
x-placement="bottom"
|
|
66
|
-
>
|
|
67
|
-
<div class="tooltip-arrow" />
|
|
68
|
-
<div class="tooltip-inner">
|
|
69
|
-
{{ value }}
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
</template>
|
|
73
|
-
</div>
|
|
74
|
-
</template>
|
|
75
|
-
|
|
76
|
-
<style lang='scss'>
|
|
77
|
-
.labeled-tooltip {
|
|
78
|
-
position: absolute;
|
|
79
|
-
width: 100%;
|
|
80
|
-
height: 100%;
|
|
81
|
-
left: 0;
|
|
82
|
-
top: 0;
|
|
83
|
-
|
|
84
|
-
&.hoverable {
|
|
85
|
-
height: 0%;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.status-icon {
|
|
89
|
-
position: absolute;
|
|
90
|
-
right: 30px;
|
|
91
|
-
top: $input-padding-lg;
|
|
92
|
-
z-index: z-index(hoverOverContent);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.tooltip {
|
|
96
|
-
position: absolute;
|
|
97
|
-
width: calc(100% + 2px);
|
|
98
|
-
top: calc(100% + 6px);
|
|
99
|
-
|
|
100
|
-
.tooltip-arrow {
|
|
101
|
-
right: 30px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.tooltip-inner {
|
|
105
|
-
padding: 10px;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@mixin tooltipColors($color) {
|
|
110
|
-
.status-icon {
|
|
111
|
-
color: $color;
|
|
112
|
-
}
|
|
113
|
-
.tooltip {
|
|
114
|
-
.tooltip-inner {
|
|
115
|
-
color: var(--input-bg);
|
|
116
|
-
background: $color;
|
|
117
|
-
border-color: $color;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.tooltip-arrow {
|
|
121
|
-
border-bottom-color: $color;
|
|
122
|
-
&:after {
|
|
123
|
-
border: none;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&.error {
|
|
130
|
-
@include tooltipColors(var(--error));
|
|
131
|
-
|
|
132
|
-
.status-icon {
|
|
133
|
-
top: 7px;
|
|
134
|
-
right: 5px;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&.warning {
|
|
139
|
-
@include tooltipColors(var(--warning));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&.success {
|
|
143
|
-
@include tooltipColors(var(--success));
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// Ensure code blocks inside tootips don't look awful
|
|
148
|
-
.tooltip {
|
|
149
|
-
.tooltip-inner {
|
|
150
|
-
> pre {
|
|
151
|
-
padding: 2px;
|
|
152
|
-
vertical-align: middle;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as LabeledTooltip } from './LabeledTooltip.vue';
|