feat(agent-runtime): 接入多服务商安全配置

This commit is contained in:
bruce
2026-09-18 16:43:48 +08:00
parent 1e56a55399
commit f8c0c2d411
20 changed files with 1087 additions and 31 deletions
+37 -2
View File
@@ -1,5 +1,40 @@
<!doctype html>
<html lang="zh-CN">
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{% block title %}JobRadar{% endblock %}</title><link rel="stylesheet" href="/static/css/app.css"></head>
<body><a class="skip" href="#main">跳到主要内容</a><header><strong>JobRadar · 职途雷达</strong>{% if user.is_authenticated %}<nav><a href="{% url 'agent_runtime:run-list' %}">运行记录</a><a href="{% url 'accounts:profile' %}">个人资料</a><form method="post" action="{% url 'accounts:logout' %}">{% csrf_token %}<button>退出</button></form></nav>{% endif %}</header><main id="main">{% for message in messages %}<p class="message">{{ message }}</p>{% endfor %}{% block content %}{% endblock %}</main></body>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>{% block title %}JobRadar{% endblock %}</title>
<link rel="stylesheet" href="/static/css/app.css">
</head>
<body class="{% if user.is_authenticated %}app-shell{% else %}public-shell{% endif %}">
<a class="skip" href="#main">跳到主要内容</a>
{% if user.is_authenticated %}
<aside class="sidebar" aria-label="主导航">
<a class="brand" href="{% url 'agent_runtime:run-list' %}">
<span class="brand-mark" aria-hidden="true">◎</span>
<span><strong>JobRadar</strong><small>职途雷达</small></span>
</a>
<nav class="side-nav">
<p class="nav-group">工作台</p>
<a href="{% url 'agent_runtime:run-list' %}"><span aria-hidden="true">◫</span> Agent 运行记录</a>
<p class="nav-group">设置</p>
<a href="{% url 'agent_runtime:provider-list' %}"><span aria-hidden="true">⚙</span> API 服务商</a>
<a href="{% url 'accounts:profile' %}"><span aria-hidden="true">○</span> 个人资料</a>
</nav>
<div class="sidebar-user">
<span class="avatar">{{ user.username|first|upper }}</span>
<span><strong>{{ user.username }}</strong><small>个人工作区</small></span>
<form method="post" action="{% url 'accounts:logout' %}">
{% csrf_token %}<button class="icon-button" title="退出登录">↗</button>
</form>
</div>
</aside>
{% else %}
<header class="public-header"><strong>JobRadar · 职途雷达</strong></header>
{% endif %}
<main id="main" class="main-content">
{% for message in messages %}<p class="message">{{ message }}</p>{% endfor %}
{% block content %}{% endblock %}
</main>
</body>
</html>