nice
This commit is contained in:
1 parent
83731d9a83
commit
d5f578cfd0
5 files changed
+57
-15
No files matched your search
+38
-4
@@ -159,11 +159,45 @@ li a {
|
|||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
details {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 600px;
|
||||||
|
margin-top: 20px;
|
||||||
|
background-color: var(--surface-color);
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
border: 1px solid #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
summary {
|
||||||
|
padding: 15px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-weight: bold;
|
||||||
|
color: var(--secondary-color);
|
||||||
|
list-style: none; /* Hide default triangle */
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
summary::after {
|
||||||
|
content: '+';
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] summary::after {
|
||||||
|
content: '-';
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] summary {
|
||||||
|
border-bottom: 1px solid #333;
|
||||||
|
}
|
||||||
|
|
||||||
.route-list {
|
.route-list {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 600px;
|
padding: 15px;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.route-item {
|
.route-item {
|
||||||
|
|||||||
+11
-9
@@ -35,15 +35,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3>System Routes</h3>
|
<details >
|
||||||
<div class="route-list">
|
<summary>System Routes</summary>
|
||||||
{% macro this(route) %}
|
<div class="route-list">
|
||||||
<div class="route-item">
|
{% macro this(route) %}
|
||||||
<a href="{{ route.path }}">{{ route.name }}</a>
|
<div class="route-item">
|
||||||
<span>{{ route.path }}</span>
|
<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>
|
</div>
|
||||||
{% endmacro %} {% for route in routes %} {{ this(route) }} {% endfor
|
</details>
|
||||||
%}
|
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -10,8 +10,11 @@
|
|||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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;">← Home</a>
|
||||||
|
</div>
|
||||||
<form method="POST" action="/queuein">
|
<form method="POST" action="/queuein">
|
||||||
<label for="lines">in:</label>
|
|
||||||
<textarea id="lines" rows="20" cols="100" name="lines"></textarea>
|
<textarea id="lines" rows="20" cols="100" name="lines"></textarea>
|
||||||
<input type="submit" value="ahh" />
|
<input type="submit" value="ahh" />
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -48,8 +48,9 @@
|
|||||||
<h2>Queue Empty</h2>
|
<h2>Queue Empty</h2>
|
||||||
<p>No links in the queue. Go add some!</p>
|
<p>No links in the queue. Go add some!</p>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
|
<a href="/" class="btn">Home</a>
|
||||||
<a href="/queuein" class="btn">Add Links</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>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
if (window.opener) {
|
if (window.opener) {
|
||||||
|
// new tab = window open no "noopener". this probs does exist
|
||||||
console.log(/** @type {Window} */ (window.opener)); // hi hello hi
|
console.log(/** @type {Window} */ (window.opener)); // hi hello hi
|
||||||
}
|
}
|
||||||
window.addEventListener("load", () => {
|
window.addEventListener("load", () => {
|
||||||
@@ -59,6 +60,7 @@
|
|||||||
<h2>All Done!</h2>
|
<h2>All Done!</h2>
|
||||||
<p>The queue is empty.</p>
|
<p>The queue is empty.</p>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
|
<a href="/" class="btn">Home</a>
|
||||||
<a href="/queuein" class="btn">Add More</a>
|
<a href="/queuein" class="btn">Add More</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user