-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.json
117 lines (117 loc) · 2.41 KB
/
install.json
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"$schema": "http://json.schemastore.org/install",
"resources": {
"head": [
{
"type": "script",
"src": "./source/app.js"
}
]
},
"options": {
"properties": {
"account": {
"title": "Sharpay Account",
"type": "object",
"format": "account",
"services": [
"sharpay2"
],
"required": true,
"order": 1
},
"code": {
"title": "Enter site ID",
"type": "string",
"placeholder": "xxxxx",
"description": "To get site ID register your site <a href='https://app.sharpay.io' target='_blank'>here</a>.",
"default": "",
"order": 2
},
"position": {
"title": "Select floating button position at the bottom of the page.",
"type": "string",
"enum": [
"left",
"right"
],
"enumNames": {
"left": "Left",
"right": "Right"
},
"format": "radios",
"default": "right",
"order": 3
},
"color": {
"title": "Select floating button style.",
"type": "string",
"enum": [
"light",
"dark"
],
"enumNames": {
"light": "Light",
"dark": "Dark"
},
"format": "radios",
"default": "light",
"order": 4
},
"counter": {
"title": "Share counter",
"description": "Check if you want our button to show how many times your page was shared via Sharpay.",
"type": "string",
"enum": [
"no",
"separate",
"all"
],
"enumNames": {
"no": "Disable",
"separate": "Separate for every page",
"all": "Common for all site"
},
"format": "radios",
"default": "no",
"order": 5
},
"image": {
"title": "Enter class, id or URL of an image to make it selected by default in sharing window.",
"type": "string",
"placeholder": ".img | #img | http://...",
"default": "",
"order": 7
}
}
},
"hooks": [
{
"endpoint": "https://api.sharpay.io/cloudflare/hook",
"events": [
"option-change:account",
"item-add"
],
"block": true,
"authenticate": ["account"],
"failure": {
"action": "notify",
"message": "There was an error communicating with Sharpay."
}
},
{
"endpoint": "https://api.sharpay.io/cloudflare/sites/add",
"events": ["item-add"],
"block": true,
"authenticate": ["account"],
"failure": {
"action": "notify",
"message": "There was an error communicating with Sharpay."
}
},
{
"events": ["account-logout"],
"action": "reset-schema"
}
]
}