Client: async resources, make store reusable, move plugins and add getTaskFor getter (#8575)

Add library to manage async resource
Make Store reusable for easier testing
Move plugin to libs
Add getTaskFor getter with tests
This commit is contained in:
Matteo Pagliazzi
2017-03-18 18:33:08 +01:00
committed by GitHub
parent 03d6c459bf
commit d9d7c69432
37 changed files with 694 additions and 384 deletions

View File

@@ -8,7 +8,7 @@
<script>
import Task from './task';
import { mapState } from '../store';
import { mapState } from 'client/libs/store';
export default {
components: {
@@ -20,7 +20,7 @@ export default {
};
},
computed: {
...mapState(['tasks']),
...mapState({tasks: 'tasks.data'}),
},
};
</script>