Prepare LaySite 1.4.5 site icons, Head settings and release images

This commit is contained in:
2026-11-27 21:21:41 +08:00
parent 1609e7fc39
commit 00e8a70e06
34 changed files with 686 additions and 36 deletions
+3 -3
View File
@@ -8,8 +8,8 @@ $e = View::escape(...);
<form class="admin-form admin-panel" method="post" action="/admin/media" enctype="multipart/form-data">
<input type="hidden" name="csrf" value="<?= $e($token) ?>">
<div class="form-grid media-upload-fields">
<label>文件<input type="file" name="file" accept="image/*,video/*,audio/*,.pdf,.woff,.woff2" required>
<small>支持常见图片、SVG 图标、音视频、PDF、WOFF/WOFF2,单文件最大 64 MB。</small>
<label>文件<input type="file" name="file" accept="image/*,video/*,audio/*,.pdf,.woff,.woff2,.css,.js" required>
<small>图片、音视频、PDF 和网页字体最大 64 MB,CSS 和 JavaScript 最大 2 MB。</small>
</label>
<label>资源名称<input name="label" maxlength="160" placeholder="默认使用文件名"></label>
</div>
@@ -19,7 +19,7 @@ $e = View::escape(...);
<h2 id="library-heading">资源列表</h2>
<div class="form-grid admin-form media-filters">
<label>搜索<input type="search" data-library-query placeholder="搜索名称或路径"></label>
<label>类型<select data-library-type><option value="">全部资源</option><option value="image/">图片与图标</option><option value="video/">视频</option><option value="audio/">音频</option><option value="other">其他文件</option></select></label>
<label>类型<select data-library-type><option value="">全部资源</option><option value="image/">图片与图标</option><option value="video/">视频</option><option value="audio/">音频</option><option value="text/">CSS 与 JavaScript</option><option value="other">其他文件</option></select></label>
</div>
<p data-library-count role="status"></p>
<div class="media-grid">