feat: Add umami and input validation
All checks were successful
Build Docker / Build Main Image (push) Successful in 26s

This commit is contained in:
Nathan Woodburn 2023-12-21 16:07:21 +11:00
parent f36c7edeb6
commit 8c0c2f5f34
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
3 changed files with 5 additions and 2 deletions

View File

@ -32,6 +32,7 @@
})();
</script>
<!-- End Matomo Code -->
<script async src="https://umami.woodburn.au/script.js" data-website-id="45d91688-692c-40de-be01-6779034dcdd8"></script>
</head>
<body id="page-top" style="background: rgb(0,0,0);">

View File

@ -32,6 +32,7 @@
})();
</script>
<!-- End Matomo Code -->
<script async src="https://umami.woodburn.au/script.js" data-website-id="45d91688-692c-40de-be01-6779034dcdd8"></script>
</head>
<body id="page-top" style="background: rgb(0,0,0);">
@ -111,8 +112,8 @@
</div>
<div class="card-body">
<form class="text-center" method="post">
<div class="text-end"><label class="form-label" style="display: inline-block;">https://{{host}}/</label><input class="form-control form-control-sm" type="text" style="margin-top: 10px;display: inline-block;width: auto;" name="link" required=""></div>
<div class="text-end"><label class="form-label" style="display: inline-block;margin-right: 20px;">Links to</label><input class="form-control form-control-sm" type="text" style="margin-top: 10px;display: inline-block;width: auto;" placeholder="URL" name="url" required=""></div><input class="btn btn-primary" type="submit" style="margin: 10px;" value="Create">
<div class="text-end"><label class="form-label" style="display: inline-block;">https://{{host}}/</label><input class="form-control form-control-sm" type="text" style="margin-top: 10px;display: inline-block;width: auto;" name="link" required="" pattern="^[a-zA-Z0-9]+$"><span style="display: block;">Can only contain a-z 0-9</span></div>
<div class="text-end" style="margin-top: 20px;"><label class="form-label" style="display: inline-block;margin-right: 20px;">Links to</label><input class="form-control form-control-sm" type="text" style="margin-top: 10px;display: inline-block;width: auto;" placeholder="URL" name="url" required=""></div><input class="btn btn-primary" type="submit" style="margin: 10px;" value="Create">
</form>
</div>
</div>

View File

@ -40,6 +40,7 @@
})();
</script>
<!-- End Matomo Code -->
<script async src="https://umami.woodburn.au/script.js" data-website-id="45d91688-692c-40de-be01-6779034dcdd8"></script>
</head>
<body id="page-top" style="background: rgb(0,0,0);"><script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>