0
This commit is contained in:
+19
-4
@@ -43,6 +43,7 @@
|
||||
</header>
|
||||
|
||||
<section class="add-section" id="addSection">
|
||||
<button type="button" id="addEntryBtn" class="btn-primary" data-i18n="addConfigTitle">添加域名配置</button>
|
||||
<div class="add-section-header">
|
||||
<h2 id="addConfigTitle" data-i18n="addConfigTitle">添加域名配置</h2>
|
||||
<button type="button" id="cancelEditBtn" class="btn-edit" data-i18n="cancelBtn" hidden>取消</button>
|
||||
@@ -125,11 +126,22 @@
|
||||
<div class="list-header">
|
||||
<h2 data-i18n="configuredDomainsTitle">已配置域名</h2>
|
||||
<div class="list-actions">
|
||||
<button type="button" id="exportBtn" class="btn-io" data-i18n="exportBtn">导出</button>
|
||||
<button type="button" id="importBtn" class="btn-io" data-i18n="importBtn">导入</button>
|
||||
<button type="button" id="searchBtn" class="btn-io btn-icon" data-i18n-title="searchBtnTitle" title="搜索">
|
||||
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3"/></svg>
|
||||
</button>
|
||||
<button type="button" id="exportBtn" class="btn-io btn-icon" data-i18n-title="exportBtn" title="导出">
|
||||
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v12"/><path d="M7 8l5-5 5 5"/><path d="M5 17v2a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-2"/></svg>
|
||||
</button>
|
||||
<button type="button" id="importBtn" class="btn-io btn-icon" data-i18n-title="importBtn" title="导入">
|
||||
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 21V9"/><path d="M7 16l5 5 5-5"/><path d="M5 7V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v2"/></svg>
|
||||
</button>
|
||||
<input type="file" id="importFile" accept="application/json,.json" hidden>
|
||||
</div>
|
||||
</div>
|
||||
<div id="searchBox" class="search-box" hidden>
|
||||
<input type="text" id="searchInput" data-i18n-placeholder="searchPlaceholder" placeholder="搜索域名 / 用户名 / 别名">
|
||||
<button type="button" id="searchClear" class="search-clear">×</button>
|
||||
</div>
|
||||
<div id="configList" class="config-list">
|
||||
</div>
|
||||
</section>
|
||||
@@ -226,10 +238,13 @@
|
||||
<!-- 编辑域名配置对话框 -->
|
||||
<div id="editConfigModal" class="modal">
|
||||
<div class="modal-content edit-config-content">
|
||||
<h3 data-i18n="editConfigTitle">编辑域名配置</h3>
|
||||
<h3 id="editConfigModalTitle" data-i18n="editConfigTitle">编辑域名配置</h3>
|
||||
<div class="form-group">
|
||||
<label for="editDomain" data-i18n="domainLabel">域名 / URL 匹配规则</label>
|
||||
<input type="text" id="editDomain" data-i18n-placeholder="domainPlaceholder" placeholder="example.com 或 *.example.com 或 site.com/admin/*">
|
||||
<div class="domain-wrapper">
|
||||
<input type="text" id="editDomain" data-i18n-placeholder="domainPlaceholder" placeholder="example.com 或 *.example.com 或 site.com/admin/*">
|
||||
<button type="button" id="editFillDomain" class="btn-fill-domain" data-i18n="fillDomainBtn" data-i18n-title="fillDomainBtnTitle" title="填入当前标签页域名">填入当前域名</button>
|
||||
</div>
|
||||
<small data-i18n="domainHelp">支持通配符 *。带 / 时按 hostname+path 匹配,如 oa.com/login/*;不带 / 时只匹配域名</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
Reference in New Issue
Block a user