Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to vue 3
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <[email protected]>
raimund-schluessler committed Apr 21, 2022
1 parent 29e2084 commit a6970ab
Showing 63 changed files with 1,452 additions and 1,352 deletions.
1,280 changes: 682 additions & 598 deletions package-lock.json

Large diffs are not rendered by default.

32 changes: 17 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@
"dist"
],
"dependencies": {
"@ckpack/vue-color": "^1.1.8",
"@nextcloud/auth": "^1.2.3",
"@nextcloud/axios": "^1.3.2",
"@nextcloud/browser-storage": "^0.1.1",
@@ -46,41 +47,43 @@
"@nextcloud/l10n": "^1.2.3",
"@nextcloud/logger": "^2.0.0",
"@nextcloud/router": "^2.0.0",
"click-outside-vue3": "^4.0.1",
"debounce": "1.2.1",
"emoji-mart-vue-fast": "^10.2.1",
"escape-html": "^1.0.3",
"floating-vue": "^2.0.0-beta.14",
"hammerjs": "^2.0.8",
"linkify-string": "^3.0.2",
"md5": "^2.2.1",
"splitpanes": "^2.3.6",
"splitpanes": "^3.1.1",
"string-length": "^5.0.0",
"striptags": "^3.1.1",
"style-loader": "^3.3.1",
"tributejs": "^5.1.3",
"v-click-outside": "^3.0.1",
"v-tooltip": "^2.0.3",
"vue": "^2.6.14",
"vue-color": "^2.7.1",
"vue": "^3.2.31",
"vue-datepicker-next": "^1.0.2",
"vue-material-design-icons": "^5.0.0",
"vue-multiselect": "^2.1.6",
"vue2-datepicker": "^3.6.3"
"vue-multiselect": "^3.0.0-alpha.2"
},
"peerDependencies": {
"vue": "^3.2.31"
},
"engines": {
"node": "^14.0.0",
"npm": "^7.0.0"
},
"devDependencies": {
"@cypress/vue": "^2.2.4",
"@cypress/vue": "^3.1.1",
"@cypress/webpack-dev-server": "^1.8.4",
"@cypress/webpack-preprocessor": "5.11.1",
"@fontsource/roboto": "^4.5.5",
"@nextcloud/babel-config": "^1.0.0",
"@nextcloud/browserslist-config": "^2.1.0",
"@nextcloud/eslint-config": "^8.0.0",
"@nextcloud/eslint-config": "github:nextcloud/eslint-config#8fe45614b68e95639b64d6d3bac2d6821c1bb1af",
"@nextcloud/stylelint-config": "^2.1.2",
"@vue/test-utils": "^1.0.4",
"@vue/vue2-jest": "^27.0.0-alpha.4",
"babel-core": "^7.0.0-bridge.0",
"@vue/compiler-sfc": "^3.2.31",
"@vue/test-utils": "^2.0.0-rc.19",
"@vue/vue3-jest": "^27.0.0-alpha.4",
"babel-jest": "^27.0.1",
"babel-loader": "^8.1.0",
"babel-loader-exclude-node-modules-except": "^1.0.3",
@@ -103,9 +106,8 @@
"sass-loader": "^12.6.0",
"url-loader": "^4.1.0",
"vue-eslint-parser": "^8.0.1",
"vue-loader": "^15.9.1",
"vue-loader": "^17.0.0",
"vue-styleguidist": "^4.44.27",
"vue-template-compiler": "^2.6.14",
"webpack": "^5.71.0",
"webpack-cli": "^4.0.0",
"webpack-merge": "^5.0.8",
@@ -119,7 +121,7 @@
"testEnvironment": "jsdom",
"transform": {
"^.+\\.js$": "babel-jest",
"^.+\\.vue$": "@vue/vue2-jest",
"^.+\\.vue$": "@vue/vue3-jest",
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub"
},
"transformIgnorePatterns": [
7 changes: 7 additions & 0 deletions src/components/ActionCheckbox/ActionCheckbox.vue
Original file line number Diff line number Diff line change
@@ -99,6 +99,13 @@ export default {
},
},

emits: [
'change',
'check',
'uncheck',
'update:checked',
],

computed: {
/**
* determines if the action is focusable
12 changes: 9 additions & 3 deletions src/components/ActionInput/ActionInput.vue
Original file line number Diff line number Diff line change
@@ -72,8 +72,7 @@ For the multiselect component, all events will be passed through. Please see the
:disabled="disabled"
:class="{ focusable: isFocusable }"
class="action-input__multi"
v-bind="$attrs"
v-on="$listeners" />
v-bind="$attrs" />

<template v-else>
<input :id="id" type="submit" class="action-input__submit">
@@ -170,6 +169,13 @@ export default {
},
},

emits: [
'input',
'submit',
'change',
'update:value',
],

computed: {
isIconUrl() {
try {
@@ -282,7 +288,7 @@ $input-margin: 4px;

font-weight: normal;

&::v-deep .material-design-icon {
&:deep(.material-design-icon) {
width: $clickable-area;
height: $clickable-area;
opacity: $opacity_full;
5 changes: 5 additions & 0 deletions src/components/ActionRadio/ActionRadio.vue
Original file line number Diff line number Diff line change
@@ -112,6 +112,11 @@ export default {
},
},

emits: [
'update:checked',
'change',
],

computed: {
/**
* determines if the action is focusable
2 changes: 1 addition & 1 deletion src/components/ActionRouter/ActionRouter.vue
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@
class="action-router focusable"
:aria-label="ariaLabel"
rel="nofollow noreferrer noopener"
@click.native="onClick">
@click="onClick">
<!-- @slot Manually provide icon -->
<slot name="icon">
<span :class="[isIconUrl ? 'action-router__icon--url' : icon]"
6 changes: 6 additions & 0 deletions src/components/ActionTextEditable/ActionTextEditable.vue
Original file line number Diff line number Diff line change
@@ -111,6 +111,12 @@ export default {
},
},

emits: [
'input',
'update:value',
'submit',
],

computed: {
/**
* determines if the action is focusable
Loading

0 comments on commit a6970ab

Please sign in to comment.