sutty-cli 0.2.1 → 0.3.0rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/config/locales/en.yml +290 -0
  3. data/config/locales/es.yml +285 -0
  4. data/lib/sutty/cli/cli.rb +43 -35
  5. data/lib/sutty/cli/commands/container.rb +4 -1
  6. data/lib/sutty/cli/commands/field.rb +94 -38
  7. data/lib/sutty/cli/commands/layout.rb +34 -21
  8. data/lib/sutty/cli/commands/theme.rb +18 -7
  9. data/lib/sutty/cli/i18n.rb +12 -0
  10. data/lib/sutty/cli/version.rb +1 -1
  11. data/lib/sutty/drop_stub.rb +10 -0
  12. data/lib/sutty/schema.rb +250 -0
  13. metadata +51 -29
  14. data/lib/sutty/cli/templates/field/array.yml.erb +0 -14
  15. data/lib/sutty/cli/templates/field/belongs_to.yml.erb +0 -16
  16. data/lib/sutty/cli/templates/field/boolean.yml.erb +0 -11
  17. data/lib/sutty/cli/templates/field/color.yml.erb +0 -11
  18. data/lib/sutty/cli/templates/field/content.yml.erb +0 -14
  19. data/lib/sutty/cli/templates/field/date.yml.erb +0 -11
  20. data/lib/sutty/cli/templates/field/email.yml.erb +0 -14
  21. data/lib/sutty/cli/templates/field/encrypted_text.yml.erb +0 -11
  22. data/lib/sutty/cli/templates/field/event.yml.erb +0 -40
  23. data/lib/sutty/cli/templates/field/file.yml.erb +0 -19
  24. data/lib/sutty/cli/templates/field/geo.yml.erb +0 -17
  25. data/lib/sutty/cli/templates/field/has_and_belongs_to_many.yml.erb +0 -16
  26. data/lib/sutty/cli/templates/field/has_many.yml.erb +0 -16
  27. data/lib/sutty/cli/templates/field/image.yml.erb +0 -19
  28. data/lib/sutty/cli/templates/field/locales.yml.erb +0 -11
  29. data/lib/sutty/cli/templates/field/markdown.yml.erb +0 -14
  30. data/lib/sutty/cli/templates/field/markdown_content.yml.erb +0 -14
  31. data/lib/sutty/cli/templates/field/number.yml.erb +0 -11
  32. data/lib/sutty/cli/templates/field/order.yml.erb +0 -11
  33. data/lib/sutty/cli/templates/field/predefined_array.yml.erb +0 -18
  34. data/lib/sutty/cli/templates/field/related_posts.yml.erb +0 -15
  35. data/lib/sutty/cli/templates/field/string.yml.erb +0 -14
  36. data/lib/sutty/cli/templates/field/tel.yml.erb +0 -14
  37. data/lib/sutty/cli/templates/field/text.yml.erb +0 -14
  38. data/lib/sutty/cli/templates/field/url.yml.erb +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb3fe159753323120692f2a9362297ad2d426c86c9157c201701c4ea1550f751
4
- data.tar.gz: 15cc8ce51e749cecf5b5d3660c94849315a9701eae3e6aab52e2a1a066f37ae0
3
+ metadata.gz: 700e57c1b9a088755c580be65863190b85473aa5986c37549d320aef8904dfdc
4
+ data.tar.gz: 1a08db7f124df5a879c3162242ee3f8f547479c02c7b00fc52a4d2e5f5e0d804
5
5
  SHA512:
6
- metadata.gz: dc9d1c193c52b4acca35a8ced028728d87f6146fbecc31be425922e057d0f4b1e40665409cab9a724cfe3c9fcb239095458ab2f274ee8ca3ece7f621d0ebf772
7
- data.tar.gz: 6de2d1ab46cd4850bdd227a6c8820b603e5154438e6b117929211e37180d3e05fda67c2204be03331991533623e6fd3be38d2f334aab8bdfc4df97c2abd5a725
6
+ metadata.gz: 20747833ce2deac037e05fc8c448e2bbf635760d1b4de23bdc910ce7215f4b823e649aa80424aa1e0b433709c676bc2abc5cab76eeeb834ce13762b24a4dcf9d
7
+ data.tar.gz: 23433b4bc7c8d9ed5a075b6cccdb99506fa4ef9c0ec5e77e11f36a107a8b80aead78b61655a2ee9c0c8a940c4e51dccf0873bf1da2b3a59896ec97cee70f56a1
@@ -0,0 +1,290 @@
1
+ en:
2
+ help: 'Show usage information'
3
+ version:
4
+ desc:
5
+ example: 'version'
6
+ text: 'sutty-cli version'
7
+ container:
8
+ desc:
9
+ example: 'container NAME'
10
+ text: 'Docker container'
11
+ theme:
12
+ desc:
13
+ example: 'theme NAME'
14
+ text: 'New theme from sutty-base-jekyll-theme'
15
+ flags:
16
+ no_push: "Don't push to remote repository"
17
+ layout:
18
+ desc:
19
+ example: 'layout NAME'
20
+ text: 'Layout definition and page'
21
+ flags:
22
+ schema_only: 'Generate the layout schema for Sutty only'
23
+ field:
24
+ desc:
25
+ example: 'field NAME -l LAYOUT -t TYPE'
26
+ text: 'Adds a field to the layout definition'
27
+ long: |
28
+ A field is a data type with a name, from which Sutty can build a
29
+ form on the panel and use it to validate posts.
30
+
31
+ After you add a field, edit the layout file and add labels and
32
+ help description in different languages.
33
+ flags:
34
+ before: 'Add before this field'
35
+ force: 'Replace field'
36
+ layout: 'Add to this layout'
37
+ type: 'Field type'
38
+ required: 'Field is required'
39
+ private: 'Field is private (encrypted)'
40
+ inverse: 'Inverse relation'
41
+ filter: 'Filter relations by this field'
42
+ value: 'Filter relations by this field value'
43
+ errors:
44
+ already_exists: '%{name} already exists, replace with --force'
45
+ reserved: '%{name} is a field name reserved by Jekyll'
46
+ inverse_required: 'inverse relationship for %{name} is missing'
47
+ post:
48
+ desc:
49
+ example: 'post'
50
+ text: 'Creates an article'
51
+ flags:
52
+ layout: 'Layout'
53
+ title: 'Title'
54
+ date: 'Publication date'
55
+ locale: 'Locale'
56
+ content: 'Content length'
57
+ fields:
58
+ common_by_type:
59
+ array:
60
+ label:
61
+ en: 'List'
62
+ help:
63
+ en: 'Add elements to list'
64
+ belongs_to:
65
+ label:
66
+ en: 'Belongs to'
67
+ help:
68
+ en: 'What article does this one belong to?'
69
+ boolean:
70
+ label:
71
+ en: 'Yes'
72
+ help:
73
+ en: 'Enable or disable this option'
74
+ color:
75
+ label:
76
+ en: 'Color'
77
+ help:
78
+ en: 'Pick a color'
79
+ content:
80
+ label:
81
+ en: 'Content'
82
+ help:
83
+ en: 'Text content for article'
84
+ date:
85
+ label:
86
+ en: 'Date'
87
+ help:
88
+ en: ''
89
+ email:
90
+ label:
91
+ en: 'E-mail'
92
+ help:
93
+ en: ''
94
+ event:
95
+ zone:
96
+ label:
97
+ en: 'Time zone'
98
+ help:
99
+ en: ''
100
+ date:
101
+ label:
102
+ en: 'Date'
103
+ help:
104
+ en: ''
105
+ time:
106
+ label:
107
+ en: 'Time'
108
+ help:
109
+ en: ''
110
+ dtstart:
111
+ label:
112
+ en: 'Event start'
113
+ help:
114
+ en: ''
115
+ dtend:
116
+ label:
117
+ en: 'Event end'
118
+ help:
119
+ en: ''
120
+ file:
121
+ path:
122
+ label:
123
+ en: 'File'
124
+ help:
125
+ en: 'Upload a file'
126
+ description:
127
+ label:
128
+ en: 'Description'
129
+ help:
130
+ en: 'Brief file description'
131
+ geo:
132
+ label:
133
+ en: 'Geographic coordinates'
134
+ help:
135
+ en: 'Pick a location on the map'
136
+ lat:
137
+ label:
138
+ en: 'Latitude'
139
+ help:
140
+ en: ''
141
+ lng:
142
+ label:
143
+ en: 'Longitude'
144
+ help:
145
+ en: ''
146
+ has_and_belongs_to_many:
147
+ label:
148
+ en: 'Related articles'
149
+ help:
150
+ en: 'Reciprocal relation, the related articles also point to the current one'
151
+ has_many:
152
+ label:
153
+ en: 'Dependent articles'
154
+ help:
155
+ en: 'The following articles depend on the current one'
156
+ image:
157
+ label:
158
+ help:
159
+ en: ''
160
+ path:
161
+ label:
162
+ en: 'Image file'
163
+ help:
164
+ en: 'Upload an image'
165
+ description:
166
+ label:
167
+ en: 'Description'
168
+ help:
169
+ en: 'Brief image description for the visually impaired and search engines'
170
+ locales:
171
+ label:
172
+ en: 'Translations'
173
+ help:
174
+ en: 'Link to this article in other languages'
175
+ number:
176
+ label:
177
+ en: 'Number'
178
+ help:
179
+ en: ''
180
+ order:
181
+ label:
182
+ en: 'Order'
183
+ help:
184
+ en: 'Position in articles list'
185
+ predefined_array:
186
+ label:
187
+ en: 'Predefined list'
188
+ help:
189
+ en: ''
190
+ related_posts:
191
+ label:
192
+ en: 'Related posts'
193
+ help:
194
+ en: ''
195
+ string:
196
+ label:
197
+ en: 'Short text'
198
+ help:
199
+ en: ''
200
+ tel:
201
+ label:
202
+ en: 'Phone number'
203
+ help:
204
+ en: 'Use parenthesis for extra data, ie: +54 1234-5678 (weekdays)'
205
+ text:
206
+ label:
207
+ en: 'Text'
208
+ help:
209
+ en: ''
210
+ url:
211
+ label:
212
+ en: 'Link to website'
213
+ help:
214
+ en: 'Full address including https://'
215
+ common_by_name:
216
+ title:
217
+ label:
218
+ en: 'Title'
219
+ help:
220
+ en: ''
221
+ authors:
222
+ label:
223
+ en: 'Authors'
224
+ help:
225
+ en: ''
226
+ description:
227
+ label:
228
+ en: 'Content warning or post description'
229
+ help:
230
+ en: 'Summary of the post contents, also used by social media and search engines. If the post is about violence and other sensitive topics, we invite you to use it as a content warning, so others can decide when they want to read it.'
231
+ image:
232
+ path:
233
+ label:
234
+ en: 'Main image'
235
+ help: "It's used to illustrate the article and as preview in social networks."
236
+ description:
237
+ label:
238
+ en: 'Main image description'
239
+ help:
240
+ en: 'Describe the main image for blind or partially sighted users and search engines'
241
+ categories:
242
+ label:
243
+ en: 'Categories'
244
+ help:
245
+ en: 'Use categories to organize posts'
246
+ tags:
247
+ label:
248
+ en: 'Tags'
249
+ help:
250
+ en: 'Tags are helpful as keywords'
251
+ draft:
252
+ label:
253
+ en: 'Draft'
254
+ help:
255
+ en: "This post isn't ready to be published yet"
256
+ product:
257
+ label:
258
+ en: 'Product'
259
+ help:
260
+ en: ''
261
+ price:
262
+ label:
263
+ en: 'Price'
264
+ help:
265
+ en: ''
266
+ height:
267
+ label:
268
+ en: 'Height'
269
+ help:
270
+ en: ''
271
+ width:
272
+ label:
273
+ en: 'Width'
274
+ help:
275
+ en: ''
276
+ depth:
277
+ label:
278
+ en: 'Depth'
279
+ help:
280
+ en: ''
281
+ stock:
282
+ label:
283
+ en: 'Stock'
284
+ help:
285
+ en: ''
286
+ sku:
287
+ label:
288
+ en: 'SKU'
289
+ help:
290
+ en: 'Unique product identifier'
@@ -0,0 +1,285 @@
1
+ es:
2
+ help: 'Mostrar la información de uso'
3
+ version:
4
+ desc:
5
+ example: 'version'
6
+ text: 'Versión de sutty-cli'
7
+ container:
8
+ desc:
9
+ example: 'container NOMBRE'
10
+ text: 'Contenedor de Docker'
11
+ theme:
12
+ desc:
13
+ example: 'theme NOMBRE'
14
+ text: 'Plantilla nueva a partir de sutty-base-jekyll-theme'
15
+ flags:
16
+ no_push: 'No crear el repositorio remoto'
17
+ layout:
18
+ desc:
19
+ example: 'layout NOMBRE'
20
+ text: 'Definición de contenido y su plantilla (layout)'
21
+ flags:
22
+ schema_only: 'Sólo la definición para Sutty'
23
+ field:
24
+ desc:
25
+ example: 'field NOMBRE'
26
+ text: 'Agrega un campo a la definición de contenido'
27
+ long: |
28
+ Un campo es un tipo de datos identificado por un nombre, que
29
+ Sutty usa para construir el formulario del panel y validar el
30
+ contenido de los artículos.
31
+
32
+ Después de agregar el campo, puedes editar el archivo para
33
+ agregarle etiquetas y ayuda en distintos idiomas.
34
+ flags:
35
+ before: 'Agregar antes de este campo'
36
+ force: 'Reemplazar la definición del campo'
37
+ layout: 'Agregar el campo a esta definición'
38
+ type: 'Tipo del campo'
39
+ required: 'El campo es obligatorio'
40
+ private: 'El campo es privado (cifrado)'
41
+ inverse: 'Relación inversa'
42
+ filter: 'Filtrar relaciones posibles por este campo'
43
+ value: 'Filtrar relaciones posibles por este valor'
44
+ errors:
45
+ already_exists: '%{name} ya existe, reemplazar con --force'
46
+ reserved: '%{name} es un nombre de campo reservado por Jekyll'
47
+ inverse_required: 'falta la relación inversa de %{name}'
48
+ post:
49
+ desc:
50
+ example: 'post'
51
+ text: 'Genera un artículo con contenido aleatorio'
52
+ flags:
53
+ layout: 'Definición'
54
+ title: 'Título'
55
+ date: 'Fecha de publicación'
56
+ locale: 'Idioma'
57
+ content: 'Largo del contenido'
58
+ fields:
59
+ common_by_type:
60
+ array:
61
+ label:
62
+ es: 'Lista'
63
+ help:
64
+ es: 'Agregue elementos a la lista'
65
+ belongs_to:
66
+ label:
67
+ es: 'Pertenece a'
68
+ help:
69
+ es: '¿De qué artículo depende?'
70
+ boolean:
71
+ label:
72
+ es: 'Sí'
73
+ help:
74
+ es: 'Habilita o deshabilita esta opción'
75
+ color:
76
+ label:
77
+ es: 'Color'
78
+ help:
79
+ es: 'Elige un color'
80
+ content:
81
+ label:
82
+ es: 'Contenido'
83
+ help:
84
+ es: 'El contenido del artículo'
85
+ date:
86
+ label:
87
+ es: 'Fecha'
88
+ help:
89
+ es: ''
90
+ email:
91
+ label:
92
+ es: 'Correo electrónico'
93
+ help:
94
+ es: ''
95
+ event:
96
+ zone:
97
+ label:
98
+ es: 'Zona horaria'
99
+ help:
100
+ es: ''
101
+ date:
102
+ label:
103
+ es: 'Fecha'
104
+ help:
105
+ es: ''
106
+ time:
107
+ label:
108
+ es: 'Horario'
109
+ help:
110
+ es: ''
111
+ dtstart:
112
+ label:
113
+ es: 'Comienzo del evento'
114
+ help:
115
+ es: ''
116
+ dtend:
117
+ label:
118
+ es: 'Fin del evento'
119
+ help:
120
+ es: ''
121
+ file:
122
+ path:
123
+ label:
124
+ es: 'Archivo'
125
+ help:
126
+ es: 'Sube un archivo'
127
+ description:
128
+ label:
129
+ es: 'Descripción'
130
+ help:
131
+ es: 'Breve descripción del archivo'
132
+ geo:
133
+ label:
134
+ es: 'Coordenadas geográficas'
135
+ help:
136
+ es: 'Selecciona un punto del mapa'
137
+ lat:
138
+ label:
139
+ es: 'Latitud'
140
+ help:
141
+ es: ''
142
+ lng:
143
+ label:
144
+ es: 'Longitud'
145
+ help:
146
+ es: ''
147
+ has_and_belongs_to_many:
148
+ label:
149
+ es: 'Artículos relacionados'
150
+ help:
151
+ es: 'Es una relación recíproca, los artículos relacionados también apuntan a este'
152
+ has_many:
153
+ label:
154
+ es: 'Artículos dependientes'
155
+ help:
156
+ es: 'Artículos que dependen de este'
157
+ image:
158
+ path:
159
+ label:
160
+ es: 'Archivo de imagen'
161
+ help:
162
+ es: 'Sube una imagen'
163
+ description:
164
+ label:
165
+ es: 'Descripción'
166
+ help:
167
+ es: 'Breve descripción de la imagen para buscadores y lectores de pantalla'
168
+ locales:
169
+ label:
170
+ es: 'Traducciones'
171
+ help:
172
+ es: 'Traducción de este artículo a otro idioma'
173
+ number:
174
+ label:
175
+ es: 'Número'
176
+ help:
177
+ es: ''
178
+ order:
179
+ label:
180
+ es: 'Orden'
181
+ help:
182
+ es: 'La posición del artículo en la lista de artículos'
183
+ predefined_array:
184
+ label:
185
+ es: 'Lista predefinida'
186
+ help:
187
+ es: ''
188
+ related_posts:
189
+ label:
190
+ es: 'Artículos relacionados'
191
+ help:
192
+ es: ''
193
+ string:
194
+ label:
195
+ es: 'Texto corto'
196
+ help:
197
+ es: ''
198
+ tel:
199
+ label:
200
+ es: 'Teléfono'
201
+ help:
202
+ es: 'Incorpora datos entre paréntesis, por ejemplo: +54 1234-5678 (int 0)'
203
+ text:
204
+ label:
205
+ es: 'Texto'
206
+ help:
207
+ es: ''
208
+ url:
209
+ label:
210
+ es: 'Vínculo a un sitio web'
211
+ help:
212
+ es: 'La dirección completa incluyendo https://'
213
+ common_by_name:
214
+ title:
215
+ label:
216
+ es: 'Título'
217
+ help:
218
+ es: ''
219
+ authors:
220
+ label:
221
+ es: 'Autorxs'
222
+ help:
223
+ es: ''
224
+ description:
225
+ label:
226
+ es: 'Alerta de contenido o descripción del artículo'
227
+ help:
228
+ es: 'Resumen del contenido del artículo, que también usarán redes sociales y buscadores. Si el artículo trata de violencias y otros temas sensibles, te invitamos a usar este campo como alerta de contenido, para que las personas puedan determinar cuándo quieren abrirlo.'
229
+ image:
230
+ path:
231
+ label:
232
+ es: 'Imagen principal'
233
+ help:
234
+ es: 'Se utiliza para ilustrar el artículo y como previsualización en las redes sociales.'
235
+ description:
236
+ label:
237
+ es: 'Descripción de la imagen principal'
238
+ help:
239
+ es: 'Describe la imagen principal para usuaries no videntes y buscadores'
240
+ categories:
241
+ label:
242
+ es: 'Categorías'
243
+ help:
244
+ es: 'Ayudan a organizar los artículos en temas'
245
+ tags:
246
+ label:
247
+ es: 'Etiquetas'
248
+ help:
249
+ es: 'Usa etiquetas para resaltar palabras clave'
250
+ draft:
251
+ label:
252
+ es: 'Borrador'
253
+ help:
254
+ es: 'Este artículo aun no está listo para publicar'
255
+ price:
256
+ label:
257
+ es: 'Precio'
258
+ help:
259
+ es: ''
260
+ height:
261
+ label:
262
+ es: 'Alto'
263
+ help:
264
+ es: ''
265
+ width:
266
+ label:
267
+ es: 'Ancho'
268
+ help:
269
+ es: ''
270
+ depth:
271
+ label:
272
+ es: 'Profundidad'
273
+ help:
274
+ es: ''
275
+ stock:
276
+ label:
277
+ es: 'Stock'
278
+ help:
279
+ es: ''
280
+ es: ''
281
+ sku:
282
+ label:
283
+ es: 'Identificador de producto (SKU)'
284
+ help:
285
+ es: ''