This moves the code for copying the theme to the theme directory to the Theme type so that the code lives closer to the data definition. This also then reduces the public API surface of the Theme to give a little more flexibility for updating it in the future.
10 lines
592 B
Rust
10 lines
592 B
Rust
//! Theme dependencies for the playground editor.
|
|
|
|
pub(crate) static JS: &[u8] = include_bytes!("../../front-end/playground_editor/editor.js");
|
|
pub(crate) static ACE_JS: &[u8] = include_bytes!("../../front-end/playground_editor/ace.js");
|
|
pub(crate) static MODE_RUST_JS: &[u8] =
|
|
include_bytes!("../../front-end/playground_editor/mode-rust.js");
|
|
pub(crate) static THEME_DAWN_JS: &[u8] =
|
|
include_bytes!("../../front-end/playground_editor/theme-dawn.js");
|
|
pub(crate) static THEME_TOMORROW_NIGHT_JS: &[u8] =
|
|
include_bytes!("../../front-end/playground_editor/theme-tomorrow_night.js");
|