spina 0.11.1 → 0.12.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 +41 -12
- data/Rakefile +1 -0
- data/app/assets/fonts/spina/ics_spina.eot +0 -0
- data/app/assets/fonts/spina/ics_spina.svg +5 -3
- data/app/assets/fonts/spina/ics_spina.ttf +0 -0
- data/app/assets/fonts/spina/ics_spina.woff +0 -0
- data/app/assets/icons/spina/lock.svg +3 -0
- data/app/assets/icons/spina/preview/ics_spina-preview.html +16 -1
- data/app/assets/javascripts/spina/admin/application.coffee.erb +3 -25
- data/app/assets/javascripts/spina/admin/navigation.coffee +7 -0
- data/app/assets/javascripts/spina/admin/pages.coffee.erb +1 -13
- data/app/assets/javascripts/spina/admin/trix.coffee.erb +2 -1
- data/app/assets/stylesheets/spina/_admin_editing.sass +0 -4
- data/app/assets/stylesheets/spina/_buttons.sass +8 -8
- data/app/assets/stylesheets/spina/_configuration.sass +5 -1
- data/app/assets/stylesheets/spina/_custom_animations.sass +26 -26
- data/app/assets/stylesheets/spina/_fonts.sass +5 -1
- data/app/assets/stylesheets/spina/_forms.sass +66 -33
- data/app/assets/stylesheets/spina/_gallery.sass +32 -15
- data/app/assets/stylesheets/spina/_ics_spina.scss +1 -0
- data/app/assets/stylesheets/spina/_login.sass +10 -4
- data/app/assets/stylesheets/spina/_mixins.sass +5 -0
- data/app/assets/stylesheets/spina/_modal.sass +4 -4
- data/app/assets/stylesheets/spina/_notifications.sass +5 -5
- data/app/assets/stylesheets/spina/_sortable_lists.sass +9 -9
- data/app/assets/stylesheets/spina/_tables.sass +9 -9
- data/app/assets/stylesheets/spina/_wizard.sass +5 -5
- data/app/assets/stylesheets/spina/admin/application.sass +4 -1
- data/app/assets/stylesheets/spina/application.sass +0 -1
- data/app/assets/stylesheets/spina.sass +23 -27
- data/app/controllers/spina/admin/accounts_controller.rb +2 -7
- data/app/controllers/spina/admin/admin_controller.rb +8 -3
- data/app/controllers/spina/admin/attachments_controller.rb +0 -2
- data/app/controllers/spina/admin/navigations_controller.rb +3 -2
- data/app/controllers/spina/admin/pages_controller.rb +7 -8
- data/app/controllers/spina/admin/password_resets_controller.rb +49 -0
- data/app/controllers/spina/admin/photos_controller.rb +15 -34
- data/app/controllers/spina/admin/sessions_controller.rb +1 -1
- data/app/controllers/spina/admin/users_controller.rb +8 -9
- data/app/controllers/spina/application_controller.rb +3 -9
- data/app/controllers/spina/pages_controller.rb +3 -3
- data/app/helpers/spina/admin/pages_helper.rb +16 -23
- data/app/mailers/spina/user_mailer.rb +21 -0
- data/app/models/concerns/spina/optionable.rb +12 -0
- data/app/models/concerns/spina/part.rb +5 -1
- data/app/models/concerns/spina/partable.rb +20 -5
- data/app/models/concerns/spina/photo_collectable.rb +24 -0
- data/app/models/spina/account.rb +16 -6
- data/app/models/spina/layout_part.rb +1 -0
- data/app/models/spina/option.rb +17 -0
- data/app/models/spina/page.rb +36 -63
- data/app/models/spina/page_part.rb +1 -0
- data/app/models/spina/photo_collection.rb +1 -13
- data/app/models/spina/structure_item.rb +4 -8
- data/app/models/spina/structure_part.rb +2 -13
- data/app/models/spina/user.rb +1 -0
- data/app/presenters/spina/pages/menu_presenter.rb +18 -49
- data/app/views/layouts/spina/mail.html.erb +1 -0
- data/app/views/spina/admin/page_partables/{colors → options}/_form.html.haml +2 -3
- data/app/views/spina/admin/page_partables/photo_collections/_form.html.haml +7 -7
- data/app/views/spina/admin/page_partables/structures/_form.html.haml +7 -8
- data/app/views/spina/admin/pages/_form.html.haml +2 -2
- data/app/views/spina/admin/pages/_form_advanced.html.haml +2 -2
- data/app/views/spina/admin/password_resets/edit.html.haml +13 -0
- data/app/views/spina/admin/password_resets/new.html.haml +13 -0
- data/app/views/spina/admin/photos/_photo.html.haml +2 -1
- data/app/views/spina/admin/photos/{_wysihtml5_select.html.haml → _trix_select.html.haml} +2 -4
- data/app/views/spina/admin/photos/create.js.erb +3 -5
- data/app/views/spina/admin/photos/{wysihtml5_infinite_scroll.js.erb → trix_infinite_scroll.js.erb} +0 -2
- data/app/views/spina/admin/photos/{wysihtml5_insert.js.coffee → trix_insert.js.erb} +2 -2
- data/app/views/spina/admin/photos/trix_select.js.erb +3 -0
- data/app/views/spina/admin/sessions/new.html.haml +3 -1
- data/app/views/spina/admin/shared/_primary_navigation.html.haml +1 -1
- data/app/views/spina/admin/shared/_rich_text_field.html.haml +2 -1
- data/app/views/spina/admin/structure_items/_fields.html.haml +3 -3
- data/app/views/spina/admin/structure_partables/lines/_form.html.haml +5 -2
- data/app/views/spina/admin/structure_partables/options/_form.html.haml +7 -0
- data/app/views/spina/admin/structure_partables/photo_collections/_form.html.haml +12 -9
- data/app/views/spina/admin/structure_partables/photos/_form.html.haml +10 -7
- data/app/views/spina/admin/structure_partables/texts/_form.html.haml +5 -2
- data/app/views/spina/admin/users/_form.html.haml +1 -1
- data/app/views/spina/shared/_admin_bar.html.haml +1 -1
- data/app/views/spina/shared/_navigation.html.haml +1 -1
- data/app/views/spina/user_mailer/forgot_password.html.erb +1 -0
- data/app/views/spina/user_mailer/forgot_password.txt.erb +1 -0
- data/config/locales/en.yml +10 -0
- data/config/locales/nl.yml +2 -0
- data/config/routes.rb +5 -9
- data/db/migrate/1_create_spina_tables.rb +8 -7
- data/db/migrate/2_create_spina_translation_tables.rb +7 -26
- data/db/migrate/3_create_spina_navigations.rb +1 -1
- data/db/migrate/4_add_password_reset_token_to_spina_users.rb +6 -0
- data/db/migrate/5_remove_translated_columns.rb +11 -0
- data/db/migrate/6_create_spina_options.rb +8 -0
- data/lib/generators/spina/install_generator.rb +0 -22
- data/lib/generators/spina/templates/app/views/default/shared/_navigation.html.haml +1 -1
- data/lib/generators/spina/templates/app/views/demo/shared/_navigation.html.haml +1 -1
- data/lib/generators/spina/templates/config/initializers/themes/default.rb +9 -0
- data/lib/generators/spina/templates/config/initializers/themes/demo.rb +1 -9
- data/lib/spina/engine.rb +4 -3
- data/lib/spina/theme.rb +2 -1
- data/lib/spina/version.rb +1 -1
- data/lib/spina.rb +0 -23
- metadata +32 -69
- data/app/assets/images/spina/marker.png +0 -0
- data/app/assets/images/spina/mask.png +0 -0
- data/app/assets/images/spina/wheel.png +0 -0
- data/app/assets/stylesheets/spina/_cards.sass +0 -54
- data/app/assets/stylesheets/spina/_farbtastic.sass +0 -37
- data/app/assets/stylesheets/spina/_wysihtml5.sass +0 -79
- data/app/assets/stylesheets/spina/wysihtml5_textarea.sass +0 -14
- data/app/controllers/spina/admin/page_parts_controller.rb +0 -11
- data/app/helpers/spina/application_helper.rb +0 -30
- data/app/models/spina/ability.rb +0 -20
- data/app/models/spina/color.rb +0 -7
- data/app/presenters/spina/pages/breadcrumb.rb +0 -102
- data/app/views/layouts/spina/email.html.erb +0 -124
- data/app/views/spina/admin/layout_partables/colors/_form.html.haml +0 -4
- data/app/views/spina/admin/page_parts/_wysihtml5_link.html.haml +0 -12
- data/app/views/spina/admin/page_parts/insert_wysihtml5_link.js +0 -5
- data/app/views/spina/admin/page_parts/wysihtml5_link.js +0 -2
- data/app/views/spina/admin/photos/create_and_select.js.erb +0 -7
- data/app/views/spina/admin/photos/create_multiple.js.erb +0 -4
- data/app/views/spina/admin/photos/wysihtml5_select.js.erb +0 -3
- data/vendor/assets/javascripts/spina/jquery.farbtastic.js +0 -345
- data/vendor/assets/javascripts/spina/morris.js +0 -1767
- data/vendor/assets/javascripts/spina/raphael.js +0 -8111
- data/vendor/assets/javascripts/spina/wysihtml5.js +0 -269
- data/vendor/assets/javascripts/spina/wysihtml5_parser_rules.js +0 -551
- data/vendor/assets/stylesheets/spina/_morris.scss +0 -2
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spina
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bram Jetten
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-07-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -137,20 +137,6 @@ dependencies:
|
|
137
137
|
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
|
-
name: cancancan
|
142
|
-
requirement: !ruby/object:Gem::Requirement
|
143
|
-
requirements:
|
144
|
-
- - ">="
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: '0'
|
147
|
-
type: :runtime
|
148
|
-
prerelease: false
|
149
|
-
version_requirements: !ruby/object:Gem::Requirement
|
150
|
-
requirements:
|
151
|
-
- - ">="
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '0'
|
154
140
|
- !ruby/object:Gem::Dependency
|
155
141
|
name: ancestry
|
156
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,14 +199,14 @@ dependencies:
|
|
213
199
|
requirements:
|
214
200
|
- - "~>"
|
215
201
|
- !ruby/object:Gem::Version
|
216
|
-
version: 5.1.0.
|
202
|
+
version: 5.1.0.beta2
|
217
203
|
type: :runtime
|
218
204
|
prerelease: false
|
219
205
|
version_requirements: !ruby/object:Gem::Requirement
|
220
206
|
requirements:
|
221
207
|
- - "~>"
|
222
208
|
- !ruby/object:Gem::Version
|
223
|
-
version: 5.1.0.
|
209
|
+
version: 5.1.0.beta2
|
224
210
|
- !ruby/object:Gem::Dependency
|
225
211
|
name: rack-rewrite
|
226
212
|
requirement: !ruby/object:Gem::Requirement
|
@@ -236,33 +222,19 @@ dependencies:
|
|
236
222
|
- !ruby/object:Gem::Version
|
237
223
|
version: 1.5.0
|
238
224
|
- !ruby/object:Gem::Dependency
|
239
|
-
name:
|
225
|
+
name: factory_girl
|
240
226
|
requirement: !ruby/object:Gem::Requirement
|
241
227
|
requirements:
|
242
|
-
- - "
|
243
|
-
- !ruby/object:Gem::Version
|
244
|
-
version: '0'
|
245
|
-
type: :runtime
|
246
|
-
prerelease: false
|
247
|
-
version_requirements: !ruby/object:Gem::Requirement
|
248
|
-
requirements:
|
249
|
-
- - ">="
|
250
|
-
- !ruby/object:Gem::Version
|
251
|
-
version: '0'
|
252
|
-
- !ruby/object:Gem::Dependency
|
253
|
-
name: neat
|
254
|
-
requirement: !ruby/object:Gem::Requirement
|
255
|
-
requirements:
|
256
|
-
- - ">="
|
228
|
+
- - "~>"
|
257
229
|
- !ruby/object:Gem::Version
|
258
|
-
version: '0'
|
259
|
-
type: :
|
230
|
+
version: '4.0'
|
231
|
+
type: :development
|
260
232
|
prerelease: false
|
261
233
|
version_requirements: !ruby/object:Gem::Requirement
|
262
234
|
requirements:
|
263
|
-
- - "
|
235
|
+
- - "~>"
|
264
236
|
- !ruby/object:Gem::Version
|
265
|
-
version: '0'
|
237
|
+
version: '4.0'
|
266
238
|
description: CMS
|
267
239
|
email:
|
268
240
|
- bram@denkgroot.com
|
@@ -312,6 +284,7 @@ files:
|
|
312
284
|
- app/assets/icons/spina/large-check.svg
|
313
285
|
- app/assets/icons/spina/link.svg
|
314
286
|
- app/assets/icons/spina/list-ul.svg
|
287
|
+
- app/assets/icons/spina/lock.svg
|
315
288
|
- app/assets/icons/spina/mail-outline.svg
|
316
289
|
- app/assets/icons/spina/mail.svg
|
317
290
|
- app/assets/icons/spina/media-library.svg
|
@@ -341,11 +314,8 @@ files:
|
|
341
314
|
- app/assets/images/spina/danger-zone-ribbon.png
|
342
315
|
- app/assets/images/spina/datepicker.png
|
343
316
|
- app/assets/images/spina/divider.png
|
344
|
-
- app/assets/images/spina/marker.png
|
345
|
-
- app/assets/images/spina/mask.png
|
346
317
|
- app/assets/images/spina/spina.png
|
347
318
|
- app/assets/images/spina/spina_small.png
|
348
|
-
- app/assets/images/spina/wheel.png
|
349
319
|
- app/assets/javascripts/spina/admin/account.coffee
|
350
320
|
- app/assets/javascripts/spina/admin/application.coffee.erb
|
351
321
|
- app/assets/javascripts/spina/admin/confirm_delete.coffee.erb
|
@@ -364,16 +334,15 @@ files:
|
|
364
334
|
- app/assets/stylesheets/spina.sass
|
365
335
|
- app/assets/stylesheets/spina/_admin_editing.sass
|
366
336
|
- app/assets/stylesheets/spina/_buttons.sass
|
367
|
-
- app/assets/stylesheets/spina/_cards.sass
|
368
337
|
- app/assets/stylesheets/spina/_configuration.sass
|
369
338
|
- app/assets/stylesheets/spina/_custom_animations.sass
|
370
|
-
- app/assets/stylesheets/spina/_farbtastic.sass
|
371
339
|
- app/assets/stylesheets/spina/_fonts.sass
|
372
340
|
- app/assets/stylesheets/spina/_forms.sass
|
373
341
|
- app/assets/stylesheets/spina/_gallery.sass
|
374
342
|
- app/assets/stylesheets/spina/_ics_spina.scss
|
375
343
|
- app/assets/stylesheets/spina/_labels.sass
|
376
344
|
- app/assets/stylesheets/spina/_login.sass
|
345
|
+
- app/assets/stylesheets/spina/_mixins.sass
|
377
346
|
- app/assets/stylesheets/spina/_modal.sass
|
378
347
|
- app/assets/stylesheets/spina/_normalize.scss
|
379
348
|
- app/assets/stylesheets/spina/_notifications.sass
|
@@ -381,17 +350,15 @@ files:
|
|
381
350
|
- app/assets/stylesheets/spina/_tables.sass
|
382
351
|
- app/assets/stylesheets/spina/_trix.sass
|
383
352
|
- app/assets/stylesheets/spina/_wizard.sass
|
384
|
-
- app/assets/stylesheets/spina/_wysihtml5.sass
|
385
353
|
- app/assets/stylesheets/spina/admin/application.sass
|
386
354
|
- app/assets/stylesheets/spina/application.sass
|
387
|
-
- app/assets/stylesheets/spina/wysihtml5_textarea.sass
|
388
355
|
- app/controllers/concerns/spina/frontend.rb
|
389
356
|
- app/controllers/spina/admin/accounts_controller.rb
|
390
357
|
- app/controllers/spina/admin/admin_controller.rb
|
391
358
|
- app/controllers/spina/admin/attachments_controller.rb
|
392
359
|
- app/controllers/spina/admin/navigations_controller.rb
|
393
|
-
- app/controllers/spina/admin/page_parts_controller.rb
|
394
360
|
- app/controllers/spina/admin/pages_controller.rb
|
361
|
+
- app/controllers/spina/admin/password_resets_controller.rb
|
395
362
|
- app/controllers/spina/admin/photos_controller.rb
|
396
363
|
- app/controllers/spina/admin/sessions_controller.rb
|
397
364
|
- app/controllers/spina/admin/users_controller.rb
|
@@ -400,19 +367,20 @@ files:
|
|
400
367
|
- app/controllers/spina/sitemaps_controller.rb
|
401
368
|
- app/helpers/spina/admin/admin_helper.rb
|
402
369
|
- app/helpers/spina/admin/pages_helper.rb
|
403
|
-
- app/
|
370
|
+
- app/mailers/spina/user_mailer.rb
|
371
|
+
- app/models/concerns/spina/optionable.rb
|
404
372
|
- app/models/concerns/spina/part.rb
|
405
373
|
- app/models/concerns/spina/partable.rb
|
406
|
-
- app/models/spina/
|
374
|
+
- app/models/concerns/spina/photo_collectable.rb
|
407
375
|
- app/models/spina/account.rb
|
408
376
|
- app/models/spina/application_record.rb
|
409
377
|
- app/models/spina/attachment.rb
|
410
378
|
- app/models/spina/attachment_collection.rb
|
411
|
-
- app/models/spina/color.rb
|
412
379
|
- app/models/spina/layout_part.rb
|
413
380
|
- app/models/spina/line.rb
|
414
381
|
- app/models/spina/navigation.rb
|
415
382
|
- app/models/spina/navigation_item.rb
|
383
|
+
- app/models/spina/option.rb
|
416
384
|
- app/models/spina/page.rb
|
417
385
|
- app/models/spina/page_part.rb
|
418
386
|
- app/models/spina/photo.rb
|
@@ -424,7 +392,6 @@ files:
|
|
424
392
|
- app/models/spina/structure_part.rb
|
425
393
|
- app/models/spina/text.rb
|
426
394
|
- app/models/spina/user.rb
|
427
|
-
- app/presenters/spina/pages/breadcrumb.rb
|
428
395
|
- app/presenters/spina/pages/menu_presenter.rb
|
429
396
|
- app/uploaders/spina/default_store_uploader.rb
|
430
397
|
- app/uploaders/spina/file_uploader.rb
|
@@ -433,8 +400,8 @@ files:
|
|
433
400
|
- app/views/layouts/spina/admin/admin.html.haml
|
434
401
|
- app/views/layouts/spina/admin/media_library.html.haml
|
435
402
|
- app/views/layouts/spina/admin/pages.html.haml
|
436
|
-
- app/views/layouts/spina/email.html.erb
|
437
403
|
- app/views/layouts/spina/login.html.haml
|
404
|
+
- app/views/layouts/spina/mail.html.erb
|
438
405
|
- app/views/spina/admin/accounts/_form.html.haml
|
439
406
|
- app/views/spina/admin/accounts/analytics.html.haml
|
440
407
|
- app/views/spina/admin/accounts/edit.html.haml
|
@@ -451,7 +418,6 @@ files:
|
|
451
418
|
- app/views/spina/admin/attachments/insert_collection.js.coffee
|
452
419
|
- app/views/spina/admin/attachments/select.js.erb
|
453
420
|
- app/views/spina/admin/attachments/select_collection.js.erb
|
454
|
-
- app/views/spina/admin/layout_partables/colors/_form.html.haml
|
455
421
|
- app/views/spina/admin/layout_partables/lines/_form.html.haml
|
456
422
|
- app/views/spina/admin/navigations/_navigation_item_nested_list.html.haml
|
457
423
|
- app/views/spina/admin/navigations/_page.html.haml
|
@@ -459,15 +425,12 @@ files:
|
|
459
425
|
- app/views/spina/admin/navigations/show.html.haml
|
460
426
|
- app/views/spina/admin/page_partables/attachment_collections/_form.html.haml
|
461
427
|
- app/views/spina/admin/page_partables/attachments/_form.html.haml
|
462
|
-
- app/views/spina/admin/page_partables/colors/_form.html.haml
|
463
428
|
- app/views/spina/admin/page_partables/lines/_form.html.haml
|
429
|
+
- app/views/spina/admin/page_partables/options/_form.html.haml
|
464
430
|
- app/views/spina/admin/page_partables/photo_collections/_form.html.haml
|
465
431
|
- app/views/spina/admin/page_partables/photos/_form.html.haml
|
466
432
|
- app/views/spina/admin/page_partables/structures/_form.html.haml
|
467
433
|
- app/views/spina/admin/page_partables/texts/_form.html.haml
|
468
|
-
- app/views/spina/admin/page_parts/_wysihtml5_link.html.haml
|
469
|
-
- app/views/spina/admin/page_parts/insert_wysihtml5_link.js
|
470
|
-
- app/views/spina/admin/page_parts/wysihtml5_link.js
|
471
434
|
- app/views/spina/admin/pages/_form.html.haml
|
472
435
|
- app/views/spina/admin/pages/_form_advanced.html.haml
|
473
436
|
- app/views/spina/admin/pages/_form_page_content.html.haml
|
@@ -479,6 +442,8 @@ files:
|
|
479
442
|
- app/views/spina/admin/pages/index.html.haml
|
480
443
|
- app/views/spina/admin/pages/new.html.haml
|
481
444
|
- app/views/spina/admin/pages/update.js.coffee
|
445
|
+
- app/views/spina/admin/password_resets/edit.html.haml
|
446
|
+
- app/views/spina/admin/password_resets/new.html.haml
|
482
447
|
- app/views/spina/admin/photos/_photo.html.haml
|
483
448
|
- app/views/spina/admin/photos/_photo_collection.html.haml
|
484
449
|
- app/views/spina/admin/photos/_photo_collection_select.html.haml
|
@@ -487,10 +452,8 @@ files:
|
|
487
452
|
- app/views/spina/admin/photos/_photo_select.html.haml
|
488
453
|
- app/views/spina/admin/photos/_photo_single_picker.html.haml
|
489
454
|
- app/views/spina/admin/photos/_photo_uploaded.html.haml
|
490
|
-
- app/views/spina/admin/photos/
|
455
|
+
- app/views/spina/admin/photos/_trix_select.html.haml
|
491
456
|
- app/views/spina/admin/photos/create.js.erb
|
492
|
-
- app/views/spina/admin/photos/create_and_select.js.erb
|
493
|
-
- app/views/spina/admin/photos/create_multiple.js.erb
|
494
457
|
- app/views/spina/admin/photos/index.html.haml
|
495
458
|
- app/views/spina/admin/photos/index.js.erb
|
496
459
|
- app/views/spina/admin/photos/insert_photo.js.erb
|
@@ -500,9 +463,9 @@ files:
|
|
500
463
|
- app/views/spina/admin/photos/photo_collection_select.js.erb
|
501
464
|
- app/views/spina/admin/photos/photo_select.js.erb
|
502
465
|
- app/views/spina/admin/photos/single_picker_infinite_scroll.js.erb
|
503
|
-
- app/views/spina/admin/photos/
|
504
|
-
- app/views/spina/admin/photos/
|
505
|
-
- app/views/spina/admin/photos/
|
466
|
+
- app/views/spina/admin/photos/trix_infinite_scroll.js.erb
|
467
|
+
- app/views/spina/admin/photos/trix_insert.js.erb
|
468
|
+
- app/views/spina/admin/photos/trix_select.js.erb
|
506
469
|
- app/views/spina/admin/sessions/new.html.haml
|
507
470
|
- app/views/spina/admin/shared/_breadcrumbs.html.haml
|
508
471
|
- app/views/spina/admin/shared/_notifications.html.haml
|
@@ -510,6 +473,7 @@ files:
|
|
510
473
|
- app/views/spina/admin/shared/_rich_text_field.html.haml
|
511
474
|
- app/views/spina/admin/structure_items/_fields.html.haml
|
512
475
|
- app/views/spina/admin/structure_partables/lines/_form.html.haml
|
476
|
+
- app/views/spina/admin/structure_partables/options/_form.html.haml
|
513
477
|
- app/views/spina/admin/structure_partables/photo_collections/_form.html.haml
|
514
478
|
- app/views/spina/admin/structure_partables/photos/_form.html.haml
|
515
479
|
- app/views/spina/admin/structure_partables/texts/_form.html.haml
|
@@ -524,6 +488,8 @@ files:
|
|
524
488
|
- app/views/spina/shared/_navigation.html.haml
|
525
489
|
- app/views/spina/shared/_social.html.haml
|
526
490
|
- app/views/spina/sitemaps/show.xml.builder
|
491
|
+
- app/views/spina/user_mailer/forgot_password.html.erb
|
492
|
+
- app/views/spina/user_mailer/forgot_password.txt.erb
|
527
493
|
- config/fontcustom.yml
|
528
494
|
- config/initializers/assets.rb
|
529
495
|
- config/initializers/spina.rb
|
@@ -542,6 +508,9 @@ files:
|
|
542
508
|
- db/migrate/1_create_spina_tables.rb
|
543
509
|
- db/migrate/2_create_spina_translation_tables.rb
|
544
510
|
- db/migrate/3_create_spina_navigations.rb
|
511
|
+
- db/migrate/4_add_password_reset_token_to_spina_users.rb
|
512
|
+
- db/migrate/5_remove_translated_columns.rb
|
513
|
+
- db/migrate/6_create_spina_options.rb
|
545
514
|
- db/seeds.rb
|
546
515
|
- lib/generators/spina/install_generator.rb
|
547
516
|
- lib/generators/spina/templates/app/assets/stylesheets/default/application.css.sass
|
@@ -569,17 +538,11 @@ files:
|
|
569
538
|
- lib/spina/version.rb
|
570
539
|
- lib/tasks/spina_tasks.rake
|
571
540
|
- vendor/assets/javascripts/spina/jquery.customfileinput.js
|
572
|
-
- vendor/assets/javascripts/spina/jquery.farbtastic.js
|
573
541
|
- vendor/assets/javascripts/spina/jquery.nestable.js
|
574
542
|
- vendor/assets/javascripts/spina/jquery.ui.js
|
575
|
-
- vendor/assets/javascripts/spina/morris.js
|
576
|
-
- vendor/assets/javascripts/spina/raphael.js
|
577
543
|
- vendor/assets/javascripts/spina/sortable.js
|
578
544
|
- vendor/assets/javascripts/spina/trix.js
|
579
|
-
- vendor/assets/javascripts/spina/wysihtml5.js
|
580
|
-
- vendor/assets/javascripts/spina/wysihtml5_parser_rules.js
|
581
545
|
- vendor/assets/stylesheets/spina/_animate.scss
|
582
|
-
- vendor/assets/stylesheets/spina/_morris.scss
|
583
546
|
- vendor/assets/stylesheets/spina/_normalize.scss
|
584
547
|
homepage: http://www.denkgroot.com
|
585
548
|
licenses:
|
@@ -601,7 +564,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
601
564
|
version: '0'
|
602
565
|
requirements: []
|
603
566
|
rubyforge_project:
|
604
|
-
rubygems_version: 2.
|
567
|
+
rubygems_version: 2.6.11
|
605
568
|
signing_key:
|
606
569
|
specification_version: 4
|
607
570
|
summary: Spina
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,54 +0,0 @@
|
|
1
|
-
.card
|
2
|
-
background: #fff
|
3
|
-
border: 1px solid #e9e9e9
|
4
|
-
border-radius: 3px
|
5
|
-
display: inline-block
|
6
|
-
margin: 0 28px 30px 0
|
7
|
-
text-align: center
|
8
|
-
width: 225px
|
9
|
-
|
10
|
-
.card-heading
|
11
|
-
color: #333
|
12
|
-
font-size: 12px
|
13
|
-
font-weight: 600
|
14
|
-
line-height: 24px
|
15
|
-
padding: 12px
|
16
|
-
text-transform: uppercase
|
17
|
-
|
18
|
-
.card-content
|
19
|
-
padding: 12px 12px 24px 12px
|
20
|
-
|
21
|
-
.card-footer
|
22
|
-
border-top: 1px solid #e9e9e9
|
23
|
-
color: #999
|
24
|
-
font-size: 16px
|
25
|
-
font-weight: 400
|
26
|
-
line-height: 28px
|
27
|
-
padding: 4px 12px
|
28
|
-
|
29
|
-
.card-score
|
30
|
-
color: #666
|
31
|
-
font-size: 64px
|
32
|
-
font-weight: bold
|
33
|
-
margin: 12px 0
|
34
|
-
|
35
|
-
&.card-score-a
|
36
|
-
color: #00c309
|
37
|
-
|
38
|
-
&.card-score-b
|
39
|
-
color: #8dbe50
|
40
|
-
|
41
|
-
&.card-score-c
|
42
|
-
color: #f3e64c
|
43
|
-
|
44
|
-
&.card-score-d
|
45
|
-
color: #f0aa50
|
46
|
-
|
47
|
-
&.card-score-f
|
48
|
-
color: #e62f36
|
49
|
-
|
50
|
-
small
|
51
|
-
color: #666
|
52
|
-
display: block
|
53
|
-
font-size: 13px
|
54
|
-
font-weight: 400
|
@@ -1,37 +0,0 @@
|
|
1
|
-
.farbtastic
|
2
|
-
background: #fff
|
3
|
-
border-radius: 100px
|
4
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, .25)
|
5
|
-
display: none
|
6
|
-
position: absolute
|
7
|
-
z-index: 3
|
8
|
-
|
9
|
-
*
|
10
|
-
cursor: crosshair
|
11
|
-
position: absolute
|
12
|
-
|
13
|
-
.color, .overlay
|
14
|
-
height: 101px
|
15
|
-
left: 47px
|
16
|
-
top: 47px
|
17
|
-
width: 101px
|
18
|
-
|
19
|
-
.wheel
|
20
|
-
background: url(asset-path('spina/wheel.png'))
|
21
|
-
height: 195px
|
22
|
-
width: 195px
|
23
|
-
|
24
|
-
.overlay
|
25
|
-
background: url(asset-path('spina/mask.png'))
|
26
|
-
|
27
|
-
.marker
|
28
|
-
background: url(asset-path('spina/marker.png'))
|
29
|
-
height: 17px
|
30
|
-
margin: -8px 0 0 -8px
|
31
|
-
overflow: hidden
|
32
|
-
width: 17px
|
33
|
-
|
34
|
-
.farbtastic, .farbtastic .wheel
|
35
|
-
height: 195px
|
36
|
-
width: 195px
|
37
|
-
|
@@ -1,79 +0,0 @@
|
|
1
|
-
textarea.wysihtml5
|
2
|
-
font-size: 14px
|
3
|
-
height: 225px
|
4
|
-
padding-top: 50px
|
5
|
-
padding-right: 125px
|
6
|
-
resize: none
|
7
|
-
|
8
|
-
&:focus
|
9
|
-
border: 1px solid $primary-color
|
10
|
-
|
11
|
-
.wysihtml5-container
|
12
|
-
overflow: hidden
|
13
|
-
position: relative
|
14
|
-
|
15
|
-
.toolbar
|
16
|
-
border-bottom: 1px solid #e9e9e9
|
17
|
-
top: 1px
|
18
|
-
left: 1px
|
19
|
-
line-height: 40px
|
20
|
-
position: absolute
|
21
|
-
width: 100%
|
22
|
-
|
23
|
-
a.command
|
24
|
-
border-right: 1px solid #e9e9e9
|
25
|
-
color: #999
|
26
|
-
display: block
|
27
|
-
float: left
|
28
|
-
height: 40px
|
29
|
-
text-align: center
|
30
|
-
width: 40px
|
31
|
-
|
32
|
-
a.command i
|
33
|
-
vertical-align: middle
|
34
|
-
|
35
|
-
a.command i:before
|
36
|
-
line-height: 40px
|
37
|
-
|
38
|
-
a.wysihtml5-command-active, a.command:hover
|
39
|
-
color: #333
|
40
|
-
|
41
|
-
.command-bold, .command-italic, .command-insert-unordered-list, .command-link, .action-change-view
|
42
|
-
font-size: 12px
|
43
|
-
line-height: 43px
|
44
|
-
|
45
|
-
.command.action-change-view
|
46
|
-
border: none
|
47
|
-
float: right
|
48
|
-
|
49
|
-
.choose-text-type
|
50
|
-
border-left: 1px solid #e9e9e9
|
51
|
-
display: none
|
52
|
-
height: 183px
|
53
|
-
padding-top: 6px
|
54
|
-
position: absolute
|
55
|
-
right: 0
|
56
|
-
top: 40px
|
57
|
-
width: 115px
|
58
|
-
|
59
|
-
a
|
60
|
-
color: #999
|
61
|
-
display: block
|
62
|
-
line-height: 40px
|
63
|
-
padding: 0 16px
|
64
|
-
|
65
|
-
a:hover
|
66
|
-
color: #333
|
67
|
-
|
68
|
-
ul li a
|
69
|
-
color: #999
|
70
|
-
line-height: 30px
|
71
|
-
text-align: left
|
72
|
-
|
73
|
-
&.wysihtml5-command-active
|
74
|
-
color: $primary-color
|
75
|
-
|
76
|
-
&.wysihtml5-command-active:hover
|
77
|
-
background: none
|
78
|
-
color: $primary-color
|
79
|
-
cursor: default
|
@@ -1,30 +0,0 @@
|
|
1
|
-
module Spina
|
2
|
-
module ApplicationHelper
|
3
|
-
|
4
|
-
def current_account
|
5
|
-
@current_account ||= Account.first
|
6
|
-
end
|
7
|
-
|
8
|
-
def image_tag_with_at2x(name_at_1x, options={})
|
9
|
-
name_at_2x = name_at_1x.gsub(%r{\.\w+$}, '@2x\0')
|
10
|
-
image_tag(name_at_1x, options.merge("data-at2x" => asset_path(name_at_2x)))
|
11
|
-
end
|
12
|
-
|
13
|
-
def error_explanation!(resource)
|
14
|
-
return "" if resource.errors.empty?
|
15
|
-
|
16
|
-
messages = resource.errors.full_messages.map { |msg| content_tag(:li, msg) }.join
|
17
|
-
sentence = I18n.t("errors.messages.not_saved", count: resource.errors.count, resource: resource.class.model_name.human.downcase)
|
18
|
-
|
19
|
-
html = <<-HTML
|
20
|
-
<div id="error_explanation" class="notification notification-error" data-icon='m'>
|
21
|
-
<p>#{sentence}</p>
|
22
|
-
<ul>#{messages}</ul>
|
23
|
-
</div>
|
24
|
-
HTML
|
25
|
-
|
26
|
-
html.html_safe
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
30
|
-
end
|
data/app/models/spina/ability.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
module Spina
|
2
|
-
class Ability
|
3
|
-
include CanCan::Ability
|
4
|
-
|
5
|
-
def initialize(user)
|
6
|
-
if user.admin?
|
7
|
-
can :manage, :all
|
8
|
-
else
|
9
|
-
can :manage, Page
|
10
|
-
can :manage, Photo
|
11
|
-
can :manage, Attachment
|
12
|
-
can :manage, Account
|
13
|
-
|
14
|
-
# Spina.config.plugins.each do |plugin|
|
15
|
-
# can :manage, "#{plugin.class_name}".constantize
|
16
|
-
# end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
data/app/models/spina/color.rb
DELETED
@@ -1,102 +0,0 @@
|
|
1
|
-
# require 'active_support/core_ext/string'
|
2
|
-
require 'active_support/configurable'
|
3
|
-
require 'action_view/helpers/tag_helper'
|
4
|
-
require 'action_view/helpers/url_helper'
|
5
|
-
|
6
|
-
module Spina
|
7
|
-
module Pages
|
8
|
-
class Breadcrumb
|
9
|
-
include ActionView::Helpers::TagHelper
|
10
|
-
include ActionView::Helpers::UrlHelper
|
11
|
-
include ActiveSupport::Configurable
|
12
|
-
|
13
|
-
config_accessor :list_tag, :list_class, :li, :list_wrapper, :list_item_tag, :list_item_css, :last_item_css
|
14
|
-
|
15
|
-
self.list_tag = :ul
|
16
|
-
self.list_class = 'breadcrumb'
|
17
|
-
self.list_item_tag = :li
|
18
|
-
self.list_item_css = nil
|
19
|
-
self.last_item_css = 'active'
|
20
|
-
self.list_wrapper = false
|
21
|
-
|
22
|
-
attr_accessor :context, :current_page, :include_homepage, :breadcrumb_items, :homepage
|
23
|
-
delegate :output_buffer, :output_buffer=, to: :context
|
24
|
-
|
25
|
-
def initialize(page, context, include_homepage = true)
|
26
|
-
@current_page = page
|
27
|
-
@include_homepage = include_homepage
|
28
|
-
@context = context
|
29
|
-
@breadcrumb_items = Array.new()
|
30
|
-
@homepage = Page.find_by(name: :homepage)
|
31
|
-
|
32
|
-
build_breadcrumb(page) unless @homepage.id == @current_page.id
|
33
|
-
end
|
34
|
-
|
35
|
-
def to_html
|
36
|
-
render_breadcrumb_wrapper(@breadcrumb_items)
|
37
|
-
end
|
38
|
-
|
39
|
-
private
|
40
|
-
|
41
|
-
def build_breadcrumb(page)
|
42
|
-
if !page.nil?
|
43
|
-
@breadcrumb_items.push(page)
|
44
|
-
|
45
|
-
build_breadcrumb(page.parent)
|
46
|
-
else
|
47
|
-
# Manually insert homepage and reverse the breadcrumb items once you hit the latest parent
|
48
|
-
@breadcrumb_items.push(homepage) if @include_homepage
|
49
|
-
@breadcrumb_items = @breadcrumb_items.reverse unless @breadcrumb_items.empty?
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
def render_breadcrumb_wrapper(items)
|
54
|
-
if items.any?
|
55
|
-
if list_wrapper
|
56
|
-
content_tag(:div) do
|
57
|
-
render_breadcrumb_items(items)
|
58
|
-
end
|
59
|
-
else
|
60
|
-
render_breadcrumb_items(items)
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
def render_breadcrumb_items(items)
|
66
|
-
content_tag(list_tag, class: breadcrumb_list_css) do
|
67
|
-
items.each_with_index.inject(ActiveSupport::SafeBuffer.new) do |buffer, (item, index)|
|
68
|
-
buffer << render_breadcrumb_item(item, index, items.length)
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
def render_breadcrumb_item(item, index, items_length)
|
74
|
-
content_tag(list_item_tag, class: breadcrumb_item_css(item, index, items_length)) do
|
75
|
-
buffer = ActiveSupport::SafeBuffer.new
|
76
|
-
if index + 1 == items_length
|
77
|
-
buffer << item.title
|
78
|
-
else
|
79
|
-
buffer << link_to(item.title, item.full_materialized_path)
|
80
|
-
end
|
81
|
-
buffer
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
def breadcrumb_list_css
|
86
|
-
css = []
|
87
|
-
css << list_class
|
88
|
-
|
89
|
-
css.reject(&:blank?).presence
|
90
|
-
end
|
91
|
-
|
92
|
-
def breadcrumb_item_css(item, index, items_length)
|
93
|
-
css = []
|
94
|
-
css << list_item_css
|
95
|
-
css << last_item_css if index + 1 == items_length
|
96
|
-
|
97
|
-
css.reject(&:blank?).presence
|
98
|
-
end
|
99
|
-
|
100
|
-
end
|
101
|
-
end
|
102
|
-
end
|