geoblacklight_admin 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -9
  3. data/Rakefile +83 -47
  4. data/app/assets/javascripts/geoblacklight_admin/chosen.js +1 -0
  5. data/app/assets/stylesheets/geoblacklight_admin/_core.scss +24 -0
  6. data/app/assets/stylesheets/geoblacklight_admin/modules/_nav.scss +0 -5
  7. data/app/assets/stylesheets/geoblacklight_admin/modules/_tables.scss +1 -1
  8. data/app/controllers/admin/admin_controller.rb +16 -0
  9. data/app/controllers/admin/advanced_search_controller.rb +1 -1
  10. data/app/controllers/admin/assets_controller.rb +41 -5
  11. data/app/controllers/admin/bookmarks_controller.rb +14 -2
  12. data/app/controllers/admin/bulk_actions_controller.rb +31 -0
  13. data/app/controllers/admin/document_accesses_controller.rb +38 -0
  14. data/app/controllers/admin/document_assets_controller.rb +46 -9
  15. data/app/controllers/admin/document_distributions_controller.rb +172 -0
  16. data/app/controllers/admin/documents_controller.rb +41 -55
  17. data/app/controllers/admin/elements_controller.rb +22 -0
  18. data/app/controllers/admin/form_elements_controller.rb +31 -0
  19. data/app/controllers/admin/import_documents_controller.rb +11 -1
  20. data/app/controllers/admin/imports_controller.rb +32 -2
  21. data/app/controllers/admin/mappings_controller.rb +15 -0
  22. data/app/controllers/admin/notifications_controller.rb +27 -0
  23. data/app/controllers/admin/reference_types_controller.rb +106 -0
  24. data/app/controllers/admin/search_controller.rb +7 -0
  25. data/app/controllers/admin/users_controller.rb +10 -0
  26. data/app/helpers/asset_helper.rb +6 -0
  27. data/app/helpers/bulk_actions_helper.rb +9 -0
  28. data/app/helpers/document_helper.rb +36 -0
  29. data/app/helpers/geoblacklight_admin_helper.rb +88 -8
  30. data/app/helpers/mappings_helper.rb +26 -0
  31. data/app/indexers/document_indexer.rb +22 -2
  32. data/app/javascript/channels/consumer.js +6 -0
  33. data/app/javascript/channels/export_channel.js +30 -0
  34. data/app/javascript/channels/index.js +3 -0
  35. data/app/javascript/controllers/results_controller.js +14 -0
  36. data/app/javascript/index.js +8 -2
  37. data/app/jobs/export_job.rb +35 -8
  38. data/app/jobs/geoblacklight_admin/delete_thumbnail_job.rb +19 -0
  39. data/app/jobs/geoblacklight_admin/remove_parent_dct_references_uri_job.rb +16 -0
  40. data/app/jobs/geoblacklight_admin/set_parent_dct_references_uri_job.rb +17 -0
  41. data/app/jobs/geoblacklight_admin/store_image_job.rb +22 -0
  42. data/app/models/asset.rb +20 -0
  43. data/app/models/bulk_action.rb +2 -1
  44. data/app/models/document/geom_validator.rb +8 -0
  45. data/app/models/document/reference.rb +65 -65
  46. data/app/models/document.rb +128 -71
  47. data/app/models/document_distribution.rb +145 -0
  48. data/app/models/element.rb +2 -0
  49. data/app/models/geoblacklight_admin/schema.rb +10 -2
  50. data/app/models/import_document_state_machine.rb +1 -0
  51. data/app/models/reference_type.rb +40 -0
  52. data/app/models/user.rb +4 -2
  53. data/app/services/export_csv_document_distributions_service.rb +61 -0
  54. data/app/services/geoblacklight_admin/image_service/tms.rb +0 -4
  55. data/app/services/geoblacklight_admin/image_service.rb +1 -1
  56. data/app/services/geoblacklight_admin/item_viewer.rb +4 -4
  57. data/app/views/admin/bulk_actions/show.html.erb +1 -1
  58. data/app/views/admin/document_accesses/import.html.erb +6 -2
  59. data/app/views/admin/document_assets/_assets_table.html.erb +49 -0
  60. data/app/views/admin/document_assets/_form.html.erb +2 -3
  61. data/app/views/admin/document_assets/index.html.erb +1 -47
  62. data/app/views/admin/document_distributions/_document_distribution.html.erb +39 -0
  63. data/app/views/admin/document_distributions/_document_distribution.json.jbuilder +2 -0
  64. data/app/views/admin/document_distributions/_form.html.erb +34 -0
  65. data/app/views/admin/document_distributions/destroy_all.html.erb +82 -0
  66. data/app/views/admin/document_distributions/edit.html.erb +12 -0
  67. data/app/views/admin/document_distributions/import.html.erb +80 -0
  68. data/app/views/admin/document_distributions/index.html.erb +143 -0
  69. data/app/views/admin/document_distributions/index.json.jbuilder +1 -0
  70. data/app/views/admin/document_distributions/new.html.erb +11 -0
  71. data/app/views/admin/document_distributions/show.html.erb +10 -0
  72. data/app/views/admin/document_distributions/show.json.jbuilder +1 -0
  73. data/app/views/admin/documents/_document.html.erb +1 -3
  74. data/app/views/admin/documents/_form.html.erb +2 -4
  75. data/app/views/admin/documents/_form_control.html.erb +5 -2
  76. data/app/views/admin/documents/_form_nav.html.erb +14 -5
  77. data/app/views/admin/documents/_form_nav_kithe.html.erb +4 -1
  78. data/app/views/admin/documents/_json_aardvark.jbuilder +1 -1
  79. data/app/views/admin/documents/_json_gbl_v1.jbuilder +1 -1
  80. data/app/views/admin/documents/_result_selected_options.html.erb +5 -2
  81. data/app/views/admin/documents/admin.html.erb +5 -5
  82. data/app/views/admin/documents/features/_document_references.html.erb +23 -0
  83. data/app/views/admin/documents/features/_multiple_download_links.html.erb +29 -26
  84. data/app/views/admin/ids/fetch.json.jbuilder +0 -2
  85. data/app/views/admin/ids/index.json.jbuilder +0 -2
  86. data/app/views/admin/imports/_form.html.erb +1 -1
  87. data/app/views/admin/imports/show.html.erb +1 -1
  88. data/app/views/admin/layouts/application.html.erb +4 -2
  89. data/app/views/admin/reference_types/_form.html.erb +25 -0
  90. data/app/views/admin/reference_types/_reference_type.html.erb +52 -0
  91. data/app/views/admin/reference_types/_reference_type.json.jbuilder +2 -0
  92. data/app/views/admin/reference_types/edit.html.erb +12 -0
  93. data/app/views/admin/reference_types/index.html.erb +52 -0
  94. data/app/views/admin/reference_types/index.json.jbuilder +1 -0
  95. data/app/views/admin/reference_types/new.html.erb +11 -0
  96. data/app/views/admin/reference_types/show.html.erb +3 -0
  97. data/app/views/admin/reference_types/show.json.jbuilder +1 -0
  98. data/app/views/admin/shared/_footer.html.erb +5 -2
  99. data/app/views/admin/shared/_js_behaviors.html.erb +2 -3
  100. data/app/views/admin/shared/_navbar.html.erb +9 -2
  101. data/app/views/admin/users/index.html.erb +0 -1
  102. data/app/views/catalog/_show_gbl_admin.html.erb +1 -1
  103. data/config/initializers/defaults.yml +310 -0
  104. data/config/initializers/rails_config.rb +8 -0
  105. data/config/locales/documents.en.yml +14 -0
  106. data/config/routes.rb +30 -5
  107. data/db/import_references_schema_support.numbers +0 -0
  108. data/db/migrate/20230316183001_add_geoblacklight_admin_gem.rb +0 -12
  109. data/db/migrate/20241009200524_create_admin_reference_types.rb +13 -0
  110. data/db/migrate/20241010161420_create_document_references.rb +14 -0
  111. data/db/migrate/20241120238823_rename_references_to_distributions.rb +5 -0
  112. data/db/seeds.rb +5 -0
  113. data/db/seeds_elements.csv +1 -1
  114. data/db/seeds_elements.numbers +0 -0
  115. data/db/seeds_reference_types.csv +29 -0
  116. data/db/seeds_reference_types.numbers +0 -0
  117. data/db/structure.sql +1 -38
  118. data/lib/compose.yml +31 -0
  119. data/lib/generators/geoblacklight_admin/config_generator.rb +48 -12
  120. data/lib/generators/geoblacklight_admin/install_generator.rb +8 -0
  121. data/lib/generators/geoblacklight_admin/templates/config/database.yml +1 -1
  122. data/lib/generators/geoblacklight_admin/templates/config/initializers/devise.rb +0 -2
  123. data/lib/generators/geoblacklight_admin/templates/config/initializers/mime_types.rb +1 -0
  124. data/lib/generators/geoblacklight_admin/templates/demo-app/Dockerfile +31 -0
  125. data/lib/generators/geoblacklight_admin/templates/demo-app/compose.yml +42 -0
  126. data/lib/generators/geoblacklight_admin/templates/demo-app/start-server.sh +21 -0
  127. data/lib/geoblacklight_admin/engine.rb +4 -0
  128. data/lib/geoblacklight_admin/tasks/distributions.rake +69 -0
  129. data/lib/geoblacklight_admin/tasks/images.rake +1 -0
  130. data/lib/geoblacklight_admin/tasks/solr.rake +31 -0
  131. data/lib/geoblacklight_admin/version.rb +1 -1
  132. data/lib/geoblacklight_admin.rb +4 -0
  133. metadata +78 -41
  134. data/app/javascript/entrypoints/engine.js +0 -8
  135. data/config/locales/devise_invitable.en.yml +0 -31
  136. data/lib/generators/geoblacklight_admin/templates/devise/invitations/edit.html.erb +0 -15
  137. data/lib/generators/geoblacklight_admin/templates/devise/invitations/new.html.erb +0 -15
  138. data/lib/generators/geoblacklight_admin/templates/devise/mailer/invitation_instructions.html.erb +0 -11
  139. data/lib/generators/geoblacklight_admin/templates/devise/mailer/invitation_instructions.text.erb +0 -11
@@ -1,3 +1,4 @@
1
+ require "rake"
1
2
  require "csv"
2
3
 
3
4
  namespace :geoblacklight_admin do
@@ -7,5 +8,35 @@ namespace :geoblacklight_admin do
7
8
  deleted_orphans = GeoblacklightAdmin::SolrUtils.delete_solr_orphans(batch_size: 1000)
8
9
  puts "Deleted: #{deleted_orphans.inspect}"
9
10
  end
11
+
12
+ desc "Reindex all Documents - via Kithe"
13
+ task reindex: :environment do
14
+ Kithe::Indexable.index_with(batching: true) do
15
+ progress_bar = ProgressBar.create(total: Document.count, format: Kithe::STANDARD_PROGRESS_BAR_FORMAT)
16
+
17
+ scope = Kithe::Model.where(kithe_model_type: 1)
18
+
19
+ scope.find_each do |model|
20
+ progress_bar.title = "#{model.class.name}:#{model.friendlier_id}"
21
+ model.update_index
22
+ progress_bar.increment
23
+ end
24
+ end
25
+ end
26
+
27
+ desc "Reindex all Documents - via Rails"
28
+ task reindex_rails: :environment do
29
+ total_documents_processed = 0
30
+ Document.find_in_batches(batch_size: 1000) do |documents|
31
+ documents.each do |document|
32
+ document.update_index
33
+ rescue => e
34
+ puts "Error updating index for document: #{document.friendlier_id}"
35
+ puts e.message
36
+ end
37
+ total_documents_processed += documents.size
38
+ puts "Processed #{documents.size} documents in this batch, total processed: #{total_documents_processed}"
39
+ end
40
+ end
10
41
  end
11
42
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GeoblacklightAdmin
4
- VERSION = "0.5.1"
4
+ VERSION = "0.6.0"
5
5
  end
@@ -2,6 +2,10 @@
2
2
 
3
3
  require "active_support/dependencies"
4
4
  require "geoblacklight_admin/engine"
5
+ require "zeitwerk"
6
+ loader = Zeitwerk::Loader.for_gem
7
+ loader.ignore("#{__dir__}/generators")
8
+ loader.setup
5
9
 
6
10
  module GeoblacklightAdmin
7
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Larson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-27 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_storage_validations
@@ -164,20 +164,6 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '1.0'
167
- - !ruby/object:Gem::Dependency
168
- name: devise_invitable
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '2.0'
174
- type: :runtime
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '2.0'
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: dotenv-rails
183
169
  requirement: !ruby/object:Gem::Requirement
@@ -369,7 +355,7 @@ dependencies:
369
355
  version: '7.0'
370
356
  - - "<"
371
357
  - !ruby/object:Gem::Version
372
- version: '7.2'
358
+ version: '7.3'
373
359
  type: :runtime
374
360
  prerelease: false
375
361
  version_requirements: !ruby/object:Gem::Requirement
@@ -379,7 +365,7 @@ dependencies:
379
365
  version: '7.0'
380
366
  - - "<"
381
367
  - !ruby/object:Gem::Version
382
- version: '7.2'
368
+ version: '7.3'
383
369
  - !ruby/object:Gem::Dependency
384
370
  name: ruby-progressbar
385
371
  requirement: !ruby/object:Gem::Requirement
@@ -428,14 +414,14 @@ dependencies:
428
414
  requirements:
429
415
  - - "~>"
430
416
  - !ruby/object:Gem::Version
431
- version: '10.0'
417
+ version: '12.0'
432
418
  type: :runtime
433
419
  prerelease: false
434
420
  version_requirements: !ruby/object:Gem::Requirement
435
421
  requirements:
436
422
  - - "~>"
437
423
  - !ruby/object:Gem::Version
438
- version: '10.0'
424
+ version: '12.0'
439
425
  - !ruby/object:Gem::Dependency
440
426
  name: vite_rails
441
427
  requirement: !ruby/object:Gem::Requirement
@@ -464,6 +450,20 @@ dependencies:
464
450
  - - ">="
465
451
  - !ruby/object:Gem::Version
466
452
  version: '3.5'
453
+ - !ruby/object:Gem::Dependency
454
+ name: zeitwerk
455
+ requirement: !ruby/object:Gem::Requirement
456
+ requirements:
457
+ - - "~>"
458
+ - !ruby/object:Gem::Version
459
+ version: '2.6'
460
+ type: :runtime
461
+ prerelease: false
462
+ version_requirements: !ruby/object:Gem::Requirement
463
+ requirements:
464
+ - - "~>"
465
+ - !ruby/object:Gem::Version
466
+ version: '2.6'
467
467
  - !ruby/object:Gem::Dependency
468
468
  name: byebug
469
469
  requirement: !ruby/object:Gem::Requirement
@@ -618,6 +618,20 @@ dependencies:
618
618
  - - "~>"
619
619
  - !ruby/object:Gem::Version
620
620
  version: '1.6'
621
+ - !ruby/object:Gem::Dependency
622
+ name: mocha
623
+ requirement: !ruby/object:Gem::Requirement
624
+ requirements:
625
+ - - "~>"
626
+ - !ruby/object:Gem::Version
627
+ version: '2.0'
628
+ type: :development
629
+ prerelease: false
630
+ version_requirements: !ruby/object:Gem::Requirement
631
+ requirements:
632
+ - - "~>"
633
+ - !ruby/object:Gem::Version
634
+ version: '2.0'
621
635
  - !ruby/object:Gem::Dependency
622
636
  name: rails-controller-testing
623
637
  requirement: !ruby/object:Gem::Requirement
@@ -688,20 +702,6 @@ dependencies:
688
702
  - - "~>"
689
703
  - !ruby/object:Gem::Version
690
704
  version: '0.22'
691
- - !ruby/object:Gem::Dependency
692
- name: solr_wrapper
693
- requirement: !ruby/object:Gem::Requirement
694
- requirements:
695
- - - "~>"
696
- - !ruby/object:Gem::Version
697
- version: '4.0'
698
- type: :development
699
- prerelease: false
700
- version_requirements: !ruby/object:Gem::Requirement
701
- requirements:
702
- - - "~>"
703
- - !ruby/object:Gem::Version
704
- version: '4.0'
705
705
  - !ruby/object:Gem::Dependency
706
706
  name: sprockets
707
707
  requirement: !ruby/object:Gem::Requirement
@@ -826,6 +826,7 @@ files:
826
826
  - app/controllers/admin/bulk_actions_controller.rb
827
827
  - app/controllers/admin/document_accesses_controller.rb
828
828
  - app/controllers/admin/document_assets_controller.rb
829
+ - app/controllers/admin/document_distributions_controller.rb
829
830
  - app/controllers/admin/document_downloads_controller.rb
830
831
  - app/controllers/admin/documents_controller.rb
831
832
  - app/controllers/admin/elements_controller.rb
@@ -835,6 +836,7 @@ files:
835
836
  - app/controllers/admin/imports_controller.rb
836
837
  - app/controllers/admin/mappings_controller.rb
837
838
  - app/controllers/admin/notifications_controller.rb
839
+ - app/controllers/admin/reference_types_controller.rb
838
840
  - app/controllers/admin/search_controller.rb
839
841
  - app/controllers/admin/users_controller.rb
840
842
  - app/helpers/asset_helper.rb
@@ -844,8 +846,10 @@ files:
844
846
  - app/helpers/geoblacklight_admin_helper.rb
845
847
  - app/helpers/mappings_helper.rb
846
848
  - app/indexers/document_indexer.rb
849
+ - app/javascript/channels/consumer.js
850
+ - app/javascript/channels/export_channel.js
851
+ - app/javascript/channels/index.js
847
852
  - app/javascript/controllers/results_controller.js
848
- - app/javascript/entrypoints/engine.js
849
853
  - app/javascript/index.js
850
854
  - app/jobs/bulk_action_collect_documents.rb
851
855
  - app/jobs/bulk_action_revert_document_job.rb
@@ -891,6 +895,7 @@ files:
891
895
  - app/models/document/geom_validator.rb
892
896
  - app/models/document/reference.rb
893
897
  - app/models/document_access.rb
898
+ - app/models/document_distribution.rb
894
899
  - app/models/document_download.rb
895
900
  - app/models/document_state_machine.rb
896
901
  - app/models/document_thumbnail_state_machine.rb
@@ -922,9 +927,11 @@ files:
922
927
  - app/models/kithe/vips_cli_image_to_png.rb
923
928
  - app/models/mapping.rb
924
929
  - app/models/notification.rb
930
+ - app/models/reference_type.rb
925
931
  - app/models/user.rb
926
932
  - app/notifications/export_notification.rb
927
933
  - app/services/export_csv_document_access_links_service.rb
934
+ - app/services/export_csv_document_distributions_service.rb
928
935
  - app/services/export_csv_document_downloads_service.rb
929
936
  - app/services/export_csv_service.rb
930
937
  - app/services/export_json_service.rb
@@ -972,10 +979,22 @@ files:
972
979
  - app/views/admin/document_accesses/new.html.erb
973
980
  - app/views/admin/document_accesses/show.html.erb
974
981
  - app/views/admin/document_accesses/show.json.jbuilder
982
+ - app/views/admin/document_assets/_assets_table.html.erb
975
983
  - app/views/admin/document_assets/_form.html.erb
976
984
  - app/views/admin/document_assets/display_attach_form.html.erb
977
985
  - app/views/admin/document_assets/edit.html.erb
978
986
  - app/views/admin/document_assets/index.html.erb
987
+ - app/views/admin/document_distributions/_document_distribution.html.erb
988
+ - app/views/admin/document_distributions/_document_distribution.json.jbuilder
989
+ - app/views/admin/document_distributions/_form.html.erb
990
+ - app/views/admin/document_distributions/destroy_all.html.erb
991
+ - app/views/admin/document_distributions/edit.html.erb
992
+ - app/views/admin/document_distributions/import.html.erb
993
+ - app/views/admin/document_distributions/index.html.erb
994
+ - app/views/admin/document_distributions/index.json.jbuilder
995
+ - app/views/admin/document_distributions/new.html.erb
996
+ - app/views/admin/document_distributions/show.html.erb
997
+ - app/views/admin/document_distributions/show.json.jbuilder
979
998
  - app/views/admin/document_downloads/_document_download.json.jbuilder
980
999
  - app/views/admin/document_downloads/_form.html.erb
981
1000
  - app/views/admin/document_downloads/destroy_all.html.erb
@@ -1008,6 +1027,7 @@ files:
1008
1027
  - app/views/admin/documents/admin.html.erb
1009
1028
  - app/views/admin/documents/edit.html.erb
1010
1029
  - app/views/admin/documents/features/_assets.html.erb
1030
+ - app/views/admin/documents/features/_document_references.html.erb
1011
1031
  - app/views/admin/documents/features/_institutional_access_links.html.erb
1012
1032
  - app/views/admin/documents/features/_multiple_download_links.html.erb
1013
1033
  - app/views/admin/documents/fetch.json_aardvark.jbuilder
@@ -1067,6 +1087,15 @@ files:
1067
1087
  - app/views/admin/notifications/_notification.html.haml
1068
1088
  - app/views/admin/notifications/index.html.erb
1069
1089
  - app/views/admin/notifications/update.js.erb
1090
+ - app/views/admin/reference_types/_form.html.erb
1091
+ - app/views/admin/reference_types/_reference_type.html.erb
1092
+ - app/views/admin/reference_types/_reference_type.json.jbuilder
1093
+ - app/views/admin/reference_types/edit.html.erb
1094
+ - app/views/admin/reference_types/index.html.erb
1095
+ - app/views/admin/reference_types/index.json.jbuilder
1096
+ - app/views/admin/reference_types/new.html.erb
1097
+ - app/views/admin/reference_types/show.html.erb
1098
+ - app/views/admin/reference_types/show.json.jbuilder
1070
1099
  - app/views/admin/search/index.html.erb
1071
1100
  - app/views/admin/shared/_flash_messages.html.erb
1072
1101
  - app/views/admin/shared/_footer.html.erb
@@ -1084,23 +1113,31 @@ files:
1084
1113
  - config/gbl_v1_schema.json
1085
1114
  - config/geomg_aardvark_schema.json
1086
1115
  - config/geomg_schema.json
1116
+ - config/initializers/defaults.yml
1117
+ - config/initializers/rails_config.rb
1087
1118
  - config/locales/devise.en.yml
1088
- - config/locales/devise_invitable.en.yml
1089
1119
  - config/locales/documents.en.yml
1090
1120
  - config/locales/en.yml
1091
1121
  - config/locales/geoblacklight.en.yml
1092
1122
  - config/locales/simple_form.en.yml
1093
1123
  - config/routes.rb
1094
1124
  - config/vite.json
1125
+ - db/import_references_schema_support.numbers
1095
1126
  - db/migrate/20230316183001_add_geoblacklight_admin_gem.rb
1096
1127
  - db/migrate/20231106215104_bulk_action_sti.rb
1097
1128
  - db/migrate/20240619171628_create_document_thumbnail_statesman.rb
1129
+ - db/migrate/20241009200524_create_admin_reference_types.rb
1130
+ - db/migrate/20241010161420_create_document_references.rb
1131
+ - db/migrate/20241120238823_rename_references_to_distributions.rb
1098
1132
  - db/seeds.rb
1099
1133
  - db/seeds_elements.csv
1100
1134
  - db/seeds_elements.numbers
1101
1135
  - db/seeds_form_elements.csv
1102
1136
  - db/seeds_form_elements.numbers
1137
+ - db/seeds_reference_types.csv
1138
+ - db/seeds_reference_types.numbers
1103
1139
  - db/structure.sql
1140
+ - lib/compose.yml
1104
1141
  - lib/generators/geoblacklight_admin/config_generator.rb
1105
1142
  - lib/generators/geoblacklight_admin/helpers_generator.rb
1106
1143
  - lib/generators/geoblacklight_admin/install_generator.rb
@@ -1125,11 +1162,10 @@ files:
1125
1162
  - lib/generators/geoblacklight_admin/templates/config/settings.yml
1126
1163
  - lib/generators/geoblacklight_admin/templates/config/sidekiq.yml
1127
1164
  - lib/generators/geoblacklight_admin/templates/config/vite.json
1165
+ - lib/generators/geoblacklight_admin/templates/demo-app/Dockerfile
1166
+ - lib/generators/geoblacklight_admin/templates/demo-app/compose.yml
1167
+ - lib/generators/geoblacklight_admin/templates/demo-app/start-server.sh
1128
1168
  - lib/generators/geoblacklight_admin/templates/devise/confirmations/new.html.erb
1129
- - lib/generators/geoblacklight_admin/templates/devise/invitations/edit.html.erb
1130
- - lib/generators/geoblacklight_admin/templates/devise/invitations/new.html.erb
1131
- - lib/generators/geoblacklight_admin/templates/devise/mailer/invitation_instructions.html.erb
1132
- - lib/generators/geoblacklight_admin/templates/devise/mailer/invitation_instructions.text.erb
1133
1169
  - lib/generators/geoblacklight_admin/templates/devise/passwords/edit.html.erb
1134
1170
  - lib/generators/geoblacklight_admin/templates/devise/passwords/new.html.erb
1135
1171
  - lib/generators/geoblacklight_admin/templates/devise/registrations/edit.html.erb
@@ -1171,6 +1207,7 @@ files:
1171
1207
  - lib/geoblacklight_admin.rb
1172
1208
  - lib/geoblacklight_admin/engine.rb
1173
1209
  - lib/geoblacklight_admin/rake_task.rb
1210
+ - lib/geoblacklight_admin/tasks/distributions.rake
1174
1211
  - lib/geoblacklight_admin/tasks/images.rake
1175
1212
  - lib/geoblacklight_admin/tasks/solr.rake
1176
1213
  - lib/geoblacklight_admin/version.rb
@@ -1193,7 +1230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1193
1230
  - !ruby/object:Gem::Version
1194
1231
  version: '0'
1195
1232
  requirements: []
1196
- rubygems_version: 3.5.9
1233
+ rubygems_version: 3.5.16
1197
1234
  signing_key:
1198
1235
  specification_version: 4
1199
1236
  summary: Administrative UI for GeoBlacklight. Built on Kithe.
@@ -1,8 +0,0 @@
1
- console.log('Vite ⚡️ Rails - GBL Admin')
2
-
3
- // Stimulus
4
- import { Application } from '@hotwired/stimulus'
5
- import ResultsController from "../controllers/results_controller"
6
-
7
- window.Stimulus = Application.start()
8
- Stimulus.register("results", ResultsController)
@@ -1,31 +0,0 @@
1
- en:
2
- devise:
3
- failure:
4
- invited: "You have a pending invitation, accept it to finish creating your account."
5
- invitations:
6
- send_instructions: "An invitation email has been sent to %{email}."
7
- invitation_token_invalid: "The invitation token provided is not valid!"
8
- updated: "Your password was set successfully. You are now signed in."
9
- updated_not_active: "Your password was set successfully."
10
- no_invitations_remaining: "No invitations remaining"
11
- invitation_removed: "Your invitation was removed."
12
- new:
13
- header: "Send invitation"
14
- submit_button: "Send an invitation"
15
- edit:
16
- header: "Set your password"
17
- submit_button: "Set my password"
18
- mailer:
19
- invitation_instructions:
20
- subject: "Invitation instructions"
21
- hello: "Hello %{email}"
22
- someone_invited_you: "Someone has invited you to %{url}, you can accept it through the link below."
23
- accept: "Accept invitation"
24
- accept_until: "This invitation will be due in %{due_date}."
25
- ignore: "If you don't want to accept the invitation, please ignore this email. Your account won't be created until you access the link above and set your password."
26
- time:
27
- formats:
28
- devise:
29
- mailer:
30
- invitation_instructions:
31
- accept_until_format: "%B %d, %Y %I:%M %p"
@@ -1,15 +0,0 @@
1
- <h2><%= t "devise.invitations.edit.header" %></h2>
2
-
3
- <%= simple_form_for(resource, as: resource_name, url: invitation_path(resource_name), html: { method: :put }) do |f| %>
4
- <%= f.error_notification %>
5
- <%= f.hidden_field :invitation_token %>
6
-
7
- <div class="form-inputs">
8
- <%= f.input :password %>
9
- <%= f.input :password_confirmation %>
10
- </div>
11
-
12
- <div class="form-actions">
13
- <%= f.button :submit, t("devise.invitations.edit.submit_button"), class: 'btn btn-primary' %>
14
- </div>
15
- <% end %>
@@ -1,15 +0,0 @@
1
- <h2><%= t "devise.invitations.new.header" %></h2>
2
-
3
- <%= simple_form_for(resource, as: resource_name, url: invitation_path(resource_name), html: { method: :post }) do |f| %>
4
- <%= f.error_notification %>
5
-
6
- <% resource.class.invite_key_fields.each do |field| -%>
7
- <div class="form-inputs">
8
- <%= f.input field %>
9
- </div>
10
- <% end -%>
11
-
12
- <div class="form-actions">
13
- <%= f.button :submit, t("devise.invitations.new.submit_button"), class: 'btn btn-primary' %>
14
- </div>
15
- <% end %>
@@ -1,11 +0,0 @@
1
- <p><%= t("devise.mailer.invitation_instructions.hello", email: @resource.email) %></p>
2
-
3
- <p><%= t("devise.mailer.invitation_instructions.someone_invited_you", url: root_url) %></p>
4
-
5
- <p><%= link_to t("devise.mailer.invitation_instructions.accept"), accept_invitation_url(@resource, invitation_token: @token) %></p>
6
-
7
- <% if @resource.invitation_due_at %>
8
- <p><%= t("devise.mailer.invitation_instructions.accept_until", due_date: l(@resource.invitation_due_at, format: :'devise.mailer.invitation_instructions.accept_until_format')) %></p>
9
- <% end %>
10
-
11
- <p><%= t("devise.mailer.invitation_instructions.ignore") %></p>
@@ -1,11 +0,0 @@
1
- <%= t("devise.mailer.invitation_instructions.hello", email: @resource.email) %>
2
-
3
- <%= t("devise.mailer.invitation_instructions.someone_invited_you", url: root_url) %>
4
-
5
- <%= accept_invitation_url(@resource, invitation_token: @token) %>
6
-
7
- <% if @resource.invitation_due_at %>
8
- <%= t("devise.mailer.invitation_instructions.accept_until", due_date: l(@resource.invitation_due_at, format: :'devise.mailer.invitation_instructions.accept_until_format')) %>
9
- <% end %>
10
-
11
- <%= t("devise.mailer.invitation_instructions.ignore") %>