spina 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spina might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/spina/_forms.sass +6 -3
- data/app/assets/stylesheets/spina/_gallery.sass +4 -2
- data/app/assets/stylesheets/spina/_tables.sass +7 -4
- data/app/assets/stylesheets/spina/_trix_custom.sass +13 -26
- data/app/controllers/spina/admin/pages_controller.rb +1 -1
- data/app/helpers/spina/images_helper.rb +8 -0
- data/app/models/spina/page.rb +2 -2
- data/config/locales/TH.yml +1 -0
- data/config/locales/bg.yml +1 -0
- data/config/locales/de.yml +1 -0
- data/config/locales/en.yml +1 -0
- data/config/locales/es.yml +30 -29
- data/config/locales/fr.yml +1 -0
- data/config/locales/id.yml +1 -0
- data/config/locales/it.yml +1 -0
- data/config/locales/nl.yml +1 -0
- data/config/locales/pl.yml +1 -0
- data/config/locales/pt-BR.yml +1 -0
- data/config/locales/ro.yml +1 -0
- data/config/locales/ru.yml +1 -0
- data/config/locales/sv.yml +1 -0
- data/config/locales/tr.yml +1 -0
- data/config/locales/zh-CN.yml +1 -0
- data/lib/spina/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 414bc5f87303a017e42900d1f064457e8649f11088b3b9cfd49bccb8a327e145
|
4
|
+
data.tar.gz: a922eb6f603cbc71de8fe8e353aba261a4d1ce998ad2e40a100feeda27b0b881
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a877991a1b49ad1811f1557406835a72f80da58b326c17adc923fe2460734cebdceb467ba4b380724cbe686aa61949d20e3b6972b2517f060adf84a8b2a24363
|
7
|
+
data.tar.gz: 7612cd02fde4d6b3444249ff9477ba102cf7c3f87791ede3b0c0ca2e700a36c7c702f73dbb897e0a22b0a2490d7aa7781d5e3495b5dff86e4fd1983a8b8a0e41
|
@@ -332,7 +332,8 @@
|
|
332
332
|
transition: all .2s ease
|
333
333
|
vertical-align: middle
|
334
334
|
width: 20px
|
335
|
-
@extend .icon
|
335
|
+
@extend .icon
|
336
|
+
content: "\f120"
|
336
337
|
|
337
338
|
input[type="checkbox"]:checked + label:after
|
338
339
|
transform: scale(1)
|
@@ -755,13 +756,14 @@ input.datepicker
|
|
755
756
|
position: relative
|
756
757
|
text-align: left
|
757
758
|
width: 100%
|
759
|
+
@extend .icon-upload-outline
|
758
760
|
|
759
761
|
&:before
|
760
762
|
color: #bbb
|
761
763
|
display: block
|
762
764
|
font-weight: 400
|
763
765
|
padding: 6px 0
|
764
|
-
@extend .icon
|
766
|
+
@extend .icon
|
765
767
|
font-size: 28px
|
766
768
|
transition: color .2s ease
|
767
769
|
vertical-align: middle
|
@@ -769,7 +771,8 @@ input.datepicker
|
|
769
771
|
&:after
|
770
772
|
animation: "rotate" 2s linear infinite
|
771
773
|
color: #bbb
|
772
|
-
|
774
|
+
content: "\f131"
|
775
|
+
@extend .icon
|
773
776
|
display: none
|
774
777
|
font-size: 36px
|
775
778
|
height: 50px
|
@@ -197,7 +197,8 @@
|
|
197
197
|
top: 0
|
198
198
|
width: 100%
|
199
199
|
z-index: 3
|
200
|
-
@extend .icon
|
200
|
+
@extend .icon
|
201
|
+
content: "\f120"
|
201
202
|
|
202
203
|
.item.attachment
|
203
204
|
height: 60px
|
@@ -260,9 +261,10 @@
|
|
260
261
|
font-weight: normal
|
261
262
|
line-height: 130px
|
262
263
|
vertical-align: middle
|
263
|
-
@extend .icon
|
264
|
+
@extend .icon
|
264
265
|
display: none
|
265
266
|
font-size: 42px
|
267
|
+
content: "\f131"
|
266
268
|
|
267
269
|
.customfile.loading
|
268
270
|
&:before
|
@@ -98,10 +98,11 @@ table.table
|
|
98
98
|
font-size: 16px
|
99
99
|
position: absolute
|
100
100
|
right: 10px
|
101
|
-
@extend .icon
|
101
|
+
@extend .icon
|
102
|
+
content: "\f108"
|
102
103
|
|
103
104
|
&.table-column-sorted-desc:after
|
104
|
-
|
105
|
+
content: "\f105"
|
105
106
|
|
106
107
|
th.text-right .table-column-sorted
|
107
108
|
text-align: left
|
@@ -261,12 +262,14 @@ tr:hover .progress
|
|
261
262
|
.dataTable
|
262
263
|
th.sorting_desc
|
263
264
|
&:after
|
264
|
-
@extend .icon
|
265
|
+
@extend .icon
|
266
|
+
content: "\f105"
|
265
267
|
float: right
|
266
268
|
|
267
269
|
th.sorting_asc
|
268
270
|
&:after
|
269
|
-
@extend .icon
|
271
|
+
@extend .icon
|
272
|
+
content: "\f108"
|
270
273
|
float: right
|
271
274
|
|
272
275
|
.dataTables_paginate
|
@@ -46,56 +46,43 @@ trix-toolbar
|
|
46
46
|
text-indent: 0
|
47
47
|
|
48
48
|
&.trix-button--icon-bold
|
49
|
-
|
50
|
-
@extend .icon-bold:before
|
49
|
+
@extend .icon-bold
|
51
50
|
|
52
51
|
&.trix-button--icon-italic
|
53
|
-
|
54
|
-
@extend .icon-italic:before
|
52
|
+
@extend .icon-italic
|
55
53
|
|
56
54
|
&.trix-button--icon-strike
|
57
|
-
|
58
|
-
@extend .icon-strikethrough:before
|
55
|
+
@extend .icon-strikethrough
|
59
56
|
|
60
57
|
&.trix-button--icon-link
|
61
|
-
|
62
|
-
@extend .icon-link:before
|
58
|
+
@extend .icon-link
|
63
59
|
|
64
60
|
&.trix-button--icon-image
|
65
|
-
|
66
|
-
@extend .icon-image:before
|
61
|
+
@extend .icon-image
|
67
62
|
|
68
63
|
&.trix-button--icon-quote
|
69
|
-
|
70
|
-
@extend .icon-quote-right:before
|
64
|
+
@extend .icon-quote-right
|
71
65
|
|
72
66
|
&.trix-button--icon-code
|
73
|
-
|
74
|
-
@extend .icon-code:before
|
67
|
+
@extend .icon-code
|
75
68
|
|
76
69
|
&.trix-button--icon-bullet-list
|
77
|
-
|
78
|
-
@extend .icon-list:before
|
70
|
+
@extend .icon-list
|
79
71
|
|
80
72
|
&.trix-button--icon-number-list
|
81
|
-
|
82
|
-
@extend .icon-list-ol:before
|
73
|
+
@extend .icon-list-ol
|
83
74
|
|
84
75
|
&.trix-button--icon-decrease-nesting-level
|
85
|
-
|
86
|
-
@extend .icon-outdent:before
|
76
|
+
@extend .icon-outdent
|
87
77
|
|
88
78
|
&.trix-button--icon-increase-nesting-level
|
89
|
-
|
90
|
-
@extend .icon-indent:before
|
79
|
+
@extend .icon-indent
|
91
80
|
|
92
81
|
&.trix-button--icon-undo
|
93
|
-
|
94
|
-
@extend .icon-undo:before
|
82
|
+
@extend .icon-undo
|
95
83
|
|
96
84
|
&.trix-button--icon-redo
|
97
|
-
|
98
|
-
@extend .icon-redo:before
|
85
|
+
@extend .icon-redo
|
99
86
|
|
100
87
|
.trix-dialog
|
101
88
|
border-top-color: $primary-color
|
@@ -8,6 +8,14 @@ module Spina
|
|
8
8
|
if image.attached? && image.variable?
|
9
9
|
variant = image.variant(options)
|
10
10
|
main_app.rails_blob_representation_path(variant.blob.signed_id, variant.variation.key, variant.blob.filename)
|
11
|
+
elsif image.image?
|
12
|
+
# Allows SVGs to be displayed as they are not variable. Requires:
|
13
|
+
# - https://github.com/Dreamersoul/administrate-field-active_storage/issues/36#issuecomment-608446819 to be applied
|
14
|
+
#
|
15
|
+
# Additionally, https://github.com/hopsoft/active_storage_svg_sanitizer/
|
16
|
+
# should be added if users are able to upload their own SVG content due to:
|
17
|
+
# https://github.com/rails/rails/issues/34665#issuecomment-445888009
|
18
|
+
main_app.url_for(image)
|
11
19
|
else
|
12
20
|
"https://placehold.it/100x100.png"
|
13
21
|
end
|
data/app/models/spina/page.rb
CHANGED
@@ -106,10 +106,10 @@ module Spina
|
|
106
106
|
end
|
107
107
|
|
108
108
|
def localized_materialized_path
|
109
|
-
if
|
109
|
+
if Mobility.locale == I18n.default_locale
|
110
110
|
generate_materialized_path.prepend('/')
|
111
111
|
else
|
112
|
-
generate_materialized_path.prepend("/#{
|
112
|
+
generate_materialized_path.prepend("/#{Mobility.locale}/").gsub(/\/\z/, "")
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
data/config/locales/TH.yml
CHANGED
data/config/locales/bg.yml
CHANGED
data/config/locales/de.yml
CHANGED
data/config/locales/en.yml
CHANGED
data/config/locales/es.yml
CHANGED
@@ -37,7 +37,7 @@ es:
|
|
37
37
|
pages_description: Seleccione las páginas que quiere usar en esta navegación
|
38
38
|
spina/page:
|
39
39
|
ancestry: Página padre
|
40
|
-
created_at:
|
40
|
+
created_at: Creada el
|
41
41
|
description: Meta description
|
42
42
|
description_description: Esta descripción se mostrará en los resultados de búsqueda
|
43
43
|
description_placeholder: Descripción corta de tu página
|
@@ -60,9 +60,9 @@ es:
|
|
60
60
|
title_placeholder: Título de la página
|
61
61
|
view_template: Plantilla de página
|
62
62
|
spina/resource:
|
63
|
-
label:
|
64
|
-
order_by:
|
65
|
-
parent_page:
|
63
|
+
label: Etiqueta
|
64
|
+
order_by: Ordenar por
|
65
|
+
parent_page: Página padre
|
66
66
|
view_template:
|
67
67
|
spina/user:
|
68
68
|
admin: Administrador
|
@@ -91,7 +91,7 @@ es:
|
|
91
91
|
one: Usuario
|
92
92
|
other: Usuarios
|
93
93
|
spina:
|
94
|
-
ago:
|
94
|
+
ago: atrás
|
95
95
|
attachments:
|
96
96
|
insert: Insertar documento
|
97
97
|
insert_multiple: Insertar documentos
|
@@ -111,32 +111,32 @@ es:
|
|
111
111
|
success: Puede utilizar su nueva contraseña
|
112
112
|
unknown_user: Este usuario no existe
|
113
113
|
images:
|
114
|
-
back:
|
115
|
-
cannot_be_created:
|
116
|
-
choose_image:
|
117
|
-
choose_images:
|
118
|
-
delete:
|
119
|
-
delete_confirmation:
|
120
|
-
delete_folder:
|
114
|
+
back: Regresar
|
115
|
+
cannot_be_created: No puede ser creada
|
116
|
+
choose_image: Elegir imagen
|
117
|
+
choose_images: Elegir imágenes
|
118
|
+
delete: Borrar
|
119
|
+
delete_confirmation: Esta seguro que desea borrar esta <strong>imagen</strong>?
|
120
|
+
delete_folder: Borrar carpeta
|
121
121
|
done_organizing:
|
122
|
-
insert_photo:
|
123
|
-
insert_photos:
|
124
|
-
link:
|
125
|
-
new_folder:
|
126
|
-
organize:
|
127
|
-
remove_image:
|
128
|
-
upload:
|
129
|
-
upload_image:
|
122
|
+
insert_photo: Insertar foto
|
123
|
+
insert_photos: Insertar fotos
|
124
|
+
link: Enlace
|
125
|
+
new_folder: Nueva carpeta
|
126
|
+
organize: Organizar
|
127
|
+
remove_image: Eliminar imagen
|
128
|
+
upload: Subir imáneges
|
129
|
+
upload_image: Subir imagen
|
130
130
|
languages:
|
131
131
|
bg:
|
132
|
-
de:
|
132
|
+
de: Alemán
|
133
133
|
en: Inglés
|
134
|
-
es:
|
135
|
-
fr:
|
134
|
+
es: Español
|
135
|
+
fr: Francés
|
136
136
|
id:
|
137
|
-
it:
|
137
|
+
it: Italiano
|
138
138
|
nl: Holandés
|
139
|
-
pl:
|
139
|
+
pl: Polaco
|
140
140
|
pt-BR:
|
141
141
|
ro:
|
142
142
|
ru:
|
@@ -149,7 +149,7 @@ es:
|
|
149
149
|
main_menu: Menú principal
|
150
150
|
media_library:
|
151
151
|
attachments: Documentos
|
152
|
-
images:
|
152
|
+
images: Imágenes
|
153
153
|
photos: Imágenes
|
154
154
|
modal:
|
155
155
|
agree: Si, estoy seguro
|
@@ -185,7 +185,7 @@ es:
|
|
185
185
|
photos:
|
186
186
|
cannot_be_created: 'Tu imagen no puede ser procesada:'
|
187
187
|
choose_images: Seleccionar imágenes
|
188
|
-
delete:
|
188
|
+
delete: Borrar
|
189
189
|
delete_confirmation: Seguro que deseas eliminar ésta <strong>imagen</strong>?
|
190
190
|
delete_folder: Borrar carpeta
|
191
191
|
done_organizing: Terminar la organización
|
@@ -194,6 +194,7 @@ es:
|
|
194
194
|
link: 'URL de tu imagen:'
|
195
195
|
new_folder: Nueva carpeta
|
196
196
|
organize: Organizar imágenes
|
197
|
+
rename_folder: Renombrar carpeta
|
197
198
|
select_images:
|
198
199
|
upload_image: Subir una imagen
|
199
200
|
preferences:
|
@@ -228,11 +229,11 @@ es:
|
|
228
229
|
delete_confirmation: Estás seguro que deseas eliminar al usuario <strong>%{user}</strong>?
|
229
230
|
new: Nuevo usuario
|
230
231
|
save: Guardar usuario
|
231
|
-
visit_page:
|
232
|
+
visit_page: Visitar página
|
232
233
|
website:
|
233
234
|
all_pages: Todas las páginas
|
234
235
|
documents: Documentos
|
235
|
-
images:
|
236
|
+
images: Imágenes
|
236
237
|
media_library: Biblioteca de medios
|
237
238
|
media_library_description: Aquí encontrarás todas tus imágenes y documentos
|
238
239
|
pages: Páginas
|
data/config/locales/fr.yml
CHANGED
data/config/locales/id.yml
CHANGED
data/config/locales/it.yml
CHANGED
data/config/locales/nl.yml
CHANGED
data/config/locales/pl.yml
CHANGED
data/config/locales/pt-BR.yml
CHANGED
data/config/locales/ro.yml
CHANGED
data/config/locales/ru.yml
CHANGED
data/config/locales/sv.yml
CHANGED
data/config/locales/tr.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
data/lib/spina/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spina
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bram Jetten
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|