Delete templates
Browse files- templates/.keep +0 -0
- templates/index.html +0 -57
templates/.keep
DELETED
|
File without changes
|
templates/index.html
DELETED
|
@@ -1,57 +0,0 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8">
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
-
<title>YouTube Shorts Uploader</title>
|
| 7 |
-
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 8 |
-
</head>
|
| 9 |
-
<body class="bg-dark text-white text-center">
|
| 10 |
-
|
| 11 |
-
<div class="container py-5">
|
| 12 |
-
|
| 13 |
-
{% if not auth %}
|
| 14 |
-
<h1 class="mb-4">🔐 Admin Login</h1>
|
| 15 |
-
<form method="POST" action="/login" style="max-width: 400px; margin: auto;">
|
| 16 |
-
<input type="password" name="password" class="form-control mb-3" placeholder="Enter Password" required>
|
| 17 |
-
<button type="submit" class="btn btn-primary">Login</button>
|
| 18 |
-
{% if error %}<p class="text-danger mt-3">{{ error }}</p>{% endif %}
|
| 19 |
-
</form>
|
| 20 |
-
|
| 21 |
-
{% else %}
|
| 22 |
-
<h1 class="mb-4">📺 YouTube Shorts Uploader</h1>
|
| 23 |
-
|
| 24 |
-
{% if video_id %}
|
| 25 |
-
<div class="ratio ratio-9x16 mb-4" style="max-width: 360px; margin: auto;">
|
| 26 |
-
<iframe
|
| 27 |
-
src="https://www.youtube.com/embed/{{ video_id }}?autoplay=1&mute=1&controls=1"
|
| 28 |
-
title="Latest Uploaded Short"
|
| 29 |
-
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
| 30 |
-
allowfullscreen
|
| 31 |
-
></iframe>
|
| 32 |
-
</div>
|
| 33 |
-
{% else %}
|
| 34 |
-
<p class="text-muted">No uploaded videos yet.</p>
|
| 35 |
-
{% endif %}
|
| 36 |
-
|
| 37 |
-
<div class="card bg-secondary p-4 mx-auto" style="max-width: 600px;">
|
| 38 |
-
<p><strong>Status:</strong> ✅ Running</p>
|
| 39 |
-
<p><strong>Server Time:</strong> {{ time }}</p>
|
| 40 |
-
|
| 41 |
-
<form method="POST" action="/run-now">
|
| 42 |
-
<button type="submit" class="btn btn-warning mt-3">🚀 Run Now (Manual Trigger)</button>
|
| 43 |
-
</form>
|
| 44 |
-
|
| 45 |
-
<form method="POST" action="/toggle" class="mt-3">
|
| 46 |
-
<button type="submit" class="btn btn-{{ 'danger' if status else 'success' }}">
|
| 47 |
-
{{ 'Stop Automation' if status else 'Start Automation' }}
|
| 48 |
-
</button>
|
| 49 |
-
</form>
|
| 50 |
-
</div>
|
| 51 |
-
|
| 52 |
-
<p class="mt-5 text-muted">Automation runs every 8 hours</p>
|
| 53 |
-
{% endif %}
|
| 54 |
-
|
| 55 |
-
</div>
|
| 56 |
-
</body>
|
| 57 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|