forked from HubSpot/offline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.json
76 lines (76 loc) · 2 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
{
"resources": {
"head": [
{
"type": "script",
"src": "./offline.min.js"
},
{
"type": "style",
"src": "./themes/offline-language-{{ options.language }}.css",
"if": "!options.indicator"
},
{
"type": "style",
"src": "./themes/offline-language-{{ options.language }}-indicator.css",
"if": "options.indicator"
},
{
"type": "style",
"src": "./themes/offline-theme-{{ options.theme }}.css",
"if": "!options.indicator"
},
{
"type": "style",
"src": "./themes/offline-theme-{{ options.theme }}-indicator.css",
"if": "options.indicator"
}
]
},
"options": {
"properties": {
"indicator": {
"title": "Always on",
"description": "When checked, a connectivity indicator will always be present on the bottom-left corner of the page. When unchecked, Offline will only show a message when there are connectivity issues.",
"type": "boolean",
"default": false
},
"language": {
"title": "Language",
"description": "The language of the message displayed to the user when connectivity is lost or regained.",
"type": "string",
"enum": [
"english",
"spanish",
"french",
"portuguese-brazil"
],
"enumNames": {
"english": "English",
"spanish": "Spanish",
"french": "French",
"portuguese-brazil": "Brazilian Portuguese"
},
"default": "english"
},
"theme": {
"title": "Theme",
"description": "Describes the look and feel of the message.",
"type": "string",
"enum": [
"default",
"dark",
"chrome",
"slide"
],
"enumNames": {
"default": "Default",
"dark": "Dark",
"chrome": "Chrome",
"slide": "Slide"
},
"default": "default"
}
}
}
}