forked from francodacosta/grav-plugin-page-stats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blueprints.yaml
executable file
·268 lines (259 loc) · 11.3 KB
/
blueprints.yaml
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
name: Page Stats
slug: page-stats
type: plugin
version: 2.5.3
description: Enhaced Analytics for grav
icon: plug
author:
name: Nuno Costa
email: [email protected]
homepage: https://github.com/francodacosta/grav-plugin-page-stats
keywords: grav, plugin, analytics, statistics
bugs: https://github.com/francodacosta/grav-plugin-page-stats/issues
docs: https://github.com/francodacosta/grav-plugin-page-stats/blob/master/README.md
license: MIT
dependencies:
- { name: grav, version: ">=1.6.0" }
x-widget-enabled: &widget-enabled
type: toggle
label: PLUGIN_PAGE_STATS.WIDGET.ENABLED.TEXT
help: PLUPLUGIN_PAGE_STATS.WIDGET.ENABLED.HELP
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
x-widget-size: &widget-size
type: select
label: PLUGIN_PAGE_STATS.WIDGET.SIZE.TEXT
help: PLUGIN_PAGE_STATS.WIDGET.SIZE.HELP
options:
'col-12 col-md-3' : small
'col-12 col-md-4': 'medium'
'col-12 col-md-6': 'large'
'col-12': 'full width'
x-widget-style: &widget-style
type: select
label: PLUGIN_PAGE_STATS.WIDGET.STYLE.TEXT
help: PLUGIN_PAGE_STATS.WIDGET.STYLE.HELP
options:
'table' : table
'chart': chart
x-widget-limit: &widget-limit
type: number
label: PLUGIN_PAGE_STATS.WIDGET.LIMIT.TEXT
help: PLUGIN_PAGE_STATS.WIDGET.LIMIT.HELP
form:
validation: loose
fields:
enabled:
type: toggle
label: PLUGIN_ADMIN.PLUGIN_STATUS
highlight: 1
default: 0
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
ignore_errors:
type: toggle
label: PLUGIN_PAGE_STATS.IGNORE_ERRORS_LABEL
help: PLUGIN_PAGE_STATS.IGNORE_ERRORS_HELP
highlight: 1
default: 0
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
db:
type: text
label: PLUGIN_PAGE_STATS.STATS_DB_LABEL
help: PLUGIN_PAGE_STATS.STATS_DB_HELP
anonymize_ips:
type: toggle
label: PLUGIN_PAGE_STATS.ANONYMIZE_IPS_LABEL
help: PLUGIN_PAGE_STATS.ANONYMIZE_IPS_HELP
highlight: 1
default: 0
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
section_widgets:
type: section
title: PLUGIN_PAGE_STATS.SECTION_WIDGETS
text: PLUGIN_PAGE_STATS.SECTION_WIDGETS_LABEL
underline: true
fields:
fs2:
type: fieldset
title: PLUGIN_PAGE_STATS.UNIQUE_USERS_WIDGET
collapsed: false # Initial state of fieldset (see collapsible option)
collapsible: true # Whether one can expand the fieldset or not
fields:
show_unique_users_widget: *widget-enabled
cols_unique_users_widget: *widget-size
fs3:
type: fieldset
title: PLUGIN_PAGE_STATS.UNIQUE_VISITORS_WIDGET
collapsed: false # Initial state of fieldset (see collapsible option)
collapsible: true # Whether one can expand the fieldset or not
fields:
show_unique_visitors_widget: *widget-enabled
cols_unique_visitors_widget: *widget-size
fs4:
type: fieldset
title: PLUGIN_PAGE_STATS.PAGE_VIEWS_WIDGET
collapsed: false # Initial state of fieldset (see collapsible option)
collapsible: true # Whether one can expand the fieldset or not
fields:
show_page_views_widget: *widget-enabled
cols_page_views_widget: *widget-size
fs1:
type: fieldset
title: PLUGIN_PAGE_STATS.TOP_USERS_WIDGET
collapsed: false # Initial state of fieldset (see collapsible option)
collapsible: true # Whether one can expand the fieldset or not
fields:
show_top_users_widget: *widget-enabled
cols_top_users_widget: *widget-size
limit_top_users_widget: *widget-limit
fs7:
type: fieldset
title: PLUGIN_PAGE_STATS.TOP_BROWSERS
collapsed: false # Initial state of fieldset (see collapsible option)
collapsible: true # Whether one can expand the fieldset or not
fields:
show_top_browsers: *widget-enabled
cols_top_browsers: *widget-size
limit_top_browsers: *widget-limit
style_top_browsers: *widget-style
fs8:
type: fieldset
title: PLUGIN_PAGE_STATS.TOP_COUNTRIES
collapsed: false # Initial state of fieldset (see collapsible option)
collapsible: true # Whether one can expand the fieldset or not
fields:
show_top_countries: *widget-enabled
cols_top_countries: *widget-size
limit_top_countries: *widget-limit
style_top_countries: *widget-style
fs9:
type: fieldset
title: PLUGIN_PAGE_STATS.TOP_PLATFORMS
collapsed: false # Initial state of fieldset (see collapsible option)
collapsible: true # Whether one can expand the fieldset or not
fields:
show_top_platforms: *widget-enabled
cols_top_platforms: *widget-size
limit_top_platforms: *widget-limit
style_top_platforms: *widget-style
fs5:
type: fieldset
title: PLUGIN_PAGE_STATS.RECENTLY_VIEWED_PAGES
collapsed: false # Initial state of fieldset (see collapsible option)
collapsible: true # Whether one can expand the fieldset or not
fields:
show_recently_viewed_pages: *widget-enabled
cols_recently_viewed_pages: *widget-size
limit_recently_viewed_pages: *widget-limit
fs6:
type: fieldset
title: PLUGIN_PAGE_STATS.TOP_PAGES
collapsed: false # Initial state of fieldset (see collapsible option)
collapsible: true # Whether one can expand the fieldset or not
fields:
show_top_pages: *widget-enabled
cols_top_pages: *widget-size
limit_top_pages_pages: *widget-limit
fs10:
type: fieldset
title: PLUGIN_PAGE_STATS.PAGE_DETAILS.RECENT_VIEWS
collapsed: false # Initial state of fieldset (see collapsible option)
collapsible: true # Whether one can expand the fieldset or not
fields:
show_pagedetails_recent_views: *widget-enabled
cols_pagedetails_recent_views: *widget-size
limit_pagedetails_recent_views: *widget-limit
section_behaviour:
type: section
title: PLUGIN_PAGE_STATS.SECTION_BEHAVIOUR
text: PLUGIN_PAGE_STATS.SECTION_BEHAVIOUR_LABEL
underline: true
fields:
log_admin:
type: toggle
label: PLUGIN_PAGE_STATS.LOG_ADMIN_LABEL
help: PLUGIN_PAGE_STATS.LOG_ADMIN_HELP
highlight: 0
default: 0
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
log_time_on_page:
type: toggle
label: PLUGIN_PAGE_STATS.LOG_TIME_ON_PAGE_LABEL
help: PLUGIN_PAGE_STATS.LOG_TIME_ON_PAGE_HELP
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
log_bot:
type: toggle
label: PLUGIN_PAGE_STATS.LOG_BOT_LABEL
help: PLUGIN_PAGE_STATS.LOG_BOT_HELP
highlight: 0
default: 0
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
page_url_format:
type: select
label: PLUGIN_PAGE_STATS.PAGE_URL.TEXT
help: PLUGIN_PAGE_STATS.PAGE_URL.HELP
options:
'url': 'Url'
'title': 'Title'
ignored_ips:
type: list
label: PLUGIN_PAGE_STATS.IGNORED_IPS_LABEL
help: PLUGIN_PAGE_STATS.IGNORED_IPS_HELP
style: vertical
fields:
.ip:
type: text
label: PLUGIN_PAGE_STATS.IP
help: PLUGIN_PAGE_STATS.IGNORED_IPS_HELP
ignored_urls:
type: list
label: PLUGIN_PAGE_STATS.IGNORED_URLS.LABEL
help: PLUGIN_PAGE_STATS.IGNORED_URLS.HELP
style: vertical
fields:
.url:
type: text
label: PLUGIN_PAGE_STATS.IGNORED_URLS.TEXT
help: PLUGIN_PAGE_STATS.IGNORED_URLS.HELP
fs11:
type: fieldset
title: PLUGIN_PAGE_STATS.BOT_REGEXP.TEXT
collapsed: true # Initial state of fieldset (see collapsible option)
collapsible: true # Whether one can expand the fieldset or not
fields:
bot_regexp:
type: array
value_only: true
label: PLUGIN_PAGE_STATS.BOT_REGEXP.TEXT
help: PLUGIN_PAGE_STATS.BOT_REGEXP.HELP