Skip to main content

Module pages

Module pages 

Source
Expand description

The dashboard page and the htmx fragments behind each tab.

Constantsยง

DIALOGUE_PAGE_SIZE ๐Ÿ”’
INDEX ๐Ÿ”’
NO_TAG ๐Ÿ”’

Functionsยง

asset
GET /assets/{name}: the pageโ€™s script, style and the vendored htmx.
audio_play
GET /audio/play?ep=&filter=&stem=: copy the stem into the local cache and return a player. Only a stem of the chosen episode is accepted.
audio_play_all
POST /audio/play-all: every stem of one kind, joined.
audio_stems
GET /audio/stems?ep=&filter=: the stem dropdown, which loads the first stem into the player as soon as it lands.
blocking ๐Ÿ”’
Run blocking filesystem work off the async executor.
config_choice_list ๐Ÿ”’
config_choices
GET /config/{kind}/choices.
config_load
GET /config/{kind}/load?path=: a fresh editor textarea.
config_save
POST /config/{kind}/save.
config_tab ๐Ÿ”’
One config-editor tab: a file dropdown, the editor, and Reload / Save.
default_python ๐Ÿ”’
dialogue_panel ๐Ÿ”’
The #dlg-panel fragment: search results, paginated.
dialogue_row ๐Ÿ”’
entry_edit_form ๐Ÿ”’
The inline speaker+text editor for one dialogue line.
episode_options
GET /choices/episodes?ep=: episode <option>s, keeping the current selection.
episodes_table
GET /episodes/table?force=.
grade_panel ๐Ÿ”’
grade_status_line ๐Ÿ”’
grades_apply
POST /grades/apply: write the grade, then show the list again with the same file selected, or the first one when it left the filter.
grades_list
GET /grades/list?filter=&refresh=.
grades_select
GET /grades/select?path=: player plus the grade line.
index
GET /: the whole dashboard.
int ๐Ÿ”’
invalidate_choices
POST /choices/invalidate: the โŸณ Refresh button, before it asks every list to redraw.
is_config_kind ๐Ÿ”’
job_fragment ๐Ÿ”’
job_stream
GET /jobs/{id}/stream: the jobโ€™s lines as server-sent events, ending with one exit event. A job can be followed once.
kind_label ๐Ÿ”’
log_pre ๐Ÿ”’
on ๐Ÿ”’
param ๐Ÿ”’
parsed_dialogue
GET /parsed/dialogue?ep=&q=&page=.
parsed_editor ๐Ÿ”’
The editor textarea, used both for the pageโ€™s first render and for the fragment that replaces it โ€” one definition, so the two cannot drift.
parsed_entry_load
GET /parsed/entry?ep=&seq=: the inline edit panel for one dialogue line.
parsed_entry_save
POST /parsed/entry: save one dialogue line, then tell #dlg-panel to reload so the table reflects the edit.
parsed_load
GET /parsed/load?ep=: a fresh editor textarea.
parsed_save
POST /parsed/save.
player ๐Ÿ”’
produce_form ๐Ÿ”’
project_load
GET /project.
project_panel ๐Ÿ”’
project_save
POST /project/save.
reprocess_banner ๐Ÿ”’
A banner naming the dialogue lines edited since their audio was last produced, with a button that jumps to Run Stage โ†’ Produce, pre-filled with this episode, --seq-list and --force. Empty when nothing is pending. The user still presses Run themselves โ€” this dashboard never starts a pipeline stage on its own behalf.
run_stage
POST /run/{stage}: validate, build the command, start it, and return a log that follows the job.
script_meta ๐Ÿ”’
script_options
GET /choices/scripts.
scripts_analyze
POST /scripts/analyze.
scripts_save
POST /scripts/save: then refresh every script and episode list.
setup_init
POST /setup/init: xil init, streamed.
setup_use
POST /setup/use: xil use SHOW, then tell the Project tab to reload.
show_options
GET /choices/shows: shows with the active one selected.
timeline
GET /timeline?ep=.
timeline_iframe_html
_timeline_iframe_html(html_path): the timeline in an iframe, with its mtime as a cache-buster so a regenerated file is always refetched.
with_trigger ๐Ÿ”’
A fragment plus an HX-Trigger event for other elements to react to.

Type Aliasesยง

Params ๐Ÿ”’
Shared ๐Ÿ”’