Skip to content

Commit 40c6aa9

Browse files
authored
Merge pull request #422 from nextcloud/dependabot/npm_and_yarn/vue-3.5.13
chore(deps): Bump vue from 2.7.15 to 3.5.13
2 parents e58d4f0 + 60dd20b commit 40c6aa9

File tree

3 files changed

+107
-151
lines changed

3 files changed

+107
-151
lines changed

package-lock.json

+95-138
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
"@nextcloud/files": "^3.10.0",
2222
"@nextcloud/l10n": "^3.1.0",
2323
"@nextcloud/router": "^3.0.1",
24-
"vue": "^2.7.14"
24+
"vue": "^3.5.13"
2525
},
2626
"devDependencies": {
2727
"@nextcloud/browserslist-config": "^3.0.1",
2828
"@nextcloud/eslint-config": "^8.4.1",
2929
"@nextcloud/stylelint-config": "^3.0.1",
3030
"@nextcloud/vite-config": "^2.2.2",
31-
"@vue/tsconfig": "^0.4.0",
31+
"@vue/tsconfig": "^0.6.0",
3232
"prettier": "^3.3.3",
3333
"stylelint-config-css-modules": "^4.4.0",
3434
"typescript": "^5.6.3",

src/main.ts

+10-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
import Vue from 'vue'
76
import {
87
FileAction,
98
type Node,
@@ -32,18 +31,18 @@ const switchLock = async (node: Node) => {
3231
const state = getLockStateFromAttributes(node)
3332
if (!state.isLocked) {
3433
const data = await lockFile(node)
35-
Vue.set(node.attributes, 'lock', '1')
36-
Vue.set(node.attributes, 'lock-owner', data.userId)
37-
Vue.set(node.attributes, 'lock-owner-displayname', data.displayName)
38-
Vue.set(node.attributes, 'lock-owner-type', data.type)
39-
Vue.set(node.attributes, 'lock-time', data.creation)
34+
node.attributes.lock = '1'
35+
node.attributes['lock-owner'] = data.userId
36+
node.attributes['lock-owner-displayname'] = data.displayName
37+
node.attributes['lock-owner-type'] = data.type
38+
node.attributes['lock-time'] = data.creation
4039
} else {
4140
await unlockFile(node)
42-
Vue.set(node.attributes, 'lock', '')
43-
Vue.set(node.attributes, 'lock-owner', '')
44-
Vue.set(node.attributes, 'lock-owner-displayname', '')
45-
Vue.set(node.attributes, 'lock-owner-type', '')
46-
Vue.set(node.attributes, 'lock-time', '')
41+
node.attributes.lock = ''
42+
node.attributes['lock-owner'] = ''
43+
node.attributes['lock-owner-displayname'] = ''
44+
node.attributes['lock-owner-type'] = ''
45+
node.attributes['lock-time'] = ''
4746
}
4847
emit('files:node:updated', node)
4948
return true

0 commit comments

Comments
 (0)