This commit is contained in:
1 parent
ecbae7dc6a
commit
59841528fc
1 file changed
+27
-6
@@ -51,7 +51,8 @@
|
|||||||
|
|
||||||
<div class="settings-container">
|
<div class="settings-container">
|
||||||
{#if activeTab === 'basic'}
|
{#if activeTab === 'basic'}
|
||||||
<div class="settings-card full-width">
|
<div class="basic-top-row">
|
||||||
|
<div class="settings-card">
|
||||||
<h3>站点基础信息</h3>
|
<h3>站点基础信息</h3>
|
||||||
|
|
||||||
<form
|
<form
|
||||||
@@ -115,7 +116,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="settings-card full-width">
|
<div class="settings-card">
|
||||||
<h3>系统与安全环境</h3>
|
<h3>系统与安全环境</h3>
|
||||||
<div class="info-row">
|
<div class="info-row">
|
||||||
<span class="label">主题风格</span>
|
<span class="label">主题风格</span>
|
||||||
@@ -138,9 +139,10 @@
|
|||||||
<span class="value">Cloudflare Access (Zero Trust)</span>
|
<span class="value">Cloudflare Access (Zero Trust)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="settings-card full-width">
|
<div class="settings-card full-width">
|
||||||
<h3>API 与 AI 集成 (Agent/MCP)</h3>
|
<h3>API 与 AI 集成</h3>
|
||||||
<p class="desc">
|
<p class="desc">
|
||||||
配置允许 AI 或第三方工具直接管理文章的 API 访问令牌 (Token)。请求 API 时请在 HTTP Header
|
配置允许 AI 或第三方工具直接管理文章的 API 访问令牌 (Token)。请求 API 时请在 HTTP Header
|
||||||
中添加 <code>Authorization: Bearer <Token></code>。
|
中添加 <code>Authorization: Bearer <Token></code>。
|
||||||
@@ -169,11 +171,17 @@
|
|||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
|
style="white-space: nowrap;"
|
||||||
onclick={() => (showApiToken = !showApiToken)}
|
onclick={() => (showApiToken = !showApiToken)}
|
||||||
>
|
>
|
||||||
{showApiToken ? '隐藏' : '显示'}
|
{showApiToken ? '隐藏' : '显示'}
|
||||||
</Button>
|
</Button>
|
||||||
<Button type="button" variant="secondary" onclick={generateApiToken}>自动生成</Button>
|
<Button
|
||||||
|
type="button"
|
||||||
|
variant="secondary"
|
||||||
|
style="white-space: nowrap;"
|
||||||
|
onclick={generateApiToken}>自动生成</Button
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
@@ -327,11 +335,24 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.settings-container {
|
.settings-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 25px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.basic-top-row {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
grid-template-columns: 2fr 1fr;
|
||||||
gap: 25px;
|
gap: 25px;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
max-width: 860px;
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.basic-top-row {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.full-width {
|
.full-width {
|
||||||
|
|||||||
Reference in new issue
Block a user