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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f6ea1274d3edca1b6b6f9ffaffd184a6c6bc6ae85a320fc8f9a00cccf111f05
4
- data.tar.gz: 3c5414597d9275ce47b6dbf087635ac7fbb216e520fda14dddcb9fa4879da1de
3
+ metadata.gz: 414bc5f87303a017e42900d1f064457e8649f11088b3b9cfd49bccb8a327e145
4
+ data.tar.gz: a922eb6f603cbc71de8fe8e353aba261a4d1ce998ad2e40a100feeda27b0b881
5
5
  SHA512:
6
- metadata.gz: 106984141531ad65222386d20c585bba86712639000fbafb67d5d8155650dcd739fee37f32a1018ad917f0f111f2fc9c5618b62f6134dcad177bd70854dd095e
7
- data.tar.gz: 888a7ded76e1ea59007de8096e31d052721ddc1d9fd2fa15ea98968d2391544abd3c7a4b65cc2157c8de44052a191260b5bd6f145794914850b532e369c0c747
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, .icon-large-check:before
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, .icon-upload-outline:before
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
- @extend .icon, .icon-refresh:before
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, .icon-large-check:before
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, .icon-refresh:before
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, .icon-caret-up:before
101
+ @extend .icon
102
+ content: "\f108"
102
103
 
103
104
  &.table-column-sorted-desc:after
104
- @extend .icon-caret-down:before
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, .icon-caret-down:before
265
+ @extend .icon
266
+ content: "\f105"
265
267
  float: right
266
268
 
267
269
  th.sorting_asc
268
270
  &:after
269
- @extend .icon, .icon-caret-up:before
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
- &::before
50
- @extend .icon-bold:before
49
+ @extend .icon-bold
51
50
 
52
51
  &.trix-button--icon-italic
53
- &::before
54
- @extend .icon-italic:before
52
+ @extend .icon-italic
55
53
 
56
54
  &.trix-button--icon-strike
57
- &::before
58
- @extend .icon-strikethrough:before
55
+ @extend .icon-strikethrough
59
56
 
60
57
  &.trix-button--icon-link
61
- &::before
62
- @extend .icon-link:before
58
+ @extend .icon-link
63
59
 
64
60
  &.trix-button--icon-image
65
- &::before
66
- @extend .icon-image:before
61
+ @extend .icon-image
67
62
 
68
63
  &.trix-button--icon-quote
69
- &::before
70
- @extend .icon-quote-right:before
64
+ @extend .icon-quote-right
71
65
 
72
66
  &.trix-button--icon-code
73
- &::before
74
- @extend .icon-code:before
67
+ @extend .icon-code
75
68
 
76
69
  &.trix-button--icon-bullet-list
77
- &::before
78
- @extend .icon-list:before
70
+ @extend .icon-list
79
71
 
80
72
  &.trix-button--icon-number-list
81
- &::before
82
- @extend .icon-list-ol:before
73
+ @extend .icon-list-ol
83
74
 
84
75
  &.trix-button--icon-decrease-nesting-level
85
- &::before
86
- @extend .icon-outdent:before
76
+ @extend .icon-outdent
87
77
 
88
78
  &.trix-button--icon-increase-nesting-level
89
- &::before
90
- @extend .icon-indent:before
79
+ @extend .icon-indent
91
80
 
92
81
  &.trix-button--icon-undo
93
- &::before
94
- @extend .icon-undo:before
82
+ @extend .icon-undo
95
83
 
96
84
  &.trix-button--icon-redo
97
- &::before
98
- @extend .icon-redo:before
85
+ @extend .icon-redo
99
86
 
100
87
  .trix-dialog
101
88
  border-top-color: $primary-color
@@ -42,7 +42,7 @@ module Spina
42
42
  render layout: 'spina/admin/admin'
43
43
  end
44
44
 
45
- def update
45
+ def update
46
46
  respond_to do |format|
47
47
  Mobility.locale = @locale
48
48
  if @page.update(page_params)
@@ -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
@@ -106,10 +106,10 @@ module Spina
106
106
  end
107
107
 
108
108
  def localized_materialized_path
109
- if I18n.locale == I18n.default_locale
109
+ if Mobility.locale == I18n.default_locale
110
110
  generate_materialized_path.prepend('/')
111
111
  else
112
- generate_materialized_path.prepend("/#{I18n.locale}/").gsub(/\/\z/, "")
112
+ generate_materialized_path.prepend("/#{Mobility.locale}/").gsub(/\/\z/, "")
113
113
  end
114
114
  end
115
115
 
@@ -194,6 +194,7 @@ th:
194
194
  link: 'URL รูปภาพของคุณ:'
195
195
  new_folder: โฟลเดอร์ใหม่
196
196
  organize: จัดระเบียบรูปภาพ
197
+ rename_folder:
197
198
  select_images: เลือกรูปภาพ
198
199
  upload_image: อัปโหลดรูปภาพ
199
200
  preferences:
@@ -194,6 +194,7 @@ bg:
194
194
  link: 'URL на изображението:'
195
195
  new_folder: Нова папка
196
196
  organize: Организиране на изображения
197
+ rename_folder:
197
198
  select_images:
198
199
  upload_image: Качване на изображение
199
200
  preferences:
@@ -194,6 +194,7 @@ de:
194
194
  link: 'URL des Bildes:'
195
195
  new_folder: Neuer Ordner
196
196
  organize: Organisiere Bilder
197
+ rename_folder:
197
198
  select_images:
198
199
  upload_image: Bild hochladen
199
200
  preferences:
@@ -194,6 +194,7 @@ en:
194
194
  link: 'URL of your image:'
195
195
  new_folder: New folder
196
196
  organize: Organize images
197
+ rename_folder: Rename folder
197
198
  select_images: Select images
198
199
  upload_image: Upload an image
199
200
  preferences:
@@ -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: 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
@@ -194,6 +194,7 @@ fr:
194
194
  link: 'URL de votre image:'
195
195
  new_folder: Nouveau dossier
196
196
  organize: Organiser les images
197
+ rename_folder:
197
198
  select_images:
198
199
  upload_image: Envoyer une image
199
200
  preferences:
@@ -194,6 +194,7 @@ id:
194
194
  link: 'URL gambar Anda:'
195
195
  new_folder: Direktori baru
196
196
  organize: Mengatur gambar
197
+ rename_folder:
197
198
  select_images:
198
199
  upload_image: Unggah gambar
199
200
  preferences:
@@ -194,6 +194,7 @@ it:
194
194
  link: 'URL immagine:'
195
195
  new_folder: Nuova cartella
196
196
  organize: Organizza immagini
197
+ rename_folder:
197
198
  select_images: Seleziona immagini
198
199
  upload_image: Carica un immagine
199
200
  preferences:
@@ -194,6 +194,7 @@ nl:
194
194
  link: 'De link naar de afbeelding is:'
195
195
  new_folder: Nieuwe folder
196
196
  organize: Organiseren
197
+ rename_folder: Folder hernoemen
197
198
  select_images: Kies afbeeldingen
198
199
  upload_image: Upload een afbeelding
199
200
  preferences:
@@ -194,6 +194,7 @@ pl:
194
194
  link: 'URL obrazka:'
195
195
  new_folder: Nowy folder
196
196
  organize: Uporządkuj obrazki
197
+ rename_folder:
197
198
  select_images:
198
199
  upload_image: Wgraj obrazek
199
200
  preferences:
@@ -194,6 +194,7 @@ pt-BR:
194
194
  link: 'URL da sua imagem:'
195
195
  new_folder: Nova pasta
196
196
  organize: Organizar imagens
197
+ rename_folder:
197
198
  select_images:
198
199
  upload_image: Enviar uma imagem
199
200
  preferences:
@@ -194,6 +194,7 @@ ro:
194
194
  link: 'URL-ul imaginii:'
195
195
  new_folder: Director nou
196
196
  organize: Organizează imagini
197
+ rename_folder:
197
198
  select_images:
198
199
  upload_image: Încarcă o imagine
199
200
  preferences:
@@ -202,6 +202,7 @@ ru:
202
202
  link: 'URL изображения:'
203
203
  new_folder:
204
204
  organize:
205
+ rename_folder:
205
206
  select_images:
206
207
  upload_image:
207
208
  preferences:
@@ -194,6 +194,7 @@ sv:
194
194
  link: 'URL till din bild:'
195
195
  new_folder: Ny mapp
196
196
  organize: Organisera bilder
197
+ rename_folder:
197
198
  select_images:
198
199
  upload_image: Ladda up en bild
199
200
  preferences:
@@ -194,6 +194,7 @@ tr:
194
194
  link: 'Resim linki:'
195
195
  new_folder:
196
196
  organize:
197
+ rename_folder:
197
198
  select_images:
198
199
  upload_image:
199
200
  preferences:
@@ -194,6 +194,7 @@ zh-CN:
194
194
  link: 图片链接
195
195
  new_folder:
196
196
  organize:
197
+ rename_folder:
197
198
  select_images:
198
199
  upload_image:
199
200
  preferences:
@@ -1,3 +1,3 @@
1
1
  module Spina
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
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.3
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: 2019-12-25 00:00:00.000000000 Z
11
+ date: 2020-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails