-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaptcha.json
More file actions
103 lines (103 loc) · 3.08 KB
/
Copy pathCaptcha.json
File metadata and controls
103 lines (103 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"id": "com.rohitchouhan.sap.captcha",
"version": "1.0.0",
"name": "Captcha",
"description": "Captcha Widget for SAP Analytics Cloud",
"newInstancePrefix": "Captcha",
"vendor": "rohitchouhan.com",
"eula": "rohitchouhan.com",
"license": "MIT",
"icon": "https://cdn.jsdelivr.net/gh/SAP-Custom-Widget/Captcha@1.0.0/icon.png",
"webcomponents": [
{
"kind": "main",
"tag": "com-rohitchouhan-sap-captcha",
"url": "https://cdn.jsdelivr.net/gh/SAP-Custom-Widget/Captcha@1.0.0/dist/Captcha.bundle.js",
"integrity": "sha384-0Q403ZrgaAsqqKFUCiAPjXicJBrMlbkDIGxX6d0dRQ15F0EgjL4i4PfkhjvZLjDq",
"ignoreIntegrity": false
},
{
"kind": "builder",
"tag": "com-rohitchouhan-sap-captcha-builder",
"url": "https://cdn.jsdelivr.net/gh/SAP-Custom-Widget/Captcha@1.0.0/dist/Captcha.bundle.js",
"integrity": "sha384-0Q403ZrgaAsqqKFUCiAPjXicJBrMlbkDIGxX6d0dRQ15F0EgjL4i4PfkhjvZLjDq",
"ignoreIntegrity": false
}
],
"properties": {
"notificationToggle": {
"description": "Enable or disable notifications for new messages",
"type": "boolean",
"default": true
},
"fontSize": {
"description": "Default font size for the CAPTCHA text",
"type": "number",
"default": 20
},
"fontStyle": {
"description": "Default font style for the CAPTCHA text",
"type": "string",
"default": "Arial"
},
"noise": {
"description": "Amount of noise in the CAPTCHA image",
"type": "number",
"default": 25
},
"fontColor": {
"description": "Default font color for the CAPTCHA text",
"type": "string",
"default": "#333"
},
"backgroundColor": {
"description": "Background color for the CAPTCHA image",
"type": "string",
"default": "#f3f3f3"
}
},
"methods": {
"enableUpdateNotification": {
"description": "Enable or disable update notifications",
"parameters": [
{
"name": "notificationToggle",
"type": "boolean",
"description": "Enable or disable update notifications"
}
],
"body": "this.notificationToggle = notificationToggle;"
},
"isUpdateNotificationEnable": {
"description": "Check if update notifications are enabled",
"returnType": "boolean",
"body": "return this.notificationToggle;"
},
"refreshCaptcha": {
"description": "Refresh the CAPTCHA image",
"returnType": "boolean"
},
"validateCaptcha": {
"description": "Validate the entered CAPTCHA against the generated one",
"parameters": [
{
"name": "captcha",
"type": "string",
"description": "The CAPTCHA text to validate"
}
],
"returnType": "boolean"
}
},
"events": {
"onValidationSuccess": {
"description": "Event triggered when CAPTCHA validation is successful"
},
"onValidationFailure": {
"description": "Event triggered when CAPTCHA validation fails"
},
"onCaptchaRefresh": {
"description": "Event triggered when CAPTCHA is refreshed"
}
}
}