methods
This commit is contained in:
1 parent
4a2974098f
commit
d4fc121506
10 files changed
+23
-13
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
|
||||
import uvicorn
|
||||
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
|
||||
uvicorn.run("uhhhhup:app", host="0.0.0.0", port=2222, reload=True)
|
||||
+1
-1
@@ -122,7 +122,7 @@ li a {
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
max-width: 1000px;
|
||||
margin-bottom: 40px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.card {
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Queue dump type shit</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="{{ url_for('static', path='style.css') }}"
|
||||
/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
+6
-5
@@ -4,15 +4,16 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>QRCode queue</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="{{ url_for('static', path='style.css') }}"
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
{% from "macros.html" import qrcode_queue %}
|
||||
{% if queue_items %}
|
||||
{% from "macros.html" import qrcode_queue %} {% if queue_items %}
|
||||
<p>total: {{ queue_items|length }}</p>
|
||||
{{ qrcode_queue(queue_items) }}
|
||||
{% else %}
|
||||
{{ qrcode_queue(queue_items) }} {% else %}
|
||||
<p>empty</p>
|
||||
{% endif %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -59,10 +59,13 @@
|
||||
newTab.document.body.style.backgroundColor =
|
||||
getComputedStyle(document.body).backgroundColor;
|
||||
|
||||
const f =
|
||||
document.querySelector(".trail-container");
|
||||
if (f)
|
||||
newTab.document.body.innerHTML += f.outerHTML;
|
||||
document
|
||||
.querySelectorAll("body > *:not(script)")
|
||||
.forEach((f) =>
|
||||
newTab.document.body.appendChild(
|
||||
f.cloneNode(true)
|
||||
)
|
||||
);
|
||||
|
||||
// maybe just replace the whole document with this one and then use API to check length
|
||||
// i aint doing that
|
||||
@@ -79,6 +82,7 @@
|
||||
)
|
||||
);
|
||||
newTab.document.adoptedStyleSheets.push(st);
|
||||
newTab.document.close();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
+2
-1
@@ -4,7 +4,6 @@ from collections import deque
|
||||
from itertools import islice
|
||||
from urllib.parse import urlsplit, urlunsplit
|
||||
|
||||
import uvicorn
|
||||
from fastapi import FastAPI, Form, Request
|
||||
from fastapi.responses import HTMLResponse, RedirectResponse
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
@@ -103,5 +102,7 @@ async def send_queue(lines: str = Form("")):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
|
||||
uvicorn.run("uhhhhup:app", host="0.0.0.0", port=2222, reload=True)
|
||||
# uvicorn --host "0.0.0.0" --port 2222 --reload uhhhhup:app
|
||||
Reference in new issue
Block a user