sequenceserver 3.1.1 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sequenceserver/api_errors.rb +24 -0
  3. data/lib/sequenceserver/blast/tasks.rb +1 -1
  4. data/lib/sequenceserver/blast.rb +6 -0
  5. data/lib/sequenceserver/database.rb +13 -0
  6. data/lib/sequenceserver/routes.rb +1 -1
  7. data/lib/sequenceserver/sequence.rb +1 -2
  8. data/lib/sequenceserver/version.rb +1 -1
  9. data/lib/sequenceserver.rb +1 -1
  10. data/public/css/app.min.css +1 -1
  11. data/public/css/sequenceserver.css +0 -18
  12. data/public/css/sequenceserver.min.css +2 -2
  13. data/public/js/alignment_exporter.js +16 -28
  14. data/public/js/cloud_share_modal.js +42 -42
  15. data/public/js/form.js +12 -10
  16. data/public/js/grapher.js +4 -4
  17. data/public/js/hit.js +3 -3
  18. data/public/js/hits.js +276 -0
  19. data/public/js/jquery_world.js +1 -1
  20. data/public/js/mailto.js +1 -3
  21. data/public/js/null_plugins/report_plugins.js +1 -0
  22. data/public/js/options.js +2 -6
  23. data/public/js/query.js +1 -1
  24. data/public/js/report.js +68 -252
  25. data/public/js/report_root.js +7 -5
  26. data/public/js/search.js +28 -11
  27. data/public/js/sequence.js +158 -158
  28. data/public/js/sequence_modal.js +28 -36
  29. data/public/js/sidebar.js +7 -6
  30. data/public/js/tests/alignment_exporter.spec.js +38 -0
  31. data/public/js/tests/cloud_share_modal.spec.js +75 -0
  32. data/public/js/tests/report.spec.js +37 -15
  33. data/public/packages/jquery-ui@1.13.3.js +19070 -0
  34. data/public/sequenceserver-report.min.js +3 -2481
  35. data/public/sequenceserver-report.min.js.LICENSE.txt +300 -0
  36. data/public/sequenceserver-report.min.js.map +1 -0
  37. data/public/sequenceserver-search.min.js +3 -2382
  38. data/public/sequenceserver-search.min.js.LICENSE.txt +292 -0
  39. data/public/sequenceserver-search.min.js.map +1 -0
  40. data/views/layout.erb +3 -7
  41. data/views/search.erb +1 -1
  42. data/views/search_layout.erb +1 -1
  43. metadata +11 -5
  44. data/public/config.js +0 -147
  45. data/public/packages/jquery-ui@1.11.4.js +0 -16624
data/views/layout.erb CHANGED
@@ -74,9 +74,8 @@
74
74
  class="container">
75
75
  <p
76
76
  class="text-center">
77
- Please cite data sources and <a style='vertical-align: baseline' href="https://doi.org/10.1093/molbev/msz185">the paper</a> describing <a href="https://wurmlab.com">our</a> <a href="https://sequenceserver.com">SequenceServer BLAST interface</a>.
78
- <a style='vertical-align: baseline'
79
- href='https://sequenceserver.com'><em>
77
+ Please cite data sources and <a href="https://doi.org/10.1093/molbev/msz185">the paper</a> describing <a href="https://wurmlab.com">our</a> <a href="https://sequenceserver.com">SequenceServer BLAST interface</a>.
78
+ <a href='https://sequenceserver.com'><em>
80
79
  <%=
81
80
  quote = [
82
81
  "Visualize BLAST results.",
@@ -108,7 +107,7 @@
108
107
  </div> <!-- /container -->
109
108
  </div>
110
109
 
111
- <script>
110
+ <script nonce="<%= env['csp.nonce'] %>">
112
111
  document.addEventListener('DOMContentLoaded', function() {
113
112
 
114
113
  function suggestNewVersion(element, version) {
@@ -156,9 +155,6 @@
156
155
  })
157
156
  .catch(() => {});
158
157
  });
159
-
160
158
  </script>
161
- <!-- twitter -->
162
- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
163
159
  </body>
164
160
  </html>
data/views/search.erb CHANGED
@@ -38,7 +38,7 @@
38
38
  </div>
39
39
 
40
40
  <div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse border-t">
41
- <button type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-seqblue text-base font-medium text-white hover:bg-seqorange focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-seqorange sm:ml-3 sm:w-auto sm:text-sm" onclick="document.querySelector('[data-help-modal]').classList.add('hidden')">
41
+ <button type="button" class="js--close-help w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-seqblue text-base font-medium text-white hover:bg-seqorange focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-seqorange sm:ml-3 sm:w-auto sm:text-sm">
42
42
  Close
43
43
  </button>
44
44
  </div>
@@ -65,7 +65,7 @@
65
65
  <%= yield %>
66
66
 
67
67
  <div class="mx-auto px-4">
68
- <div class="container">
68
+ <div class="container mx-auto max-w-screen-xl">
69
69
  <p class="text-center">
70
70
  Please cite data sources and <a class="text-seqblue" href="https://doi.org/10.1093/molbev/msz185">the paper</a> describing <a class="text-seqblue" href="https://wurmlab.com">our</a> <a class="text-seqblue" href="https://sequenceserver.com">SequenceServer BLAST interface</a>.
71
71
  <a class="text-seqblue" href='https://sequenceserver.com'>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequenceserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Queen Mary University of London
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-07-02 00:00:00.000000000 Z
12
+ date: 2024-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -371,7 +371,6 @@ files:
371
371
  - lib/sequenceserver/version.rb
372
372
  - lib/sequenceserver/zip_file_generator.rb
373
373
  - public/404.html
374
- - public/config.js
375
374
  - public/css/app.css
376
375
  - public/css/app.min.css
377
376
  - public/css/fonts.css
@@ -408,6 +407,7 @@ files:
408
407
  - public/js/form.js
409
408
  - public/js/grapher.js
410
409
  - public/js/hit.js
410
+ - public/js/hits.js
411
411
  - public/js/hits_overview.js
412
412
  - public/js/hsp.js
413
413
  - public/js/jquery_world.js
@@ -433,6 +433,8 @@ files:
433
433
  - public/js/share_url.js
434
434
  - public/js/sidebar.js
435
435
  - public/js/svgExporter.js
436
+ - public/js/tests/alignment_exporter.spec.js
437
+ - public/js/tests/cloud_share_modal.spec.js
436
438
  - public/js/tests/database.spec.js
437
439
  - public/js/tests/form.spec.js
438
440
  - public/js/tests/mock_data/databases.json
@@ -446,9 +448,13 @@ files:
446
448
  - public/js/utils.js
447
449
  - public/js/visualisation_helpers.js
448
450
  - public/packages/circosJS@1.7.0.js
449
- - public/packages/jquery-ui@1.11.4.js
451
+ - public/packages/jquery-ui@1.13.3.js
450
452
  - public/sequenceserver-report.min.js
453
+ - public/sequenceserver-report.min.js.LICENSE.txt
454
+ - public/sequenceserver-report.min.js.map
451
455
  - public/sequenceserver-search.min.js
456
+ - public/sequenceserver-search.min.js.LICENSE.txt
457
+ - public/sequenceserver-search.min.js.map
452
458
  - public/sequenceserver_logo.webp
453
459
  - public/vendor/github/components/jquery@2.1.4.js
454
460
  - public/vendor/github/components/jquery@2.1.4/README.md
@@ -3559,7 +3565,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3559
3565
  - !ruby/object:Gem::Version
3560
3566
  version: '0'
3561
3567
  requirements: []
3562
- rubygems_version: 3.5.14
3568
+ rubygems_version: 3.5.17
3563
3569
  signing_key:
3564
3570
  specification_version: 4
3565
3571
  summary: BLAST search made easy!
data/public/config.js DELETED
@@ -1,147 +0,0 @@
1
- System.config({
2
- defaultJSExtensions: true,
3
- transpiler: "babel",
4
- babelOptions: {
5
- "optional": [
6
- "runtime",
7
- "optimisation.modules.system"
8
- ],
9
- "blacklist": [
10
- "strict"
11
- ]
12
- },
13
- paths: {
14
- "github:*": "vendor/github/*",
15
- "npm:*": "vendor/npm/*"
16
- },
17
-
18
- map: {
19
- "babel": "npm:babel-core@5.8.23",
20
- "babel-runtime": "npm:babel-runtime@5.8.20",
21
- "bootstrap": "github:twbs/bootstrap@3.3.5",
22
- "core-js": "npm:core-js@1.1.2",
23
- "d3": "github:mbostock/d3@3.5.6",
24
- "font-awesome": "npm:font-awesome@4.4.0",
25
- "jquery": "github:components/jquery@2.1.4",
26
- "jquery-ui": "github:components/jqueryui@1.11.4",
27
- "nicgirault/circosJs": "github:nicgirault/circosJs@1.7.0",
28
- "react": "npm:react@18.0.0",
29
- "react-dom": "npm:react-dom@18.0.0",
30
- "underscore": "npm:underscore@1.8.3",
31
- "vakata/jstree": "github:vakata/jstree@3.3.8",
32
- "github:components/jqueryui@1.11.4": {
33
- "jquery": "github:components/jquery@2.1.4"
34
- },
35
- "github:jspm/nodelibs-assert@0.1.0": {
36
- "assert": "npm:assert@1.5.0"
37
- },
38
- "github:jspm/nodelibs-buffer@0.1.1": {
39
- "buffer": "npm:buffer@5.7.1"
40
- },
41
- "github:jspm/nodelibs-events@0.1.1": {
42
- "events": "npm:events@1.0.2"
43
- },
44
- "github:jspm/nodelibs-path@0.1.0": {
45
- "path-browserify": "npm:path-browserify@0.0.0"
46
- },
47
- "github:jspm/nodelibs-process@0.1.2": {
48
- "process": "npm:process@0.11.10"
49
- },
50
- "github:jspm/nodelibs-stream@0.1.0": {
51
- "stream-browserify": "npm:stream-browserify@1.0.0"
52
- },
53
- "github:jspm/nodelibs-util@0.1.0": {
54
- "util": "npm:util@0.10.3"
55
- },
56
- "github:jspm/nodelibs-vm@0.1.0": {
57
- "vm-browserify": "npm:vm-browserify@0.0.4"
58
- },
59
- "github:twbs/bootstrap@3.3.5": {
60
- "jquery": "github:components/jquery@2.1.4"
61
- },
62
- "npm:assert@1.5.0": {
63
- "assert": "github:jspm/nodelibs-assert@0.1.0",
64
- "buffer": "github:jspm/nodelibs-buffer@0.1.1",
65
- "object-assign": "npm:object-assign@4.1.1",
66
- "process": "github:jspm/nodelibs-process@0.1.2",
67
- "util": "npm:util@0.10.3"
68
- },
69
- "npm:babel-runtime@5.8.20": {
70
- "process": "github:jspm/nodelibs-process@0.1.2"
71
- },
72
- "npm:buffer@5.7.1": {
73
- "base64-js": "npm:base64-js@1.5.1",
74
- "ieee754": "npm:ieee754@1.2.1"
75
- },
76
- "npm:core-js@1.1.2": {
77
- "fs": "github:jspm/nodelibs-fs@0.1.2",
78
- "process": "github:jspm/nodelibs-process@0.1.2",
79
- "systemjs-json": "github:systemjs/plugin-json@0.1.0"
80
- },
81
- "npm:core-util-is@1.0.3": {
82
- "buffer": "github:jspm/nodelibs-buffer@0.1.1"
83
- },
84
- "npm:font-awesome@4.4.0": {
85
- "css": "github:systemjs/plugin-css@0.1.15"
86
- },
87
- "npm:inherits@2.0.1": {
88
- "util": "github:jspm/nodelibs-util@0.1.0"
89
- },
90
- "npm:loose-envify@1.4.0": {
91
- "fs": "github:jspm/nodelibs-fs@0.1.2",
92
- "js-tokens": "npm:js-tokens@4.0.0",
93
- "process": "github:jspm/nodelibs-process@0.1.2",
94
- "stream": "github:jspm/nodelibs-stream@0.1.0",
95
- "util": "github:jspm/nodelibs-util@0.1.0"
96
- },
97
- "npm:path-browserify@0.0.0": {
98
- "process": "github:jspm/nodelibs-process@0.1.2"
99
- },
100
- "npm:process@0.11.10": {
101
- "assert": "github:jspm/nodelibs-assert@0.1.0",
102
- "fs": "github:jspm/nodelibs-fs@0.1.2",
103
- "vm": "github:jspm/nodelibs-vm@0.1.0"
104
- },
105
- "npm:react-dom@18.0.0": {
106
- "buffer": "github:jspm/nodelibs-buffer@0.1.1",
107
- "loose-envify": "npm:loose-envify@1.4.0",
108
- "process": "github:jspm/nodelibs-process@0.1.2",
109
- "react": "npm:react@18.0.0",
110
- "scheduler": "npm:scheduler@0.21.0",
111
- "stream": "github:jspm/nodelibs-stream@0.1.0"
112
- },
113
- "npm:react@18.0.0": {
114
- "loose-envify": "npm:loose-envify@1.4.0",
115
- "process": "github:jspm/nodelibs-process@0.1.2"
116
- },
117
- "npm:readable-stream@1.1.14": {
118
- "buffer": "github:jspm/nodelibs-buffer@0.1.1",
119
- "core-util-is": "npm:core-util-is@1.0.3",
120
- "events": "github:jspm/nodelibs-events@0.1.1",
121
- "inherits": "npm:inherits@2.0.1",
122
- "isarray": "npm:isarray@0.0.1",
123
- "process": "github:jspm/nodelibs-process@0.1.2",
124
- "stream-browserify": "npm:stream-browserify@1.0.0",
125
- "string_decoder": "npm:string_decoder@0.10.31"
126
- },
127
- "npm:scheduler@0.21.0": {
128
- "loose-envify": "npm:loose-envify@1.4.0",
129
- "process": "github:jspm/nodelibs-process@0.1.2"
130
- },
131
- "npm:stream-browserify@1.0.0": {
132
- "events": "github:jspm/nodelibs-events@0.1.1",
133
- "inherits": "npm:inherits@2.0.1",
134
- "readable-stream": "npm:readable-stream@1.1.14"
135
- },
136
- "npm:string_decoder@0.10.31": {
137
- "buffer": "github:jspm/nodelibs-buffer@0.1.1"
138
- },
139
- "npm:util@0.10.3": {
140
- "inherits": "npm:inherits@2.0.1",
141
- "process": "github:jspm/nodelibs-process@0.1.2"
142
- },
143
- "npm:vm-browserify@0.0.4": {
144
- "indexof": "npm:indexof@0.0.1"
145
- }
146
- }
147
- });