blacklight-spotlight 4.0.3 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/spotlight/_catalog.scss +0 -12
- data/app/assets/stylesheets/spotlight/_header.scss +9 -0
- data/app/assets/stylesheets/spotlight/browse_group_categories_block.scss +4 -4
- data/app/components/blacklight/icons/arrow_alt_circle_left_component.rb +15 -0
- data/app/components/blacklight/icons/arrow_alt_circle_right_component.rb +15 -0
- data/app/components/blacklight/icons/arrow_back_ios_component.rb +15 -0
- data/app/components/blacklight/icons/arrow_forward_ios_component.rb +15 -0
- data/app/components/blacklight/icons/check_circle_component.rb +15 -0
- data/app/components/blacklight/icons/check_component.rb +15 -0
- data/app/components/blacklight/icons/chevron_right_component.rb +15 -0
- data/app/components/blacklight/icons/close_component.rb +15 -0
- data/app/components/blacklight/icons/edit_component.rb +15 -0
- data/app/components/blacklight/icons/error_component.rb +14 -0
- data/app/components/blacklight/icons/highlight_off_component.rb +15 -0
- data/app/components/blacklight/icons/info_component.rb +15 -0
- data/app/components/blacklight/icons/warning_component.rb +14 -0
- data/app/components/blacklight/icons/zoom_in_component.rb +15 -0
- data/app/components/blacklight/icons/zoom_out_component.rb +15 -0
- data/app/components/spotlight/analytics/aggregation_component.html.erb +14 -0
- data/app/components/spotlight/analytics/aggregation_component.rb +37 -0
- data/app/components/spotlight/analytics/dashboard_component.html.erb +50 -0
- data/app/components/spotlight/analytics/dashboard_component.rb +32 -0
- data/app/components/spotlight/document_admin_table_component.html.erb +36 -0
- data/app/components/spotlight/document_admin_table_component.rb +23 -0
- data/app/components/spotlight/header_component.html.erb +1 -0
- data/app/components/spotlight/header_component.rb +6 -0
- data/app/components/spotlight/icon_component.rb +13 -0
- data/app/components/spotlight/solr_document_legacy_embed_component.html.erb +11 -0
- data/app/components/spotlight/solr_document_legacy_embed_component.rb +7 -0
- data/app/controllers/concerns/spotlight/controller.rb +1 -1
- data/app/controllers/spotlight/browse_controller.rb +2 -0
- data/app/controllers/spotlight/catalog_controller.rb +6 -2
- data/app/controllers/spotlight/dashboards_controller.rb +4 -3
- data/app/models/concerns/spotlight/exhibit_analytics.rb +6 -4
- data/app/models/spotlight/analytics/ga.rb +90 -43
- data/app/models/spotlight/blacklight_configuration.rb +8 -1
- data/app/views/layouts/spotlight/base.html.erb +2 -2
- data/app/views/shared/_header_navbar.html.erb +6 -12
- data/app/views/spotlight/catalog/_admin_index_header_default.html.erb +1 -0
- data/app/views/spotlight/catalog/_admin_thumbnail_default.html.erb +1 -0
- data/app/views/spotlight/catalog/_document_admin_table.html.erb +8 -1
- data/app/views/spotlight/catalog/_document_row.html.erb +2 -5
- data/app/views/spotlight/catalog/_index_compact_default.html.erb +1 -0
- data/app/views/spotlight/catalog/edit.html.erb +15 -2
- data/app/views/spotlight/dashboards/analytics.html.erb +2 -2
- data/app/views/spotlight/pages/_view_type_group.html.erb +2 -5
- data/app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_embedded_document.html.erb +8 -0
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb +3 -3
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb +1 -1
- data/config/locales/spotlight.en.yml +16 -4
- data/lib/generators/spotlight/templates/catalog_controller.rb +3 -0
- data/lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb +16 -12
- data/lib/spotlight/engine.rb +11 -9
- data/lib/spotlight/version.rb +1 -1
- data/lib/spotlight.rb +3 -0
- data/spec/support/features/test_features_helpers.rb +1 -1
- metadata +61 -31
- data/app/assets/images/blacklight/arrow-alt-circle-left.svg +0 -1
- data/app/assets/images/blacklight/arrow-alt-circle-right.svg +0 -1
- data/app/assets/images/blacklight/arrow_back_ios.svg +0 -1
- data/app/assets/images/blacklight/arrow_forward_ios.svg +0 -1
- data/app/assets/images/blacklight/check.svg +0 -1
- data/app/assets/images/blacklight/check_circle.svg +0 -1
- data/app/assets/images/blacklight/chevron_right.svg +0 -1
- data/app/assets/images/blacklight/close.svg +0 -1
- data/app/assets/images/blacklight/edit.svg +0 -1
- data/app/assets/images/blacklight/error.svg +0 -1
- data/app/assets/images/blacklight/highlight_off.svg +0 -1
- data/app/assets/images/blacklight/info.svg +0 -1
- data/app/assets/images/blacklight/warning.svg +0 -1
- data/app/assets/images/blacklight/zoom_in.svg +0 -1
- data/app/assets/images/blacklight/zoom_out.svg +0 -1
- data/app/models/spotlight/analytics/ga_model.rb +0 -29
- data/app/views/spotlight/dashboards/_analytics.html.erb +0 -35
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.
|
4
|
+
version: 4.1.1
|
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: 2024-09-
|
14
|
+
date: 2024-09-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activejob-status
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: '7.
|
70
|
+
version: '7.19'
|
71
71
|
- - "<"
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '9'
|
@@ -77,7 +77,7 @@ dependencies:
|
|
77
77
|
requirements:
|
78
78
|
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: '7.
|
80
|
+
version: '7.19'
|
81
81
|
- - "<"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '9'
|
@@ -183,6 +183,20 @@ dependencies:
|
|
183
183
|
- - "~>"
|
184
184
|
- !ruby/object:Gem::Version
|
185
185
|
version: '1.5'
|
186
|
+
- !ruby/object:Gem::Dependency
|
187
|
+
name: csv
|
188
|
+
requirement: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0'
|
193
|
+
type: :runtime
|
194
|
+
prerelease: false
|
195
|
+
version_requirements: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - ">="
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '0'
|
186
200
|
- !ruby/object:Gem::Dependency
|
187
201
|
name: devise
|
188
202
|
requirement: !ruby/object:Gem::Requirement
|
@@ -268,7 +282,7 @@ dependencies:
|
|
268
282
|
- !ruby/object:Gem::Version
|
269
283
|
version: '0'
|
270
284
|
- !ruby/object:Gem::Dependency
|
271
|
-
name:
|
285
|
+
name: google-analytics-data
|
272
286
|
requirement: !ruby/object:Gem::Requirement
|
273
287
|
requirements:
|
274
288
|
- - ">="
|
@@ -282,7 +296,7 @@ dependencies:
|
|
282
296
|
- !ruby/object:Gem::Version
|
283
297
|
version: '0'
|
284
298
|
- !ruby/object:Gem::Dependency
|
285
|
-
name: i18n
|
299
|
+
name: i18n
|
286
300
|
requirement: !ruby/object:Gem::Requirement
|
287
301
|
requirements:
|
288
302
|
- - ">="
|
@@ -296,7 +310,7 @@ dependencies:
|
|
296
310
|
- !ruby/object:Gem::Version
|
297
311
|
version: '0'
|
298
312
|
- !ruby/object:Gem::Dependency
|
299
|
-
name:
|
313
|
+
name: i18n-active_record
|
300
314
|
requirement: !ruby/object:Gem::Requirement
|
301
315
|
requirements:
|
302
316
|
- - ">="
|
@@ -310,7 +324,7 @@ dependencies:
|
|
310
324
|
- !ruby/object:Gem::Version
|
311
325
|
version: '0'
|
312
326
|
- !ruby/object:Gem::Dependency
|
313
|
-
name:
|
327
|
+
name: iiif_manifest
|
314
328
|
requirement: !ruby/object:Gem::Requirement
|
315
329
|
requirements:
|
316
330
|
- - ">="
|
@@ -324,7 +338,7 @@ dependencies:
|
|
324
338
|
- !ruby/object:Gem::Version
|
325
339
|
version: '0'
|
326
340
|
- !ruby/object:Gem::Dependency
|
327
|
-
name:
|
341
|
+
name: iiif-presentation
|
328
342
|
requirement: !ruby/object:Gem::Requirement
|
329
343
|
requirements:
|
330
344
|
- - ">="
|
@@ -338,7 +352,7 @@ dependencies:
|
|
338
352
|
- !ruby/object:Gem::Version
|
339
353
|
version: '0'
|
340
354
|
- !ruby/object:Gem::Dependency
|
341
|
-
name:
|
355
|
+
name: leaflet-rails
|
342
356
|
requirement: !ruby/object:Gem::Requirement
|
343
357
|
requirements:
|
344
358
|
- - ">="
|
@@ -567,16 +581,22 @@ dependencies:
|
|
567
581
|
name: view_component
|
568
582
|
requirement: !ruby/object:Gem::Requirement
|
569
583
|
requirements:
|
570
|
-
- - "
|
584
|
+
- - ">="
|
571
585
|
- !ruby/object:Gem::Version
|
572
|
-
version: '2.
|
586
|
+
version: '2.66'
|
587
|
+
- - "<"
|
588
|
+
- !ruby/object:Gem::Version
|
589
|
+
version: '4'
|
573
590
|
type: :runtime
|
574
591
|
prerelease: false
|
575
592
|
version_requirements: !ruby/object:Gem::Requirement
|
576
593
|
requirements:
|
577
|
-
- - "
|
594
|
+
- - ">="
|
578
595
|
- !ruby/object:Gem::Version
|
579
|
-
version: '2.
|
596
|
+
version: '2.66'
|
597
|
+
- - "<"
|
598
|
+
- !ruby/object:Gem::Version
|
599
|
+
version: '4'
|
580
600
|
- !ruby/object:Gem::Dependency
|
581
601
|
name: capybara
|
582
602
|
requirement: !ruby/object:Gem::Requirement
|
@@ -854,21 +874,6 @@ files:
|
|
854
874
|
- README.md
|
855
875
|
- Rakefile
|
856
876
|
- app/assets/config/spotlight/manifest.js
|
857
|
-
- app/assets/images/blacklight/arrow-alt-circle-left.svg
|
858
|
-
- app/assets/images/blacklight/arrow-alt-circle-right.svg
|
859
|
-
- app/assets/images/blacklight/arrow_back_ios.svg
|
860
|
-
- app/assets/images/blacklight/arrow_forward_ios.svg
|
861
|
-
- app/assets/images/blacklight/check.svg
|
862
|
-
- app/assets/images/blacklight/check_circle.svg
|
863
|
-
- app/assets/images/blacklight/chevron_right.svg
|
864
|
-
- app/assets/images/blacklight/close.svg
|
865
|
-
- app/assets/images/blacklight/edit.svg
|
866
|
-
- app/assets/images/blacklight/error.svg
|
867
|
-
- app/assets/images/blacklight/highlight_off.svg
|
868
|
-
- app/assets/images/blacklight/info.svg
|
869
|
-
- app/assets/images/blacklight/warning.svg
|
870
|
-
- app/assets/images/blacklight/zoom_in.svg
|
871
|
-
- app/assets/images/blacklight/zoom_out.svg
|
872
877
|
- app/assets/images/spotlight/blocks/sir-trevor-icons.svg
|
873
878
|
- app/assets/images/spotlight/default_browse_thumbnail.jpg
|
874
879
|
- app/assets/images/spotlight/default_thumbnail.jpg
|
@@ -917,7 +922,33 @@ files:
|
|
917
922
|
- app/assets/stylesheets/spotlight/browse_group_categories_block.scss
|
918
923
|
- app/assets/stylesheets/spotlight/typeahead.scss
|
919
924
|
- app/builders/spotlight/bootstrap_breadcrumbs_builder.rb
|
925
|
+
- app/components/blacklight/icons/arrow_alt_circle_left_component.rb
|
926
|
+
- app/components/blacklight/icons/arrow_alt_circle_right_component.rb
|
927
|
+
- app/components/blacklight/icons/arrow_back_ios_component.rb
|
928
|
+
- app/components/blacklight/icons/arrow_forward_ios_component.rb
|
929
|
+
- app/components/blacklight/icons/check_circle_component.rb
|
930
|
+
- app/components/blacklight/icons/check_component.rb
|
931
|
+
- app/components/blacklight/icons/chevron_right_component.rb
|
932
|
+
- app/components/blacklight/icons/close_component.rb
|
933
|
+
- app/components/blacklight/icons/edit_component.rb
|
934
|
+
- app/components/blacklight/icons/error_component.rb
|
935
|
+
- app/components/blacklight/icons/highlight_off_component.rb
|
936
|
+
- app/components/blacklight/icons/info_component.rb
|
937
|
+
- app/components/blacklight/icons/warning_component.rb
|
938
|
+
- app/components/blacklight/icons/zoom_in_component.rb
|
939
|
+
- app/components/blacklight/icons/zoom_out_component.rb
|
940
|
+
- app/components/spotlight/analytics/aggregation_component.html.erb
|
941
|
+
- app/components/spotlight/analytics/aggregation_component.rb
|
942
|
+
- app/components/spotlight/analytics/dashboard_component.html.erb
|
943
|
+
- app/components/spotlight/analytics/dashboard_component.rb
|
944
|
+
- app/components/spotlight/document_admin_table_component.html.erb
|
945
|
+
- app/components/spotlight/document_admin_table_component.rb
|
920
946
|
- app/components/spotlight/document_component.rb
|
947
|
+
- app/components/spotlight/header_component.html.erb
|
948
|
+
- app/components/spotlight/header_component.rb
|
949
|
+
- app/components/spotlight/icon_component.rb
|
950
|
+
- app/components/spotlight/solr_document_legacy_embed_component.html.erb
|
951
|
+
- app/components/spotlight/solr_document_legacy_embed_component.rb
|
921
952
|
- app/controllers/concerns/spotlight/base.rb
|
922
953
|
- app/controllers/concerns/spotlight/catalog.rb
|
923
954
|
- app/controllers/concerns/spotlight/config.rb
|
@@ -1095,7 +1126,6 @@ files:
|
|
1095
1126
|
- app/models/spotlight/ability.rb
|
1096
1127
|
- app/models/spotlight/about_page.rb
|
1097
1128
|
- app/models/spotlight/analytics/ga.rb
|
1098
|
-
- app/models/spotlight/analytics/ga_model.rb
|
1099
1129
|
- app/models/spotlight/attachment.rb
|
1100
1130
|
- app/models/spotlight/background_job_progress.rb
|
1101
1131
|
- app/models/spotlight/blacklight_configuration.rb
|
@@ -1238,7 +1268,6 @@ files:
|
|
1238
1268
|
- app/views/spotlight/custom_search_fields/_form.html.erb
|
1239
1269
|
- app/views/spotlight/custom_search_fields/edit.html.erb
|
1240
1270
|
- app/views/spotlight/custom_search_fields/new.html.erb
|
1241
|
-
- app/views/spotlight/dashboards/_analytics.html.erb
|
1242
1271
|
- app/views/spotlight/dashboards/_page.html.erb
|
1243
1272
|
- app/views/spotlight/dashboards/_page_activity.html.erb
|
1244
1273
|
- app/views/spotlight/dashboards/_reindexing_activity.html.erb
|
@@ -1325,6 +1354,7 @@ files:
|
|
1325
1354
|
- app/views/spotlight/sir_trevor/_sir_trevor_block_array.html.erb
|
1326
1355
|
- app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
|
1327
1356
|
- app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb
|
1357
|
+
- app/views/spotlight/sir_trevor/blocks/_embedded_document.html.erb
|
1328
1358
|
- app/views/spotlight/sir_trevor/blocks/_featured_pages_block.html.erb
|
1329
1359
|
- app/views/spotlight/sir_trevor/blocks/_heading_block.html.erb
|
1330
1360
|
- app/views/spotlight/sir_trevor/blocks/_iframe_block.html.erb
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!-- Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm116-292H256v-70.9c0-10.7-13-16.1-20.5-8.5L121.2 247.5c-4.7 4.7-4.7 12.2 0 16.9l114.3 114.9c7.6 7.6 20.5 2.2 20.5-8.5V300h116c6.6 0 12-5.4 12-12v-64c0-6.6-5.4-12-12-12z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!-- Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zM140 300h116v70.9c0 10.7 13 16.1 20.5 8.5l114.3-114.9c4.7-4.7 4.7-12.2 0-16.9l-114.3-115c-7.6-7.6-20.5-2.2-20.5 8.5V212H140c-6.6 0-12 5.4-12 12v64c0 6.6 5.4 12 12 12z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path opacity=".87" fill="none" d="M0 0h24v24H0V0z"/><path d="M17.51 3.87L15.73 2.1 5.84 12l9.9 9.9 1.77-1.77L9.38 12l8.13-8.13z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path opacity=".87" fill="none" d="M24 24H0V0h24v24z"/><path d="M6.49 20.13l1.77 1.77 9.9-9.9-9.9-9.9-1.77 1.77L14.62 12l-8.13 8.13z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM21.41 6.34l-3.75-3.75-2.53 2.54 3.75 3.75 2.53-2.54z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm.5-7H9v2H7v1h2v2h1v-2h2V9h-2z"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7V9z"/></svg>
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'legato'
|
4
|
-
|
5
|
-
module Spotlight
|
6
|
-
module Analytics
|
7
|
-
##
|
8
|
-
# Google Analytics data model for the Exhibit dashboard
|
9
|
-
class GaModel
|
10
|
-
extend Legato::Model
|
11
|
-
|
12
|
-
metrics :sessions, :users, :pageviews
|
13
|
-
|
14
|
-
def self.context(exhibit)
|
15
|
-
if exhibit.is_a? Spotlight::Exhibit
|
16
|
-
for_exhibit(exhibit)
|
17
|
-
else
|
18
|
-
path(exhibit)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
def self.for_exhibit(exhibit)
|
23
|
-
path(Spotlight::Engine.routes.url_helpers.exhibit_path(exhibit))
|
24
|
-
end
|
25
|
-
|
26
|
-
filter :path, &->(path) { contains(:pagePath, "^#{path}") }
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
<%= cache current_exhibit, expires_in: 1.hour do %>
|
2
|
-
<h2><%= t :'.monthly_header' %></h2>
|
3
|
-
<table class="table analytics">
|
4
|
-
<tr>
|
5
|
-
<% current_exhibit.analytics_provider.metrics.elements.each do |e| %>
|
6
|
-
<td class="value <%= e %>"><%= current_exhibit.analytics(1.month, exhibit_root_path(current_exhibit)).send(e) %></td>
|
7
|
-
<% end %>
|
8
|
-
</tr>
|
9
|
-
<tfoot>
|
10
|
-
<tr>
|
11
|
-
<% current_exhibit.analytics_provider.metrics.elements.each do |e| %>
|
12
|
-
<th><%= t(:".#{e}") %></th>
|
13
|
-
<% end %>
|
14
|
-
</tr>
|
15
|
-
</tfoot>
|
16
|
-
</table>
|
17
|
-
<% page_analytics = current_exhibit.page_analytics(1.month, exhibit_root_path(current_exhibit)) %>
|
18
|
-
<% unless page_analytics.empty? %>
|
19
|
-
<h4><%= t :'.pages.header' %></h4>
|
20
|
-
<table class="table table-striped popular-pages">
|
21
|
-
<thead>
|
22
|
-
<tr>
|
23
|
-
<th><%= t(:".pagetitle") %></th>
|
24
|
-
<th class="text-right text-end"><%= t(:".pageviews") %></th>
|
25
|
-
</tr>
|
26
|
-
</thead>
|
27
|
-
<% page_analytics.each do |p| %>
|
28
|
-
<tr>
|
29
|
-
<td><%= link_to p.pageTitle, p.pagePath %></td>
|
30
|
-
<td class="text-right text-end"><%= p.pageviews %></td>
|
31
|
-
</tr>
|
32
|
-
<% end %>
|
33
|
-
</table>
|
34
|
-
<% end %>
|
35
|
-
<% end %>
|