blacklight-spotlight 4.7.1 → 5.0.0.pre.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -12
- data/Rakefile +8 -1
- data/app/assets/javascripts/spotlight/application.js +0 -1
- data/app/assets/javascripts/spotlight/spotlight.esm.js +3620 -3847
- data/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
- data/app/assets/javascripts/spotlight/spotlight.js +3620 -3852
- data/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
- data/app/assets/stylesheets/spotlight/_accessibility.scss +0 -9
- data/app/assets/stylesheets/spotlight/_autocomplete.scss +49 -0
- data/app/assets/stylesheets/spotlight/_blacklight_configuration.scss +0 -1
- data/app/assets/stylesheets/spotlight/_blacklight_overrides.scss +1 -6
- data/app/assets/stylesheets/spotlight/_browse.scss +2 -2
- data/app/assets/stylesheets/spotlight/_catalog.scss +40 -41
- data/app/assets/stylesheets/spotlight/_curation.scss +1 -1
- data/app/assets/stylesheets/spotlight/_exhibit_admin.scss +7 -0
- data/app/assets/stylesheets/spotlight/_exhibits_index.scss +8 -5
- data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +3 -3
- data/app/assets/stylesheets/spotlight/_header.scss +13 -0
- data/app/assets/stylesheets/spotlight/_mixins.scss +3 -4
- data/app/assets/stylesheets/spotlight/_nestable.scss +2 -12
- data/app/assets/stylesheets/spotlight/_pages.scss +11 -9
- data/app/assets/stylesheets/spotlight/_report_a_problem.scss +1 -3
- data/app/assets/stylesheets/spotlight/_sir-trevor_overrides.scss +2 -2
- data/app/assets/stylesheets/spotlight/_spotlight.scss +2 -1
- data/app/assets/stylesheets/spotlight/_tag_selector.scss +34 -0
- data/app/assets/stylesheets/spotlight/_variables.scss +0 -8
- data/app/components/spotlight/analytics/dashboard_component.html.erb +3 -3
- data/app/components/spotlight/breadcrumbs_component.html.erb +13 -19
- data/app/components/spotlight/bulk_action_component.rb +1 -1
- data/app/components/spotlight/document_component.rb +1 -1
- data/app/components/spotlight/save_search_component.rb +1 -1
- data/app/components/spotlight/select_image_component.html.erb +17 -0
- data/app/components/spotlight/select_image_component.rb +24 -0
- data/app/components/spotlight/skip_link_component.rb +16 -0
- data/app/components/spotlight/tag_selector_component.html.erb +40 -0
- data/app/components/spotlight/tag_selector_component.rb +41 -0
- data/app/components/spotlight/tag_selector_component.yml +6 -0
- data/app/components/spotlight/title_component.html.erb +8 -0
- data/app/components/spotlight/title_component.rb +22 -0
- data/app/controllers/spotlight/accessibility_controller.rb +2 -2
- data/app/controllers/spotlight/catalog_controller.rb +7 -2
- data/app/controllers/spotlight/contact_email_controller.rb +8 -2
- data/app/controllers/spotlight/languages_controller.rb +9 -4
- data/app/helpers/spotlight/application_helper.rb +7 -0
- data/app/helpers/spotlight/crop_helper.rb +4 -0
- data/app/helpers/spotlight/meta_helper.rb +59 -36
- data/app/javascript/spotlight/admin/blacklight_configuration.js +1 -1
- data/app/javascript/spotlight/admin/block_mixins/autocompleteable.js +70 -34
- data/app/javascript/spotlight/admin/blocks/block.js +1 -0
- data/app/javascript/spotlight/admin/blocks/browse_block.js +8 -12
- data/app/javascript/spotlight/admin/blocks/browse_group_categories_block.js +14 -18
- data/app/javascript/spotlight/admin/blocks/pages_block.js +6 -10
- data/app/javascript/spotlight/admin/blocks/resources_block.js +33 -15
- data/app/javascript/spotlight/admin/blocks/solr_documents_base_block.js +11 -6
- data/app/javascript/spotlight/admin/blocks/solr_documents_embed_block.js +1 -0
- data/app/javascript/spotlight/admin/blocks/uploaded_items_block.js +4 -3
- data/app/javascript/spotlight/admin/copy_email_addresses.js +2 -0
- data/app/javascript/spotlight/admin/crop.js +45 -17
- data/app/javascript/spotlight/admin/croppable.js +8 -1
- data/app/javascript/spotlight/admin/croppable_modal.js +68 -0
- data/app/javascript/spotlight/admin/exhibits.js +15 -10
- data/app/javascript/spotlight/admin/form_observer.js +1 -1
- data/app/javascript/spotlight/admin/index.js +0 -10
- data/app/javascript/spotlight/admin/locks.js +15 -5
- data/app/javascript/spotlight/admin/pages.js +1 -1
- data/app/javascript/spotlight/admin/search_typeahead.js +62 -55
- data/app/javascript/spotlight/admin/spotlight_nestable.js +173 -50
- data/app/javascript/spotlight/admin/visibility_toggle.js +1 -11
- data/app/javascript/spotlight/controllers/index.js +8 -0
- data/app/javascript/spotlight/controllers/tag_selector_controller.js +203 -0
- data/app/javascript/spotlight/core.js +4 -6
- data/app/javascript/spotlight/index.js +2 -0
- data/app/javascript/spotlight/user/browse_group_categories.js +2 -0
- data/app/javascript/spotlight/user/carousel.js +3 -1
- data/app/javascript/spotlight/user/index.js +0 -2
- data/app/models/sir_trevor_rails/block.rb +5 -4
- data/app/models/sir_trevor_rails/blocks/solr_documents_block.rb +1 -1
- data/app/models/sir_trevor_rails/blocks/solr_documents_embed_block.rb +1 -1
- data/app/models/sir_trevor_rails/blocks/uploaded_items_block.rb +1 -1
- data/app/models/spotlight/page_configurations.rb +1 -1
- data/app/views/catalog/_add_tags.html.erb +2 -2
- data/app/views/catalog/_change_visibility.html.erb +1 -1
- data/app/views/catalog/_remove_tags.html.erb +2 -2
- data/app/views/layouts/spotlight/base.html.erb +24 -13
- data/app/views/layouts/spotlight/spotlight.html.erb +6 -6
- data/app/views/shared/_masthead.html.erb +4 -31
- data/app/views/shared/_site_sidebar.html.erb +1 -1
- data/app/views/shared/_user_util_links.html.erb +3 -1
- data/app/views/spotlight/accessibility/alt_text.html.erb +2 -2
- data/app/views/spotlight/admin_users/index.html.erb +3 -3
- data/app/views/spotlight/appearances/edit.html.erb +1 -1
- data/app/views/spotlight/browse/_search_box.html.erb +8 -8
- data/app/views/spotlight/browse/show.html.erb +1 -1
- data/app/views/spotlight/bulk_updates/_download.html.erb +1 -1
- data/app/views/spotlight/bulk_updates/_upload.html.erb +1 -1
- data/app/views/spotlight/catalog/_admin_header.html.erb +1 -1
- data/app/views/spotlight/catalog/_edit_default.html.erb +2 -1
- data/app/views/spotlight/catalog/select_image.html.erb +1 -0
- data/app/views/spotlight/contacts/_form.html.erb +1 -1
- data/app/views/spotlight/exhibits/_contact.html.erb +5 -6
- data/app/views/spotlight/exhibits/_delete.html.erb +1 -1
- data/app/views/spotlight/exhibits/_languages.html.erb +3 -2
- data/app/views/spotlight/featured_images/_form.html.erb +6 -2
- data/app/views/spotlight/featured_images/_upload_form.html.erb +1 -1
- data/app/views/spotlight/metadata_configurations/_metadata_field.html.erb +1 -1
- data/app/views/spotlight/metadata_configurations/edit.html.erb +6 -6
- data/app/views/spotlight/pages/show.html.erb +1 -1
- data/app/views/spotlight/resources/csv_upload/_form.html.erb +1 -1
- data/app/views/spotlight/resources/upload/_form.html.erb +1 -1
- data/app/views/spotlight/roles/index.html.erb +1 -1
- data/app/views/spotlight/searches/_form.html.erb +1 -1
- data/app/views/spotlight/shared/_dd3_item.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +1 -1
- data/app/views/spotlight/tags/index.html.erb +2 -3
- data/app/views/spotlight/translations/_import.html.erb +2 -2
- data/config/importmap.rb +5 -0
- data/config/locales/spotlight.en.yml +2 -0
- data/config/routes.rb +5 -3
- data/lib/generators/spotlight/assets/generator_common_utilities.rb +36 -0
- data/lib/generators/spotlight/assets/importmap_generator.rb +87 -0
- data/lib/generators/spotlight/assets/propshaft_generator.rb +96 -0
- data/lib/generators/spotlight/assets_generator.rb +22 -0
- data/lib/generators/spotlight/install_generator.rb +8 -36
- data/lib/generators/spotlight/scaffold_resource_generator.rb +1 -1
- data/lib/generators/spotlight/templates/assets/spotlight.scss +6 -0
- data/lib/generators/spotlight/templates/javascript/jquery-shim.js +1 -0
- data/lib/spotlight/engine.rb +7 -6
- data/lib/spotlight/version.rb +1 -1
- data/spec/support/features/capybara_wait_metadata_helper.rb +13 -0
- data/spec/support/features/test_features_helpers.rb +16 -30
- data/vendor/assets/javascripts/tiny-slider.js +3 -0
- metadata +35 -87
- data/app/assets/stylesheets/spotlight/#_accessibility.scss# +0 -12
- data/app/javascript/spotlight/admin/checkbox_submit.js +0 -75
- data/app/javascript/spotlight/admin/exhibit_tag_autocomplete.js +0 -39
- data/app/javascript/spotlight/user/report_a_problem.js +0 -30
- data/app/views/spotlight/browse/_tophat.html.erb +0 -1
- data/app/views/spotlight/catalog/_tophat_default.html.erb +0 -1
- data/app/views/spotlight/home_pages/_tophat.html.erb +0 -2
- data/app/views/spotlight/pages/_tophat.html.erb +0 -1
- data/lib/generators/spotlight/templates/spotlight.js +0 -1
- data/lib/generators/spotlight/templates/spotlight.scss +0 -5
- data/spec/support/features/capybara_default_max_wait_metadata_helper.rb +0 -20
- data/vendor/assets/javascripts/bootstrap-tagsinput.js +0 -530
- data/vendor/assets/javascripts/jquery.serializejson.js +0 -234
- data/vendor/assets/javascripts/nestable.js +0 -645
- data/vendor/assets/javascripts/sir-trevor.js +0 -23508
- data/vendor/assets/javascripts/typeahead.bundle.min.js +0 -7
- data/vendor/assets/stylesheets/bootstrap-tagsinput.css +0 -46
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-spotlight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0.pre.alpha1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2025-02-
|
14
|
+
date: 2025-02-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activejob-status
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
version: '5.0'
|
37
37
|
- - "<"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '13'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -46,28 +46,14 @@ dependencies:
|
|
46
46
|
version: '5.0'
|
47
47
|
- - "<"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: autoprefixer-rails
|
52
|
-
requirement: !ruby/object:Gem::Requirement
|
53
|
-
requirements:
|
54
|
-
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: '0'
|
57
|
-
type: :runtime
|
58
|
-
prerelease: false
|
59
|
-
version_requirements: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - ">="
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: '0'
|
49
|
+
version: '13'
|
64
50
|
- !ruby/object:Gem::Dependency
|
65
51
|
name: blacklight
|
66
52
|
requirement: !ruby/object:Gem::Requirement
|
67
53
|
requirements:
|
68
54
|
- - ">="
|
69
55
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
56
|
+
version: 8.7.0
|
71
57
|
- - "<"
|
72
58
|
- !ruby/object:Gem::Version
|
73
59
|
version: '9'
|
@@ -77,7 +63,7 @@ dependencies:
|
|
77
63
|
requirements:
|
78
64
|
- - ">="
|
79
65
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
66
|
+
version: 8.7.0
|
81
67
|
- - "<"
|
82
68
|
- !ruby/object:Gem::Version
|
83
69
|
version: '9'
|
@@ -149,20 +135,6 @@ dependencies:
|
|
149
135
|
- - "~>"
|
150
136
|
- !ruby/object:Gem::Version
|
151
137
|
version: '2.2'
|
152
|
-
- !ruby/object:Gem::Dependency
|
153
|
-
name: clipboard-rails
|
154
|
-
requirement: !ruby/object:Gem::Requirement
|
155
|
-
requirements:
|
156
|
-
- - "~>"
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: '1.5'
|
159
|
-
type: :runtime
|
160
|
-
prerelease: false
|
161
|
-
version_requirements: !ruby/object:Gem::Requirement
|
162
|
-
requirements:
|
163
|
-
- - "~>"
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: '1.5'
|
166
138
|
- !ruby/object:Gem::Dependency
|
167
139
|
name: csv
|
168
140
|
requirement: !ruby/object:Gem::Requirement
|
@@ -331,20 +303,6 @@ dependencies:
|
|
331
303
|
- - ">="
|
332
304
|
- !ruby/object:Gem::Version
|
333
305
|
version: '0'
|
334
|
-
- !ruby/object:Gem::Dependency
|
335
|
-
name: leaflet-rails
|
336
|
-
requirement: !ruby/object:Gem::Requirement
|
337
|
-
requirements:
|
338
|
-
- - ">="
|
339
|
-
- !ruby/object:Gem::Version
|
340
|
-
version: '0'
|
341
|
-
type: :runtime
|
342
|
-
prerelease: false
|
343
|
-
version_requirements: !ruby/object:Gem::Requirement
|
344
|
-
requirements:
|
345
|
-
- - ">="
|
346
|
-
- !ruby/object:Gem::Version
|
347
|
-
version: '0'
|
348
306
|
- !ruby/object:Gem::Dependency
|
349
307
|
name: mini_magick
|
350
308
|
requirement: !ruby/object:Gem::Requirement
|
@@ -393,14 +351,14 @@ dependencies:
|
|
393
351
|
requirements:
|
394
352
|
- - ">="
|
395
353
|
- !ruby/object:Gem::Version
|
396
|
-
version:
|
354
|
+
version: 0.8.0
|
397
355
|
type: :runtime
|
398
356
|
prerelease: false
|
399
357
|
version_requirements: !ruby/object:Gem::Requirement
|
400
358
|
requirements:
|
401
359
|
- - ">="
|
402
360
|
- !ruby/object:Gem::Version
|
403
|
-
version:
|
361
|
+
version: 0.8.0
|
404
362
|
- !ruby/object:Gem::Dependency
|
405
363
|
name: ostruct
|
406
364
|
requirement: !ruby/object:Gem::Requirement
|
@@ -436,7 +394,7 @@ dependencies:
|
|
436
394
|
version: '11.0'
|
437
395
|
- - "<"
|
438
396
|
- !ruby/object:Gem::Version
|
439
|
-
version: '
|
397
|
+
version: '17'
|
440
398
|
type: :runtime
|
441
399
|
prerelease: false
|
442
400
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -446,27 +404,27 @@ dependencies:
|
|
446
404
|
version: '11.0'
|
447
405
|
- - "<"
|
448
406
|
- !ruby/object:Gem::Version
|
449
|
-
version: '
|
407
|
+
version: '17'
|
450
408
|
- !ruby/object:Gem::Dependency
|
451
409
|
name: rails
|
452
410
|
requirement: !ruby/object:Gem::Requirement
|
453
411
|
requirements:
|
454
412
|
- - ">="
|
455
413
|
- !ruby/object:Gem::Version
|
456
|
-
version: '7.
|
414
|
+
version: '7.1'
|
457
415
|
- - "<"
|
458
416
|
- !ruby/object:Gem::Version
|
459
|
-
version: '
|
417
|
+
version: '9'
|
460
418
|
type: :runtime
|
461
419
|
prerelease: false
|
462
420
|
version_requirements: !ruby/object:Gem::Requirement
|
463
421
|
requirements:
|
464
422
|
- - ">="
|
465
423
|
- !ruby/object:Gem::Version
|
466
|
-
version: '7.
|
424
|
+
version: '7.1'
|
467
425
|
- - "<"
|
468
426
|
- !ruby/object:Gem::Version
|
469
|
-
version: '
|
427
|
+
version: '9'
|
470
428
|
- !ruby/object:Gem::Dependency
|
471
429
|
name: redcarpet
|
472
430
|
requirement: !ruby/object:Gem::Requirement
|
@@ -543,20 +501,6 @@ dependencies:
|
|
543
501
|
- - ">="
|
544
502
|
- !ruby/object:Gem::Version
|
545
503
|
version: '0'
|
546
|
-
- !ruby/object:Gem::Dependency
|
547
|
-
name: tophat
|
548
|
-
requirement: !ruby/object:Gem::Requirement
|
549
|
-
requirements:
|
550
|
-
- - ">="
|
551
|
-
- !ruby/object:Gem::Version
|
552
|
-
version: '0'
|
553
|
-
type: :runtime
|
554
|
-
prerelease: false
|
555
|
-
version_requirements: !ruby/object:Gem::Requirement
|
556
|
-
requirements:
|
557
|
-
- - ">="
|
558
|
-
- !ruby/object:Gem::Version
|
559
|
-
version: '0'
|
560
504
|
- !ruby/object:Gem::Dependency
|
561
505
|
name: view_component
|
562
506
|
requirement: !ruby/object:Gem::Requirement
|
@@ -863,9 +807,9 @@ files:
|
|
863
807
|
- app/assets/javascripts/spotlight/spotlight.esm.js.map
|
864
808
|
- app/assets/javascripts/spotlight/spotlight.js
|
865
809
|
- app/assets/javascripts/spotlight/spotlight.js.map
|
866
|
-
- app/assets/stylesheets/spotlight/#_accessibility.scss#
|
867
810
|
- app/assets/stylesheets/spotlight/_accessibility.scss
|
868
811
|
- app/assets/stylesheets/spotlight/_attachments.css
|
812
|
+
- app/assets/stylesheets/spotlight/_autocomplete.scss
|
869
813
|
- app/assets/stylesheets/spotlight/_blacklight_configuration.scss
|
870
814
|
- app/assets/stylesheets/spotlight/_blacklight_overrides.scss
|
871
815
|
- app/assets/stylesheets/spotlight/_bootstrap_overrides.scss
|
@@ -893,6 +837,7 @@ files:
|
|
893
837
|
- app/assets/stylesheets/spotlight/_sir-trevor_overrides.scss
|
894
838
|
- app/assets/stylesheets/spotlight/_slideshow_block.scss
|
895
839
|
- app/assets/stylesheets/spotlight/_spotlight.scss
|
840
|
+
- app/assets/stylesheets/spotlight/_tag_selector.scss
|
896
841
|
- app/assets/stylesheets/spotlight/_translations.scss
|
897
842
|
- app/assets/stylesheets/spotlight/_upload.scss
|
898
843
|
- app/assets/stylesheets/spotlight/_uploaded_items_block.scss
|
@@ -938,10 +883,18 @@ files:
|
|
938
883
|
- app/components/spotlight/icon_component.rb
|
939
884
|
- app/components/spotlight/save_search_component.html.erb
|
940
885
|
- app/components/spotlight/save_search_component.rb
|
886
|
+
- app/components/spotlight/select_image_component.html.erb
|
887
|
+
- app/components/spotlight/select_image_component.rb
|
888
|
+
- app/components/spotlight/skip_link_component.rb
|
941
889
|
- app/components/spotlight/solr_document_legacy_embed_component.html.erb
|
942
890
|
- app/components/spotlight/solr_document_legacy_embed_component.rb
|
943
891
|
- app/components/spotlight/tag_list_form_component.html.erb
|
944
892
|
- app/components/spotlight/tag_list_form_component.rb
|
893
|
+
- app/components/spotlight/tag_selector_component.html.erb
|
894
|
+
- app/components/spotlight/tag_selector_component.rb
|
895
|
+
- app/components/spotlight/tag_selector_component.yml
|
896
|
+
- app/components/spotlight/title_component.html.erb
|
897
|
+
- app/components/spotlight/title_component.rb
|
945
898
|
- app/components/spotlight/translations/subheading_component.html.erb
|
946
899
|
- app/components/spotlight/translations/subheading_component.rb
|
947
900
|
- app/controllers/concerns/spotlight/base.rb
|
@@ -1033,12 +986,11 @@ files:
|
|
1033
986
|
- app/javascript/spotlight/admin/blocks/solr_documents_features_block.js
|
1034
987
|
- app/javascript/spotlight/admin/blocks/solr_documents_grid_block.js
|
1035
988
|
- app/javascript/spotlight/admin/blocks/uploaded_items_block.js
|
1036
|
-
- app/javascript/spotlight/admin/checkbox_submit.js
|
1037
989
|
- app/javascript/spotlight/admin/copy_email_addresses.js
|
1038
990
|
- app/javascript/spotlight/admin/crop.js
|
1039
991
|
- app/javascript/spotlight/admin/croppable.js
|
992
|
+
- app/javascript/spotlight/admin/croppable_modal.js
|
1040
993
|
- app/javascript/spotlight/admin/edit_in_place.js
|
1041
|
-
- app/javascript/spotlight/admin/exhibit_tag_autocomplete.js
|
1042
994
|
- app/javascript/spotlight/admin/exhibits.js
|
1043
995
|
- app/javascript/spotlight/admin/form_observer.js
|
1044
996
|
- app/javascript/spotlight/admin/iiif.js
|
@@ -1058,13 +1010,14 @@ files:
|
|
1058
1010
|
- app/javascript/spotlight/admin/translation_progress.js
|
1059
1011
|
- app/javascript/spotlight/admin/users.js
|
1060
1012
|
- app/javascript/spotlight/admin/visibility_toggle.js
|
1013
|
+
- app/javascript/spotlight/controllers/index.js
|
1014
|
+
- app/javascript/spotlight/controllers/tag_selector_controller.js
|
1061
1015
|
- app/javascript/spotlight/core.js
|
1062
1016
|
- app/javascript/spotlight/index.js
|
1063
1017
|
- app/javascript/spotlight/user/browse_group_categories.js
|
1064
1018
|
- app/javascript/spotlight/user/carousel.js
|
1065
1019
|
- app/javascript/spotlight/user/clear_form_button.js
|
1066
1020
|
- app/javascript/spotlight/user/index.js
|
1067
|
-
- app/javascript/spotlight/user/report_a_problem.js
|
1068
1021
|
- app/javascript/spotlight/user/zpr_links.js
|
1069
1022
|
- app/jobs/concerns/spotlight/gather_documents.rb
|
1070
1023
|
- app/jobs/concerns/spotlight/job_tracking.rb
|
@@ -1226,7 +1179,6 @@ files:
|
|
1226
1179
|
- app/views/spotlight/browse/_search.html.erb
|
1227
1180
|
- app/views/spotlight/browse/_search_box.html.erb
|
1228
1181
|
- app/views/spotlight/browse/_search_title.html.erb
|
1229
|
-
- app/views/spotlight/browse/_tophat.html.erb
|
1230
1182
|
- app/views/spotlight/browse/index.html.erb
|
1231
1183
|
- app/views/spotlight/browse/show.html.erb
|
1232
1184
|
- app/views/spotlight/bulk_updates/_download.html.erb
|
@@ -1246,10 +1198,10 @@ files:
|
|
1246
1198
|
- app/views/spotlight/catalog/_edit_sidecar.html.erb
|
1247
1199
|
- app/views/spotlight/catalog/_index_compact_default.html.erb
|
1248
1200
|
- app/views/spotlight/catalog/_reindex_progress_panel.html.erb
|
1249
|
-
- app/views/spotlight/catalog/_tophat_default.html.erb
|
1250
1201
|
- app/views/spotlight/catalog/admin.html.erb
|
1251
1202
|
- app/views/spotlight/catalog/edit.html.erb
|
1252
1203
|
- app/views/spotlight/catalog/index.iiif_json.jbuilder
|
1204
|
+
- app/views/spotlight/catalog/select_image.html.erb
|
1253
1205
|
- app/views/spotlight/confirmation_mailer/confirmation_instructions.html.erb
|
1254
1206
|
- app/views/spotlight/contact_forms/new.html.erb
|
1255
1207
|
- app/views/spotlight/contact_mailer/report_problem.html.erb
|
@@ -1297,7 +1249,6 @@ files:
|
|
1297
1249
|
- app/views/spotlight/home_pages/_empty.html.erb
|
1298
1250
|
- app/views/spotlight/home_pages/_page_options.html.erb
|
1299
1251
|
- app/views/spotlight/home_pages/_sidebar.html.erb
|
1300
|
-
- app/views/spotlight/home_pages/_tophat.html.erb
|
1301
1252
|
- app/views/spotlight/indexing_complete_mailer/documents_indexed.html.erb
|
1302
1253
|
- app/views/spotlight/invitation_mailer/exhibit_invitation_notification.html.erb
|
1303
1254
|
- app/views/spotlight/job_trackers/show.html.erb
|
@@ -1311,7 +1262,6 @@ files:
|
|
1311
1262
|
- app/views/spotlight/pages/_order_pages.html.erb
|
1312
1263
|
- app/views/spotlight/pages/_page.html.erb
|
1313
1264
|
- app/views/spotlight/pages/_page_options.html.erb
|
1314
|
-
- app/views/spotlight/pages/_tophat.html.erb
|
1315
1265
|
- app/views/spotlight/pages/_view_type_group.html.erb
|
1316
1266
|
- app/views/spotlight/pages/edit.html.erb
|
1317
1267
|
- app/views/spotlight/pages/index.html.erb
|
@@ -1475,14 +1425,20 @@ files:
|
|
1475
1425
|
- db/migrate/20210308090000_migrate_caption_values_for_title_key.rb
|
1476
1426
|
- db/migrate/20210506070809_add_indexes_for_featured_images.rb
|
1477
1427
|
- lib/blacklight/spotlight.rb
|
1428
|
+
- lib/generators/spotlight/assets/generator_common_utilities.rb
|
1429
|
+
- lib/generators/spotlight/assets/importmap_generator.rb
|
1430
|
+
- lib/generators/spotlight/assets/propshaft_generator.rb
|
1431
|
+
- lib/generators/spotlight/assets_generator.rb
|
1478
1432
|
- lib/generators/spotlight/install_generator.rb
|
1479
1433
|
- lib/generators/spotlight/scaffold_resource_generator.rb
|
1434
|
+
- lib/generators/spotlight/templates/assets/spotlight.scss
|
1480
1435
|
- lib/generators/spotlight/templates/catalog_controller.rb
|
1481
1436
|
- lib/generators/spotlight/templates/config/initializers/oembed.rb
|
1482
1437
|
- lib/generators/spotlight/templates/config/initializers/riiif.rb
|
1483
1438
|
- lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb
|
1484
1439
|
- lib/generators/spotlight/templates/config/initializers/translation.rb
|
1485
1440
|
- lib/generators/spotlight/templates/config/sitemap.rb
|
1441
|
+
- lib/generators/spotlight/templates/javascript/jquery-shim.js
|
1486
1442
|
- lib/generators/spotlight/templates/solr/conf/_rest_managed.json
|
1487
1443
|
- lib/generators/spotlight/templates/solr/conf/admin-extra.html
|
1488
1444
|
- lib/generators/spotlight/templates/solr/conf/elevate.xml
|
@@ -1499,8 +1455,6 @@ files:
|
|
1499
1455
|
- lib/generators/spotlight/templates/solr/conf/xslt/example_atom.xsl
|
1500
1456
|
- lib/generators/spotlight/templates/solr/conf/xslt/example_rss.xsl
|
1501
1457
|
- lib/generators/spotlight/templates/solr/conf/xslt/luke.xsl
|
1502
|
-
- lib/generators/spotlight/templates/spotlight.js
|
1503
|
-
- lib/generators/spotlight/templates/spotlight.scss
|
1504
1458
|
- lib/generators/spotlight/templates/spotlight_helper.rb
|
1505
1459
|
- lib/migration/iiif.rb
|
1506
1460
|
- lib/migration/page_language.rb
|
@@ -1544,7 +1498,7 @@ files:
|
|
1544
1498
|
- spec/fixtures/updated-bulk-update-template.csv
|
1545
1499
|
- spec/support/controllers/engine_helpers.rb
|
1546
1500
|
- spec/support/disable_friendly_id_deprecation_warnings.rb
|
1547
|
-
- spec/support/features/
|
1501
|
+
- spec/support/features/capybara_wait_metadata_helper.rb
|
1548
1502
|
- spec/support/features/test_features_helpers.rb
|
1549
1503
|
- spec/support/helpers/controller_level_helpers.rb
|
1550
1504
|
- spec/support/stub_iiif_response.rb
|
@@ -1552,16 +1506,10 @@ files:
|
|
1552
1506
|
- vendor/assets/images/sir-trevor-icons.svg
|
1553
1507
|
- vendor/assets/javascripts/Leaflet.Editable.js
|
1554
1508
|
- vendor/assets/javascripts/Path.Drag.js
|
1555
|
-
- vendor/assets/javascripts/bootstrap-tagsinput.js
|
1556
|
-
- vendor/assets/javascripts/jquery.serializejson.js
|
1557
1509
|
- vendor/assets/javascripts/jquery.waitforimages.min.js
|
1558
1510
|
- vendor/assets/javascripts/leaflet-iiif.js
|
1559
|
-
- vendor/assets/javascripts/nestable.js
|
1560
1511
|
- vendor/assets/javascripts/parameterize.js
|
1561
|
-
- vendor/assets/javascripts/sir-trevor.js
|
1562
1512
|
- vendor/assets/javascripts/tiny-slider.js
|
1563
|
-
- vendor/assets/javascripts/typeahead.bundle.min.js
|
1564
|
-
- vendor/assets/stylesheets/bootstrap-tagsinput.css
|
1565
1513
|
- vendor/assets/stylesheets/sir-trevor/_icons.scss
|
1566
1514
|
- vendor/assets/stylesheets/sir-trevor/_variables.scss
|
1567
1515
|
- vendor/assets/stylesheets/sir-trevor/base.scss
|
@@ -1,12 +0,0 @@
|
|
1
|
-
// Global accessibility overrides
|
2
|
-
|
3
|
-
// Increase visibility of Firefox focus indicator
|
4
|
-
@-moz-document url-prefix() {
|
5
|
-
:focus {
|
6
|
-
outline: $input-focus-border-color auto 5px;
|
7
|
-
}
|
8
|
-
}
|
9
|
-
|
10
|
-
.btn:focus-visible {
|
11
|
-
outline: $input-focus-border-color auto 5px;
|
12
|
-
}
|
@@ -1,75 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
NOTE: this is copied & adapted from BL8's checkbox_submit.js in order to have
|
3
|
-
it accessible in a BL7-based spotlight. Once we drop support for BL7, this file
|
4
|
-
can be deleted and we can change visibility_toggle.es6 to import CheckboxSubmit
|
5
|
-
from Blacklight.
|
6
|
-
|
7
|
-
See https://github.com/projectblacklight/blacklight/blob/main/app/javascript/blacklight/checkbox_submit.js
|
8
|
-
*/
|
9
|
-
export default class CheckboxSubmit {
|
10
|
-
constructor(form) {
|
11
|
-
this.form = form
|
12
|
-
}
|
13
|
-
|
14
|
-
async clicked(evt) {
|
15
|
-
this.spanTarget.innerHTML = this.form.getAttribute('data-inprogress')
|
16
|
-
this.labelTarget.setAttribute('disabled', 'disabled');
|
17
|
-
this.checkboxTarget.setAttribute('disabled', 'disabled');
|
18
|
-
const csrfMeta = document.querySelector('meta[name=csrf-token]')
|
19
|
-
const response = await fetch(this.formTarget.getAttribute('action'), {
|
20
|
-
body: new FormData(this.formTarget),
|
21
|
-
method: this.formTarget.getAttribute('method').toUpperCase(),
|
22
|
-
headers: {
|
23
|
-
'Accept': 'application/json',
|
24
|
-
'X-Requested-With': 'XMLHttpRequest',
|
25
|
-
'X-CSRF-Token': csrfMeta ? csrfMeta.content : ''
|
26
|
-
}
|
27
|
-
})
|
28
|
-
this.labelTarget.removeAttribute('disabled')
|
29
|
-
this.checkboxTarget.removeAttribute('disabled')
|
30
|
-
if (response.ok) {
|
31
|
-
this.updateStateFor(!this.checked)
|
32
|
-
// Not used for our case in Spotlight (visibility toggle)
|
33
|
-
// const json = await response.json()
|
34
|
-
// document.querySelector('[data-role=bookmark-counter]').innerHTML = json.bookmarks.count
|
35
|
-
} else {
|
36
|
-
alert('Error')
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
get checked() {
|
41
|
-
return (this.form.querySelectorAll('input[name=_method][value=delete]').length != 0)
|
42
|
-
}
|
43
|
-
|
44
|
-
get formTarget() {
|
45
|
-
return this.form
|
46
|
-
}
|
47
|
-
|
48
|
-
get labelTarget() {
|
49
|
-
return this.form.querySelector('[data-checkboxsubmit-target="label"]')
|
50
|
-
}
|
51
|
-
|
52
|
-
get checkboxTarget() {
|
53
|
-
return this.form.querySelector('[data-checkboxsubmit-target="checkbox"]')
|
54
|
-
}
|
55
|
-
|
56
|
-
get spanTarget() {
|
57
|
-
return this.form.querySelector('[data-checkboxsubmit-target="span"]')
|
58
|
-
}
|
59
|
-
|
60
|
-
updateStateFor(state) {
|
61
|
-
this.checkboxTarget.checked = state
|
62
|
-
|
63
|
-
if (state) {
|
64
|
-
this.labelTarget.classList.add('checked')
|
65
|
-
//Set the Rails hidden field that fakes an HTTP verb
|
66
|
-
//properly for current state action.
|
67
|
-
this.formTarget.querySelector('input[name=_method]').value = 'delete'
|
68
|
-
this.spanTarget.innerHTML = this.form.getAttribute('data-present')
|
69
|
-
} else {
|
70
|
-
this.labelTarget.classList.remove('checked')
|
71
|
-
this.formTarget.querySelector('input[name=_method]').value = 'put'
|
72
|
-
this.spanTarget.innerHTML = this.form.getAttribute('data-absent')
|
73
|
-
}
|
74
|
-
}
|
75
|
-
}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
export default class {
|
2
|
-
connect() {
|
3
|
-
$('[data-autocomplete-tag="true"]').each(function(_i, el) {
|
4
|
-
var $el = $(el);
|
5
|
-
// By default tags input binds on page ready to [data-role=tagsinput],
|
6
|
-
// however, that doesn't work with Turbolinks. So we init manually:
|
7
|
-
$el.tagsinput();
|
8
|
-
|
9
|
-
var tags = new Bloodhound({
|
10
|
-
datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.name); },
|
11
|
-
queryTokenizer: Bloodhound.tokenizers.whitespace,
|
12
|
-
limit: 100,
|
13
|
-
prefetch: {
|
14
|
-
url: $el.data('autocomplete-url'),
|
15
|
-
ttl: 1,
|
16
|
-
filter: function(list) {
|
17
|
-
// Let the dom know that the response has been returned
|
18
|
-
$el.attr('data-autocomplete-fetched', true);
|
19
|
-
return $.map(list, function(tag) { return { name: tag }; });
|
20
|
-
}
|
21
|
-
}
|
22
|
-
});
|
23
|
-
|
24
|
-
tags.initialize();
|
25
|
-
|
26
|
-
$el.tagsinput('input').typeahead({highlight: true, hint: false}, {
|
27
|
-
name: 'tags',
|
28
|
-
displayKey: 'name',
|
29
|
-
source: tags.ttAdapter()
|
30
|
-
}).bind('typeahead:selected', $.proxy(function (obj, datum) {
|
31
|
-
$el.tagsinput('add', datum.name);
|
32
|
-
$el.tagsinput('input').typeahead('val', '');
|
33
|
-
})).bind('blur', function() {
|
34
|
-
$el.tagsinput('add', $el.tagsinput('input').typeahead('val'));
|
35
|
-
$el.tagsinput('input').typeahead('val', '');
|
36
|
-
})
|
37
|
-
})
|
38
|
-
}
|
39
|
-
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
export default class {
|
2
|
-
connect(){
|
3
|
-
var container, target;
|
4
|
-
|
5
|
-
function init() {
|
6
|
-
const target_val = container.attr('data-target') || container.attr('data-bs-target');
|
7
|
-
if (!target_val)
|
8
|
-
return
|
9
|
-
|
10
|
-
target = $("#" + target_val);
|
11
|
-
container.on('click', open);
|
12
|
-
target.find('[data-behavior="cancel-link"]').on('click', close);
|
13
|
-
}
|
14
|
-
|
15
|
-
function open(event) {
|
16
|
-
event.preventDefault();
|
17
|
-
target.slideToggle('slow');
|
18
|
-
}
|
19
|
-
|
20
|
-
function close(event) {
|
21
|
-
event.preventDefault();
|
22
|
-
target.slideUp('fast');
|
23
|
-
}
|
24
|
-
|
25
|
-
return $('[data-behavior="contact-link"]').each(function() {
|
26
|
-
container = $(this);
|
27
|
-
init();
|
28
|
-
});
|
29
|
-
}
|
30
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
<% add_browse_meta_content(@search) %>
|
@@ -1 +0,0 @@
|
|
1
|
-
<% add_document_meta_content(@document) %>
|
@@ -1 +0,0 @@
|
|
1
|
-
<% add_page_meta_content(@page) %>
|
@@ -1 +0,0 @@
|
|
1
|
-
//= require spotlight/application
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module CapybaraDefaultMaxWaitMetadataHelper
|
4
|
-
extend ActiveSupport::Concern
|
5
|
-
|
6
|
-
included do
|
7
|
-
before do |example|
|
8
|
-
next unless example.metadata[:default_max_wait_time]
|
9
|
-
|
10
|
-
@previous_wait_time = Capybara.default_max_wait_time
|
11
|
-
Capybara.default_max_wait_time = example.metadata[:default_max_wait_time]
|
12
|
-
end
|
13
|
-
|
14
|
-
after do |example|
|
15
|
-
next unless example.metadata[:default_max_wait_time]
|
16
|
-
|
17
|
-
Capybara.default_max_wait_time = @previous_wait_time
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|