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.

21 lines
425 B

2 years ago
tag app-bang
get encoded_bang_query
"{active_bang.url}{window.encodeURIComponent(state.query)}"
def handle_bang
await api.increment_link_frequency state.active_bang
2 years ago
window.location.href = encoded_bang_query
def render
<self>
css .bang-text
tt:none word-break:break-all
<.bang @click=handle_bang>
css d:flex fld:row jc:space-between ai:center
px:16px py:11px rd:5px cursor:pointer c:blue3