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;
|
||||
}
|
||||
|
||||
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 {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
padding: 15px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.route-item {
|
||||
|
||||
+11
-9
@@ -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>
|
||||
@@ -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;">← 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>
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user