1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! Compiled admin.css — embedded at compile time, served in prod, the
//! Tailwind CDN replaces it in dev (see `wrapper.html`).
//!
//! Goes through the framework's [`umbral::plugin::StaticFile`] hook:
//! `AdminPlugin::static_files()` returns one entry referencing
//! [`ADMIN_CSS_BYTES`], and `App::build` mounts the route. No
//! hand-written handler lives here. Build the CSS with:
//!
//! ```sh
//! cd plugins/umbral-admin/css && npm install && npm run build
//! ```
use StaticFile;
/// The compiled stylesheet bytes. Re-exported as a constant so the
/// `static_files()` registration can reach it.
pub const ADMIN_CSS_BYTES: & = include_bytes!;
/// gaps2 #4 — the admin runtime JS, extracted out of wrapper.html's
/// inline `<script>` blocks. Same `include_bytes!` shipping pattern
/// as the CSS: embedded at compile time, served as a static asset,
/// no runtime FS lookup.
pub const ADMIN_JS_BYTES: & = include_bytes!;
/// The list of static files this plugin ships. If the admin grows
/// more bundle output (font subset, separate widget bundles), append
/// here.
pub