This commit is contained in:
1 parent
0557a8926c
commit
c5c5f8c004
2 files changed
+14
-13
No files matched your search
@@ -54,7 +54,6 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-left: 2px solid transparent;
|
border-left: 2px solid transparent;
|
||||||
border-radius: 3px;
|
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
|
|||||||
@@ -63,8 +63,8 @@
|
|||||||
|
|
||||||
<div class="settings-container">
|
<div class="settings-container">
|
||||||
{#if activeTab === 'basic'}
|
{#if activeTab === 'basic'}
|
||||||
<h3 class="section-title">系统与安全环境</h3>
|
<div class="settings-card full-width">
|
||||||
<div class="settings-card full-width" style="margin-bottom: 25px; padding: 0; border: none;">
|
<h3 class="section-title">系统与安全环境</h3>
|
||||||
<div class="info-grid" style="margin: 0;">
|
<div class="info-grid" style="margin: 0;">
|
||||||
<div class="info-item">
|
<div class="info-item">
|
||||||
<span class="label">驱动框架</span>
|
<span class="label">驱动框架</span>
|
||||||
@@ -99,8 +99,8 @@
|
|||||||
}}
|
}}
|
||||||
class="alias-form"
|
class="alias-form"
|
||||||
>
|
>
|
||||||
<h3 class="section-title">站点基础信息</h3>
|
|
||||||
<div class="settings-card full-width">
|
<div class="settings-card full-width">
|
||||||
|
<h3 class="section-title">站点基础信息</h3>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="site_title">网站标题</label>
|
<label for="site_title">网站标题</label>
|
||||||
@@ -147,8 +147,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 class="section-title" style="margin-top: 25px;">图片上传</h3>
|
|
||||||
<div class="settings-card full-width">
|
<div class="settings-card full-width">
|
||||||
|
<h3 class="section-title">图片上传</h3>
|
||||||
<label class="toggle-label">
|
<label class="toggle-label">
|
||||||
<input type="checkbox" name="upload_auto_webp" value="true" bind:checked={autoWebp} />
|
<input type="checkbox" name="upload_auto_webp" value="true" bind:checked={autoWebp} />
|
||||||
<span class="toggle-text">上传图片时自动转换为 WebP</span>
|
<span class="toggle-text">上传图片时自动转换为 WebP</span>
|
||||||
@@ -160,8 +160,8 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 class="section-title" style="margin-top: 25px;">API 与 AI 集成</h3>
|
|
||||||
<div class="settings-card full-width">
|
<div class="settings-card full-width">
|
||||||
|
<h3 class="section-title">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>。
|
||||||
@@ -194,8 +194,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 class="section-title" style="margin-top: 25px;">Cloudflare Web Analytics</h3>
|
|
||||||
<div class="settings-card full-width">
|
<div class="settings-card full-width">
|
||||||
|
<h3 class="section-title">Cloudflare Web Analytics</h3>
|
||||||
<p class="desc">
|
<p class="desc">
|
||||||
填写 Cloudflare Web Analytics 统计脚本中的 token,用于采集页面浏览量和访问次数。 请勿填写
|
填写 Cloudflare Web Analytics 统计脚本中的 token,用于采集页面浏览量和访问次数。 请勿填写
|
||||||
Site Tag;它是查询标识,不能用于浏览器采集。后台查询还需配置 CF_ACCOUNT_ID, 并确保
|
Site Tag;它是查询标识,不能用于浏览器采集。后台查询还需配置 CF_ACCOUNT_ID, 并确保
|
||||||
@@ -223,8 +223,8 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if activeTab === 'appearance'}
|
{#if activeTab === 'appearance'}
|
||||||
<h3 class="section-title">首页顶部主图与外观偏好</h3>
|
|
||||||
<div class="settings-card full-width">
|
<div class="settings-card full-width">
|
||||||
|
<h3 class="section-title">首页顶部主图与外观偏好</h3>
|
||||||
<form
|
<form
|
||||||
method="POST"
|
method="POST"
|
||||||
action="?/updateAppearance"
|
action="?/updateAppearance"
|
||||||
@@ -271,8 +271,8 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if activeTab === 'terms'}
|
{#if activeTab === 'terms'}
|
||||||
<h3 class="section-title">个性化术语设定</h3>
|
|
||||||
<div class="settings-card full-width">
|
<div class="settings-card full-width">
|
||||||
|
<h3 class="section-title">个性化术语设定</h3>
|
||||||
<p class="desc">
|
<p class="desc">
|
||||||
您可以根据部署场景(如教学系统、文档库)自定义后台各模块的显示名称,例如将“文章”改为“实验手册”。
|
您可以根据部署场景(如教学系统、文档库)自定义后台各模块的显示名称,例如将“文章”改为“实验手册”。
|
||||||
</p>
|
</p>
|
||||||
@@ -385,11 +385,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.settings-card {
|
.settings-card {
|
||||||
border: none;
|
border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
|
||||||
padding: 0 0 35px 0;
|
padding: 24px;
|
||||||
background: transparent;
|
background: var(--bg-surface, #ffffff);
|
||||||
|
border-radius: 6px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-grid {
|
.info-grid {
|
||||||
@@ -430,7 +432,7 @@
|
|||||||
.alias-form {
|
.alias-form {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 20px;
|
gap: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-row {
|
.form-row {
|
||||||
|
|||||||
Reference in new issue
Block a user