diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-01-18 23:43:12 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-01-18 23:43:12 +0100 |
| commit | ed19a428cb5eef84c8cf3fed5fda3afd5fc96305 (patch) | |
| tree | 39e3167a4f8b7423a15b3a5f56e973554bdb3195 /ui/client-scripts/src/lib.rs | |
| parent | 901dff07ed357694eb35284a58c3cc6c003c53ce (diff) | |
| download | jellything-ed19a428cb5eef84c8cf3fed5fda3afd5fc96305.tar jellything-ed19a428cb5eef84c8cf3fed5fda3afd5fc96305.tar.bz2 jellything-ed19a428cb5eef84c8cf3fed5fda3afd5fc96305.tar.zst | |
Move client scripts to build-crate
Diffstat (limited to 'ui/client-scripts/src/lib.rs')
| -rw-r--r-- | ui/client-scripts/src/lib.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/client-scripts/src/lib.rs b/ui/client-scripts/src/lib.rs new file mode 100644 index 0000000..408799a --- /dev/null +++ b/ui/client-scripts/src/lib.rs @@ -0,0 +1,13 @@ +/* + This file is part of jellything (https://codeberg.org/metamuffin/jellything) + which is licensed under the GNU Affero General Public License (version 3); see /COPYING. + Copyright (C) 2026 metamuffin <metamuffin.org> +*/ +use std::borrow::Cow; + +pub fn js_bundle() -> Cow<'static, str> { + include_str!(concat!(env!("OUT_DIR"), "/bundle.js")).into() +} +pub fn js_bundle_map() -> Cow<'static, str> { + include_str!(concat!(env!("OUT_DIR"), "/bundle.js.map")).into() +} |