Search / static /index.html
vomebook
Apply saved theme before search and Reader first paint
472fce5
Raw History Blame Contribute Delete
24.1 kB
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#1a1c1e">
<script>
(() => {
const root = document.documentElement;
root.dataset.theme = "dark";
try {
if (localStorage.getItem("theme") === "light") {
root.dataset.theme = "light";
document.querySelector('meta[name="theme-color"]').setAttribute("content", "#fdfbff");
}
} catch (_) {}
try { if (matchMedia("(max-width: 768px)").matches && localStorage.getItem("mobileMode") !== "desktop") document.documentElement.classList.add("mobile-boot"); }
catch (_) { if (matchMedia("(max-width: 768px)").matches) document.documentElement.classList.add("mobile-boot"); }
})();
</script>
<style>
:root { color-scheme: dark; background: #1a1c1e; }
:root[data-theme="light"] { color-scheme: light; background: #fdfbff; }
</style>
<!-- SEO:HEAD -->
<title>VoiceOfML Search</title>
<meta name="description" content="检索 VoiceOfML 公开资料的文件名、路径和格式,浏览文库目录,在线阅读或下载原始文件。">
<meta property="og:type" content="website">
<meta property="og:site_name" content="VoiceOfML">
<meta property="og:title" content="VoiceOfML Search">
<meta property="og:description" content="检索公开资料的文件名、路径和格式,浏览文库目录,在线阅读或下载原始文件。">
<meta property="og:url" content="https://voiceofml-search.hf.space/">
<meta property="og:image" content="https://voiceofml-search.hf.space/icons/icon-512.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="VoiceOfML Search">
<meta name="twitter:description" content="检索公开资料的文件名、路径和格式,浏览目录与原始文件。">
<meta name="twitter:image" content="https://voiceofml-search.hf.space/icons/icon-512.png">
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","name":"VoiceOfML","url":"https://voiceofml-search.hf.space/","description":"公开资料的文件名与路径检索、目录浏览和在线阅读。","inLanguage":"zh-CN"}</script>
<!-- HF supplies the HTTP canonical; do not add a conflicting HTML canonical. -->
<!-- /SEO:HEAD -->
<link rel="manifest" href="/manifest.json">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="VoiceOfML">
<link rel="apple-touch-icon" href="/icons/icon-192.png">
<link rel="icon" type="image/png" sizes="192x192" href="/icons/icon-192.png">
<link rel="icon" type="image/png" sizes="512x512" href="/icons/icon-512.png">
<link rel="icon" type="image/svg+xml" href="/icons/icon.svg">
<script>fetch("/api/ping", { cache: "no-store" }).catch(() => {});</script>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<a class="skip-link" href="#results-container">跳转到搜索结果</a>
<div id="search-announcement" class="sr-only" role="status" aria-live="polite" aria-atomic="true"></div>
<header id="header">
<div class="header-left">
<button id="hamburger-btn" class="icon-btn" aria-label="菜单" aria-controls="left-sidebar" aria-expanded="false" title="侧边栏 (Ctrl+B)">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
<line x1="4" y1="6" x2="20" y2="6"/>
<line x1="4" y1="12" x2="20" y2="12"/>
<line x1="4" y1="18" x2="20" y2="18"/>
</svg>
</button>
<a id="header-logo" class="header-logo" href="/" title="VoiceOfML">
<img class="header-logo-icon header-logo-icon-dark" src="/icons/logo-dark.svg" alt="" width="28" height="28">
<img class="header-logo-icon header-logo-icon-light" src="/icons/logo.svg" alt="" width="28" height="28">
<span id="header-title">VoiceOfML</span>
</a>
</div>
<div class="header-center">
<div class="search-box" id="search-box">
<svg class="search-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"/>
<line x1="21" y1="21" x2="16.65" y2="16.65"/>
</svg>
<input type="search" id="search-input" class="search-input"
aria-label="搜索文件" aria-controls="results-list search-history-dropdown"
placeholder="搜索 VoiceOfML 数据仓库..."
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
<script>
(() => {
const input = document.getElementById("search-input");
const handoff = { dirty: false, composing: false, owner: null, dispose };
function capture(renew) {
handoff.dirty = true;
if (renew || !handoff.owner) handoff.owner = {
href: location.href, key: window.navigation?.currentEntry?.key, cancelled: false
};
}
function onInput(event) {
const compositionInput = event.isComposing || event.inputType === "insertCompositionText" || event.inputType === "insertFromComposition";
capture(!handoff.composing && !compositionInput);
}
function onStart() { capture(true); handoff.composing = true; }
function onEnd() { handoff.composing = false; }
function cancel() { if (handoff.owner) handoff.owner.cancelled = true; }
function dispose() {
input.removeEventListener("input", onInput);
input.removeEventListener("compositionstart", onStart);
input.removeEventListener("compositionend", onEnd);
for (const type of ["popstate", "hashchange", "pagehide"]) window.removeEventListener(type, cancel, true);
delete input._earlySearchInput;
}
input._earlySearchInput = handoff;
input.addEventListener("input", onInput);
input.addEventListener("compositionstart", onStart);
input.addEventListener("compositionend", onEnd);
for (const type of ["popstate", "hashchange", "pagehide"]) window.addEventListener(type, cancel, true);
})();
</script>
<kbd class="search-kbd" id="search-kbd">/</kbd>
<div id="search-history-dropdown" class="search-history-dropdown" role="region" aria-label="搜索历史" style="display:none"></div>
</div>
</div>
<div class="header-right">
<button id="settings-btn" class="icon-btn" aria-label="搜索设置" aria-controls="right-sidebar" aria-expanded="false" title="搜索过滤">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"/>
<line x1="21" y1="21" x2="16.65" y2="16.65"/>
<line x1="8" y1="11" x2="14" y2="11"/>
<line x1="11" y1="8" x2="11" y2="14"/>
</svg>
</button>
<button id="theme-btn" class="icon-btn" aria-label="切换主题" title="深色/浅色模式">
<svg id="theme-icon-light" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="5"/>
<line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>
<line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>
</svg>
<svg id="theme-icon-dark" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/>
</svg>
</button>
<button id="mobile-toggle-btn" class="icon-btn" aria-label="切换视图" title="手机/电脑版">
<svg id="mobile-icon-phone" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="display:none">
<rect x="5" y="2" width="14" height="20" rx="2" ry="2"/>
<line x1="12" y1="18" x2="12.01" y2="18"/>
</svg>
<svg id="mobile-icon-desktop" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="2" y="3" width="20" height="14" rx="2" ry="2"/>
<line x1="8" y1="21" x2="16" y2="21"/>
<line x1="12" y1="17" x2="12" y2="21"/>
</svg>
</button>
</div>
</header>
<div id="app-body" class="app-body">
<aside id="left-sidebar" class="sidebar left-sidebar" aria-labelledby="sidebar-title" tabindex="-1" inert>
<div class="sidebar-header">
<div class="sidebar-context">
<button id="sidebar-back-btn" class="icon-btn-sm" type="button" aria-label="返回上一页" title="返回上一页" hidden>
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="15 18 9 12 15 6"/></svg>
</button>
<span id="sidebar-title">仓库列表</span>
</div>
<div class="sidebar-header-actions">
<button id="sidebar-expand-btn" class="icon-btn-sm sidebar-expand-btn" type="button" aria-label="展开侧边栏" title="展开侧边栏" style="display:none">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="8 4 16 12 8 20"/><polyline points="16 4 24 12 16 20"/></svg>
</button>
</div>
</div>
<div id="sidebar-content" class="sidebar-content">
<div class="sidebar-loading">加载中...</div>
</div>
</aside>
<main id="main-content" class="main-content">
<div id="status-bar" class="status-bar">
<div class="status-left">
<span id="result-count" class="result-count"></span>
<label class="multi-toggle" id="multi-toggle-label" style="display:none">
<input type="checkbox" id="multi-select-toggle">
<span>多选</span>
</label>
</div>
<div class="status-right">
<button id="clear-filters-btn" class="text-btn" style="display:none">清空筛选</button>
<div class="sort-group">
<label class="sort-label" for="sort-select">排序:</label>
<select id="sort-select" class="sort-select">
<option value="relevance">相关度</option>
<option value="name">文件名</option>
<option value="size">文件大小</option>
</select>
</div>
</div>
</div>
<div id="multi-action-bar" class="multi-action-bar" style="display:none">
<button id="multi-select-all" class="multi-action-btn" aria-label="全选或取消全选已加载的结果" title="只选择已加载的结果">全选已加载</button>
<button id="multi-deselect" class="multi-action-btn">取消选择</button>
<button id="multi-copy-links" class="multi-action-btn">复制链接</button>
<button id="multi-batch-download" class="multi-action-btn primary">批量下载</button>
<span id="multi-selected-count" class="multi-selected-count"></span>
</div>
<div id="results-container" class="results-container" role="region" aria-label="搜索结果浏览" tabindex="0" aria-busy="false">
<div id="results-list" class="results-list" role="list" aria-label="搜索结果"></div>
<div id="results-loading" class="loading-spinner" style="display:none">
<div class="spinner"></div>
</div>
<div id="empty-state" class="empty-state" style="display:none">
<svg class="empty-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
<circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>
<line x1="8" y1="11" x2="14" y2="11"/>
</svg>
<div class="empty-title">没有找到结果</div>
<div id="empty-desc" class="empty-desc">试试其他关键词</div>
<button id="empty-random-btn" class="random-big-btn">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M2 3h6a4 4 0 014 4v14a3 3 0 00-3-3H2z"/>
<path d="M22 3h-6a4 4 0 00-4 4v14a3 3 0 013-3h7z"/>
</svg>
随机来本书
</button>
</div>
</div>
<div id="load-info" class="load-info" style="display:none">
<span id="mobile-selected-count" class="mobile-selected-count" style="display:none"></span>
<span class="result-position-count">当前第 <button id="edit-result-position" class="current-result-position" type="button" aria-label="跳转到指定结果" title="双击或按回车编辑条目号"><span id="result-position-display" aria-hidden="true">1</span></button><input id="current-result-position" class="current-result-position" type="text" inputmode="numeric" pattern="[0-9]*" autocomplete="off" aria-label="跳转条目号" title="回车跳转,退出键取消" hidden> / <span id="total-count">0</span> 条</span>
<span class="result-position-actions">
<button id="restart-position-btn" class="text-btn" type="button" hidden>回到顶部</button>
<button id="return-to-position-btn" class="text-btn" type="button" hidden>回到原位置</button>
<span id="search-position-status" hidden>
<button id="retry-position-btn" class="text-btn" type="button" hidden>重试恢复</button>
</span>
</span>
</div>
<div id="scroll-track" class="scroll-track">
<div id="scroll-thumb" class="scroll-thumb"></div>
</div>
</main>
<aside id="right-sidebar" class="sidebar right-sidebar" aria-labelledby="filters-title" tabindex="-1" inert>
<div class="sidebar-header">
<span id="filters-title">搜索过滤</span>
<button id="close-filters-btn" class="icon-btn-sm" aria-label="关闭过滤">&times;</button>
</div>
<div class="sidebar-content">
<div class="filter-section" id="mirror-links-section">
<label class="toggle-row">
<span class="toggle-label">镜像链接</span>
<input type="checkbox" id="mirror-links-toggle" checked>
<span class="toggle-switch"></span>
</label>
</div>
<div class="filter-section" id="history-toggle-section">
<label class="toggle-row">
<span class="toggle-label">记录搜索历史</span>
<input type="checkbox" id="history-toggle" checked>
<span class="toggle-switch"></span>
</label>
</div>
<div class="filter-section" id="search-folders-section">
<label class="toggle-row">
<span class="toggle-label">搜索文件夹名</span>
<input type="checkbox" id="search-folders-toggle" checked>
<span class="toggle-switch"></span>
</label>
</div>
<div class="filter-section" id="exact-search-section">
<label class="toggle-row">
<span class="toggle-label">精准搜索(支持通配符*和?)</span>
<input type="checkbox" id="exact-search-toggle" checked>
<span class="toggle-switch"></span>
</label>
</div>
<div id="filter-repo-section" class="filter-section">
<div class="filter-section-title">
<span class="filter-title-leading"><span>仓库过滤</span><button id="repo-filter-cancel" class="text-btn-sm" hidden>取消</button></span>
</div>
<div id="filter-repo-list" class="filter-checkbox-list"></div>
</div>
<div id="filter-folder-section" class="filter-section">
<div class="filter-section-title">
<span class="filter-title-leading"><span>路径过滤</span><button id="folder-filter-cancel" class="text-btn-sm" hidden>取消</button></span>
<span class="filter-actions">
<button type="button" id="folder-toggle-all" class="text-btn-sm" aria-label="展开所有子目录" title="展开所有子目录" aria-controls="filter-folder-tree" aria-expanded="false" disabled>展开</button>
<button id="folder-select-all" class="text-btn-sm">全选</button>
<button id="folder-deselect-all" class="text-btn-sm">反选</button>
</span>
</div>
<div id="filter-folder-tree" class="filter-folder-tree"></div>
</div>
<div id="filter-ext-section" class="filter-section">
<div class="filter-section-title">
<span class="filter-title-leading"><span>文件类型</span><button id="ext-filter-cancel" class="text-btn-sm" hidden>取消</button></span>
<span class="filter-actions">
<button id="ext-select-all" class="text-btn-sm">全选</button>
<button id="ext-deselect-all" class="text-btn-sm">反选</button>
</span>
</div>
<div id="filter-ext-list" class="filter-checkbox-list"></div>
</div>
<div class="filter-section">
<div class="filter-section-title">文件大小</div>
<div class="filter-size-row">
<input type="number" id="filter-min-size" class="size-input" aria-label="最小文件大小" placeholder="最小" min="0" step="0.1">
<select id="filter-min-unit" class="size-unit" aria-label="最小文件大小单位">
<option value="B">B</option>
<option value="KB">KB</option>
<option value="MB" selected>MB</option>
<option value="GB">GB</option>
</select>
<span class="size-sep">—</span>
<input type="number" id="filter-max-size" class="size-input" aria-label="最大文件大小" placeholder="最大" min="0" step="0.1">
<select id="filter-max-unit" class="size-unit" aria-label="最大文件大小单位">
<option value="B">B</option>
<option value="KB">KB</option>
<option value="MB" selected>MB</option>
<option value="GB">GB</option>
</select>
</div>
</div>
</div>
</aside>
</div>
<footer id="footer" class="footer">
<div id="hitokoto" class="hitokoto"></div>
<button id="random-book-btn" class="random-txt-btn" title="随机下本书">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/>
<polyline points="14 2 14 8 20 8"/>
<line x1="8" y1="13" x2="16" y2="13"/>
<line x1="8" y1="17" x2="14" y2="17"/>
</svg>
随机下本书
</button>
<button id="random-txt-btn" class="random-book-btn" title="随机来本书">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M2 3h6a4 4 0 014 4v14a3 3 0 00-3-3H2z"/>
<path d="M22 3h-6a4 4 0 00-4 4v14a3 3 0 013-3h7z"/>
</svg>
随机来本书
</button>
</footer>
<div id="overlay" class="overlay" style="display:none"></div>
<div id="toast" class="toast" style="display:none"></div>
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/sw.js", { scope: "/" });
}
</script>
<script src="/static/reader-resources.js"></script>
<script src="/static/reader/core/reader-contract.js"></script>
<script src="/static/search/reader-host/application/navigation.js"></script>
<script src="/static/search/reader-host/presentation/return-position.js"></script>
<script src="/static/search/reader-host/application/host.js"></script>
<script src="/static/search/positions/domain/policy.js"></script>
<script src="/static/search/positions/infrastructure/indexed-db.js"></script>
<script src="/static/search/positions/application/persistence.js"></script>
<script src="/static/search/positions/application/restoration.js"></script>
<script src="/static/search/results/presentation/row.js"></script>
<script src="/static/search/results/application/interactions.js"></script>
<script src="/static/search/discovery/application/random.js"></script>
<script src="/static/search/shell/presentation/view.js"></script>
<script src="/static/search/shell/application/controller.js"></script>
<script src="/static/search/bootstrap/domain/initial-payload.js"></script>
<script src="/static/search/bootstrap/application/controller.js"></script>
<script src="/static/search/routing/domain/route.js"></script>
<script src="/static/search/routing/application/router.js"></script>
<script src="/static/search/history/infrastructure/store.js"></script>
<script src="/static/search/history/application/controller.js"></script>
<script src="/static/search/ambient/application/quotation.js"></script>
<script src="/static/search/results/snapshots/domain/copy-budget.js"></script>
<script src="/static/search/results/snapshots/application/store.js"></script>
<script src="/static/search/execution/application/session.js"></script>
<script src="/static/search/downloads/application/controller.js"></script>
<script src="/static/search/execution/domain/policy.js"></script>
<script src="/static/search/execution/application/controller.js"></script>
<script src="/static/search/downloads/application/batch.js"></script>
<script src="/static/search/downloads/presentation/queue.js"></script>
<script src="/static/search/results/presentation/size-format.js"></script>
<script src="/static/search/catalog/domain/record-path.js"></script>
<script src="/static/search/results/presentation/highlight.js"></script>
<script src="/static/search/requests/infrastructure/response-cache.js"></script>
<script src="/static/search/catalog/domain/file-types.js"></script>
<script src="/static/search/requests/domain/response-validation.js"></script>
<script src="/static/search/results/domain/result-identity.js"></script>
<script src="/static/search/sidebar/domain/folder-selection.js"></script>
<script src="/static/search/input/domain/ownership.js"></script>
<script src="/static/search/input/application/controller.js"></script>
<script src="/static/search/results/domain/paging-policy.js"></script>
<script src="/static/search/results/application/paging-controller.js"></script>
<script src="/static/search/requests/infrastructure/shared-transport.js"></script>
<script src="/static/search/requests/application/prefetch-controller.js"></script>
<script src="/static/search/requests/application/response-store.js"></script>
<script src="/static/search/catalog/domain/sidebar-payload.js"></script>
<script src="/static/search/catalog/application/client.js"></script>
<script src="/static/search/results/presentation/paging-status.js"></script>
<script src="/static/search/results/window/application/page-loader.js"></script>
<script src="/static/search/results/window/presentation/status.js"></script>
<script src="/static/search/results/virtual/domain/height-index.js"></script>
<script src="/static/search/shared/domain/stable-stringify.js"></script>
<script src="/static/search/positions/domain/view-key.js"></script>
<script src="/static/search/results/domain/recovery.js"></script>
<script src="/static/search/results/window/domain/page.js"></script>
<script src="/static/search/sidebar/presentation/markup.js"></script>
<script src="/static/search/sidebar/presentation/filter-list.js"></script>
<script src="/static/search/sidebar/presentation/folder-tree.js"></script>
<script src="/static/search/sidebar/application/filters.js"></script>
<script src="/static/search/sidebar/infrastructure/scroll.js"></script>
<script src="/static/search/sidebar/presentation/directory.js"></script>
<script src="/static/search/sidebar/application/directory.js"></script>
<script src="/static/search/results/virtual/domain/heights.js"></script>
<script src="/static/search/results/virtual/presentation/rows.js"></script>
<script src="/static/search/results/virtual/application/controller.js"></script>
<script src="/static/search/reader-assets/infrastructure/sidecar.js"></script>
<script src="/static/search/reader-assets/application/snapshot.js"></script>
<script src="/static/app.js"></script>
</body>
</html>