diff --git a/velconnect/routes/api.py b/velconnect/routes/api.py index ed7bdea..1d71dd7 100644 --- a/velconnect/routes/api.py +++ b/velconnect/routes/api.py @@ -50,7 +50,7 @@ async def read_root(): default-schema-tab = 'example' >
- +
diff --git a/velconnect/routes/api_v2.py b/velconnect/routes/api_v2.py index 902f8de..a2f0398 100644 --- a/velconnect/routes/api_v2.py +++ b/velconnect/routes/api_v2.py @@ -4,7 +4,6 @@ import string import fastapi from fastapi.responses import HTMLResponse -from pydantic import BaseModel import db @@ -38,7 +37,7 @@ async def read_root(): default-schema-tab = 'example' >
- +
diff --git a/velconnect/static/img/cover_VelNetARDemo.png b/velconnect/static/img/cover_VelNetARDemo.png new file mode 100644 index 0000000..c213a07 Binary files /dev/null and b/velconnect/static/img/cover_VelNetARDemo.png differ diff --git a/velconnect/static/img/mini_landscape.png b/velconnect/static/img/cover_conVRged.png similarity index 100% rename from velconnect/static/img/mini_landscape.png rename to velconnect/static/img/cover_conVRged.png diff --git a/velconnect/static/img/cover_default.png b/velconnect/static/img/cover_default.png new file mode 100644 index 0000000..fdfb4c6 Binary files /dev/null and b/velconnect/static/img/cover_default.png differ diff --git a/velconnect/static/img/velconnect_logo_1.png b/velconnect/static/img/velconnect_logo_1.png new file mode 100644 index 0000000..c45f826 Binary files /dev/null and b/velconnect/static/img/velconnect_logo_1.png differ diff --git a/velconnect/static/img/velconnect_logo_1_square.png b/velconnect/static/img/velconnect_logo_1_square.png new file mode 100644 index 0000000..af225ce Binary files /dev/null and b/velconnect/static/img/velconnect_logo_1_square.png differ diff --git a/velconnect/static/img/velconnect_logo_1_square.webp b/velconnect/static/img/velconnect_logo_1_square.webp new file mode 100644 index 0000000..8c1c873 Binary files /dev/null and b/velconnect/static/img/velconnect_logo_1_square.webp differ diff --git a/velconnect/static/img/velconnect_logo_2.png b/velconnect/static/img/velconnect_logo_2.png new file mode 100644 index 0000000..78cf291 Binary files /dev/null and b/velconnect/static/img/velconnect_logo_2.png differ diff --git a/velconnect/static/js/util.js b/velconnect/static/js/util.js index 47a1c2f..4859d71 100644 --- a/velconnect/static/js/util.js +++ b/velconnect/static/js/util.js @@ -1,9 +1,8 @@ - function httpGetAsync(theUrl, callback, failCallback) { - var xmlHttp = new XMLHttpRequest(); + const xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = function () { - if (xmlHttp.readyState == 4) { - if (xmlHttp.status == 200) { + if (xmlHttp.readyState === 4) { + if (xmlHttp.status === 200) { callback(xmlHttp.responseText); } else { failCallback(xmlHttp.status); @@ -16,7 +15,7 @@ function httpGetAsync(theUrl, callback, failCallback) { function httpPostAsync(theUrl, data, callback, failCallback) { - var xmlHttp = new XMLHttpRequest(); + const xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = function () { if (xmlHttp.readyState === 4) { if (xmlHttp.status === 200) { @@ -45,10 +44,10 @@ function getCookie(cname) { let ca = decodedCookie.split(';'); for (let i = 0; i < ca.length; i++) { let c = ca[i]; - while (c.charAt(0) == ' ') { + while (c.charAt(0) === ' ') { c = c.substring(1); } - if (c.indexOf(name) == 0) { + if (c.indexOf(name) === 0) { return c.substring(name.length, c.length); } } @@ -56,7 +55,7 @@ function getCookie(cname) { } function writeClass(className, data) { - if (data == undefined || data == null || data.toString() == 'undefined') { + if (data === undefined || data == null || data.toString() === 'undefined') { data = ""; } @@ -67,7 +66,7 @@ function writeClass(className, data) { } function writeId(idName, data) { - if (data == undefined || data == null || data.toString() == 'undefined') { + if (data === undefined || data == null || data.toString() === 'undefined') { data = ""; } @@ -75,7 +74,7 @@ function writeId(idName, data) { } function writeValue(className, data) { - if (data == undefined || data == null || data.toString() == 'undefined') { + if (data === undefined || data == null || data.toString() === 'undefined') { data = ""; } @@ -87,7 +86,7 @@ function writeValue(className, data) { function writeSrc(className, data) { - if (data == undefined || data == null || data.toString() == 'undefined') { + if (data === undefined || data == null || data.toString() === 'undefined') { data = ""; } @@ -132,23 +131,38 @@ function timeSinceString(date) { let interval = seconds / 31536000; if (interval > 1) { - return Math.floor(interval) + " years"; + let val = Math.floor(interval); + let ret = val + " year"; + if (val !== 1) ret += "s"; + return ret; } interval = seconds / 2592000; if (interval > 1) { - return Math.floor(interval) + " months"; + let val = Math.floor(interval); + let ret = val + " month"; + if (val !== 1) ret += "s"; + return ret; } interval = seconds / 86400; if (interval > 1) { - return Math.floor(interval) + " days"; + let val = Math.floor(interval); + let ret = val + " day"; + if (val !== 1) ret += "s"; + return ret; } interval = seconds / 3600; if (interval > 1) { - return Math.floor(interval) + " hours"; + let val = Math.floor(interval); + let ret = val + " hour"; + if (val !== 1) ret += "s"; + return ret; } interval = seconds / 60; if (interval > 1) { - return Math.floor(interval) + " minutes"; + let val = Math.floor(interval); + let ret = val + " minute"; + if (val !== 1) ret += "s"; + return ret; } return Math.floor(seconds) + " seconds"; } \ No newline at end of file diff --git a/velconnect/templates/api.html b/velconnect/templates/api.html index 40e27d4..541d7d3 100644 --- a/velconnect/templates/api.html +++ b/velconnect/templates/api.html @@ -8,7 +8,7 @@ + spec-url="/api/api_spec.json" default-schema-tab='example'>
diff --git a/velconnect/templates/index.html b/velconnect/templates/index.html index 0f3510d..dcdff1c 100644 --- a/velconnect/templates/index.html +++ b/velconnect/templates/index.html @@ -1,4 +1,4 @@ - + @@ -54,11 +54,11 @@