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.

36 lines
833 B

2 years ago
tag app-bang
get encoded_bang_query
2 years ago
"{bang.url}{window.encodeURIComponent(state.query)}"
2 years ago
def handle_bang
2 years ago
await api.increment_link_frequency bang
2 years ago
window.location.href = encoded_bang_query
def render
2 years ago
<self
.selected
@click=handle_bang
>
css d:flex fld:row jc:space-between ai:center
px:16px py:11px rd:5px cursor:pointer c:#FAD4AB
2 years ago
2 years ago
<.link-left>
css d:flex fl:1
2 years ago
2 years ago
<img.link-icon src=bang.icon>
css w:20px h:20px mr:10px rd:3px
<.display-name> encoded_bang_query
css tt:capitalize fs:20px overflow-wrap:anywhere
css tt:none word-break:break-all
<.link-right>
2 years ago
css d:flex fld:row jc:space-between ai:center
2 years ago
css .buttons-disabled .link-button visibility:hidden
css .selected .link-button visibility:visible
2 years ago
2 years ago
<.frequency> bang.frequency
css fs:15px ml:7px