@rancher/shell 2.0.1 → 2.0.2-rc.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 +51 -26
- package/assets/translations/zh-hans.yaml +1 -0
- package/components/AssignTo.vue +2 -0
- package/components/Questions/index.vue +2 -2
- package/components/auth/RoleDetailEdit.vue +5 -4
- package/components/form/Members/ClusterPermissionsEditor.vue +1 -1
- package/components/form/ProjectMemberEditor.vue +1 -1
- package/components/form/ResourceLabeledSelect.vue +11 -3
- package/components/form/labeled-select-utils/labeled-select.utils.ts +1 -1
- package/config/pagination-table-headers.js +5 -4
- package/config/roles.ts +34 -19
- package/config/router/navigation-guards/attempt-first-login.js +1 -1
- package/config/router/navigation-guards/authentication.js +1 -1
- package/config/router/navigation-guards/i18n.js +1 -1
- package/config/router/navigation-guards/index.js +2 -1
- package/config/router/navigation-guards/load-initial-settings.js +1 -1
- package/config/router/navigation-guards/runtime-extension-route.js +31 -0
- package/config/router/routes.js +10 -1
- package/config/uiplugins.js +130 -61
- package/core/plugin.ts +5 -0
- package/core/plugins.js +7 -1
- package/edit/provisioning.cattle.io.cluster/__tests__/Basics.test.ts +86 -13
- package/edit/provisioning.cattle.io.cluster/__tests__/DirectoryConfig.test.ts +3 -134
- package/edit/provisioning.cattle.io.cluster/__tests__/rke2.test.ts +209 -0
- package/edit/provisioning.cattle.io.cluster/index.vue +8 -4
- package/edit/provisioning.cattle.io.cluster/rke2.vue +115 -17
- package/edit/provisioning.cattle.io.cluster/tabs/AddOnAdditionalManifest.vue +50 -0
- package/edit/provisioning.cattle.io.cluster/tabs/AddOnConfig.vue +29 -64
- package/edit/provisioning.cattle.io.cluster/tabs/Basics.vue +42 -3
- package/edit/provisioning.cattle.io.cluster/tabs/DirectoryConfig.vue +22 -86
- package/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryConfigs.vue +8 -2
- package/edit/provisioning.cattle.io.cluster/tabs/registries/__tests__/RegistryConfigs.test.ts +61 -0
- package/initialize/entry-helpers.js +4 -21
- package/mixins/__tests__/chart.test.ts +4 -1
- package/mixins/chart.js +30 -14
- package/models/__tests__/apps.deployment.test.ts +93 -0
- package/models/apps.deployment.js +18 -4
- package/models/management.cattle.io.cluster.js +2 -2
- package/models/management.cattle.io.user.js +3 -3
- package/models/nodedriver.js +5 -0
- package/models/provisioning.cattle.io.cluster.js +4 -0
- package/package.json +1 -1
- package/pages/404.vue +15 -0
- package/pages/auth/login.vue +4 -1
- package/pages/auth/setup.vue +4 -1
- package/pages/c/_cluster/explorer/index.vue +5 -0
- package/pages/c/_cluster/manager/jwt.authentication/index.vue +10 -4
- package/pages/c/_cluster/settings/performance.vue +2 -2
- package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +7 -10
- package/pages/c/_cluster/uiplugins/index.vue +24 -16
- package/pages/home.vue +1 -13
- package/plugins/dashboard-store/actions.js +1 -1
- package/plugins/dashboard-store/getters.js +1 -1
- package/plugins/steve/__tests__/getters.test.ts +5 -5
- package/plugins/steve/getters.js +6 -4
- package/plugins/steve/hybrid-class.js +1 -5
- package/scripts/extension/helm/charts/ui-plugin-server/Chart.yaml +1 -1
- package/scripts/publish-shell.sh +53 -55
- package/scripts/test-plugins-build.sh +45 -39
- package/shell/types/shell/index.d.ts +2 -0
- package/store/type-map.js +4 -2
- package/types/store/pagination.types.ts +1 -1
- package/utils/cluster.js +9 -0
- package/utils/settings.ts +3 -1
- package/creators/app/app.package.json +0 -14
- package/creators/app/files/.eslintignore +0 -16
- package/creators/app/files/.eslintrc.js +0 -173
- package/creators/app/files/.gitignore +0 -70
- package/creators/app/files/.gitlab-ci.yml +0 -14
- package/creators/app/files/.vscode/settings.json +0 -21
- package/creators/app/files/babel.config.js +0 -1
- package/creators/app/files/tsconfig.json +0 -42
- package/creators/app/files/vue.config.js +0 -6
- package/creators/app/init +0 -120
- package/creators/app/package.json +0 -25
- package/creators/pkg/files/.github/workflows/build-extension-catalog.yml +0 -24
- package/creators/pkg/files/.github/workflows/build-extension-charts.yml +0 -22
- package/creators/pkg/files/babel.config.js +0 -1
- package/creators/pkg/files/index.ts +0 -14
- package/creators/pkg/files/tsconfig.json +0 -53
- package/creators/pkg/files/vue.config.js +0 -1
- package/creators/pkg/init +0 -286
- package/creators/pkg/package.json +0 -19
- package/creators/pkg/pkg.package.json +0 -21
- package/creators/pkg/vue-shim.ts +0 -4
- package/creators/update/init +0 -56
- package/creators/update/package.json +0 -20
- package/creators/update/upgrade +0 -56
- package/types/shell/index.d.ts +0 -4585
|
@@ -8,8 +8,8 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
8
8
|
BASE_DIR="$( cd $SCRIPT_DIR && cd ../.. & pwd)"
|
|
9
9
|
SHELL_DIR=$BASE_DIR/shell/
|
|
10
10
|
SHELL_VERSION="99.99.99"
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
DEFAULT_NPM_REGISTRY="https://registry.npmjs.org/"
|
|
12
|
+
VERDACCIO_NPM_REGISTRY="http://localhost:4873"
|
|
13
13
|
|
|
14
14
|
echo ${SCRIPT_DIR}
|
|
15
15
|
|
|
@@ -69,11 +69,11 @@ else
|
|
|
69
69
|
rm -rf ~/.config/verdaccio/storage/@rancher/*
|
|
70
70
|
fi
|
|
71
71
|
|
|
72
|
-
export
|
|
72
|
+
export NPM_REGISTRY=$VERDACCIO_NPM_REGISTRY
|
|
73
73
|
export NUXT_TELEMETRY_DISABLED=1
|
|
74
74
|
|
|
75
75
|
# Remove test package from previous run, if present
|
|
76
|
-
if [ $TEST_PERSIST_BUILD != "true" ]; then
|
|
76
|
+
if [ "${TEST_PERSIST_BUILD}" != "true" ]; then
|
|
77
77
|
echo "Removing folder ${BASE_DIR}/pkg/test-pkg"
|
|
78
78
|
rm -rf ${BASE_DIR}/pkg/test-pkg
|
|
79
79
|
fi
|
|
@@ -81,20 +81,34 @@ fi
|
|
|
81
81
|
# We need to patch the version number of the shell, otherwise if we are running
|
|
82
82
|
# with the currently published version, things will fail as those versions
|
|
83
83
|
# are already published and Verdaccio will check, since it is a read-through cache
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
update_version_in_package_json() {
|
|
85
|
+
local package_json_path="$1"
|
|
86
|
+
local version="$2"
|
|
86
87
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
sed -i.bak -e "s/\"version\": \"[0-9]*.[0-9]*.[0-9]*\(-alpha\.[0-9]*\|-release[0-9]*.[0-9]*.[0-9]*\|-rc\.[0-9]*\)\{0,1\}\",/\"version\": \"${version}\",/g" "$package_json_path"
|
|
89
|
+
rm "${package_json_path}.bak"
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
update_version_in_package_json "${SHELL_DIR}/package.json" "${SHELL_VERSION}"
|
|
93
|
+
update_version_in_package_json "${BASE_DIR}/pkg/rancher-components/package.json" "${SHELL_VERSION}"
|
|
94
|
+
update_version_in_package_json "${BASE_DIR}/creators/extension/package.json" "${SHELL_VERSION}"
|
|
90
95
|
|
|
91
|
-
# Publish shell
|
|
92
|
-
echo "Publishing
|
|
96
|
+
# Publish shell pkg (tag is needed as publish-shell is optimized to work with release-shell-pkg workflow)
|
|
97
|
+
echo "Publishing Shell package to local registry"
|
|
93
98
|
yarn install
|
|
99
|
+
export TAG="shell-pkg-v${SHELL_VERSION}"
|
|
100
|
+
${SHELL_DIR}/scripts/publish-shell.sh
|
|
101
|
+
|
|
102
|
+
# Publish creators pkg (tag is needed as publish-shell is optimized to work with release-shell-pkg workflow)
|
|
103
|
+
echo "Publishing Creators package to local registry"
|
|
104
|
+
export TAG="creators-pkg-v${SHELL_VERSION}"
|
|
94
105
|
${SHELL_DIR}/scripts/publish-shell.sh
|
|
95
106
|
|
|
96
107
|
# Publish rancher components
|
|
97
108
|
yarn build:lib
|
|
109
|
+
|
|
110
|
+
npm set registry ${VERDACCIO_NPM_REGISTRY}
|
|
111
|
+
yarn config set registry ${VERDACCIO_NPM_REGISTRY}
|
|
98
112
|
yarn publish:lib
|
|
99
113
|
|
|
100
114
|
# We pipe into cat for cleaner logging - we need to set pipefail
|
|
@@ -107,26 +121,18 @@ if [ "${SKIP_STANDALONE}" == "false" ]; then
|
|
|
107
121
|
|
|
108
122
|
echo "Using temporary directory ${DIR}"
|
|
109
123
|
|
|
110
|
-
echo "Verifying
|
|
124
|
+
echo "Verifying extension creator"
|
|
111
125
|
|
|
112
|
-
yarn create @rancher/app test-app
|
|
113
|
-
pushd test-app
|
|
114
|
-
yarn install
|
|
126
|
+
FORCE_COLOR=true yarn create @rancher/extension test-pkg --app-name test-app | cat
|
|
115
127
|
|
|
116
|
-
|
|
128
|
+
pushd test-app > /dev/null
|
|
117
129
|
|
|
130
|
+
yarn install
|
|
118
131
|
FORCE_COLOR=true yarn build | cat
|
|
119
132
|
|
|
120
|
-
# Package creator
|
|
121
|
-
echo "Verifying package creator package"
|
|
122
|
-
yarn create @rancher/pkg test-pkg -i
|
|
123
|
-
|
|
124
|
-
echo "Building test package"
|
|
125
|
-
FORCE_COLOR=true yarn build-pkg test-pkg | cat
|
|
126
|
-
|
|
127
133
|
# Add test list component to the test package
|
|
128
134
|
# Validates rancher-components imports
|
|
129
|
-
mkdir pkg/test-pkg/list
|
|
135
|
+
mkdir -p pkg/test-pkg/list
|
|
130
136
|
cp ${SHELL_DIR}/list/catalog.cattle.io.clusterrepo.vue pkg/test-pkg/list
|
|
131
137
|
|
|
132
138
|
FORCE_COLOR=true yarn build-pkg test-pkg | cat
|
|
@@ -134,7 +140,7 @@ if [ "${SKIP_STANDALONE}" == "false" ]; then
|
|
|
134
140
|
echo "Cleaning temporary dir"
|
|
135
141
|
popd > /dev/null
|
|
136
142
|
|
|
137
|
-
if [ $TEST_PERSIST_BUILD != "true" ]; then
|
|
143
|
+
if [ "${TEST_PERSIST_BUILD}" != "true" ]; then
|
|
138
144
|
echo "Removing folder ${DIR}"
|
|
139
145
|
rm -rf ${DIR}
|
|
140
146
|
fi
|
|
@@ -147,15 +153,16 @@ echo "Validating in-tree package"
|
|
|
147
153
|
|
|
148
154
|
yarn install
|
|
149
155
|
|
|
150
|
-
if [ $TEST_PERSIST_BUILD != "true" ]; then
|
|
156
|
+
if [ "${TEST_PERSIST_BUILD}" != "true" ]; then
|
|
151
157
|
echo "Removing folder ./pkg/test-pkg"
|
|
152
158
|
rm -rf ./pkg/test-pkg
|
|
153
159
|
fi
|
|
154
160
|
|
|
155
|
-
yarn create @rancher/
|
|
161
|
+
yarn create @rancher/extension test-pkg -i
|
|
156
162
|
cp ${SHELL_DIR}/list/catalog.cattle.io.clusterrepo.vue ./pkg/test-pkg/list
|
|
157
163
|
FORCE_COLOR=true yarn build-pkg test-pkg | cat
|
|
158
|
-
|
|
164
|
+
|
|
165
|
+
if [ "${TEST_PERSIST_BUILD}" != "true" ]; then
|
|
159
166
|
echo "Removing folder ./pkg/test-pkg"
|
|
160
167
|
rm -rf ./pkg/test-pkg
|
|
161
168
|
fi
|
|
@@ -168,9 +175,9 @@ function clone_repo_test_extension_build() {
|
|
|
168
175
|
echo -e "\nSetting up $REPO_NAME repository locally\n"
|
|
169
176
|
|
|
170
177
|
# set registry to default (to install all of the other dependencies)
|
|
171
|
-
yarn config set registry ${
|
|
178
|
+
yarn config set registry ${DEFAULT_NPM_REGISTRY}
|
|
172
179
|
|
|
173
|
-
if [ $TEST_PERSIST_BUILD != "true" ]; then
|
|
180
|
+
if [ "${TEST_PERSIST_BUILD}" != "true" ]; then
|
|
174
181
|
echo "Removing folder ${BASE_DIR}/$REPO_NAME"
|
|
175
182
|
rm -rf ${BASE_DIR}/$REPO_NAME
|
|
176
183
|
fi
|
|
@@ -183,7 +190,7 @@ function clone_repo_test_extension_build() {
|
|
|
183
190
|
yarn install
|
|
184
191
|
|
|
185
192
|
# set registry to local verdaccio (to install new shell)
|
|
186
|
-
yarn config set registry ${
|
|
193
|
+
yarn config set registry ${VERDACCIO_NPM_REGISTRY}
|
|
187
194
|
|
|
188
195
|
# update package.json to use a specific version of shell
|
|
189
196
|
sed -i.bak -e "s/\"\@rancher\/shell\": \"[0-9]*.[0-9]*.[0-9]*\",/\"\@rancher\/shell\": \"${SHELL_VERSION}\",/g" package.json
|
|
@@ -209,16 +216,15 @@ function clone_repo_test_extension_build() {
|
|
|
209
216
|
popd
|
|
210
217
|
|
|
211
218
|
# delete folder
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
fi
|
|
216
|
-
yarn config set registry ${DEFAULT_YARN_REGISTRY}
|
|
219
|
+
echo "Removing folder ${BASE_DIR}/$REPO_NAME"
|
|
220
|
+
rm -rf ${BASE_DIR}/$REPO_NAME
|
|
221
|
+
yarn config set registry ${DEFAULT_NPM_REGISTRY}
|
|
217
222
|
}
|
|
218
223
|
|
|
219
224
|
# Here we just add the extension that we want to include as a check (all our official extensions should be included here)
|
|
220
225
|
# Don't forget to add the unit tests exception to clone_repo_test_extension_build function if a new extension has those
|
|
221
|
-
clone_repo_test_extension_build "kubewarden-ui" "kubewarden"
|
|
222
|
-
clone_repo_test_extension_build "elemental-ui" "elemental"
|
|
226
|
+
# clone_repo_test_extension_build "kubewarden-ui" "kubewarden"
|
|
227
|
+
# clone_repo_test_extension_build "elemental-ui" "elemental"
|
|
228
|
+
# clone_repo_test_extension_build "capi-ui-extension" "capi"
|
|
223
229
|
|
|
224
|
-
echo "All done"
|
|
230
|
+
echo "All done"
|
package/store/type-map.js
CHANGED
|
@@ -2021,8 +2021,10 @@ function hasCustom(state, rootState, kind, key, fallback) {
|
|
|
2021
2021
|
return cache[key];
|
|
2022
2022
|
}
|
|
2023
2023
|
|
|
2024
|
-
// Check to see if the custom kind is provided by a plugin
|
|
2025
|
-
|
|
2024
|
+
// Check to see if the custom kind is provided by a plugin (ignore booleans)
|
|
2025
|
+
const pluginComponent = rootState.$plugin.getDynamic(kind, key);
|
|
2026
|
+
|
|
2027
|
+
if (typeof pluginComponent !== 'boolean' && !!pluginComponent) {
|
|
2026
2028
|
cache[key] = true;
|
|
2027
2029
|
|
|
2028
2030
|
return cache[key];
|
|
@@ -227,7 +227,7 @@ export class PaginationParamFilter extends PaginationParam {
|
|
|
227
227
|
/**
|
|
228
228
|
* Convenience method when you just want an instance of {@link PaginationParamFilter} with a simple `filter=x=y` param
|
|
229
229
|
*/
|
|
230
|
-
static createSingleField(field: { field?: string; value: string; equals?: boolean; }): PaginationParam {
|
|
230
|
+
static createSingleField(field: { field?: string; value: string; equals?: boolean; exact?: boolean }): PaginationParam {
|
|
231
231
|
return new PaginationParamFilter({ fields: [new PaginationFilterField(field)] });
|
|
232
232
|
}
|
|
233
233
|
|
package/utils/cluster.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import semver from 'semver';
|
|
2
|
+
import { camelToTitle } from '@shell/utils/string';
|
|
2
3
|
import { CAPI } from '@shell/config/labels-annotations';
|
|
3
4
|
import { MANAGEMENT, VIRTUAL_HARVESTER_PROVIDER } from '@shell/config/types';
|
|
4
5
|
import { SETTING } from '@shell/config/settings';
|
|
@@ -90,3 +91,11 @@ export function abbreviateClusterName(input) {
|
|
|
90
91
|
|
|
91
92
|
return result;
|
|
92
93
|
}
|
|
94
|
+
|
|
95
|
+
export function labelForAddon(name, configuration = true) {
|
|
96
|
+
const addon = camelToTitle(name.replace(/^(rke|rke2|rancher)-/, ''));
|
|
97
|
+
const fallback = `${ addon } ${ configuration ? 'Configuration' : '' }`;
|
|
98
|
+
const key = `cluster.addonChart."${ name }"${ configuration ? '.configuration' : '.label' }`;
|
|
99
|
+
|
|
100
|
+
return this.$store.getters['i18n/withFallback'](key, null, fallback);
|
|
101
|
+
}
|
package/utils/settings.ts
CHANGED
|
@@ -102,5 +102,7 @@ export const getPerformanceSetting = (rootGetters: Record<string, (arg0: string,
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
// Start with the default and overwrite the values from the setting - ensures we have defaults for newly added options
|
|
105
|
-
|
|
105
|
+
const safeDefaults = Object.assign({}, DEFAULT_PERF_SETTING);
|
|
106
|
+
|
|
107
|
+
return Object.assign(safeDefaults, perfSetting || {});
|
|
106
108
|
};
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: {
|
|
4
|
-
browser: true,
|
|
5
|
-
node: true
|
|
6
|
-
},
|
|
7
|
-
globals: { NodeJS: true, Timer: true },
|
|
8
|
-
extends: [
|
|
9
|
-
'standard',
|
|
10
|
-
'eslint:recommended',
|
|
11
|
-
'@nuxtjs/eslint-config-typescript',
|
|
12
|
-
'plugin:cypress/recommended'
|
|
13
|
-
],
|
|
14
|
-
// add your custom rules here
|
|
15
|
-
rules: {
|
|
16
|
-
'dot-notation': 'off',
|
|
17
|
-
'generator-star-spacing': 'off',
|
|
18
|
-
'guard-for-in': 'off',
|
|
19
|
-
'linebreak-style': 'off',
|
|
20
|
-
'new-cap': 'off',
|
|
21
|
-
'no-empty': 'off',
|
|
22
|
-
'no-extra-boolean-cast': 'off',
|
|
23
|
-
'no-new': 'off',
|
|
24
|
-
'no-plusplus': 'off',
|
|
25
|
-
'no-useless-escape': 'off',
|
|
26
|
-
'nuxt/no-cjs-in-config': 'off',
|
|
27
|
-
'semi-spacing': 'off',
|
|
28
|
-
'space-in-parens': 'off',
|
|
29
|
-
strict: 'off',
|
|
30
|
-
'unicorn/no-new-buffer': 'off',
|
|
31
|
-
'vue/html-self-closing': 'off',
|
|
32
|
-
'vue/no-unused-components': 'warn',
|
|
33
|
-
'vue/no-v-html': 'error',
|
|
34
|
-
'wrap-iife': 'off',
|
|
35
|
-
|
|
36
|
-
'array-bracket-spacing': 'warn',
|
|
37
|
-
'arrow-parens': 'warn',
|
|
38
|
-
'arrow-spacing': ['warn', { before: true, after: true }],
|
|
39
|
-
'block-spacing': ['warn', 'always'],
|
|
40
|
-
'brace-style': ['warn', '1tbs'],
|
|
41
|
-
'comma-dangle': ['warn', 'only-multiline'],
|
|
42
|
-
'comma-spacing': 'warn',
|
|
43
|
-
curly: 'warn',
|
|
44
|
-
eqeqeq: 'warn',
|
|
45
|
-
'func-call-spacing': ['warn', 'never'],
|
|
46
|
-
'implicit-arrow-linebreak': 'warn',
|
|
47
|
-
indent: ['warn', 2],
|
|
48
|
-
'keyword-spacing': 'warn',
|
|
49
|
-
'lines-between-class-members': ['warn', 'always', { exceptAfterSingleLine: true }],
|
|
50
|
-
'multiline-ternary': ['warn', 'never'],
|
|
51
|
-
'newline-per-chained-call': ['warn', { ignoreChainWithDepth: 4 }],
|
|
52
|
-
'no-caller': 'warn',
|
|
53
|
-
'no-cond-assign': ['warn', 'except-parens'],
|
|
54
|
-
'no-console': 'warn',
|
|
55
|
-
'no-debugger': 'warn',
|
|
56
|
-
'no-eq-null': 'warn',
|
|
57
|
-
'no-eval': 'warn',
|
|
58
|
-
'no-trailing-spaces': 'warn',
|
|
59
|
-
'no-undef': 'warn',
|
|
60
|
-
'no-unused-vars': 'warn',
|
|
61
|
-
'no-whitespace-before-property': 'warn',
|
|
62
|
-
'object-curly-spacing': ['warn', 'always'],
|
|
63
|
-
'object-property-newline': 'warn',
|
|
64
|
-
'object-shorthand': 'warn',
|
|
65
|
-
'padded-blocks': ['warn', 'never'],
|
|
66
|
-
'prefer-arrow-callback': 'warn',
|
|
67
|
-
'prefer-template': 'warn',
|
|
68
|
-
'quote-props': 'warn',
|
|
69
|
-
'rest-spread-spacing': 'warn',
|
|
70
|
-
semi: ['warn', 'always'],
|
|
71
|
-
'space-before-function-paren': ['warn', 'never'],
|
|
72
|
-
'space-infix-ops': 'warn',
|
|
73
|
-
'spaced-comment': 'warn',
|
|
74
|
-
'switch-colon-spacing': 'warn',
|
|
75
|
-
'template-curly-spacing': ['warn', 'always'],
|
|
76
|
-
'yield-star-spacing': ['warn', 'both'],
|
|
77
|
-
|
|
78
|
-
'key-spacing': ['warn', {
|
|
79
|
-
align: {
|
|
80
|
-
beforeColon: false,
|
|
81
|
-
afterColon: true,
|
|
82
|
-
on: 'value',
|
|
83
|
-
mode: 'minimum'
|
|
84
|
-
},
|
|
85
|
-
multiLine: {
|
|
86
|
-
beforeColon: false,
|
|
87
|
-
afterColon: true
|
|
88
|
-
},
|
|
89
|
-
}],
|
|
90
|
-
|
|
91
|
-
'object-curly-newline': ['warn', {
|
|
92
|
-
ObjectExpression: {
|
|
93
|
-
multiline: true,
|
|
94
|
-
minProperties: 3
|
|
95
|
-
},
|
|
96
|
-
ObjectPattern: {
|
|
97
|
-
multiline: true,
|
|
98
|
-
minProperties: 4
|
|
99
|
-
},
|
|
100
|
-
ImportDeclaration: {
|
|
101
|
-
multiline: true,
|
|
102
|
-
minProperties: 5
|
|
103
|
-
},
|
|
104
|
-
ExportDeclaration: {
|
|
105
|
-
multiline: true,
|
|
106
|
-
minProperties: 3
|
|
107
|
-
}
|
|
108
|
-
}],
|
|
109
|
-
|
|
110
|
-
'padding-line-between-statements': [
|
|
111
|
-
'warn',
|
|
112
|
-
{
|
|
113
|
-
blankLine: 'always',
|
|
114
|
-
prev: '*',
|
|
115
|
-
next: 'return',
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
blankLine: 'always',
|
|
119
|
-
prev: 'function',
|
|
120
|
-
next: 'function',
|
|
121
|
-
},
|
|
122
|
-
// This configuration would require blank lines after every sequence of variable declarations
|
|
123
|
-
{
|
|
124
|
-
blankLine: 'always',
|
|
125
|
-
prev: ['const', 'let', 'var'],
|
|
126
|
-
next: '*'
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
blankLine: 'any',
|
|
130
|
-
prev: ['const', 'let', 'var'],
|
|
131
|
-
next: ['const', 'let', 'var']
|
|
132
|
-
}
|
|
133
|
-
],
|
|
134
|
-
|
|
135
|
-
quotes: [
|
|
136
|
-
'warn',
|
|
137
|
-
'single',
|
|
138
|
-
{
|
|
139
|
-
avoidEscape: true,
|
|
140
|
-
allowTemplateLiterals: true
|
|
141
|
-
},
|
|
142
|
-
],
|
|
143
|
-
|
|
144
|
-
'space-unary-ops': [
|
|
145
|
-
'warn',
|
|
146
|
-
{
|
|
147
|
-
words: true,
|
|
148
|
-
nonwords: false,
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
|
|
152
|
-
// FIXME: The following is disabled due to new linter and old JS code. These should all be enabled and underlying issues fixed
|
|
153
|
-
'vue/order-in-components': 'off',
|
|
154
|
-
'vue/no-lone-template': 'off',
|
|
155
|
-
'vue/v-slot-style': 'off',
|
|
156
|
-
'vue/component-tags-order': 'off',
|
|
157
|
-
'vue/no-mutating-props': 'off',
|
|
158
|
-
'@typescript-eslint/no-unused-vars': 'off',
|
|
159
|
-
'array-callback-return': 'off',
|
|
160
|
-
},
|
|
161
|
-
overrides: [
|
|
162
|
-
{
|
|
163
|
-
files: ['*.js'],
|
|
164
|
-
rules: {
|
|
165
|
-
// FIXME: The following is disabled due to new linter and old JS code. These should all be enabled and underlying issues fixed
|
|
166
|
-
'prefer-regex-literals': 'off',
|
|
167
|
-
'vue/component-definition-name-casing': 'off',
|
|
168
|
-
'no-unreachable-loop': 'off',
|
|
169
|
-
'computed-property-spacing': 'off',
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
]
|
|
173
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# compiled output
|
|
2
|
-
/dist
|
|
3
|
-
/tmp
|
|
4
|
-
/out-tsc
|
|
5
|
-
|
|
6
|
-
# Runtime data
|
|
7
|
-
pids
|
|
8
|
-
*.pid
|
|
9
|
-
*.seed
|
|
10
|
-
*.pid.lock
|
|
11
|
-
|
|
12
|
-
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
13
|
-
lib-cov
|
|
14
|
-
|
|
15
|
-
# Coverage directory used by tools like istanbul
|
|
16
|
-
coverage
|
|
17
|
-
|
|
18
|
-
# nyc test coverage
|
|
19
|
-
.nyc_output
|
|
20
|
-
|
|
21
|
-
# IDEs and editors
|
|
22
|
-
.idea
|
|
23
|
-
.project
|
|
24
|
-
.classpath
|
|
25
|
-
.c9/
|
|
26
|
-
*.launch
|
|
27
|
-
.settings/
|
|
28
|
-
*.sublime-workspace
|
|
29
|
-
|
|
30
|
-
# IDE - VSCode
|
|
31
|
-
.vscode/*
|
|
32
|
-
!.vscode/settings.json
|
|
33
|
-
!.vscode/tasks.json
|
|
34
|
-
!.vscode/launch.json
|
|
35
|
-
!.vscode/extensions.json
|
|
36
|
-
|
|
37
|
-
# misc
|
|
38
|
-
.sass-cache
|
|
39
|
-
connect.lock
|
|
40
|
-
typings
|
|
41
|
-
|
|
42
|
-
# Logs
|
|
43
|
-
logs
|
|
44
|
-
*.log
|
|
45
|
-
npm-debug.log*
|
|
46
|
-
yarn-debug.log*
|
|
47
|
-
yarn-error.log*
|
|
48
|
-
|
|
49
|
-
# Dependency directories
|
|
50
|
-
node_modules/
|
|
51
|
-
jspm_packages/
|
|
52
|
-
|
|
53
|
-
# Optional npm cache directory
|
|
54
|
-
.npm
|
|
55
|
-
|
|
56
|
-
# Optional eslint cache
|
|
57
|
-
.eslintcache
|
|
58
|
-
|
|
59
|
-
# Optional REPL history
|
|
60
|
-
.node_repl_history
|
|
61
|
-
|
|
62
|
-
# Yarn Integrity file
|
|
63
|
-
.yarn-integrity
|
|
64
|
-
|
|
65
|
-
# dotenv environment variables file
|
|
66
|
-
.env
|
|
67
|
-
|
|
68
|
-
# System Files
|
|
69
|
-
.DS_Store
|
|
70
|
-
Thumbs.db
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
image: registry.suse.com/bci/bci-base:latest
|
|
2
|
-
|
|
3
|
-
stages:
|
|
4
|
-
- check_version
|
|
5
|
-
- build_catalog
|
|
6
|
-
|
|
7
|
-
variables:
|
|
8
|
-
REGISTRY: $CI_REGISTRY
|
|
9
|
-
REGISTRY_USER: $CI_REGISTRY_USER
|
|
10
|
-
REGISTRY_PASSWORD: $CI_REGISTRY_PASSWORD
|
|
11
|
-
IMAGE_NAMESPACE: $CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
|
|
12
|
-
|
|
13
|
-
include:
|
|
14
|
-
- remote: 'https://raw.githubusercontent.com/rancher/dashboard/master/shell/scripts/.gitlab/workflows/build-extension-catalog.gitlab-ci.yml'
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files.exclude": {
|
|
3
|
-
".ackrc": true,
|
|
4
|
-
".dockerignore": true,
|
|
5
|
-
".drone.yml": true,
|
|
6
|
-
".editorconfig": true,
|
|
7
|
-
".eslintcache": true,
|
|
8
|
-
".eslintignore": true,
|
|
9
|
-
".eslintrc.js": true,
|
|
10
|
-
".gitignore": true,
|
|
11
|
-
".nyc_output": true,
|
|
12
|
-
".vscode": true,
|
|
13
|
-
"LICENSE": true,
|
|
14
|
-
"node_modules": true,
|
|
15
|
-
"babel.config.js": true,
|
|
16
|
-
"jsconfig.json": true,
|
|
17
|
-
"yarn-error.log": true,
|
|
18
|
-
"pkg/**/.shell": true,
|
|
19
|
-
"pkg/**/node_modules": true,
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('@rancher/shell/babel.config.js');
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2018",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "Node",
|
|
6
|
-
"lib": [
|
|
7
|
-
"ESNext",
|
|
8
|
-
"ESNext.AsyncIterable",
|
|
9
|
-
"DOM"
|
|
10
|
-
],
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"allowJs": true,
|
|
13
|
-
"sourceMap": true,
|
|
14
|
-
"strict": true,
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
"baseUrl": ".",
|
|
17
|
-
"paths": {
|
|
18
|
-
"~/*": [
|
|
19
|
-
"./*"
|
|
20
|
-
],
|
|
21
|
-
"@/*": [
|
|
22
|
-
"./*"
|
|
23
|
-
],
|
|
24
|
-
"@shell/*": [
|
|
25
|
-
"./node_modules/@rancher/shell/*"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"typeRoots": [
|
|
29
|
-
"./node_modules",
|
|
30
|
-
"./node_modules/@rancher/shell/types"
|
|
31
|
-
],
|
|
32
|
-
"types": [
|
|
33
|
-
"@types/node",
|
|
34
|
-
"cypress",
|
|
35
|
-
"rancher",
|
|
36
|
-
"shell"
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
"exclude": [
|
|
40
|
-
"node_modules"
|
|
41
|
-
]
|
|
42
|
-
}
|