Skip to content

Commit

Permalink
Merge pull request #4428 from LibreSign/chore/remove-vuex
Browse files Browse the repository at this point in the history
chore: remove vuex
  • Loading branch information
vitormattos authored Jan 22, 2025
2 parents 8832985 + dd5eae1 commit 35e755c
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 87 deletions.
12 changes: 1 addition & 11 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
"vue-drag-resize": "^1.5.4",
"vue-material-design-icons": "^5.3.1",
"vue-router": "^3.6.5",
"vuelidate": "^0.7.7",
"vuex": "^3.6.2"
"vuelidate": "^0.7.7"
},
"browserslist": [
"extends @nextcloud/browserslist-config"
Expand Down
2 changes: 0 additions & 2 deletions src/external.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import App from './App.vue'

import './plugins/vuelidate.js'
import router from './router/router.js'
import store from './store/index.js'

import './assets/styles/main.scss'

Expand Down Expand Up @@ -46,7 +45,6 @@ const pinia = createPinia()
export default new Vue({
el: '#content',
router,
store,
pinia,
render: h => h(App),
})
2 changes: 0 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import App from './App.vue'

import './plugins/vuelidate.js'
import router from './router/router.js'
import store from './store/index.js'

import './assets/styles/main.scss'
import 'vue-advanced-cropper/dist/style.css'
Expand Down Expand Up @@ -48,7 +47,6 @@ export default new Vue({
el: '#content',
name: 'LibresignApp',
router,
store,
pinia,
render: h => h(App),
})
66 changes: 0 additions & 66 deletions src/store/index.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import { createPinia, PiniaVuePlugin } from 'pinia'
import Vue from 'vue'
import Vuex from 'vuex'

import { loadState } from '@nextcloud/initial-state'
import { translate, translatePlural } from '@nextcloud/l10n'
Expand All @@ -19,7 +18,6 @@ import './style/icons.scss'

Vue.prototype.t = translate
Vue.prototype.n = translatePlural
Vue.use(Vuex)

if (!window.OCA.Libresign) {
window.OCA.Libresign = {}
Expand Down
2 changes: 0 additions & 2 deletions src/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { generateFilePath } from '@nextcloud/router'
import Validation from './views/Validation.vue'

import router from './router/router.js'
import store from './store/index.js'

// CSP config for webpack dynamic chunk loading
// eslint-disable-next-line
Expand All @@ -35,6 +34,5 @@ export default new Vue({
// eslint-disable-next-line vue/match-component-file-name
name: 'Validation',
router,
store,
render: (h) => h(Validation),
})

0 comments on commit 35e755c

Please sign in to comment.