From 9c9512a7e040f8247d259bdc6f9cf55d5d276baf Mon Sep 17 00:00:00 2001
From: Pjotr Prins
Date: Wed, 15 Jul 2020 12:48:12 +0100
Subject: Load metadata locally without pkg_resources
---
bh20simplewebuploader/static/main.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'bh20simplewebuploader/static')
diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js
index 751e478..4703047 100644
--- a/bh20simplewebuploader/static/main.js
+++ b/bh20simplewebuploader/static/main.js
@@ -195,7 +195,7 @@ function addField(e) {
// Increment the number and use the keypath and number to set IDs and cross
// references.
// TODO: Heavily dependent on the form field HTML. Maybe we want custom
- // elements for the labeled controlsd that know how to be list items?
+ // elements for the labeled controls that know how to be list items?
fieldNumber++
newField.dataset.number = fieldNumber
let newID = keypath + '[' + fieldNumber + ']'
--
cgit 1.4.1
From 73be46fd1db58f132fa60ff30d33d67927a341a7 Mon Sep 17 00:00:00 2001
From: Pjotr Prins
Date: Thu, 16 Jul 2020 09:48:31 +0100
Subject: Addes ESR logo and cropped CWL logo
---
bh20simplewebuploader/static/image/CWL.png | Bin 0 -> 11066 bytes
bh20simplewebuploader/static/image/ESR.png | Bin 0 -> 67869 bytes
bh20simplewebuploader/templates/footer.html | 6 +++++-
doc/blog/using-covid-19-pubseq-part5.org | 4 ++++
4 files changed, 9 insertions(+), 1 deletion(-)
create mode 100644 bh20simplewebuploader/static/image/CWL.png
create mode 100644 bh20simplewebuploader/static/image/ESR.png
(limited to 'bh20simplewebuploader/static')
diff --git a/bh20simplewebuploader/static/image/CWL.png b/bh20simplewebuploader/static/image/CWL.png
new file mode 100644
index 0000000..81d1807
Binary files /dev/null and b/bh20simplewebuploader/static/image/CWL.png differ
diff --git a/bh20simplewebuploader/static/image/ESR.png b/bh20simplewebuploader/static/image/ESR.png
new file mode 100644
index 0000000..557c798
Binary files /dev/null and b/bh20simplewebuploader/static/image/ESR.png differ
diff --git a/bh20simplewebuploader/templates/footer.html b/bh20simplewebuploader/templates/footer.html
index a1dd4fd..37a6b64 100644
--- a/bh20simplewebuploader/templates/footer.html
+++ b/bh20simplewebuploader/templates/footer.html
@@ -21,7 +21,7 @@
--
cgit 1.4.1
From 2c1a907cbfe222d1deed8c31a44d3ea4c382bc3c Mon Sep 17 00:00:00 2001
From: Pjotr Prins
Date: Fri, 17 Jul 2020 08:00:48 +0100
Subject: Add Curii svg
---
bh20simplewebuploader/static/image/curii.logo.ai.svg | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 bh20simplewebuploader/static/image/curii.logo.ai.svg
(limited to 'bh20simplewebuploader/static')
diff --git a/bh20simplewebuploader/static/image/curii.logo.ai.svg b/bh20simplewebuploader/static/image/curii.logo.ai.svg
new file mode 100644
index 0000000..e87ea05
--- /dev/null
+++ b/bh20simplewebuploader/static/image/curii.logo.ai.svg
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
--
cgit 1.4.1
From d3fa51ee16d902fc0bfa414611d5e0bae6618009 Mon Sep 17 00:00:00 2001
From: Pjotr Prins
Date: Fri, 17 Jul 2020 09:09:23 +0100
Subject: Refactoring map code
---
bh20simplewebuploader/main.py | 7 +-
bh20simplewebuploader/static/main.js | 149 ++++++++------------------
bh20simplewebuploader/static/map.js | 67 ++++++++++++
bh20simplewebuploader/templates/demo-run.html | 26 -----
bh20simplewebuploader/templates/demo.html | 30 +++++-
bh20simplewebuploader/templates/footer.html | 3 +
bh20simplewebuploader/templates/header.html | 18 ----
bh20simplewebuploader/templates/map.html | 24 ++++-
8 files changed, 164 insertions(+), 160 deletions(-)
create mode 100644 bh20simplewebuploader/static/map.js
(limited to 'bh20simplewebuploader/static')
diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py
index 1147176..e8bb507 100644
--- a/bh20simplewebuploader/main.py
+++ b/bh20simplewebuploader/main.py
@@ -628,7 +628,7 @@ def validated_page():
@app.route('/demo')
def demo_page():
- return render_template('demo.html',menu='DEMO')
+ return render_template('demo.html',menu='DEMO',load_map=True)
@app.route('/blog',methods=['GET'])
def blog_page():
@@ -644,11 +644,6 @@ def about_page():
buf = get_html_body('doc/web/about.html','https://github.com/arvados/bh20-seq-resource/blob/master/doc/web/about.org')
return render_template('about.html',menu='ABOUT',embed=buf)
-##
-@app.route('/map')
-def map_page():
- return render_template('map.html',menu='DEMO')
-
## Dynamic API functions starting here
## This is quick and dirty for now, just to get something out and demonstrate the queries
diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js
index 4703047..1633c25 100644
--- a/bh20simplewebuploader/static/main.js
+++ b/bh20simplewebuploader/static/main.js
@@ -13,70 +13,41 @@ function myFunction() {
}
}
-let map = L.map( 'map', {
- center: [37.0902, -95.7129], // Default to U.S.A
- minZoom: 3,
- zoom: 0
-});
-L.tileLayer( 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
- attribution: '© OpenStreetMap',
- subdomains: ['a','b','c']
-}).addTo( map );
-
-let markers = L.markerClusterGroup().addTo(map)
-
-
function fetchAPI(apiEndPoint) {
- fetch(scriptRoot + apiEndPoint)
- .then(response => {
- return response.json();
- })
- .then(data => {
- console.log(data);
- markers.clearLayers();
- document.getElementById("results").classList.remove("invisible");
- document.getElementById("loader").classList.add("invisible");
- if (!(apiEndPoint === "/api/getAllaccessions")) {
- for (let i = 0; i < data.length; i++) {
- let {"count": fastaCount, GPS, LocationLabel: label } = data[i];
- let coordinates = GPS.split(" ");
- if (!(coordinates == null)) {
- let lat, lon;
- [lon, lat] = coordinates.map(parseFloat);
- let point = L.point()
- let marker = L.marker([lat, lon]);
- marker.bindPopup("" + label + "| "+data[i]["label"]+" | "+data[i]["count"]+" | " - } - htmlString=htmlString+" |
| "+data[i]["label"]+" | "+data[i]["count"]+" | "
+ }
+*/
+ for (var i=0; i| "+data[i]["label"]+" | "+data[i]["count"]+" | "
+ }
+ htmlString=htmlString+" | |
The Virtuoso database contains public sequences!
- {% include 'demo-run.html' %} +The Virtuoso database contains public sequences!
+ +The Virtuoso database contains public sequences!
The Virtuoso database contains public sequences!
+ +