Module FrontendSource

Sourcetype meta = {
  1. libs : string list;
  2. html_scripts : string list;
}
Sourceval meta_to_yojson : meta -> Yojson.Safe.t
Sourceval initialise : string list -> string -> (unit -> unit) -> (Js_top_worker_client_fut.rpc, Js_top_worker_rpc__Toplevel_api_gen.err) Fut.result
Sourceval styled_text : string -> string -> Brr.El.t list
Sourceval append_to_output : string -> Js_top_worker_rpc.Toplevel_api_gen.exec_result -> 'a -> unit
Sourcetype block_ty =
  1. | Deferred
  2. | OCaml
  3. | Toplevel
  4. | Other
Sourceval string_of_block_ty : block_ty -> string
Sourceval block_ty_of_string : string -> block_ty
Sourcetype ostate = {
  1. id : string;
  2. output_id : string;
  3. hidden : bool;
  4. solution : string option;
  5. ty : block_ty;
  6. mime_only : bool;
  7. rpc : Js_top_worker_client_fut.rpc;
}
Sourceval to_jv : ostate -> Jv.t
Sourceval of_jv : Jv.t -> ostate
Sourceval autorun_effect : bool Code_mirror.State.StateEffect.ty
Sourceval autorun_state_field : bool Code_mirror.State.StateField.t
Sourceval exec_js : string -> 'a -> unit
Sourceval run_code : ostate -> string -> Code_mirror.View.EditorView.t -> (unit, unit) result Fut.t
Sourceval get_sections : unit -> Brr.El.t list
Sourceval show_section : int -> unit
Sourceval nav_setup : unit -> unit
Sourceval init_page : string list -> (unit, Js_top_worker_rpc__Toplevel_api_gen.err) Fut.result
Sourceval main : 'a -> unit Fut.t