Total Complexity | 0 |
Complexity/F | 0 |
Lines of Code | 21 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | 6 | const state = { |
|
2 | lastCommentTime: null, |
||
3 | orderBy: 'oldest', |
||
4 | comments: [], |
||
5 | pagination: {}, |
||
6 | user: null, |
||
7 | config: { |
||
8 | // Time the user needs to wait in seconds before he can post another comment |
||
9 | threshold: 60, |
||
10 | // max depth of the comment tree structure |
||
11 | maxDepth: 1, |
||
12 | // Only logged in users are allowed to post or not |
||
13 | loginRequired: false, |
||
14 | // Allow editing of comments |
||
15 | allowEditing: true, |
||
16 | // Allow deleting of comments |
||
17 | allowDeleting: true |
||
18 | } |
||
19 | } |
||
20 | |||
21 | export default state; |
||
22 |