src/store/state.js   A
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 21
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 0
nc 1
dl 0
loc 21
ccs 1
cts 1
cp 1
crap 0
rs 10
c 2
b 0
f 0
wmc 0
mnd 0
bc 0
fnc 0
bpm 0
cpm 0
noi 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