Skip to content

Commit 60dd20b

Browse files
committed
chore: Bump @vue/tsconfig and remove Vue.set usage
Signed-off-by: Julius Knorr <[email protected]>
1 parent 2050963 commit 60dd20b

File tree

3 files changed

+30
-17
lines changed

3 files changed

+30
-17
lines changed

package-lock.json

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

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
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)