Skip to content

Commit 8c81952

Browse files
committed
updated blueprints order
1 parent f5dc655 commit 8c81952

File tree

1 file changed

+76
-46
lines changed

1 file changed

+76
-46
lines changed

blueprints.yaml

Lines changed: 76 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,24 @@ form:
2424
type: section
2525
title: Basic Settings
2626
underline: true
27+
2728
enabled:
2829
type: toggle
29-
label: Plugin status
30+
label: Plugin Status
3031
highlight: 1
3132
default: 0
3233
options:
3334
1: Enabled
3435
0: Disabled
3536
validate:
3637
type: bool
38+
3739
folders:
3840
type: select
3941
multiple: true
40-
label: Sync Folders
42+
label: Folders to Sync
4143
classes: fancy
42-
description: Warning: Removing folders after they have been added and synced may cause undesired results
44+
description: Removing folders after they have been synced may cause undesired results.
4345
default:
4446
- pages
4547
options:
@@ -52,31 +54,89 @@ form:
5254
create: true
5355
validate:
5456
type: commalist
57+
58+
Sync:
59+
type: section
60+
title: Automatic Synchronization Settings
61+
underline: true
62+
63+
SyncNotice:
64+
type: spacer
65+
markdown: true
66+
text: |
67+
! To improve the speed of saving pages you can disable automatic sync. Then, changes to a page will not be sent to the remote repository on every save. To sync your changes to the repository tap the GitSync button (<i class="fa fa-git"></i>) in the top left of the Administration Panel, or automate the process with the GitSync command on the server.
68+
69+
sync.on_save:
70+
type: toggle
71+
label: Sync on Page Save
72+
help: Sync with the remote directory when a page is saved through the admin
73+
default: 1
74+
highlight: 1
75+
options:
76+
1: PLUGIN_ADMIN.YES
77+
0: PLUGIN_ADMIN.NO
78+
validate:
79+
type: bool
80+
81+
sync.on_delete:
82+
type: toggle
83+
label: Sync on Page Delete
84+
help: Sync with the remote directory when a page is deleted through the admin
85+
default: 1
86+
highlight: 1
87+
options:
88+
1: PLUGIN_ADMIN.YES
89+
0: PLUGIN_ADMIN.NO
90+
validate:
91+
type: bool
92+
93+
sync.on_media:
94+
type: toggle
95+
label: Sync on Media Changes
96+
help: Sync with the remote directory when a media is uploaded or deleted through the admin immediately (instead of only syncing when the page is saved)
97+
default: 1
98+
highlight: 1
99+
options:
100+
1: PLUGIN_ADMIN.YES
101+
0: PLUGIN_ADMIN.NO
102+
validate:
103+
type: bool
104+
105+
Repo:
106+
type: section
107+
title: Git Repository Settings
108+
underline: true
109+
55110
local_repository:
56111
type: hidden
57112
multiple: false
58113
size: medium
59114
label: Local Repository Path
115+
60116
repository:
61117
type: text
62118
label: Git Repository
63119
placeholder: https://github.com/user/repository.git
120+
64121
user:
65122
type: text
66123
label: Git User
67124
placeholder: Username, not email
68125
autocomplete: off
126+
69127
password:
70128
type: enc-password
71129
label: Git Password or Token
72130
placeholder: Your Git Password or Token
73131
description: Enter your password or token to encrypt and securely store it, then save the settings. It will not show up here for security reasons.
74132
autocomplete: off
133+
75134
webhook:
76135
type: text
77136
label: Repository Web Hook URL
78137
placeholder: /_git-sync
79138
data-default@: '\Grav\Plugin\GitSyncPlugin::generateRandomWebhook'
139+
80140
webhook_enabled:
81141
type: toggle
82142
label: Web Hook Secret
@@ -86,74 +146,38 @@ form:
86146
1: Enabled
87147
0: Disabled
88148
description: With this setting enabled, only authorized webhook calls will be able to trigger a synchronization (recommended)
149+
89150
webhook_secret:
90151
type: text
91152
label: Repository Web Hook Secret
92153
placeholder: Your Web Hook Secret
93154
data-default@: '\Grav\Plugin\GitSyncPlugin::generateWebhookSecret'
94155
description: You can either use this randomly generated string or enter your own secret. <br /> **Bitbucket** does not yet support Webhook Secrets.
95156
markdown: true
96-
Sync:
97-
type: section
98-
title: Automatic Synchronization
99-
underline: true
100-
SyncNotice:
101-
type: spacer
102-
markdown: true
103-
text: |
104-
! Note, to improve the speed of saving pages you can disable automatic sync. Then, changes to the page will not be sent to the remote repository on every save. To sync your changes to the repository tap the GitSync button (<i class="fa fa-git"></i>) in the top left of the Administration Panel, or automate the process with the GitSync command on the server.
105-
sync.on_save:
106-
type: toggle
107-
label: Sync on Page Save
108-
help: Sync with the remote directory when a page is saved through the admin
109-
default: 1
110-
highlight: 1
111-
options:
112-
1: PLUGIN_ADMIN.YES
113-
0: PLUGIN_ADMIN.NO
114-
validate:
115-
type: bool
116-
sync.on_delete:
117-
type: toggle
118-
label: Sync on Page Delete
119-
help: Sync with the remote directory when a page is deleted through the admin
120-
default: 1
121-
highlight: 1
122-
options:
123-
1: PLUGIN_ADMIN.YES
124-
0: PLUGIN_ADMIN.NO
125-
validate:
126-
type: bool
127-
sync.on_media:
128-
type: toggle
129-
label: Sync on Media Changes
130-
help: Sync with the remote directory when a media is uploaded or deleted through the admin immediately (instead of only syncing when the page is saved)
131-
default: 1
132-
highlight: 1
133-
options:
134-
1: PLUGIN_ADMIN.YES
135-
0: PLUGIN_ADMIN.NO
136-
validate:
137-
type: bool
157+
138158
Advanced:
139159
type: section
140-
title: Advanced Settings
160+
title: Advanced Git Settings
141161
underline: true
162+
142163
branch:
143164
type: text
144165
default: master
145166
label: Local Branch
146167
placeholder: master
168+
147169
remote.name:
148170
type: text
149171
default: origin
150172
label: Remote Name
151173
placeholder: origin
174+
152175
remote.branch:
153176
type: text
154177
default: master
155178
label: Remote Branch
156179
placeholder: master
180+
157181
git.author:
158182
type: select
159183
default: gituser
@@ -163,22 +187,26 @@ form:
163187
gitsync: Use GitSync Committer Name
164188
gravuser: Use Grav User Name
165189
gravfull: Use Grav User Full Name
190+
166191
git.name:
167192
type: text
168193
default: GitSync
169194
label: Committer Name
170195
placeholder: GitSync
196+
171197
git.email:
172198
type: text
173199
174200
label: Committer Email
175201
placeholder: [email protected]
202+
176203
git.bin:
177204
type: text
178205
default: git
179206
label: Git Binary Path
180207
help: If the default `git` command doesn't work on your machine or if you want to specify a custom path, do it in here
181208
placeholder: /usr/bin/git
209+
182210
logging:
183211
type: toggle
184212
default: 0
@@ -190,10 +218,12 @@ form:
190218
0: PLUGIN_ADMIN.NO
191219
validate:
192220
type: bool
221+
193222
Actions:
194223
type: section
195224
title: Actions
196225
underline: true
226+
197227
_wizard:
198228
type: git-wizard
199229
label: Text Variable

0 commit comments

Comments
 (0)