Skip to content

Commit

Permalink
Revert "chore(deps): Bump vue from 2.7.15 to 3.5.13"
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Nov 18, 2024
1 parent 40c6aa9 commit 649f181
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 107 deletions.
233 changes: 138 additions & 95 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"@nextcloud/files": "^3.10.0",
"@nextcloud/l10n": "^3.1.0",
"@nextcloud/router": "^3.0.1",
"vue": "^3.5.13"
"vue": "^2.7.14"
},
"devDependencies": {
"@nextcloud/browserslist-config": "^3.0.1",
"@nextcloud/eslint-config": "^8.4.1",
"@nextcloud/stylelint-config": "^3.0.1",
"@nextcloud/vite-config": "^2.2.2",
"@vue/tsconfig": "^0.6.0",
"@vue/tsconfig": "^0.4.0",
"prettier": "^3.3.3",
"stylelint-config-css-modules": "^4.4.0",
"typescript": "^5.6.3",
Expand Down
21 changes: 11 additions & 10 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import Vue from 'vue'
import {
FileAction,
type Node,
Expand Down Expand Up @@ -31,18 +32,18 @@ const switchLock = async (node: Node) => {
const state = getLockStateFromAttributes(node)
if (!state.isLocked) {
const data = await lockFile(node)
node.attributes.lock = '1'
node.attributes['lock-owner'] = data.userId
node.attributes['lock-owner-displayname'] = data.displayName
node.attributes['lock-owner-type'] = data.type
node.attributes['lock-time'] = data.creation
Vue.set(node.attributes, 'lock', '1')
Vue.set(node.attributes, 'lock-owner', data.userId)
Vue.set(node.attributes, 'lock-owner-displayname', data.displayName)
Vue.set(node.attributes, 'lock-owner-type', data.type)
Vue.set(node.attributes, 'lock-time', data.creation)
} else {
await unlockFile(node)
node.attributes.lock = ''
node.attributes['lock-owner'] = ''
node.attributes['lock-owner-displayname'] = ''
node.attributes['lock-owner-type'] = ''
node.attributes['lock-time'] = ''
Vue.set(node.attributes, 'lock', '')
Vue.set(node.attributes, 'lock-owner', '')
Vue.set(node.attributes, 'lock-owner-displayname', '')
Vue.set(node.attributes, 'lock-owner-type', '')
Vue.set(node.attributes, 'lock-time', '')
}
emit('files:node:updated', node)
return true
Expand Down

0 comments on commit 649f181

Please sign in to comment.