77 lines
2.7 KiB
Plaintext
77 lines
2.7 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
|
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
|
|
<title>Clippable Admin Dashboard</title>
|
|
<link rel="shortcut icon" type="image/png" href="/static/favicon.png"/>
|
|
|
|
<!-- This script basically just provides some convenience to -->
|
|
<!-- pre-populate the requests that an admin might make -->
|
|
<script src="/static/js/admin.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="content">
|
|
<nav class="navbar navbar-expand-lg navbar-dark">
|
|
<a style="bread-crumb-item text-transform: capitalize" class="navbar-brand" href="/">
|
|
<img src="/static/favicon.png" class="rounded" width="50" height="50">
|
|
</a>
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item">
|
|
<a href="/">Home</a>
|
|
</li>
|
|
</ol>
|
|
</nav>
|
|
|
|
<div class="content" id="login-display">
|
|
<h2>Login to Instance</h2>
|
|
<form class="form-inline login-form">
|
|
<div class="input-group mb-2">
|
|
<input type="password" id="uid" class="form-control mx-sm-3" placeholder="UID code">
|
|
<div class="form-check form-check-inline">
|
|
<input class="form-check-input" type="checkbox" onclick="toggle_visible('uid')">
|
|
<label class="form-check-label" for="showuid">Show uid</label>
|
|
</div> </div>
|
|
<div class="input-group mb-2">
|
|
<input type="password" id="apikey" class="form-control mx-sm-3" placeholder="API Key">
|
|
<div class="form-check form-check-inline">
|
|
<input class="form-check-input" type="checkbox" onclick="toggle_visible('apikey')">
|
|
<label class="form-check-label" for="showuid">Show key</label>
|
|
</div>
|
|
</div>
|
|
<strong id='error' hidden></strong>
|
|
<button type="button" class="btn btn-info" onclick="confirm_auth()">Submit</button>
|
|
</form>
|
|
</div>
|
|
<div class="content" id="dashboard" hidden>
|
|
<div class="container">
|
|
<form>
|
|
<div class="form-group">
|
|
<label for="video-file">Pick out video file to upload</label>
|
|
<input type="file" class="form-control" id="video-file">
|
|
</div>
|
|
</form>
|
|
<div id="video-meta" hidden>
|
|
<p>Video file name: <code id="vmn"></code></p>
|
|
<p>Video file size: <code id="vms"></code></p>
|
|
<p>Video file type: <code id="vmt"></code></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
function toggle_visible(id) {
|
|
var x = document.getElementById(id);
|
|
if (x.type === "password") {
|
|
x.type = "text";
|
|
} else {
|
|
x.type = "password";
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|