spina 1.0.3 → 1.1.0
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/README.md +1 -1
- data/Rakefile +5 -14
- data/app/assets/config/spina/manifest.js +5 -0
- data/app/assets/config/spina_manifest.js +5 -0
- data/app/assets/images/spina/arrow-left.svg +1 -0
- data/app/assets/images/spina/arrow-right.svg +1 -0
- data/app/assets/images/spina/datepicker.svg +1 -0
- data/app/assets/images/spina/divider.svg +1 -0
- data/app/assets/images/spina/media_folder_placeholder.svg +1 -0
- data/app/assets/images/spina/spina.svg +1 -0
- data/app/assets/javascripts/spina/admin/application.js +1 -2
- data/app/assets/javascripts/spina/admin/controllers/gallery_select_controller.js +52 -0
- data/app/assets/javascripts/spina/admin/controllers/infinite_scroll_controller.js +2 -2
- data/app/assets/javascripts/spina/admin/controllers/page_collapse_controller.js +35 -0
- data/app/assets/javascripts/spina/admin/media_gallery.coffee +1 -1
- data/app/assets/javascripts/spina/admin/trix.coffee.erb +79 -5
- data/app/assets/javascripts/spina/admin/uploads.coffee +1 -1
- data/app/assets/stylesheets/spina.sass +8 -4
- data/app/assets/stylesheets/spina/_buttons.sass +1 -0
- data/app/assets/stylesheets/spina/_forms.sass +1 -1
- data/app/assets/stylesheets/spina/_gallery.sass +45 -12
- data/app/assets/stylesheets/spina/_sortable_lists.sass +7 -0
- data/app/assets/stylesheets/spina/_trix_custom.sass +227 -0
- data/app/assets/stylesheets/spina/admin/{application.sass → application.css.sass} +0 -0
- data/app/controllers/concerns/spina/frontend.rb +5 -5
- data/app/controllers/spina/admin/accounts_controller.rb +2 -1
- data/app/controllers/spina/admin/images_controller.rb +1 -1
- data/app/controllers/spina/admin/media_picker_controller.rb +14 -2
- data/app/controllers/spina/admin/navigations_controller.rb +9 -7
- data/app/controllers/spina/admin/pages_controller.rb +16 -11
- data/app/controllers/spina/admin/password_resets_controller.rb +2 -2
- data/app/controllers/spina/admin/resources_controller.rb +9 -7
- data/app/controllers/spina/admin/settings_controller.rb +1 -1
- data/app/controllers/spina/admin/users_controller.rb +8 -7
- data/app/controllers/spina/pages_controller.rb +1 -3
- data/app/helpers/spina/admin/pages_helper.rb +2 -2
- data/app/helpers/spina/images_helper.rb +1 -1
- data/app/models/spina/account.rb +14 -6
- data/app/models/spina/attachment.rb +3 -3
- data/app/models/spina/image.rb +10 -1
- data/app/models/spina/image_collection.rb +3 -3
- data/app/models/spina/line.rb +1 -1
- data/app/models/spina/navigation_item.rb +2 -1
- data/app/models/spina/page.rb +11 -6
- data/app/models/spina/resource.rb +11 -0
- data/app/models/spina/text.rb +1 -1
- data/app/presenters/spina/menu_presenter.rb +74 -0
- data/app/views/layouts/spina/admin/admin.html.haml +1 -1
- data/app/views/spina/admin/accounts/social.html.haml +18 -0
- data/app/views/spina/admin/images/_form.html.haml +1 -1
- data/app/views/spina/admin/images/_image.html.haml +3 -5
- data/app/views/spina/admin/media_folders/_media_folder.html.haml +2 -2
- data/app/views/spina/admin/media_folders/show.html.haml +1 -1
- data/app/views/spina/admin/media_picker/_modal.html.haml +51 -14
- data/app/views/spina/admin/media_picker/select.js.erb +4 -2
- data/app/views/spina/admin/pages/_form.html.haml +1 -1
- data/app/views/spina/admin/pages/children.html.haml +4 -0
- data/app/views/spina/admin/partables/lines/_form.html.haml +1 -1
- data/app/views/spina/admin/partables/texts/_form.html.haml +4 -1
- data/app/views/spina/admin/password_resets/edit.html.haml +1 -1
- data/app/views/spina/admin/password_resets/new.html.haml +1 -1
- data/app/views/spina/admin/resources/edit.html.haml +1 -1
- data/app/views/spina/admin/resources/show.html.haml +13 -3
- data/app/views/spina/admin/sessions/new.html.haml +1 -1
- data/app/views/spina/admin/shared/_primary_navigation.html.haml +1 -1
- data/app/views/spina/admin/shared/_rich_text_field.html.haml +1 -32
- data/app/views/spina/shared/_admin_bar.html.haml +1 -1
- data/app/views/spina/shared/_social.html.haml +2 -2
- data/config/locales/de.yml +3 -0
- data/config/locales/en.yml +4 -0
- data/config/locales/es.yml +3 -0
- data/config/locales/fr.yml +3 -0
- data/config/locales/it.yml +3 -0
- data/config/locales/nl.yml +4 -0
- data/config/locales/pt-BR.yml +20 -1
- data/config/locales/ru.yml +3 -0
- data/config/locales/tr.yml +3 -0
- data/config/locales/zh-CN.yml +3 -0
- data/config/routes.rb +1 -0
- data/lib/generators/spina/install_generator.rb +10 -10
- data/lib/generators/spina/templates/app/views/default/shared/_navigation.html.haml +2 -3
- data/lib/generators/spina/templates/app/views/demo/pages/demo.html.haml +4 -3
- data/lib/generators/spina/templates/app/views/demo/shared/_navigation.html.haml +2 -3
- data/lib/generators/spina/templates/app/views/layouts/default/application.html.haml +0 -1
- data/lib/generators/spina/templates/app/views/layouts/demo/application.html.haml +0 -1
- data/lib/generators/spina/templates/config/initializers/mobility.rb +0 -1
- data/lib/spina.rb +1 -0
- data/lib/spina/engine.rb +1 -1
- data/lib/spina/railtie.rb +9 -0
- data/lib/spina/theme.rb +2 -1
- data/lib/spina/version.rb +1 -1
- data/lib/tasks/spina_tasks.rake +8 -2
- data/vendor/assets/javascripts/spina/trix.js +9 -9
- data/vendor/assets/stylesheets/spina/_normalize.scss +1 -1
- data/vendor/assets/stylesheets/spina/_trix.css +369 -0
- metadata +39 -21
- data/app/assets/images/spina/arrow-left.png +0 -0
- data/app/assets/images/spina/arrow-right.png +0 -0
- data/app/assets/images/spina/datepicker.png +0 -0
- data/app/assets/images/spina/divider.png +0 -0
- data/app/assets/images/spina/media_folder_placeholder.png +0 -0
- data/app/assets/images/spina/spina-large.png +0 -0
- data/app/assets/javascripts/spina/admin/galleryselect.coffee +0 -20
- data/app/assets/stylesheets/spina/_trix.sass +0 -102
- data/config/initializers/assets.rb +0 -6
- data/config/initializers/time_formats.rb +0 -1
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.0
|
4
|
+
version: 1.1.0
|
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: 2019-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '6.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pg
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bcrypt
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,14 +184,14 @@ dependencies:
|
|
170
184
|
requirements:
|
171
185
|
- - ">="
|
172
186
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
187
|
+
version: 0.8.9
|
174
188
|
type: :runtime
|
175
189
|
prerelease: false
|
176
190
|
version_requirements: !ruby/object:Gem::Requirement
|
177
191
|
requirements:
|
178
192
|
- - ">="
|
179
193
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.
|
194
|
+
version: 0.8.9
|
181
195
|
- !ruby/object:Gem::Dependency
|
182
196
|
name: rack-rewrite
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -207,13 +221,13 @@ dependencies:
|
|
207
221
|
- !ruby/object:Gem::Version
|
208
222
|
version: 1.0.0
|
209
223
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
224
|
+
name: font_awesome5_rails
|
211
225
|
requirement: !ruby/object:Gem::Requirement
|
212
226
|
requirements:
|
213
227
|
- - ">="
|
214
228
|
- !ruby/object:Gem::Version
|
215
229
|
version: '0'
|
216
|
-
type: :
|
230
|
+
type: :runtime
|
217
231
|
prerelease: false
|
218
232
|
version_requirements: !ruby/object:Gem::Requirement
|
219
233
|
requirements:
|
@@ -229,6 +243,8 @@ extra_rdoc_files: []
|
|
229
243
|
files:
|
230
244
|
- README.md
|
231
245
|
- Rakefile
|
246
|
+
- app/assets/config/spina/manifest.js
|
247
|
+
- app/assets/config/spina_manifest.js
|
232
248
|
- app/assets/fonts/spina/ics_spina.eot
|
233
249
|
- app/assets/fonts/spina/ics_spina.svg
|
234
250
|
- app/assets/fonts/spina/ics_spina.ttf
|
@@ -294,21 +310,22 @@ files:
|
|
294
310
|
- app/assets/icons/spina/trash.svg
|
295
311
|
- app/assets/icons/spina/upload-outline.svg
|
296
312
|
- app/assets/icons/spina/users-outline.svg
|
297
|
-
- app/assets/images/spina/arrow-left.
|
298
|
-
- app/assets/images/spina/arrow-right.
|
299
|
-
- app/assets/images/spina/datepicker.
|
300
|
-
- app/assets/images/spina/divider.
|
301
|
-
- app/assets/images/spina/media_folder_placeholder.
|
302
|
-
- app/assets/images/spina/spina-large.png
|
313
|
+
- app/assets/images/spina/arrow-left.svg
|
314
|
+
- app/assets/images/spina/arrow-right.svg
|
315
|
+
- app/assets/images/spina/datepicker.svg
|
316
|
+
- app/assets/images/spina/divider.svg
|
317
|
+
- app/assets/images/spina/media_folder_placeholder.svg
|
303
318
|
- app/assets/images/spina/spina.png
|
319
|
+
- app/assets/images/spina/spina.svg
|
304
320
|
- app/assets/javascripts/spina/admin/account.coffee
|
305
321
|
- app/assets/javascripts/spina/admin/application.js
|
306
322
|
- app/assets/javascripts/spina/admin/confirm_delete.coffee.erb
|
323
|
+
- app/assets/javascripts/spina/admin/controllers/gallery_select_controller.js
|
307
324
|
- app/assets/javascripts/spina/admin/controllers/image_form_controller.js
|
308
325
|
- app/assets/javascripts/spina/admin/controllers/infinite_scroll_controller.js
|
326
|
+
- app/assets/javascripts/spina/admin/controllers/page_collapse_controller.js
|
309
327
|
- app/assets/javascripts/spina/admin/dropdown.coffee
|
310
328
|
- app/assets/javascripts/spina/admin/forms.coffee
|
311
|
-
- app/assets/javascripts/spina/admin/galleryselect.coffee
|
312
329
|
- app/assets/javascripts/spina/admin/media_gallery.coffee
|
313
330
|
- app/assets/javascripts/spina/admin/modal.coffee
|
314
331
|
- app/assets/javascripts/spina/admin/navigation.coffee
|
@@ -336,9 +353,9 @@ files:
|
|
336
353
|
- app/assets/stylesheets/spina/_notifications.sass
|
337
354
|
- app/assets/stylesheets/spina/_sortable_lists.sass
|
338
355
|
- app/assets/stylesheets/spina/_tables.sass
|
339
|
-
- app/assets/stylesheets/spina/
|
356
|
+
- app/assets/stylesheets/spina/_trix_custom.sass
|
340
357
|
- app/assets/stylesheets/spina/_wizard.sass
|
341
|
-
- app/assets/stylesheets/spina/admin/application.sass
|
358
|
+
- app/assets/stylesheets/spina/admin/application.css.sass
|
342
359
|
- app/assets/stylesheets/spina/application.sass
|
343
360
|
- app/assets/stylesheets/spina_front_end.sass
|
344
361
|
- app/controllers/concerns/spina/frontend.rb
|
@@ -393,6 +410,7 @@ files:
|
|
393
410
|
- app/models/spina/structure_part.rb
|
394
411
|
- app/models/spina/text.rb
|
395
412
|
- app/models/spina/user.rb
|
413
|
+
- app/presenters/spina/menu_presenter.rb
|
396
414
|
- app/views/dummy/show.html.haml
|
397
415
|
- app/views/layouts/spina/admin/admin.html.haml
|
398
416
|
- app/views/layouts/spina/admin/media_library.html.haml
|
@@ -440,6 +458,7 @@ files:
|
|
440
458
|
- app/views/spina/admin/pages/_form_page_seo.html.haml
|
441
459
|
- app/views/spina/admin/pages/_page.html.haml
|
442
460
|
- app/views/spina/admin/pages/_page_nested_list.html.haml
|
461
|
+
- app/views/spina/admin/pages/children.html.haml
|
443
462
|
- app/views/spina/admin/pages/create.js.coffee
|
444
463
|
- app/views/spina/admin/pages/edit.html.haml
|
445
464
|
- app/views/spina/admin/pages/index.html.haml
|
@@ -485,8 +504,6 @@ files:
|
|
485
504
|
- app/views/spina/user_mailer/forgot_password.html.erb
|
486
505
|
- app/views/spina/user_mailer/forgot_password.txt.erb
|
487
506
|
- config/fontcustom.yml
|
488
|
-
- config/initializers/assets.rb
|
489
|
-
- config/initializers/time_formats.rb
|
490
507
|
- config/locales/TH.yml
|
491
508
|
- config/locales/bg.yml
|
492
509
|
- config/locales/de.yml
|
@@ -537,6 +554,7 @@ files:
|
|
537
554
|
- lib/spina/engine.rb
|
538
555
|
- lib/spina/fontcustom/_ics_spina.scss
|
539
556
|
- lib/spina/plugin.rb
|
557
|
+
- lib/spina/railtie.rb
|
540
558
|
- lib/spina/theme.rb
|
541
559
|
- lib/spina/version.rb
|
542
560
|
- lib/tasks/spina_tasks.rake
|
@@ -548,6 +566,7 @@ files:
|
|
548
566
|
- vendor/assets/javascripts/spina/trix.js
|
549
567
|
- vendor/assets/stylesheets/spina/_animate.scss
|
550
568
|
- vendor/assets/stylesheets/spina/_normalize.scss
|
569
|
+
- vendor/assets/stylesheets/spina/_trix.css
|
551
570
|
homepage: http://www.denkgroot.com
|
552
571
|
licenses:
|
553
572
|
- MIT
|
@@ -567,8 +586,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
567
586
|
- !ruby/object:Gem::Version
|
568
587
|
version: '0'
|
569
588
|
requirements: []
|
570
|
-
|
571
|
-
rubygems_version: 2.7.3
|
589
|
+
rubygems_version: 3.0.1
|
572
590
|
signing_key:
|
573
591
|
specification_version: 4
|
574
592
|
summary: Spina
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,20 +0,0 @@
|
|
1
|
-
$(document).on 'click', '.gallery .item:not(.item-uploader)', ->
|
2
|
-
gallery = $(this).parents('.gallery')
|
3
|
-
|
4
|
-
if gallery.data('multiselect') != undefined
|
5
|
-
$(this).toggleClass('selected')
|
6
|
-
checkbox = $(this).find('input:checkbox')
|
7
|
-
checkbox.prop("checked", !checkbox.prop("checked"))
|
8
|
-
$form = $(this).closest('form')
|
9
|
-
count = $form.find('.item.selected').size()
|
10
|
-
if count > 0
|
11
|
-
$form.find('.gallery-select-counter').text("(#{count})")
|
12
|
-
else
|
13
|
-
$form.find('.gallery-select-counter').text("")
|
14
|
-
else
|
15
|
-
checked = $(this).find('input').prop('checked')
|
16
|
-
gallery.find('.item').removeClass('selected')
|
17
|
-
gallery.find('.item input').prop('checked', false)
|
18
|
-
$(this).addClass('selected') unless checked
|
19
|
-
$(this).find('input').prop('checked', !checked)
|
20
|
-
$(this).closest('form').submit()
|
@@ -1,102 +0,0 @@
|
|
1
|
-
trix-toolbar
|
2
|
-
margin-bottom: 6px
|
3
|
-
|
4
|
-
.button-group
|
5
|
-
margin-right: 10px
|
6
|
-
|
7
|
-
.button.trix-active
|
8
|
-
background: $primary-color
|
9
|
-
color: #fff
|
10
|
-
|
11
|
-
.trix-dialog__link-fields
|
12
|
-
clear: both
|
13
|
-
|
14
|
-
.trix-dialog__link-fields input
|
15
|
-
margin-top: 6px
|
16
|
-
|
17
|
-
.trix-dialog__link-fields .button-group input
|
18
|
-
margin-top: 10px
|
19
|
-
|
20
|
-
trix-editor
|
21
|
-
font-size: 16px
|
22
|
-
line-height: 18px
|
23
|
-
font-weight: normal
|
24
|
-
min-height: 100px
|
25
|
-
|
26
|
-
h1, h2, h3, h4, h5, h6
|
27
|
-
padding-left: 24px
|
28
|
-
position: relative
|
29
|
-
|
30
|
-
&:after
|
31
|
-
color: #ccc
|
32
|
-
content: "H1"
|
33
|
-
font-size: 12px
|
34
|
-
font-weight: bold
|
35
|
-
left: 0px
|
36
|
-
line-height: inherit
|
37
|
-
position: absolute
|
38
|
-
top: 0px
|
39
|
-
|
40
|
-
h1, h2, h3, h4, h5, h6
|
41
|
-
font-size: 24px
|
42
|
-
font-weight: 600
|
43
|
-
line-height: 38px
|
44
|
-
|
45
|
-
h2
|
46
|
-
font-size: 22px
|
47
|
-
line-height: 34px
|
48
|
-
|
49
|
-
h3
|
50
|
-
font-size: 20px
|
51
|
-
line-height: 30px
|
52
|
-
|
53
|
-
h4
|
54
|
-
font-size: 18px
|
55
|
-
line-height: 26px
|
56
|
-
|
57
|
-
h5
|
58
|
-
font-size: 16px
|
59
|
-
line-height: 22px
|
60
|
-
|
61
|
-
h6
|
62
|
-
font-size: 14px
|
63
|
-
line-height: 18px
|
64
|
-
|
65
|
-
h2:after
|
66
|
-
content: "H2"
|
67
|
-
|
68
|
-
h3:after
|
69
|
-
content: "H3"
|
70
|
-
|
71
|
-
h4:after
|
72
|
-
content: "H4"
|
73
|
-
|
74
|
-
h5:after
|
75
|
-
content: "H5"
|
76
|
-
|
77
|
-
h6:after
|
78
|
-
content: "H6"
|
79
|
-
|
80
|
-
a
|
81
|
-
text-decoration: underline
|
82
|
-
|
83
|
-
p
|
84
|
-
margin: 0
|
85
|
-
|
86
|
-
ul
|
87
|
-
list-style: disc
|
88
|
-
padding-left: 20px
|
89
|
-
|
90
|
-
figure.attachment
|
91
|
-
margin-bottom: 12px
|
92
|
-
margin-top: 12px
|
93
|
-
max-width: 200px
|
94
|
-
overflow: hidden
|
95
|
-
|
96
|
-
figcaption, .attachment__remove
|
97
|
-
display: none
|
98
|
-
|
99
|
-
img
|
100
|
-
border-radius: 3px
|
101
|
-
display: block
|
102
|
-
width: 100%
|
@@ -1 +0,0 @@
|
|
1
|
-
Time::DATE_FORMATS[:w3c] = lambda {|time| time.utc.strftime("%Y-%m-%dT%H:%M:%S+00:00") }
|