合并 stash-cli / stash-core 为根目录单 crate(lib + bin),新增 React + Vite + TS 控制台替换 Askama 模板。 build.rs 用 walkdir 把 stash-web/dist 同步到 $OUT_DIR/web,由 include_dir! 编译期内嵌,产出单文件二进制。 路由改为 / 与 /assets/** 走内嵌前端,其余交给 ServeDir,缺失路径返回内置 404。同步更新依赖、.gitignore 与 README。
18 lines
546 B
HTML
18 lines
546 B
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>404 - 资源未找到</title>
|
|
<link rel="stylesheet" href="/__stash__/dashboard.css">
|
|
</head>
|
|
<body class="error-page">
|
|
<main class="error-box">
|
|
<div class="error-code">404</div>
|
|
<h1>资源或页面不存在</h1>
|
|
<p>请求的路径 <code>{{ path }}</code> 不存在或缺少 index.html</p>
|
|
<a href="/public" class="button">返回应用大厅</a>
|
|
</main>
|
|
</body>
|
|
</html>
|