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