template
This commit is contained in:
1 parent
c5ba6860f8
commit
ff7e9d2a07
9 files changed
+40
-52
No files matched your search
@@ -130,6 +130,7 @@ textarea.form-control {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-brand {
|
.nav-brand {
|
||||||
|
|||||||
@@ -50,3 +50,7 @@
|
|||||||
width: 100%; /* Ensure full width */
|
width: 100%; /* Ensure full width */
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar:has( ~ .container .pastepad-container) {
|
||||||
|
max-width: 1000px;
|
||||||
|
}
|
||||||
@@ -70,3 +70,7 @@ details:has(.route-list) {
|
|||||||
.queue-form textarea {
|
.queue-form textarea {
|
||||||
resize: vertical;
|
resize: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar:has(~ .container .queue-title) {
|
||||||
|
max-width: 800px;
|
||||||
|
}
|
||||||
@@ -19,3 +19,9 @@
|
|||||||
color: #666;
|
color: #666;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
.trail-next {
|
||||||
|
max-width: 80%;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
@@ -78,7 +78,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
<strong>${safeName}</strong>
|
<strong>${safeName}</strong>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<button onclick="editPaste('${safeName}')" class="btn-sm">Edit</button>
|
<button onclick="editPaste('${safeName}')" class="btn-sm">Edit</button>
|
||||||
<a href="/api/pastepad/${safeName}/raw" target="_blank" class="btn-sm">Raw</a>
|
<a href="/api/pastepad/${safeName}/raw" target="_blank" class="btn btn-sm">Raw</a>
|
||||||
<button onclick="deletePaste('${safeName}')" class="btn-sm btn-danger">Delete</button>
|
<button onclick="deletePaste('${safeName}')" class="btn-sm btn-danger">Delete</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+14
-5
@@ -17,7 +17,7 @@
|
|||||||
<h2>Input (PC)</h2>
|
<h2>Input (PC)</h2>
|
||||||
<p>
|
<p>
|
||||||
Paste your OneTab export or list of links here to add them
|
Paste your OneTab export or list of links here to add them
|
||||||
to the queue.
|
to the queue
|
||||||
</p>
|
</p>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<a href="/queuein" class="btn">Add Links</a>
|
<a href="/queuein" class="btn">Add Links</a>
|
||||||
@@ -26,17 +26,17 @@
|
|||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2>Output (Mobile)</h2>
|
<h2>Output (Mobile)</h2>
|
||||||
<p>Open these on your phone to consume the queue.</p>
|
<p>Open these on your phone to consume the queue</p>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<a href="/q" class="btn">Reader (QR)</a>
|
<a href="/q" class="btn">Reader (QR)</a>
|
||||||
<a href="/t" class="btn">Trail (Focus)</a>
|
<a href="/t" class="btn">Trail (Focus)</a>
|
||||||
<a href="/r" class="btn">Next Link</a>
|
<a href="/r" class="btn">Next Link</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="card" style="margin-block: 1em">
|
<div class="card">
|
||||||
<h2>Scan this page</h2>
|
<h2>Scan this page</h2>
|
||||||
<p>Connect your phone to the same Wi-Fi and scan this.</p>
|
<p>Connect your phone to the same Wi-Fi and scan this</p>
|
||||||
<div
|
<div
|
||||||
class="qrcode"
|
class="qrcode"
|
||||||
style="padding: 1rem; background: white; border-radius: 8px"
|
style="padding: 1rem; background: white; border-radius: 8px"
|
||||||
@@ -54,6 +54,15 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="card">
|
||||||
|
<h2>PastePad</h2>
|
||||||
|
<p>Paste your clipboard or any text and manage them!</p>
|
||||||
|
<div class="actions">
|
||||||
|
<a href="/pastepad" class="btn">Visit</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<details>
|
<details>
|
||||||
<summary>System Routes</summary>
|
<summary>System Routes</summary>
|
||||||
<div class="route-list">
|
<div class="route-list">
|
||||||
|
|||||||
+3
-16
@@ -1,19 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
{% extends "base.html" %} {% block title %}QRCode queue{% endblock %} {% block
|
||||||
<html lang="en">
|
content %} {% from "macros.html" import qrcode_queue %} {% if queue_items %}
|
||||||
<head>
|
|
||||||
<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 %}
|
|
||||||
<p>total: {{ queue_items|length }}</p>
|
<p>total: {{ queue_items|length }}</p>
|
||||||
{{ qrcode_queue(queue_items) }} {% else %}
|
{{ qrcode_queue(queue_items) }} {% else %}
|
||||||
<p>empty</p>
|
<p>empty</p>
|
||||||
{% endif %}
|
{% endif %} {% endblock %}
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
+4
-19
@@ -1,23 +1,10 @@
|
|||||||
<!DOCTYPE html>
|
{% extends "base.html" %} {% block title %}Queue Input{% endblock %} {% block
|
||||||
<html lang="en">
|
content %}
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<title>Queue Input</title>
|
|
||||||
<link
|
|
||||||
rel="stylesheet"
|
|
||||||
href="{{ url_for('static', path='style.css') }}"
|
|
||||||
/>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="queue-title">
|
<div class="queue-title">
|
||||||
<h1 style="margin: 0">Add Links</h1>
|
<h1 style="margin: 0">Add Links</h1>
|
||||||
<div>
|
<div>
|
||||||
<a href="/" class="btn" style="margin: 0">← Home</a>
|
<a href="/" class="btn" style="margin: 0">← Home</a>
|
||||||
<a
|
<a href="javascript:location.reload()" class="btn" style="margin: 0"
|
||||||
href="javascript:location.reload()"
|
|
||||||
class="btn"
|
|
||||||
style="margin: 0"
|
|
||||||
>Reload</a
|
>Reload</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@@ -43,6 +30,4 @@
|
|||||||
</script>
|
</script>
|
||||||
{% from "macros.html" import qrcode_queue %} {% if queue_items %}
|
{% from "macros.html" import qrcode_queue %} {% if queue_items %}
|
||||||
<p>total: {{ queue_items|length }}</p>
|
<p>total: {{ queue_items|length }}</p>
|
||||||
{% endif %} {{ qrcode_queue(queue_items) }}
|
{% endif %} {{ qrcode_queue(queue_items) }} {% endblock %}
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
+3
-11
@@ -15,15 +15,7 @@
|
|||||||
<div class="trail-container">
|
<div class="trail-container">
|
||||||
<div class="trail-count">{{ queue_length }}</div>
|
<div class="trail-count">{{ queue_length }}</div>
|
||||||
<p>items left</p>
|
<p>items left</p>
|
||||||
|
<p class="trail-next">
|
||||||
<p
|
|
||||||
style="
|
|
||||||
max-width: 80%;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
"
|
|
||||||
>
|
|
||||||
Next:
|
Next:
|
||||||
<a
|
<a
|
||||||
href="{{ current_link }}"
|
href="{{ current_link }}"
|
||||||
@@ -39,7 +31,7 @@
|
|||||||
<script>
|
<script>
|
||||||
window.addEventListener("load", () => {
|
window.addEventListener("load", () => {
|
||||||
document.body.addEventListener("click", (e) => {
|
document.body.addEventListener("click", (e) => {
|
||||||
if (e.target.tagName === "A") return;
|
if (!e.target || e.target.tagName === "A") return;
|
||||||
// now this is not the new updated
|
// now this is not the new updated
|
||||||
const newTab = window.open("", "_blank");
|
const newTab = window.open("", "_blank");
|
||||||
|
|
||||||
@@ -54,7 +46,7 @@
|
|||||||
// Trigger the message event to run the swap on the next tick
|
// Trigger the message event to run the swap on the next tick
|
||||||
newTab.postMessage("");
|
newTab.postMessage("");
|
||||||
|
|
||||||
// background
|
// background. This block is racing with the slow internet.
|
||||||
if (newTab.document.body) {
|
if (newTab.document.body) {
|
||||||
newTab.document.body.style.backgroundColor =
|
newTab.document.body.style.backgroundColor =
|
||||||
getComputedStyle(document.body).backgroundColor;
|
getComputedStyle(document.body).backgroundColor;
|
||||||
|
|||||||
Reference in new issue
Block a user