Initial commit
This commit is contained in:
commit
6848cdd062
17 changed files with 646 additions and 0 deletions
33
assets/templates/bulk_creation_form.html
Normal file
33
assets/templates/bulk_creation_form.html
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<style>
|
||||
form > * {
|
||||
width: 100%;
|
||||
}
|
||||
form > textarea {
|
||||
min-height: 20em;
|
||||
}
|
||||
fieldset {
|
||||
width: 50%;
|
||||
margin: 5em auto;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
fieldset > form > div.flex,
|
||||
fieldset > form > div.flex > * {
|
||||
width: 100%;
|
||||
}
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
</style>
|
||||
|
||||
<fieldset>
|
||||
<legend>Add links from onetab</legend>
|
||||
<form method="POST" target="/links/bulk">
|
||||
<input type="datetime-local" name="created_at" value="" />
|
||||
<br>
|
||||
<textarea type="text" maxlength="1000000" name="hrefs" placeholder="<href> | <title>"></textarea>
|
||||
<div class="flex">
|
||||
<input type="reset" value="Reset" />
|
||||
<input type="submit" value="Send" />
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>
|
||||
46
assets/templates/linkslist.html
Normal file
46
assets/templates/linkslist.html
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<script src="https://unpkg.com/htmx.org@2.0.2"></script>
|
||||
<style>
|
||||
fieldset {
|
||||
width: 68%;
|
||||
margin: 0 auto;
|
||||
border-radius: 1em;
|
||||
}
|
||||
table {
|
||||
font-family: sans-serif;
|
||||
border: 1px solid darkblue;
|
||||
border-radius: 1em;
|
||||
padding: 0 .5em;
|
||||
width: 70%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
table tr td:nth-child(1) {
|
||||
width: 2em;
|
||||
}
|
||||
table tr td:nth-child(3) {
|
||||
text-align:right;
|
||||
width: 10em;
|
||||
}
|
||||
table tr:nth-child(even) {
|
||||
background: rgba(0, 0, 0, .1);
|
||||
}
|
||||
</style>
|
||||
|
||||
<fieldset>
|
||||
<legend>Selection stats</legend>
|
||||
<label>Found: {{total}}</label>
|
||||
</fieldset>
|
||||
|
||||
<table id="linkies">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Title</th>
|
||||
<th>Created at</th>
|
||||
</tr>
|
||||
|
||||
{{#each links}}
|
||||
<tr id="link{{uuid}}">
|
||||
<td><button hx-confirm="Are you sure?" hx-trigger="click" hx-target="#link{{uuid}}" hx-delete="/link/{{uuid}}" /></td>
|
||||
<td><a ref="nofollow , noindex" href="{{href}}">{{#if title}}{{title}}{{else}}{{href}}{{/if}}</a></td>
|
||||
<td>{{created_at}}</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
8
assets/templates/main.html
Normal file
8
assets/templates/main.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>{{title}}</title>
|
||||
</head>
|
||||
<body>
|
||||
SUM text
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue