Initial commit: rdgen with GitHub/Gitea dual build backend

This commit is contained in:
naeeo
2026-09-29 19:56:02 +08:00
commit a3686a49d4
103 changed files with 20007 additions and 0 deletions
@@ -0,0 +1,43 @@
{% load static %}<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>登录 · RustDesk 客户端定制平台</title>
<link rel="stylesheet" href="{% static 'rdgenerator/css/app.css' %}">
</head>
<body class="login-page">
<div class="login-card">
<div class="login-brand">
<span class="brand-logo">RD</span>
<div>
<h1>RustDesk 客户端定制平台</h1>
<p>登录后提交和管理自定义客户端构建任务</p>
</div>
</div>
{% if form.errors %}
<div class="alerts" style="margin-top:20px">
<div class="alert alert-error">用户名或密码不正确,请重新输入。</div>
</div>
{% endif %}
<form method="post" action="{% url 'login' %}">
{% csrf_token %}
<div class="field">
<label for="id_username">用户名</label>
<input type="text" name="username" id="id_username" class="form-control"
value="{{ form.username.value|default:'' }}" autofocus required
autocomplete="username" placeholder="请输入用户名">
</div>
<div class="field">
<label for="id_password">密码</label>
<input type="password" name="password" id="id_password" class="form-control"
required autocomplete="current-password" placeholder="请输入密码">
</div>
<input type="hidden" name="next" value="{{ next }}">
<button type="submit" class="btn btn-primary">登录</button>
</form>
</div>
</body>
</html>