|
1 | | -import Contributor from '../model/Contributor.mjs'; |
2 | | -import Store from '../../../src/data/Store.mjs'; |
| 1 | +import ContributorModel from '../model/Contributor.mjs'; |
| 2 | +import Store from '../../../src/data/Store.mjs'; |
3 | 3 |
|
| 4 | +/** |
| 5 | + * @class DevRank.store.Contributors |
| 6 | + * @extends Neo.data.Store |
| 7 | + */ |
4 | 8 | class Contributors extends Store { |
5 | 9 | static config = { |
| 10 | + /** |
| 11 | + * @member {String} className='DevRank.store.Contributors' |
| 12 | + * @protected |
| 13 | + */ |
6 | 14 | className: 'DevRank.store.Contributors', |
7 | | - model : Contributor, |
| 15 | + /** |
| 16 | + * @member {Neo.data.Model} model=ContributorModel |
| 17 | + */ |
| 18 | + model: ContributorModel, |
| 19 | + /** |
| 20 | + * @member {String} keyProperty='login' |
| 21 | + */ |
8 | 22 | keyProperty: 'login', |
9 | | - autoLoad : true, |
10 | | - url : '../../apps/devrank/resources/users.json', |
11 | | - sorters : [ |
| 23 | + /** |
| 24 | + * @member {Boolean} autoLoad=true |
| 25 | + */ |
| 26 | + autoLoad: true, |
| 27 | + /** |
| 28 | + * @member {Object[]} filters |
| 29 | + */ |
| 30 | + filters: [ |
| 31 | + {property: 'location', operator: 'like', value: null}, |
| 32 | + {property: 'login', operator: 'like', value: null}, |
| 33 | + {property: 'name', operator: 'like', value: null} |
| 34 | + ], |
| 35 | + /** |
| 36 | + * @member {Object[]} sorters |
| 37 | + */ |
| 38 | + sorters: [ |
12 | 39 | {property: 'total_contributions', direction: 'DESC'} |
13 | | - ] |
| 40 | + ], |
| 41 | + /** |
| 42 | + * @member {String} url='../../apps/devrank/resources/users.json' |
| 43 | + */ |
| 44 | + url: '../../apps/devrank/resources/users.json' |
14 | 45 | } |
15 | 46 | } |
16 | 47 |
|
|
0 commit comments