-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdefault.yml
197 lines (166 loc) · 4.75 KB
/
default.yml
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
title: Default Page
preset: page
fields:
text:
type: text
kirby_clearcachepages:
type: janitor
command: 'clear:cache --name pages'
label: Kirby Clear Pages Cache
icon: trash
test_whistle:
type: janitor
command: whistle
label: Whistle
icon: audio
test_ping:
type: janitor
command: ping
label: Ping
progress: ....
success: Pong
error: BAMM
janitor_trash:
type: janitor
command: 'janitor:trash'
label: Removes Pages Cache for this page
icon: trash
janitor_flushpages:
type: janitor
command: 'janitor:flush --name pages'
label: Janitor Flush Pages Cache
success: Cache was cleared!
icon: trash
test_uuid:
type: janitor
command: 'uuid'
label: Echo the uuid
test_unsaved:
type: janitor
command: whistle
unsaved: false
label: Disable when Page has changes
icon: lock
test_autosave:
type: janitor
command: whistle
autosave: true
label: 'Safe on Click [Text = {{ page.text }}]'
test_reload:
type: janitor
command: reload
label: Reload Page Example
icon: refresh
# help: returns `reload => true` to janitor
janitor_open:
type: janitor
command: 'janitor:open --data {{ user.panel.url }}'
intab: true
label: Open current user URL in new tab
icon: open
# help: returns `href => $data` to janitor
janitor_pipedatatohref:
type: janitor
command: 'janitor:pipe --data {{ user.panel.url }} --to open'
intab: true
label: Open current user URL in new tab (via pipe)
icon: open
# help: returns `$to => $data` to janitor
janitor_clipboardfetch:
type: janitor
command: 'janitor:clipboard --data {{ user.email }}'
label: Fetch Clipboard
icon: copy
janitor_clipboarddata:
type: janitor
command: 'janitor:clipboard --data {{ page.title }}'
label: 'Copy "{{ page.title }}" to Clipboard'
progress: Copied!
icon: copy
janitor_download:
type: janitor
command: 'janitor:download --data {{ site.index.files.first.url }}'
label: Download File Example
icon: download
janitor_backupzip:
type: janitor
command: 'janitor:backupzip'
cooldown: 5000
label: Generate Backup ZIP
icon: archive
janitor_down:
type: janitor
command: 'janitor:maintenance --down --user {{ user.uuid }}'
cooldown: 5000
label: 'Maintenance: DOWN'
janitor_up:
type: janitor
command: 'janitor:maintenance --up --user {{ user.uuid }}'
cooldown: 5000
label: 'Maintenance: UP'
janitor_maintenance:
type: janitor
command: 'janitor:maintenance --user {{ user.uuid }}'
cooldown: 5000
label: 'Maintenance: {{ site.isUnderMaintenance.ecco("DOWN","UP") }}'
icon: '{{ site.isUnderMaintenance.ecco("cancel","circle") }}'
# NOTE: This is old/v2 syntax
# janitor_job_v2:
# type: janitor
# job: some.key.to.task
# data: "some data"
# label: 'Run Janitor v2 job'
janitor_job_v3:
type: janitor
command: 'janitor:job --key some.key.to.task --data "some data"'
# terminal: 'janitor:job --key some.key.to.task --data "some data" --user user://kXLzsVwR'
label: 'Run Janitor v2 job'
janitor_cleancontent:
type: janitor
command: 'janitor:cleancontent'
label: 'Clean Content'
janitor_render:
type: janitor
command: 'janitor:render'
label: Render pages to create missing thumb jobs
# NOTE: It is better to generate thumbs via CLI / SSH / CRON
# since most servers have 30sec php timeout for web
janitor_thumbssite:
type: janitor
command: 'janitor:thumbs --site'
label: Generate thumbs from existing thumb jobs (full site)
janitor_thumbspage:
type: janitor
command: 'janitor:thumbs' # NOTE: without --site
label: Generate thumbs from existing thumb jobs (only this page)
janitor_smart:
label: 'Resolve Arg smart/lazy using {( instead of {{'
type: janitor
command: 'janitor:pipe --data {( model.text.kirbytext )} --to message'
# pipe will show lazy/smart resolved data on button (aka the message)
help: THIS IS NEW AUTOMATIC DEFAULT IN v3.10
janitor_color:
label: Janitor buttons can now be colorful
type: janitor
command: 'janitor:job --key random.colors'
color: 'var(--color-blue-600)'
backgroundColor: 'var(--color-blue-200)'
janitor_callNoData:
label: Call method on model
type: janitor
command: 'janitor:call --method whoAmI'
janitor_callWithData:
label: Call method on model with Data
type: janitor
command: 'janitor:call --method repeatAfterMe --data {{ user.id }}'
sele:
type: select
options:
- a
- b
- c
janitor_savedData:
label: 'Saved Data'
type: janitor
command: 'janitor:pipe --data {{ page.sele }} --to message'
# autosave: true