src/plugin/js/constants.js   A
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 33
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 0
wmc 0
c 2
b 0
f 0
nc 1
mnd 0
bc 0
fnc 0
dl 0
loc 33
rs 10
bpm 0
cpm 0
noi 0
1
// constants
2
export const DIALOG_TYPES = {
3
    ALERT: 'alert',     // ex: Congrats! record created
4
    CONFIRM: 'confirm', // ex: Please confirm delete
5
    PROMPT: 'prompt'    // ex: Type your password to save changes
6
}
7
8
export const CONFIRM_TYPES = {
9
    BASIC: 'basic', // ex: click to confirm
10
    SOFT: 'soft',   // ex: click 3 times to confirm
11
    HARD: 'hard'    // ex: enter verification, then click to confirm
12
}
13
14
export const ANIMATION_TYPES = {
15
    FADE: 'dg-fade',
16
    ZOOM: 'dg-zoom',
17
    BOUNCE: 'dg-bounce'
18
}
19
20
export const DEFAULT_OPTIONS = {
21
    html                 : false,
22
    loader               : false,
23
    reverse              : false,
24
    backdropClose        : false,
25
    okText               : "Continue",
26
    cancelText           : "Close",
27
    type                 : CONFIRM_TYPES.BASIC,
28
    window               : DIALOG_TYPES.CONFIRM,
29
    message              : "Proceed with the request?",
30
    clicksCount          : 3,
31
    animation            : 'zoom',
32
    verification         : 'continue',
33
    verificationHelp     : 'Type "[+:verification]" below to confirm'
34
}
35