@rancher/shell 3.0.0-rc.4 → 3.0.0-rc.5
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/styles/global/_tooltip.scss +1 -1
- package/components/fleet/FleetStatus.vue +3 -2
- package/components/nav/Header.vue +22 -0
- package/components/nav/HeaderPageActionMenu.vue +2 -24
- package/models/management.cattle.io.cluster.js +1 -1
- package/package.json +3 -3
- package/scripts/publish-shell.sh +3 -4
- package/scripts/typegen.sh +1 -1
- package/types/shell/index.d.ts +22 -0
- package/shell/types/shell/index.d.ts +0 -2
|
@@ -150,7 +150,7 @@ function toPercent(value, min, max) {
|
|
|
150
150
|
{{ title }}
|
|
151
151
|
</div>
|
|
152
152
|
<div
|
|
153
|
-
class="
|
|
153
|
+
class="resources-dropdown"
|
|
154
154
|
tabindex="0"
|
|
155
155
|
@blur="showMenu(false)"
|
|
156
156
|
@click="showMenu(true)"
|
|
@@ -158,12 +158,13 @@ function toPercent(value, min, max) {
|
|
|
158
158
|
>
|
|
159
159
|
<v-dropdown
|
|
160
160
|
ref="popover"
|
|
161
|
-
placement="bottom
|
|
161
|
+
placement="bottom"
|
|
162
162
|
offset="-10"
|
|
163
163
|
:triggers="[]"
|
|
164
164
|
:delay="{show: 0, hide: 0}"
|
|
165
165
|
:flip="false"
|
|
166
166
|
:container="false"
|
|
167
|
+
popper-class="fleet-summary-tooltip"
|
|
167
168
|
>
|
|
168
169
|
<div class="meta-title">
|
|
169
170
|
{{ meta.readyCount }} / {{ meta.total }} {{ title }} ready <i class="icon toggle icon-chevron-down" />
|
|
@@ -958,6 +958,28 @@ export default {
|
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
|
|
961
|
+
:deep(.actions) {
|
|
962
|
+
align-items: center;
|
|
963
|
+
cursor: pointer;
|
|
964
|
+
display: flex;
|
|
965
|
+
|
|
966
|
+
> I {
|
|
967
|
+
font-size: 18px;
|
|
968
|
+
padding: 6px;
|
|
969
|
+
&:hover {
|
|
970
|
+
color: var(--link);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
:deep(.v-popper:focus) {
|
|
975
|
+
outline: 0;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.dropdown {
|
|
979
|
+
margin: 0 -10px;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
|
|
961
983
|
.header-spacer {
|
|
962
984
|
background-color: var(--header-bg);
|
|
963
985
|
position: relative;
|
|
@@ -77,7 +77,7 @@ const handleBlurEvent = (event: KeyboardEvent) => {
|
|
|
77
77
|
</v-dropdown>
|
|
78
78
|
</template>
|
|
79
79
|
|
|
80
|
-
<
|
|
80
|
+
<style lang="scss" scoped>
|
|
81
81
|
.v-popper__popper {
|
|
82
82
|
.v-popper__wrapper {
|
|
83
83
|
.v-popper__arrow-container {
|
|
@@ -131,28 +131,6 @@ const handleBlurEvent = (event: KeyboardEvent) => {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
.actions {
|
|
135
|
-
align-items: center;
|
|
136
|
-
cursor: pointer;
|
|
137
|
-
display: flex;
|
|
138
|
-
|
|
139
|
-
> I {
|
|
140
|
-
font-size: 18px;
|
|
141
|
-
padding: 6px;
|
|
142
|
-
&:hover {
|
|
143
|
-
color: var(--link);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
:deep(.v-popper:focus) {
|
|
148
|
-
outline: 0;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.dropdown {
|
|
152
|
-
margin: 0 -10px;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
134
|
.list-unstyled {
|
|
157
135
|
li {
|
|
158
136
|
a {
|
|
@@ -170,4 +148,4 @@ const handleBlurEvent = (event: KeyboardEvent) => {
|
|
|
170
148
|
}
|
|
171
149
|
}
|
|
172
150
|
}
|
|
173
|
-
</
|
|
151
|
+
</style>
|
|
@@ -118,7 +118,7 @@ export default class MgmtCluster extends SteveModel {
|
|
|
118
118
|
// Provisioner is the "<something>Config" in the model
|
|
119
119
|
const provisioner = KONTAINER_TO_DRIVER[(this.provisioner || '').toLowerCase()] || this.provisioner;
|
|
120
120
|
|
|
121
|
-
if ( provisioner === 'rancherKubernetesEngine' ) {
|
|
121
|
+
if ( provisioner === 'rancherKubernetesEngine' || provisioner === 'rke') {
|
|
122
122
|
// Look for a cloud provider in one of the node templates
|
|
123
123
|
if ( this.machinePools?.[0] ) {
|
|
124
124
|
provider = this.machinePools[0]?.nodeTemplate?.spec?.driver || null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rancher/shell",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.5",
|
|
4
4
|
"description": "Rancher Dashboard Shell",
|
|
5
5
|
"repository": "https://github.com/rancherlabs/dashboard",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -121,13 +121,13 @@
|
|
|
121
121
|
"unfetch": "4.2.0",
|
|
122
122
|
"url-parse": "1.5.10",
|
|
123
123
|
"vue": "~3.2.13",
|
|
124
|
-
"vue3-resize": "0.2.0",
|
|
125
124
|
"vue-router": "4.4.3",
|
|
126
125
|
"vue-select": "4.0.0-beta.6",
|
|
127
126
|
"vue-server-renderer": "2.7.16",
|
|
128
127
|
"vue-template-compiler": "2.7.16",
|
|
128
|
+
"vue3-resize": "0.2.0",
|
|
129
129
|
"vue3-virtual-scroll-list": "0.2.1",
|
|
130
|
-
"vuedraggable": "
|
|
130
|
+
"vuedraggable": "4.1.0",
|
|
131
131
|
"vuex": "~4.0.0",
|
|
132
132
|
"webpack-bundle-analyzer": "4.5.0",
|
|
133
133
|
"webpack-virtual-modules": "0.4.3",
|
package/scripts/publish-shell.sh
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
+
set -eo pipefail
|
|
4
|
+
|
|
3
5
|
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
|
|
4
|
-
BASE_DIR="$(
|
|
5
|
-
cd $SCRIPT_DIR && cd ../.. &
|
|
6
|
-
pwd
|
|
7
|
-
)"
|
|
6
|
+
BASE_DIR="$(cd $SCRIPT_DIR && cd ../.. && pwd)"
|
|
8
7
|
SHELL_DIR=$BASE_DIR/shell/
|
|
9
8
|
CREATORS_DIR=$BASE_DIR/creators/extension
|
|
10
9
|
PUBLISH_ARGS="--no-git-tag-version --access public --registry $NPM_REGISTRY $NPM_TAG"
|
package/scripts/typegen.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
3
|
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
4
|
-
BASE_DIR="$(
|
|
4
|
+
BASE_DIR="$(cd $SCRIPT_DIR && cd ../.. && pwd)"
|
|
5
5
|
SHELL_DIR=$BASE_DIR/shell
|
|
6
6
|
|
|
7
7
|
echo "Generating typescript definitions"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated type definitions for shell
|
|
2
|
+
// Do not modify this file as changes will get overwritten
|
|
3
|
+
declare module '*.vue' {
|
|
4
|
+
import Vue from 'vue';
|
|
5
|
+
export default Vue;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// This is required to keep typescript from complaining. It is required for
|
|
9
|
+
// our i18n plugin. For more info see:
|
|
10
|
+
// https://v2.vuejs.org/v2/guide/typescript.html?redirect=true#Augmenting-Types-for-Use-with-Plugins
|
|
11
|
+
declare module 'vue/types/vue' {
|
|
12
|
+
// eslint-disable-next-line no-unused-vars
|
|
13
|
+
interface Vue {
|
|
14
|
+
/**
|
|
15
|
+
* Lookup a given string with the given arguments
|
|
16
|
+
* @param raw if set, do not do HTML escaping.
|
|
17
|
+
*/
|
|
18
|
+
t: (key: string, args?: Record<string, any>, raw?: boolean) => string,
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare module 'js-yaml';
|