The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
601 B

<label>Search</label>
<input key="search" placeholder="" class="big" value=state.search />
<label>Filters</label>
<div if(state.search.length > 0) class="filter-row" >
<div class=["content", "color-text"]>Search: ${state.search}</div>
<button disabled=state.loading on-click("emit", "add", "search", state.search)>${input.filter.search ? "Replace" : "Add"}</button>
</div>
<div for(filter in state.filters) class="filter-row" >
<div class=["content", filter.colorClass]>${filter.text}</div>
<button disabled=state.loading on-click("add", filter.type, filter.value, filter)>Add</button>
</div>