Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue3 test #11640

Closed
wants to merge 152 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
c0f83d2
Refactoring the plain element <input> data bindings
codyrancher Aug 13, 2024
c050b84
Updating the vue3 migration script to change how we handle modelValue.
codyrancher Aug 5, 2024
25cf9a1
Run the vue3 migration script
codyrancher Aug 13, 2024
f6136e7
Revert `./shell/vue.config.js`
rak-phillip Jul 22, 2024
8db03ee
Updating our eslintrc configurations
codyrancher Aug 5, 2024
8d498c2
Ran `yarn lint --fix`
codyrancher Aug 13, 2024
1a0a683
Resolve compiler errors
rak-phillip Jul 23, 2024
46fec4f
Resolving router-related warnings
rak-phillip Jul 23, 2024
fa3d02c
Switch out/remove the deprecated createLocalValue for the plugins: [V…
codyrancher Jul 23, 2024
b500ee7
Fixing issues around referencing server and app
codyrancher Jul 23, 2024
6839539
Fixing a vue cli warning where we were setting process.env.NODE_ENV m…
codyrancher Jul 23, 2024
21f538d
Fix router warning
rak-phillip Jul 23, 2024
e0d584a
Fix problem with extenRouter
rak-phillip Jul 24, 2024
74b7626
Fix directive warnings
rak-phillip Jul 24, 2024
0dd4930
Fix `markRaw` usage
rak-phillip Jul 24, 2024
c989adb
Fix the router 404 page
codyrancher Jul 23, 2024
12b403c
hack n slash
codyrancher Jul 24, 2024
e6288fe
Return route meta from matched route
rak-phillip Jul 24, 2024
a3fd5c1
render the login page
rak-phillip Jul 24, 2024
fec11e7
Fix "$ctx" error when clicking login button
rak-phillip Jul 25, 2024
6aa26d2
Emit single `click` event from async button
rak-phillip Jul 25, 2024
85601db
Fixing an issues I introduced and reverting back to using app context…
codyrancher Jul 25, 2024
24d0f8e
Fixing how we access the current route in our resource-class
codyrancher Jul 25, 2024
50fd0da
Fixing how we reference slots in our TabTitle component
codyrancher Jul 25, 2024
1b72e18
Resolve issue with messages that contain proxy objects
rak-phillip Jul 25, 2024
3ccbb2a
Upgrade `v-tooltip` to `floating-vue`
rak-phillip Jul 26, 2024
c489861
Resolve rendering issues with popovers in header
rak-phillip Jul 26, 2024
6a6a36b
Fix router issue
rak-phillip Jul 26, 2024
bb5428a
Fix router redirect to home after login
rak-phillip Jul 26, 2024
b03544b
Vue router changed the return type of resolve() this now properly ref…
codyrancher Jul 26, 2024
d64acfe
We had duplicate :key attributes which was preventing us from renderi…
codyrancher Jul 26, 2024
f05c5f9
Fix i18n `t` directive
rak-phillip Jul 26, 2024
7f48a1b
Fixing NamespaceFilter rendering by removing duplicate `:key` attributes
codyrancher Jul 26, 2024
1d542fb
Update `vue-select` and fix `LabeledSelect` & `Select` components
rak-phillip Jul 30, 2024
a331cf5
Remove `@types/vue-select`
rak-phillip Jul 30, 2024
c957114
Use `defineAsyncComponent` for dynamic imports
rak-phillip Jul 31, 2024
3494ebe
Resolve issues with rendering data in PercentageBar
rak-phillip Jul 31, 2024
1db8a7e
Resolve warnings from sidebar
rak-phillip Jul 31, 2024
462d4a4
Resolve errors when rendering resource detail
rak-phillip Jul 31, 2024
bac1c31
Fix issues with extend-router
rak-phillip Aug 1, 2024
0c942c7
Fix two-way data binding
rak-phillip Aug 2, 2024
c0a02ee
Fix a merge conflict where we weren't mounting the app properly
codyrancher Aug 5, 2024
a7538a7
Fixing a missing v-model:value that was excluded by trim
codyrancher Aug 5, 2024
ca04876
Replacing $emit('input' with $emit('update:value'
codyrancher Aug 5, 2024
c4986af
Fix issue with rendering footer content in cru resource
rak-phillip Aug 6, 2024
23b2d3a
Fix `v-model` Vue Compiler Warnings
rak-phillip Aug 6, 2024
1b17e0e
Replace `set()` with assigment
rak-phillip Aug 6, 2024
41eb2bd
Fix reactivity in `NameNsDescription.vue`
rak-phillip Aug 6, 2024
8960a87
Resolve issue with invalid prop type
rak-phillip Aug 6, 2024
74a21f7
Fixing the usage of ToggleSwitch in cluster create.
codyrancher Aug 6, 2024
7353489
Fixed a problem where we had :key twice in the tabbed component
codyrancher Aug 6, 2024
37b2eff
Render rke2 cluster creation form
rak-phillip Aug 6, 2024
158ad16
Resolve webpack deprecation warnings in `vue.config`
rak-phillip Aug 8, 2024
01b2bfd
Fix issue with the Vue.set replacement bracket edge case
cnotv Aug 8, 2024
1782726
Unit test: Migrate unit tests with the script
cnotv Aug 8, 2024
55e72c4
Unit test: Update Jest setup
cnotv Aug 8, 2024
697a542
Lint: Manually fixed issues related to vueApp variable added by the s…
cnotv Aug 8, 2024
6b8115c
Fix all the :key binding issues
cnotv Aug 6, 2024
56972c8
Update node version to use nvmrc
cnotv Aug 6, 2024
e9da626
Resolve WS connection issues
rak-phillip Aug 9, 2024
4c2ceb5
Adding a fix to HMR/live reload
codyrancher Aug 9, 2024
f4408de
Fixing a couple conflicts after rebasing from master
codyrancher Aug 13, 2024
45a9016
Fixing an issue where we weren't using the new innerHTML api of our <…
codyrancher Aug 14, 2024
891e5fe
Fix RadioGroup data binding
codyrancher Aug 14, 2024
ed27ac0
Fix setup page data binding
codyrancher Aug 14, 2024
2014c62
Fixed an issue in ResourceList where "importer" is not a function was…
codyrancher Aug 14, 2024
49cf4ca
Replace `mounting-portal` with `teleport`
rak-phillip Aug 14, 2024
7b640d1
Fix the focus directive
rak-phillip Aug 14, 2024
2b67715
Fix `PromptRemove.vue`
rak-phillip Aug 14, 2024
a510104
Fix feature flag modal
rak-phillip Aug 14, 2024
5dc1568
Fix remaining modals
rak-phillip Aug 14, 2024
35e5f72
Fixed the remaining lint warnings and errors
codyrancher Aug 15, 2024
db82f31
Disable E2E coverage instrumentation
cnotv Aug 12, 2024
1ef5db1
E2E: Remove hardcoded TEST_BASE_URL from command
cnotv Aug 12, 2024
80887be
Correct manual v-model prop mutation for non value names
cnotv Aug 8, 2024
7cfbf05
Fixing the remaining compiler errors.
codyrancher Aug 15, 2024
22a0d67
Fix slot syntax
rak-phillip Aug 15, 2024
5058efa
Fix RKE1/RKE2 toggle switch when creating a cluster
rak-phillip Aug 15, 2024
0efae1d
Update jest setup
rak-phillip Aug 15, 2024
864b595
Resolve a batch of unit test failures
rak-phillip Aug 15, 2024
eb13e75
Linter: Fix rancher/components types after refactoring
cnotv Aug 15, 2024
b9fe874
Disable TS lint check for rancher/components
cnotv Aug 15, 2024
545d0a0
Merge branch 'master' into vue3-test
codyrancher Aug 16, 2024
79b6b0c
Resolve error: `TypeError: this.slots['header-left'] is not a function`
rak-phillip Aug 16, 2024
4627478
Just testing
codyrancher Aug 16, 2024
c01f5fe
Test2
codyrancher Aug 16, 2024
81f58ed
More test
codyrancher Aug 16, 2024
1c2aa24
Test3
codyrancher Aug 16, 2024
be38763
T4
codyrancher Aug 16, 2024
7e0e0a5
t5
codyrancher Aug 16, 2024
bc58666
t
codyrancher Aug 16, 2024
b8d223d
s
codyrancher Aug 16, 2024
9086d93
Cypress was having issues with using static name assignment with a cl…
codyrancher Aug 16, 2024
b9d30d9
yyyy
codyrancher Aug 16, 2024
50a1783
tt
codyrancher Aug 16, 2024
faf7b5c
Update unit tests
rak-phillip Aug 16, 2024
6354d1e
Fixing value binding in the <Select> component
codyrancher Aug 16, 2024
f4e339e
Fixing how we forward classes to the select element.
codyrancher Aug 16, 2024
12c3d13
Fixing value bindings with our user preference pages
codyrancher Aug 16, 2024
a0b1290
Changing how we evaluate if a slot is present in sortable table. Leng…
codyrancher Aug 16, 2024
7dd930b
Fixing the usage of :value to be :modelValue in regards to Consumptio…
codyrancher Aug 16, 2024
5e86a9b
Fixing the dynamic import of file-saver
codyrancher Aug 17, 2024
1a5e321
Fixing a reference to the route object in our group navigation component
codyrancher Aug 17, 2024
29e7022
Fixing a misplaced @input in digital ocean credentials
codyrancher Aug 17, 2024
331bf34
Updating LabeledSelect to support the selected and update events
codyrancher Aug 17, 2024
75daa9b
Fixing value bindings in our registries component
codyrancher Aug 17, 2024
2bb87a8
Fixing a login issue if someone has changed the page that should be r…
codyrancher Aug 18, 2024
ebf67a5
Fixing an issues where tests were failing to find the user menu.
codyrancher Aug 18, 2024
e3dfc4f
Removing the spacing from rowElementWithName in the sortable table po…
codyrancher Aug 19, 2024
2439c27
Bump Storybook dependencies
cnotv Aug 16, 2024
969614f
Fix sortable table search bar filter
codyrancher Aug 19, 2024
e75b7ee
Updating how we render custom list pages
codyrancher Aug 19, 2024
ee1f159
Fixing a handful of errors around vue3 templates and data binding in …
codyrancher Aug 19, 2024
72cdd18
Fixing the selector for the prompt-remove modal po
codyrancher Aug 19, 2024
90af19c
Unit test updates
rak-phillip Aug 19, 2024
8b42a8c
Storybook: Fix library resolution; store and global variables declara…
cnotv Aug 19, 2024
70f5fbf
Fix SCSS issue with ::v-deep
cnotv Aug 20, 2024
47fc516
Making it so the <t> component can receive classes
codyrancher Aug 20, 2024
757ace6
Changed how we styled ContainerShell
codyrancher Aug 20, 2024
8f89e53
Fixing a warning we se with CruResource regarding the `resource` prop…
codyrancher Aug 20, 2024
35e76eb
Getting a mostly functioning version of CodeMirror/YamlEditor
codyrancher Aug 20, 2024
a9b2db3
Fixing data binding for chart text filtering
codyrancher Aug 20, 2024
8fea52f
Fix how we load the values component when installing charts
codyrancher Aug 20, 2024
1090484
Unit test updates
rak-phillip Aug 20, 2024
11f7df6
Fixing a reactivity issue in workload.js model where we were using $s…
codyrancher Aug 20, 2024
8d2dce4
Changing how we navigate to create api keys. Using a named route inst…
codyrancher Aug 21, 2024
4c234de
Resolving a inheritAttrs issues with LiveExpiryBadgeState.
codyrancher Aug 21, 2024
d81a53f
Showborder wasn't defined so I removed it's use
codyrancher Aug 21, 2024
b47d278
Updated how we access currentRoute inside Tabbed component
codyrancher Aug 21, 2024
fd14af9
Fixing data binding for image containers in workloads
codyrancher Aug 21, 2024
c4154fd
Fixing databinding where v-model.trim needed to instead be v-model:va…
codyrancher Aug 21, 2024
163b871
Fixing how we set values in NameNsDescription
codyrancher Aug 21, 2024
b611578
Refactoring tabbed values in chart installation
codyrancher Aug 21, 2024
4984ea9
Adding a custom data-test id to the add button of arraylist
codyrancher Aug 21, 2024
49fa557
Make sure SelectOrCreateAuthSecret can update if :value changes
codyrancher Aug 21, 2024
c06817a
Make sure TextAreaAutoGrow works inside LabeledInput
codyrancher Aug 21, 2024
61453af
Merge branch 'vue3-depth-first' into vue3-test
codyrancher Aug 21, 2024
25013c8
Merge branch 'master' into vue3-test
codyrancher Aug 21, 2024
c2506fa
Reverted a change to test-id and updated the monitoring test to prope…
codyrancher Aug 21, 2024
d8c6d58
Updating all references to has-tooltip to v-popper--has-tooltip to be…
codyrancher Aug 21, 2024
688bda8
Rebase fixes
codyrancher Aug 21, 2024
b04d9a8
Updating how we check titles
codyrancher Aug 21, 2024
26eb2d8
An attempt to make the cluster-dashboard tests slightly more robust
codyrancher Aug 21, 2024
8efe02a
Updating prompt remove to look more consistent for global roles when …
codyrancher Aug 21, 2024
f9e6e12
Resolving an issue with our performance test where we were waiting un…
codyrancher Aug 21, 2024
63a5382
Updating the resource-yaml po to use the new class selector
codyrancher Aug 21, 2024
f1e99ea
Resolving the remaining project-namespaces test errors
codyrancher Aug 21, 2024
6b39ef4
Making fixed banners response to model to real time updates
codyrancher Aug 21, 2024
362ba67
Fixing the binding for `Show custom login error` checkbox
codyrancher Aug 22, 2024
860897e
Making our models reactive
codyrancher Aug 22, 2024
c79cd6c
Update a slot override in the feature flags so we show the lock icon …
codyrancher Aug 22, 2024
f6fb5f2
Updating how we select the explain popover button
codyrancher Aug 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
255 changes: 162 additions & 93 deletions .eslintrc.default.js
Original file line number Diff line number Diff line change
@@ -1,107 +1,175 @@
module.exports = {
// root: true,
env: {
browser: true,
node: true
},
globals: { NodeJS: true, Timer: true },
plugins: ['jest', '@typescript-eslint'],
globals: {
NodeJS: true,
Timer: true
},
plugins: [
'jest',
'@typescript-eslint'
],
extends: [
'standard',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'@vue/standard',
'@vue/typescript/recommended',
'plugin:vue/recommended',
'plugin:cypress/recommended',
'plugin:vue/vue3-recommended',
'plugin:cypress/recommended'
],
rules: {

// Styling
'semi-spacing': 'off',
'space-in-parens': 'off',
'array-bracket-spacing': 'warn',
'arrow-parens': 'warn',
'arrow-spacing': ['warn', { before: true, after: true }],
'block-spacing': ['warn', 'always'],
'brace-style': ['warn', '1tbs'],
'comma-dangle': ['warn', 'only-multiline'],
'comma-spacing': 'warn',
indent: ['warn', 2],
'keyword-spacing': 'warn',
'newline-per-chained-call': ['warn', { ignoreChainWithDepth: 4 }],
'no-trailing-spaces': 'warn',
'func-call-spacing': ['warn', 'never'],
'wrap-iife': 'off',
'lines-between-class-members': ['warn', 'always', { exceptAfterSingleLine: true }],
'multiline-ternary': ['warn', 'never'],
'semi-spacing': 'off',
'space-in-parens': 'off',
'array-bracket-spacing': 'warn',
'arrow-parens': 'warn',
'arrow-spacing': [
'warn',
{
before: true,
after: true
}
],
'block-spacing': [
'warn',
'always'
],
'brace-style': [
'warn',
'1tbs'
],
'comma-dangle': [
'warn',
'only-multiline'
],
'comma-spacing': 'warn',
indent: [
'warn',
2
],
'keyword-spacing': 'warn',
'newline-per-chained-call': [
'warn',
{ ignoreChainWithDepth: 4 }
],
'no-trailing-spaces': 'warn',
'func-call-spacing': [
'warn',
'never'
],
'wrap-iife': 'off',
'lines-between-class-members': [
'warn',
'always',
{ exceptAfterSingleLine: true }
],
'multiline-ternary': [
'warn',
'never'
],
'no-whitespace-before-property': 'warn',
'object-curly-spacing': ['warn', 'always'],
'object-property-newline': 'warn',
'object-shorthand': 'warn',
'padded-blocks': ['warn', 'never'],
'quote-props': 'warn',
'rest-spread-spacing': 'warn',
semi: ['warn', 'always'],
'space-before-function-paren': ['warn', 'never'],
'space-infix-ops': 'warn',
'spaced-comment': 'warn',
'switch-colon-spacing': 'warn',
'template-curly-spacing': ['warn', 'always'],
'yield-star-spacing': ['warn', 'both'],
'key-spacing': ['warn', {
align: {
beforeColon: false,
afterColon: true,
on: 'value',
mode: 'strict'
},
multiLine: {
beforeColon: false,
afterColon: true
},
}],

'object-curly-newline': ['warn', {
ObjectExpression: {
multiline: true,
minProperties: 3
},
ObjectPattern: {
multiline: true,
minProperties: 4
},
ImportDeclaration: {
multiline: true,
minProperties: 5
},
ExportDeclaration: {
multiline: true,
minProperties: 3
'object-curly-spacing': [
'warn',
'always'
],
'object-property-newline': 'warn',
'object-shorthand': 'warn',
'padded-blocks': [
'warn',
'never'
],
'quote-props': 'warn',
'rest-spread-spacing': 'warn',
semi: [
'warn',
'always'
],
'space-before-function-paren': [
'warn',
'never'
],
'space-infix-ops': 'warn',
'spaced-comment': 'warn',
'switch-colon-spacing': 'warn',
'template-curly-spacing': [
'warn',
'always'
],
'yield-star-spacing': [
'warn',
'both'
],
'key-spacing': [
'warn',
{
align: {
beforeColon: false,
afterColon: true,
on: 'value',
mode: 'strict'
},
multiLine: {
beforeColon: false,
afterColon: true
}
}
],
'object-curly-newline': [
'warn',
{
ObjectExpression: {
multiline: true,
minProperties: 3
},
ObjectPattern: {
multiline: true,
minProperties: 4
},
ImportDeclaration: {
multiline: true,
minProperties: 5
},
ExportDeclaration: {
multiline: true,
minProperties: 3
}
}
}],
],
'padding-line-between-statements': [
'warn',
{
blankLine: 'always',
prev: '*',
next: 'return',
next: 'return'
},
{
blankLine: 'always',
prev: 'function',
next: 'function',
next: 'function'
},
// This configuration would require blank lines after every sequence of variable declarations
{
blankLine: 'always',
prev: ['const', 'let', 'var'],
next: '*'
prev: [
'const',
'let',
'var'
],
next: '*'
},
{
blankLine: 'any',
prev: ['const', 'let', 'var'],
next: ['const', 'let', 'var']
prev: [
'const',
'let',
'var'
],
next: [
'const',
'let',
'var'
]
}
],
quotes: [
Expand All @@ -110,28 +178,30 @@ module.exports = {
{
avoidEscape: true,
allowTemplateLiterals: true
},
}
],
'space-unary-ops': [
'warn',
{
words: true,
nonwords: false,
nonwords: false
}
],
'vue/one-component-per-file': 'off',
'vue/no-deprecated-slot-attribute': 'off',
'vue/require-explicit-emits': 'off',
'vue/v-on-event-hyphenation': 'off'
},
overrides: [
// TS Exceptions
{
files: ['**/*.{js,ts,vue}'],
files: [
'**/*.{js,ts,vue}'
],
rules: {
// Errors
'@typescript-eslint/no-empty-function': 'off', // Opinionated?
'@typescript-eslint/ban-types': 'off', // This does not seems to work well with Vue2
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/ban-types': 'off'
}
},

// Tests exceptions due mocks
{
files: [
'**/*.test.{js,ts}',
Expand All @@ -142,18 +212,17 @@ module.exports = {
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'jest/prefer-expect-assertions': 'off',
'jest/prefer-expect-assertions': 'off'
},
extends: ['plugin:jest/all']
extends: [
'plugin:jest/all'
]
},

// bug?
{
files: ['**/*.{js,vue}'],
rules: {
// Warnings
'@typescript-eslint/explicit-module-boundary-types': 'off',
}
},
files: [
'**/*.{js,vue}'
],
rules: { '@typescript-eslint/explicit-module-boundary-types': 'off' }
}
]
};
Loading
Loading