@rancher/shell 1.2.2 → 1.2.5-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.
Files changed (49) hide show
  1. package/assets/translations/en-us.yaml +8 -0
  2. package/assets/translations/zh-hans.yaml +1 -0
  3. package/cloud-credential/__tests__/harvester.test.ts +18 -0
  4. package/cloud-credential/harvester.vue +9 -1
  5. package/components/AlertTable.vue +17 -7
  6. package/components/GrafanaDashboard.vue +6 -4
  7. package/components/nav/TopLevelMenu.vue +1 -4
  8. package/config/product/explorer.js +11 -4
  9. package/config/settings.ts +9 -2
  10. package/config/types.js +1 -1
  11. package/config/uiplugins.js +2 -2
  12. package/edit/management.cattle.io.setting.vue +15 -2
  13. package/edit/provisioning.cattle.io.cluster/RegistryConfigs.vue +8 -2
  14. package/edit/provisioning.cattle.io.cluster/__tests__/RegistryConfigs.test.ts +61 -0
  15. package/edit/provisioning.cattle.io.cluster/__tests__/utils/cluster.ts +386 -0
  16. package/package.json +1 -1
  17. package/plugins/dashboard-store/actions.js +3 -2
  18. package/scripts/publish-shell.sh +59 -51
  19. package/scripts/test-plugins-build.sh +111 -29
  20. package/shell/types/shell/index.d.ts +2 -0
  21. package/store/catalog.js +1 -1
  22. package/store/type-map.utils.ts +44 -0
  23. package/types/store/dashboard-store.types.ts +23 -0
  24. package/types/store/vuex.d.ts +9 -0
  25. package/.DS_Store +0 -0
  26. package/creators/app/app.package.json +0 -13
  27. package/creators/app/files/.eslintignore +0 -18
  28. package/creators/app/files/.eslintrc.js +0 -173
  29. package/creators/app/files/.gitignore +0 -70
  30. package/creators/app/files/.vscode/settings.json +0 -22
  31. package/creators/app/files/babel.config.js +0 -1
  32. package/creators/app/files/tsconfig.json +0 -42
  33. package/creators/app/files/vue.config.js +0 -6
  34. package/creators/app/init +0 -101
  35. package/creators/app/package.json +0 -25
  36. package/creators/pkg/files/.github/workflows/build-extension-catalog.yml +0 -28
  37. package/creators/pkg/files/.github/workflows/build-extension-charts.yml +0 -26
  38. package/creators/pkg/files/babel.config.js +0 -1
  39. package/creators/pkg/files/index.ts +0 -14
  40. package/creators/pkg/files/tsconfig.json +0 -53
  41. package/creators/pkg/files/vue.config.js +0 -1
  42. package/creators/pkg/init +0 -254
  43. package/creators/pkg/package.json +0 -19
  44. package/creators/pkg/pkg.package.json +0 -21
  45. package/creators/pkg/vue-shim.ts +0 -4
  46. package/creators/update/init +0 -56
  47. package/creators/update/package.json +0 -20
  48. package/creators/update/upgrade +0 -56
  49. package/types/shell/index.d.ts +0 -4310
@@ -7,6 +7,9 @@ echo "Checking plugin build"
7
7
  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
+ SHELL_VERSION="99.99.99"
11
+ DEFAULT_NPM_REGISTRY="https://registry.npmjs.org/"
12
+ VERDACCIO_NPM_REGISTRY="http://localhost:4873"
10
13
 
11
14
  echo ${SCRIPT_DIR}
12
15
 
@@ -66,29 +69,46 @@ else
66
69
  rm -rf ~/.config/verdaccio/storage/@rancher/*
67
70
  fi
68
71
 
69
- export YARN_REGISTRY=http://localhost:4873
72
+ export NPM_REGISTRY=$VERDACCIO_NPM_REGISTRY
70
73
  export NUXT_TELEMETRY_DISABLED=1
71
74
 
72
75
  # Remove test package from previous run, if present
73
- rm -rf ${BASE_DIR}/pkg/test-pkg
76
+ if [ "${TEST_PERSIST_BUILD}" != "true" ]; then
77
+ echo "Removing folder ${BASE_DIR}/pkg/test-pkg"
78
+ rm -rf ${BASE_DIR}/pkg/test-pkg
79
+ fi
74
80
 
75
81
  # We need to patch the version number of the shell, otherwise if we are running
76
82
  # with the currently published version, things will fail as those versions
77
83
  # are already published and Verdaccio will check, since it is a read-through cache
78
- sed -i.bak -e "s/\"version\": \"[0-9]*.[0-9]*.[0-9]*\",/\"version\": \"7.7.7\",/g" ${SHELL_DIR}/package.json
79
- rm ${SHELL_DIR}/package.json.bak
84
+ update_version_in_package_json() {
85
+ local package_json_path="$1"
86
+ local version="$2"
87
+
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
+ }
80
91
 
81
- # Same as above for Rancher Components
82
- # We might have bumped the version number but its not published yet, so this will fail
83
- sed -i.bak -e "s/\"version\": \"[0-9]*.[0-9]*.[0-9]*\",/\"version\": \"7.7.7\",/g" ${BASE_DIR}/pkg/rancher-components/package.json
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}"
84
95
 
85
- # Publish shell
86
- echo "Publishing shell packages to local registry"
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"
87
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}"
88
105
  ${SHELL_DIR}/scripts/publish-shell.sh
89
106
 
90
107
  # Publish rancher components
91
108
  yarn build:lib
109
+
110
+ npm set registry ${VERDACCIO_NPM_REGISTRY}
111
+ yarn config set registry ${VERDACCIO_NPM_REGISTRY}
92
112
  yarn publish:lib
93
113
 
94
114
  # We pipe into cat for cleaner logging - we need to set pipefail
@@ -101,25 +121,18 @@ if [ "${SKIP_STANDALONE}" == "false" ]; then
101
121
 
102
122
  echo "Using temporary directory ${DIR}"
103
123
 
104
- echo "Verifying app creator package"
124
+ echo "Verifying extension creator"
105
125
 
106
- yarn create @rancher/app test-app
107
- pushd test-app
108
- yarn install
109
-
110
- echo "Building skeleton app"
111
- FORCE_COLOR=true yarn build | cat
126
+ FORCE_COLOR=true yarn create @rancher/extension test-pkg --app-name test-app | cat
112
127
 
113
- # Package creator
114
- echo "Verifying package creator package"
115
- yarn create @rancher/pkg test-pkg
128
+ pushd test-app > /dev/null
116
129
 
117
- echo "Building test package"
118
- FORCE_COLOR=true yarn build-pkg test-pkg | cat
130
+ yarn install
131
+ FORCE_COLOR=true yarn build | cat
119
132
 
120
133
  # Add test list component to the test package
121
134
  # Validates rancher-components imports
122
- mkdir pkg/test-pkg/list
135
+ mkdir -p pkg/test-pkg/list
123
136
  cp ${SHELL_DIR}/list/catalog.cattle.io.clusterrepo.vue pkg/test-pkg/list
124
137
 
125
138
  FORCE_COLOR=true yarn build-pkg test-pkg | cat
@@ -127,22 +140,91 @@ if [ "${SKIP_STANDALONE}" == "false" ]; then
127
140
  echo "Cleaning temporary dir"
128
141
  popd > /dev/null
129
142
 
130
- rm -rf ${DIR}
143
+ if [ "${TEST_PERSIST_BUILD}" != "true" ]; then
144
+ echo "Removing folder ${DIR}"
145
+ rm -rf ${DIR}
146
+ fi
131
147
  fi
132
148
 
133
149
  pushd $BASE_DIR
134
- pwd
135
- ls
136
150
 
137
151
  # Now try a plugin within the dashboard codebase
138
152
  echo "Validating in-tree package"
139
153
 
140
154
  yarn install
141
155
 
142
- rm -rf ./pkg/test-pkg
143
- yarn create @rancher/pkg test-pkg -t
156
+ if [ "${TEST_PERSIST_BUILD}" != "true" ]; then
157
+ echo "Removing folder ./pkg/test-pkg"
158
+ rm -rf ./pkg/test-pkg
159
+ fi
160
+
161
+ yarn create @rancher/extension test-pkg -i
144
162
  cp ${SHELL_DIR}/list/catalog.cattle.io.clusterrepo.vue ./pkg/test-pkg/list
145
163
  FORCE_COLOR=true yarn build-pkg test-pkg | cat
146
- rm -rf ./pkg/test-pkg
147
164
 
148
- echo "All done"
165
+ if [ "${TEST_PERSIST_BUILD}" != "true" ]; then
166
+ echo "Removing folder ./pkg/test-pkg"
167
+ rm -rf ./pkg/test-pkg
168
+ fi
169
+
170
+ # function to clone repos and install dependencies (including the newly published shell version)
171
+ function clone_repo_test_extension_build() {
172
+ REPO_NAME=$1
173
+ PKG_NAME=$2
174
+
175
+ echo -e "\nSetting up $REPO_NAME repository locally\n"
176
+
177
+ # set registry to default (to install all of the other dependencies)
178
+ yarn config set registry ${DEFAULT_NPM_REGISTRY}
179
+
180
+ if [ "${TEST_PERSIST_BUILD}" != "true" ]; then
181
+ echo "Removing folder ${BASE_DIR}/$REPO_NAME"
182
+ rm -rf ${BASE_DIR}/$REPO_NAME
183
+ fi
184
+
185
+ # cloning repo
186
+ git clone https://github.com/rancher/$REPO_NAME.git
187
+ pushd ${BASE_DIR}/$REPO_NAME
188
+
189
+ echo -e "\nInstalling dependencies for $REPO_NAME\n"
190
+ yarn install
191
+
192
+ # set registry to local verdaccio (to install new shell)
193
+ yarn config set registry ${VERDACCIO_NPM_REGISTRY}
194
+
195
+ # update package.json to use a specific version of shell
196
+ sed -i.bak -e "s/\"\@rancher\/shell\": \"[0-9]*.[0-9]*.[0-9]*\",/\"\@rancher\/shell\": \"${SHELL_VERSION}\",/g" package.json
197
+ rm package.json.bak
198
+
199
+ # we need to remove yarn.lock, otherwise it would install a version that we don't want
200
+ rm yarn.lock
201
+
202
+ echo -e "\nInstalling newly built shell version\n"
203
+
204
+ # installing new version of shell
205
+ yarn add @rancher/shell@${SHELL_VERSION}
206
+
207
+ # test build-pkg
208
+ FORCE_COLOR=true yarn build-pkg $PKG_NAME | cat
209
+
210
+ # # kubewarden has some unit tests and they should be quick to run... Let's check them as well
211
+ # if [ "${REPO_NAME}" == "kubewarden-ui" ]; then
212
+ # yarn test:ci
213
+ # fi
214
+
215
+ # return back to the base path
216
+ popd
217
+
218
+ # delete folder
219
+ echo "Removing folder ${BASE_DIR}/$REPO_NAME"
220
+ rm -rf ${BASE_DIR}/$REPO_NAME
221
+ yarn config set registry ${DEFAULT_NPM_REGISTRY}
222
+ }
223
+
224
+ # Here we just add the extension that we want to include as a check (all our official extensions should be included here)
225
+ # Don't forget to add the unit tests exception to clone_repo_test_extension_build function if a new extension has those
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"
229
+
230
+ echo "All done"
@@ -0,0 +1,2 @@
1
+ // Auto-generated type definitions for shell
2
+ // Do not modify this file as changes will get overwritten
package/store/catalog.js CHANGED
@@ -354,7 +354,7 @@ export const actions = {
354
354
 
355
355
  // As per comment above, when there are no clusters this will be management. Store it such that it can be used for those cases
356
356
  commit('setInStore', inStore);
357
- hash.cluster = hash.cluster.filter((repo) => !(repo?.metadata?.annotations?.[CATALOG_ANNOTATIONS.HIDDEN_REPO] === 'true'));
357
+ hash.cluster = hash.cluster?.filter((repo) => !(repo?.metadata?.annotations?.[CATALOG_ANNOTATIONS.HIDDEN_REPO] === 'true'));
358
358
 
359
359
  commit('setRepos', hash);
360
360
 
@@ -0,0 +1,44 @@
1
+ import { VuexStoreGetters } from '@shell/types/store/vuex';
2
+ import { COUNT } from '@shell/config/types';
3
+ import { ActionFindAllArgs } from '@shell/types/store/dashboard-store.types';
4
+
5
+ type conditionalDepaginateArgs ={
6
+ ctx: { rootGetters: VuexStoreGetters},
7
+ args: { type: string, opt: ActionFindAllArgs},
8
+ };
9
+ type conditionalDepaginateFn = (args: conditionalDepaginateArgs) => boolean
10
+
11
+ /**
12
+ * Conditionally determine if a resource should use naive kube pagination api to fetch all results
13
+ * (not just first page)
14
+ */
15
+ export const conditionalDepaginate = (
16
+ depaginate?: conditionalDepaginateFn | boolean,
17
+ depaginateArgs?: conditionalDepaginateArgs
18
+ ): boolean => {
19
+ if (typeof depaginate === 'function') {
20
+ return !!depaginateArgs ? depaginate(depaginateArgs) : false;
21
+ }
22
+
23
+ return depaginate as boolean;
24
+ };
25
+
26
+ /**
27
+ * Setup a function that will determine if a resource should use native kube pagination api to fetch all resources
28
+ * (not just the first page)
29
+ */
30
+ export const configureConditionalDepaginate = (
31
+ { maxResourceCount, isNorman = false }: { maxResourceCount: number, isNorman: boolean },
32
+ ): conditionalDepaginateFn => {
33
+ return (fnArgs: conditionalDepaginateArgs ): boolean => {
34
+ const { rootGetters } = fnArgs.ctx;
35
+ const { type } = fnArgs.args;
36
+ const safeType = isNorman ? `management.cattle.io.${ type }` : type;
37
+
38
+ const inStore = rootGetters['currentStore'](safeType);
39
+ const resourceCounts = rootGetters[`${ inStore }/all`](COUNT)[0]?.counts[safeType];
40
+ const resourceCount = resourceCounts?.summary?.count;
41
+
42
+ return resourceCount !== undefined ? resourceCount < maxResourceCount : false;
43
+ };
44
+ };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Properties on all findX actions
3
+ */
4
+ export type ActionCoreFindArgs = {
5
+ force?: boolean,
6
+ }
7
+
8
+ /**
9
+ * Args used for findAll action
10
+ */
11
+ export interface ActionFindAllArgs extends ActionCoreFindArgs {
12
+ watch?: boolean,
13
+ namespaced?: string[],
14
+ incremental?: boolean,
15
+ hasManualRefresh?: boolean,
16
+ limit?: number,
17
+ /**
18
+ * Iterate over all pages and return all resources.
19
+ *
20
+ * This is done via the native kube pagination api, not steve
21
+ */
22
+ depaginate?: boolean,
23
+ }
@@ -0,0 +1,9 @@
1
+ // Unfortunately there's no current way to type the vuex store, however we have ts files that references it
2
+ // Until we bring that in, this file can contain the interfaces and types used by ts files in place of `any`
3
+
4
+ /**
5
+ * Generic interface for Vuex getters
6
+ */
7
+ export interface VuexStoreGetters {
8
+ [name: string]: Function;
9
+ }
package/.DS_Store DELETED
Binary file
@@ -1,13 +0,0 @@
1
- {
2
- "name": "NAME",
3
- "version": "0.1.0",
4
- "private": false,
5
- "engines": {
6
- "node": ">=12"
7
- },
8
- "dependencies": {},
9
- "resolutions": {
10
- "**/webpack": "4",
11
- "@types/node": "^16"
12
- }
13
- }
@@ -1,18 +0,0 @@
1
- assets/fonts
2
- coverage
3
- .nyc_output
4
- node_modules/
5
- .npm
6
- .eslintcache
7
- .env
8
- .cache
9
- .next
10
- .nuxt
11
- dist
12
- dist-pkg
13
- .DS_Store
14
- dynamic-importer.js
15
- ksconfig.json
16
- nuxt.config.js
17
- shell/utils/dynamic-importer.js
18
- shell/assets/fonts
@@ -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,22 +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
- ".nuxt*": true,
12
- ".nyc_output": true,
13
- ".vscode": true,
14
- "LICENSE": true,
15
- "node_modules": true,
16
- "babel.config.js": true,
17
- "jsconfig.json": true,
18
- "yarn-error.log": true,
19
- "pkg/**/.shell": true,
20
- "pkg/**/node_modules": true,
21
- }
22
- }
@@ -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
- }
@@ -1,6 +0,0 @@
1
- const config = require('@rancher/shell/vue.config');
2
-
3
- module.exports = config(__dirname, {
4
- excludes: [],
5
- // excludes: ['fleet', 'example']
6
- });