Total Complexity | 0 |
Complexity/F | 0 |
Lines of Code | 33 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 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 |