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] Migrate app to Vue3 #12458

Draft
wants to merge 50 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
4043d4d
chore(vue3): migrate from vue-frag
ShGKme May 14, 2024
3f8860a
chore(vue3): migrate from vue-simple-portal
ShGKme May 14, 2024
e720792
chore(deps): remove unneeded in Vue 3 dependencies
ShGKme May 14, 2024
152c5ae
chore(deps): temporary remove @nextcloud/upload
ShGKme May 14, 2024
53b7398
chore(vue3): temporary disable @nextcloud/upload
ShGKme May 14, 2024
1db476f
chore(deps): temporary remove @nextcloud/dialogs in Vue 3
ShGKme May 14, 2024
a644baa
chore(vue3): @nextcloud/dialogs - remove styles import
ShGKme May 14, 2024
0e18233
chore(vue3): @nextcloud/dialogs - remove imports
ShGKme May 14, 2024
da06f9c
chore(vue3): @nextcloud/dialogs - replace showError
ShGKme May 14, 2024
d0f7332
chore(vue3): @nextcloud/dialogs - replace showSuccess
ShGKme May 14, 2024
7290147
chore(vue3): @nextcloud/dialogs - replace showWarning
ShGKme May 14, 2024
f99e4fc
chore(vue3): @nextcloud/dialogs - replace showInfo
ShGKme May 14, 2024
38c3df2
chore(vue3): @nextcloud/dialogs - replace showMessage
ShGKme May 14, 2024
46acc0c
chore(vue3): @nextcloud/dialogs - replace TOAST_*_TIMEOUT
ShGKme May 14, 2024
6dc4259
chore(vue3): @nextcloud/dialogs - remove FilePickerVue
ShGKme May 14, 2024
b76f4a0
chore(deps): upgrade deps to Vue 3 versions
ShGKme May 14, 2024
d5c0dd8
chore(vue3): migrate to Vue Router 4
ShGKme May 14, 2024
0fc73b3
chore(vue3): migrate to Vuex 4
ShGKme May 14, 2024
216b48b
chore(vue3): migrate to @vue-leaflet/vue-leaflet
ShGKme May 15, 2024
6f5dee2
chore(vue3): migrate vue init
ShGKme May 15, 2024
9640793
chore(vue3): remove $set/$delete
ShGKme May 15, 2024
05699cf
chore(vue3): migrate :key on <template v-for>
ShGKme May 15, 2024
ad6c628
chore(vue3): migrate tsconfig to Vue 3
ShGKme May 14, 2024
b3e13a9
feat(Vue3): The value prop was renamed to modelValue, the update:valu…
DorraJaouad May 15, 2024
17992ab
feat(Vue3): The checked prop was renamed to modelValue, the update:ch…
DorraJaouad May 15, 2024
4139f08
fix: remove v-on.native modifier
DorraJaouad May 16, 2024
40df4bb
chore(vue3): replace $listeners with explicit emit
ShGKme May 16, 2024
00fd413
chore(vue3): migrate to ESLint with Vue 3 plugin
ShGKme May 16, 2024
3c3e75b
chore(vue3): lint `vue/no-deprecated-v-bind-sync`
ShGKme May 16, 2024
1b0f2b7
chore(vue3): lint `vue/v-on-event-hyphenation`
ShGKme May 16, 2024
08bb514
chore(vue3): lint `vue/no-deprecated-destroyed-lifecycle`
ShGKme May 16, 2024
6125e9a
chore(vue3): lint `vue/attributes-order`
ShGKme May 16, 2024
c4470a0
chore(vue3): lint `vue/custom-event-name-casing`
ShGKme May 16, 2024
4778ff2
chore(vue3): temporary disable nextcloud-vue-collections
Antreesy Jul 9, 2024
fe882a5
fix(style): don't pass data-theme-dark
Antreesy May 16, 2024
8b409e5
fix(NewConversationSetup): use a value passed from v-model
Antreesy May 17, 2024
1f63cdd
chore(vue3): migrate async component registration and remove $children
ShGKme May 16, 2024
d8e53a1
fix(vue3): keep wrapper in transition group for styles
DorraJaouad May 21, 2024
186640c
fix(vue3): remove not needed keys
DorraJaouad May 16, 2024
dec067c
chore(vue3): migrate to ESLint with Vue 3 plugin
Antreesy May 15, 2024
04eeaeb
fix(jest): harden tests with object serializing
Antreesy May 15, 2024
dc5ed8c
fix(vue3): fix updated props and attributes
Antreesy May 21, 2024
2a97af1
fix(vtu): replace propsData with props
Antreesy May 15, 2024
95f8042
fix(vtu): replace createLocalVue with plugins, use global mount object
Antreesy May 15, 2024
334fbcc
fix(vtu): fix find* utils usage
Antreesy May 21, 2024
39c499e
fix(vtu): fix text nodes and slots
Antreesy May 21, 2024
cbe4eb8
fix(vue3): fix double emitting
Antreesy May 22, 2024
b71e6dc
fix(vtu): skip tests for @netxcloud/dialogs and @nextcloud/upload
Antreesy May 15, 2024
c8fef4c
fix(vtu): replace flushPromises function
Antreesy May 15, 2024
87a3027
chore(deps): remove "flush-promises" library
Antreesy May 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
*/
module.exports = {
extends: [
'@nextcloud',
'@nextcloud/eslint-config/typescript',
'@nextcloud/eslint-config/vue3',
],
globals: {
// @nextcloud/webpack-vue-config globals
Expand Down Expand Up @@ -75,20 +74,6 @@ module.exports = {
// https://github.com/import-js/eslint-plugin-import/issues/2562
ignore: ['\\?raw$'],
}],
// Prepare for Vue 3 Migration
'vue/no-deprecated-data-object-declaration': 'warn',
'vue/no-deprecated-events-api': 'warn',
'vue/no-deprecated-filter': 'warn',
'vue/no-deprecated-functional-template': 'warn',
'vue/no-deprecated-html-element-is': 'warn',
'vue/no-deprecated-props-default-this': 'warn',
'vue/no-deprecated-router-link-tag-prop': 'warn',
'vue/no-deprecated-scope-attribute': 'warn',
'vue/no-deprecated-slot-attribute': 'warn',
'vue/no-deprecated-slot-scope-attribute': 'warn',
'vue/no-deprecated-v-is': 'warn',
'vue/no-deprecated-v-on-number-modifiers': 'warn',
'vue/require-explicit-emits': 'warn',
},
overrides: [
{
Expand Down
10 changes: 8 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ const { resolve } = require('node:path')
// TODO: find a way to consolidate this in one place, with webpack.common.js
const ignorePatterns = [
'@mdi/svg',
'@ckpack',
'bail',
'ccount', // ESM dependency of remark-gfm
'character-entities',
'comma-separated-tokens',
'decode-named-character-reference',
'devlop',
'emoji-mart-vue-fast',
'escape-string-regexp',
'estree-util-is-identifier-name',
'hast-.*',
'is-.*',
'longest-streak', // ESM dependency of remark-gfm
Expand Down Expand Up @@ -56,7 +60,9 @@ module.exports = {
],

testEnvironment: 'jest-environment-jsdom',

testEnvironmentOptions: {
customExportConditions: ['node', 'node-addons'],
},
moduleFileExtensions: [
'js',
'ts',
Expand All @@ -77,7 +83,7 @@ module.exports = {
},
}],
'\\.js$': 'babel-jest',
'\\.vue$': '@vue/vue2-jest',
'\\.vue$': '@vue/vue3-jest',
'\\.tflite$': 'jest-transform-stub',
'\\.(css|scss)$': 'jest-transform-stub',
},
Expand Down
Loading
Loading