-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.json
100 lines (100 loc) · 2.97 KB
/
index.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
{
"$jason": {
"head": {
"title": "Botlist",
"actions": {
"$load": {
"type": "$network.request",
"options": {
"url": "https://botlist.co",
"data_type": "html"
},
"success": {
"type": "$render",
"options": {
"type": "html"
}
}
}
},
"templates": {
"body": {
"header": {
"style": {
"background": "#0583e9"
},
"title": {
"type": "image",
"url": "https://i.imgur.com/1NOSpgC.png",
"style": {
"width": "97",
"height": "15"
}
}
},
"sections": {
"{{#each $jason.find('.tab-pane')}}": {
"header": {
"type": "label",
"text": "#{{$(this).attr('id')}}",
"style": {
"background": "#0583e9",
"font": "HelveticaNeue-Bold",
"size": "12",
"color": "#ffffff"
}
},
"items": {
"{{#each $(this).find('.bot')}}": {
"type": "horizontal",
"style": {
"spacing": "10",
"color": "#ebebeb"
},
"href": {
"url": "https://raw.githubusercontent.com/gliechtenstein/botlist.json/master/detail.json",
"options": {
"fetch_url": "{{$(this).find('a').first().attr('href')}}"
}
},
"components": [
{
"type": "image",
"url": "https://botlist.co{{$(this).find('img').attr('src')}}",
"style": {
"width": "50",
"corner_radius": "2"
}
},
{
"type": "vertical",
"components": [
{
"type": "label",
"text": "{{$(this).find('h2').text().trim()}}",
"style": {
"font": "HelveticaNeue-CondensedBold",
"size": "15"
}
},
{
"type": "label",
"text": "{{$(this).find('p').first().text().trim()}}",
"style": {
"font": "HelveticaNeue",
"size": "12",
"color": "#959595"
}
}
]
}
]
}
}
}
}
}
}
}
}
}