Skip to content

Commit

Permalink
refactor(Main mail store): convert to a Pinia compatible structure
Browse files Browse the repository at this point in the history
Signed-off-by: Grigory Vodyanov <[email protected]>
  • Loading branch information
GVodyanov committed Sep 12, 2024
1 parent dbab0fb commit 8110385
Show file tree
Hide file tree
Showing 10 changed files with 2,111 additions and 1,827 deletions.
1,545 changes: 0 additions & 1,545 deletions src/store/actions.js

This file was deleted.

163 changes: 0 additions & 163 deletions src/store/getters.js

This file was deleted.

118 changes: 0 additions & 118 deletions src/store/index.js

This file was deleted.

20 changes: 20 additions & 0 deletions src/store/mainStore.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


Check failure on line 6 in src/store/mainStore.js

View workflow job for this annotation

GitHub Actions / NPM lint

More than 1 blank line not allowed
import { defineStore } from 'pinia'
import mapStoreState from './mainStore/state.js'
import mapStoreGetters from './mainStore/getters.js'
import mapStoreActions from './mainStore/actions.js'

export default defineStore('main', {
state: mapStoreState(),
getters: {
...mapStoreGetters(),
},
actions: {
...mapStoreActions(),
},
});

Check failure on line 20 in src/store/mainStore.js

View workflow job for this annotation

GitHub Actions / NPM lint

Extra semicolon
Loading

0 comments on commit 8110385

Please sign in to comment.