Init
/ 自动构建并推送Docker镜像 (push) Failing after 3s

This commit is contained in:
2026-03-25 17:34:00 +08:00
commit 5b2219f901
16 changed files with 1792 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>服务罗盘</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='logo.png') }}">
</head>
<body>
{% block header %}
<header>
<div class="logo">
<img src="{{ url_for('static', filename='logo.png') }}" alt="" style="height: 45px; margin-right: 15px;">
服务罗盘
</div>
<div class="header-actions">
<div class="theme-toggle-dots">
<button class="theme-dot active" onclick="setTheme('dark')" data-value="dark" title="暗色">🌙</button>
<button class="theme-dot" onclick="setTheme('light')" data-value="light" title="亮色">☀️</button>
<button class="theme-dot" onclick="setTheme('system')" data-value="system" title="跟随系统">💻</button>
</div>
<button class="user-avatar" onclick="window.location.href='{{ url_for('profile') }}'" title="账户设置">👨‍💻</button>
</div>
</header>
{% endblock %}
{% block content %}{% endblock %}
<script src="{{ url_for('static', filename='theme.js') }}"></script>
{% block scripts %}{% endblock %}
</body>
</html>
+23
View File
@@ -0,0 +1,23 @@
{% extends "pages/base.html" %}
{% block content %}
<div class="container">
<h1>我的服务</h1>
{% if services %}
<div class="services-grid">
{% for service in services %}
<a href="{{ service.get_url() }}" class="service-card" target="_blank" rel="noopener noreferrer">
{{ service.get_icon_html()|safe }}
<div class="service-name">{{ service.name }}</div>
<div class="service-description">{{ service.description or '无描述' }}</div>
</a>
{% endfor %}
</div>
{% else %}
<div class="empty-state">
<div class="empty-state-icon">📋</div>
<p>暂无服务。请添加服务以开始使用!</p>
</div>
{% endif %}
</div>
{% endblock %}
+59
View File
@@ -0,0 +1,59 @@
{% extends "pages/base.html" %}
{% block header %}{% endblock %}
{% block content %}
<div class="login-container">
<div class="login-logo">
<img src="{{ url_for('static', filename='logo.png') }}" alt="logo" style="width: 80px; height: 80px;">
</div>
<h1>服务罗盘</h1>
<p class="subtitle">服务导航中心</p>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="flash-messages">
{% for category, message in messages %}
<div class="flash {{ category }}">{{ message }}</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}
<form method="post">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="form-group">
<label for="username" class="password-label">用户名</label>
<div class="input-wrapper">
<input type="text" id="username" name="username" required autofocus placeholder="请输入用户名">
</div>
</div>
<div class="form-group">
<div class="password-field-wrapper">
<label for="password" class="password-label">密码</label>
<div class="input-wrapper">
<input type="password" id="password" name="password" required placeholder="请输入密码">
<button type="button" class="password-toggle" onclick="togglePassword()" title="显示/隐藏密码">🙈</button>
</div>
</div>
</div>
<button type="submit">登录</button>
</form>
</div>
<script src="{{ url_for('static', filename='theme.js') }}"></script>
<script>
function togglePassword() {
const passwordInput = document.getElementById('password');
const toggleBtn = document.querySelector('.password-toggle');
if (passwordInput.type === 'password') {
passwordInput.type = 'text';
toggleBtn.textContent = '👀';
} else {
passwordInput.type = 'password';
toggleBtn.textContent = '🙈';
}
}
</script>
{% endblock %}
</body>
</html>
+74
View File
@@ -0,0 +1,74 @@
{% extends "pages/base.html" %}
{% block title %}修改密码{% endblock %}
{% block content %}
<div class="profile-container">
<button class="back-btn" onclick="window.location.href='{{ url_for('home') }}'" title="返回主页">×</button>
<div class="profile-avatar">👨‍💻</div>
<h1>修改密码</h1>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="flash-messages">
{% for category, message in messages %}
<div class="flash {{ category }}">{{ message }}</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}
<form method="post">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="form-group">
<label for="old_password" class="password-label">当前密码</label>
<div class="password-field-wrapper">
<div class="input-wrapper">
<input type="password" id="old_password" name="old_password" required placeholder="请输入当前密码" value="{{ request.form.get('old_password', '') }}">
<button type="button" class="password-toggle" onclick="togglePassword('old_password')" title="显示/隐藏密码">🙈</button>
</div>
</div>
</div>
<div class="form-group">
<label for="new_password" class="password-label">新密码</label>
<div class="password-field-wrapper">
<div class="input-wrapper">
<input type="password" id="new_password" name="new_password" required placeholder="请输入新密码(至少 6 位)" value="{{ request.form.get('new_password', '') }}">
<button type="button" class="password-toggle" onclick="togglePassword('new_password')" title="显示/隐藏密码">🙈</button>
</div>
</div>
</div>
<div class="form-group">
<label for="confirm_password" class="password-label">确认密码</label>
<div class="password-field-wrapper">
<div class="input-wrapper">
<input type="password" id="confirm_password" name="confirm_password" required placeholder="请再次输入新密码" value="{{ request.form.get('confirm_password', '') }}">
<button type="button" class="password-toggle" onclick="togglePassword('confirm_password')" title="显示/隐藏密码">🙈</button>
</div>
</div>
</div>
<button type="submit">修改密码</button>
<button type="button" class="logout-btn" onclick="window.location.href='{{ url_for('logout') }}'">退出登录</button>
</form>
</div>
{% endblock %}
{% block scripts %}
<script src="{{ url_for('static', filename='theme.js') }}"></script>
<script>
function togglePassword(fieldId) {
const passwordInput = document.getElementById(fieldId);
const inputWrapper = passwordInput.closest('.input-wrapper');
const toggleBtn = inputWrapper.querySelector('.password-toggle');
if (passwordInput.type === 'password') {
passwordInput.type = 'text';
toggleBtn.textContent = '👀';
} else {
passwordInput.type = 'password';
toggleBtn.textContent = '🙈';
}
}
</script>
{% endblock %}
</body>
</html>