Skip to content

Commit 17d897f

Browse files
committed
refactor(vue3): cleanup transition remains
Signed-off-by: grnd-alt <git@belakkaf.net>
1 parent d70d493 commit 17d897f

3 files changed

Lines changed: 2 additions & 49 deletions

File tree

src/init-collections.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ import { buildSelector } from './helpers/selector.js'
1111

1212
import './shared-init.js'
1313

14-
Vue.prototype.t = t
15-
Vue.prototype.n = n
16-
Vue.prototype.OC = OC
17-
1814
window.addEventListener('DOMContentLoaded', () => {
1915
if (OCA.Sharing && OCA.Sharing.ShareSearch) {
2016
OCA.Sharing.ShareSearch.addNewResult(FileSharingPicker)

src/stores/board.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export const useBoardStore = defineStore('board', {
296296
const removeIndex = this.currentBoard?.acl?.findIndex((attr) => deletedAcl.id === attr.id)
297297

298298
if (removeIndex > -1) {
299-
Vue.delete(this.currentBoard.acl, removeIndex)
299+
this.currentBoard.acl.splice(removeIndex, 1)
300300
}
301301
this.loadBoardById(deletedAcl.boardId)
302302
},

webpack.js

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -31,50 +31,7 @@ if (isDevServer) {
3131
}
3232
}
3333
// Workaround for https://github.com/nextcloud/webpack-vue-config/pull/432 causing problems with nextcloud-vue-collections
34-
webpackConfig.resolve.alias = {
35-
...(webpackConfig.resolve.alias || {}),
36-
}
37-
38-
webpackConfig.plugins.push(
39-
new webpack.DefinePlugin({
40-
__VUE_OPTIONS_API__: true,
41-
__VUE_PROD_DEVTOOLS__: false,
42-
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: buildMode !== 'production',
43-
})
44-
)
45-
46-
const vueRule = webpackConfig.module?.rules?.find((rule) => {
47-
if (!Array.isArray(rule.use)) {
48-
return false
49-
}
50-
51-
return rule.use.some((use) => {
52-
if (typeof use === 'string') {
53-
return use.includes('vue-loader')
54-
}
55-
56-
return use?.loader?.includes('vue-loader')
57-
})
58-
})
59-
60-
if (vueRule?.use) {
61-
const vueLoaderUse = vueRule.use.find((use) => {
62-
if (typeof use === 'string') {
63-
return use.includes('vue-loader')
64-
}
65-
66-
return use?.loader?.includes('vue-loader')
67-
})
68-
69-
if (vueLoaderUse && typeof vueLoaderUse === 'object') {
70-
vueLoaderUse.options = {
71-
...(vueLoaderUse.options || {}),
72-
compilerOptions: {
73-
...(vueLoaderUse.options?.compilerOptions || {}),
74-
},
75-
}
76-
}
77-
}
34+
webpackConfig.resolve.alias = {}
7835

7936
// Allow importing frappe-gantt CSS (not exposed via package.json exports field)
8037
webpackConfig.resolve.alias['frappe-gantt/dist/frappe-gantt.css'] = path.resolve(__dirname, 'node_modules/frappe-gantt/dist/frappe-gantt.css')

0 commit comments

Comments
 (0)