This commit is contained in:
lda committed 2025-12-17 22:09:07 +07:00
1 parent 83731d9a83
commit d5f578cfd0
5 files changed
+57 -15

No files matched your search

+11 -9
View File
@@ -35,15 +35,17 @@
</div>
</div>
<h3>System Routes</h3>
<div class="route-list">
{% macro this(route) %}
<div class="route-item">
<a href="{{ route.path }}">{{ route.name }}</a>
<span>{{ route.path }}</span>
<details >
<summary>System Routes</summary>
<div class="route-list">
{% macro this(route) %}
<div class="route-item">
<a href="{{ url_for(route.name) }}">{{ route.name }}</a>
<span>{{ route.path }}</span>
</div>
{% endmacro %} {% for route in routes if "GET" in route.methods %}
{{ this(route) }} {% endfor %}
</div>
{% endmacro %} {% for route in routes %} {{ this(route) }} {% endfor
%}
</div>
</details>
</body>
</html>
+4 -1
View File
@@ -10,8 +10,11 @@
/>
</head>
<body>
<div style="display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 800px; margin-bottom: 20px;">
<h1 style="margin: 0;">Add Links</h1>
<a href="/" class="btn" style="margin: 0;">&larr; Home</a>
</div>
<form method="POST" action="/queuein">
<label for="lines">in:</label>
<textarea id="lines" rows="20" cols="100" name="lines"></textarea>
<input type="submit" value="ahh" />
</form>
+2 -1
View File
@@ -48,8 +48,9 @@
<h2>Queue Empty</h2>
<p>No links in the queue. Go add some!</p>
<div class="actions">
<a href="/" class="btn">Home</a>
<a href="/queuein" class="btn">Add Links</a>
<button onclick="location.reload();" class="btn">Reload</button>
<a href="javascript:location.reload()" class="btn">Reload</a>
</div>
</div>
{% endif %}
+2
View File
@@ -37,6 +37,7 @@
<script>
if (window.opener) {
// new tab = window open no "noopener". this probs does exist
console.log(/** @type {Window} */ (window.opener)); // hi hello hi
}
window.addEventListener("load", () => {
@@ -59,6 +60,7 @@
<h2>All Done!</h2>
<p>The queue is empty.</p>
<div class="actions">
<a href="/" class="btn">Home</a>
<a href="/queuein" class="btn">Add More</a>
</div>
</div>