|
@ -372,6 +372,11 @@ tag app |
|
|
save_config! |
|
|
save_config! |
|
|
settings_active = no |
|
|
settings_active = no |
|
|
|
|
|
|
|
|
|
|
|
def handle_click_toggle_buttons |
|
|
|
|
|
config.enable_buttons = not config.enable_buttons |
|
|
|
|
|
save_config! |
|
|
|
|
|
settings_active = no |
|
|
|
|
|
|
|
|
get pretty_date |
|
|
get pretty_date |
|
|
Date!.toString!.split(" ").slice(0, 4).join(" ") |
|
|
Date!.toString!.split(" ").slice(0, 4).join(" ") |
|
|
|
|
|
|
|
@ -484,6 +489,9 @@ tag app |
|
|
css .selected .link-button |
|
|
css .selected .link-button |
|
|
visibility:visible |
|
|
visibility:visible |
|
|
|
|
|
|
|
|
|
|
|
css .buttons-disabled .link-button |
|
|
|
|
|
visibility:hidden |
|
|
|
|
|
|
|
|
css .frequency |
|
|
css .frequency |
|
|
fs:15px ml:7px |
|
|
fs:15px ml:7px |
|
|
|
|
|
|
|
@ -529,6 +537,11 @@ tag app |
|
|
@click=handle_click_toggle_tips |
|
|
@click=handle_click_toggle_tips |
|
|
> |
|
|
> |
|
|
config.enable_tips ? "DISABLE TIPS" : "ENABLE TIPS" |
|
|
config.enable_tips ? "DISABLE TIPS" : "ENABLE TIPS" |
|
|
|
|
|
<.settings-button |
|
|
|
|
|
@click=handle_click_toggle_buttons |
|
|
|
|
|
> |
|
|
|
|
|
config.enable_buttons ? "DISABLE BUTTONS" : "ENABLE BUTTONS" |
|
|
|
|
|
<.settings-container> |
|
|
<.settings-button |
|
|
<.settings-button |
|
|
.disabled=loading |
|
|
.disabled=loading |
|
|
@click.if(!loading)=handle_click_github |
|
|
@click.if(!loading)=handle_click_github |
|
@ -611,7 +624,7 @@ tag app |
|
|
<span> link.name |
|
|
<span> link.name |
|
|
<span.parens> ")" |
|
|
<span.parens> ")" |
|
|
<.link-right> |
|
|
<.link-right> |
|
|
<.link-buttons> |
|
|
<.link-buttons .buttons-disabled=!config.enable_buttons> |
|
|
<.link-button |
|
|
<.link-button |
|
|
@click.if(link.is_bang).prevent.stop=handle_click_make_default_bang(link) |
|
|
@click.if(link.is_bang).prevent.stop=handle_click_make_default_bang(link) |
|
|
[visibility:hidden]=!link.is_bang |
|
|
[visibility:hidden]=!link.is_bang |
|
@ -620,7 +633,7 @@ tag app |
|
|
<.link-button@click.prevent.stop=handle_click_delete(link)> "D" |
|
|
<.link-button@click.prevent.stop=handle_click_delete(link)> "D" |
|
|
<.link-button |
|
|
<.link-button |
|
|
@click.prevent.stop=handle_click_pin(link) |
|
|
@click.prevent.stop=handle_click_pin(link) |
|
|
[visibility:visible c:purple3/50]=(link.is_pinned and index isnt selection_index) |
|
|
[visibility:visible c:purple3/50]=(link.is_pinned and (index isnt selection_index or !config.enable_buttons)) |
|
|
> "P" |
|
|
> "P" |
|
|
<.frequency> link.frequency |
|
|
<.frequency> link.frequency |
|
|
# <[c:purple3 pt:10px fs:10px]> state.scored_links.length |
|
|
# <[c:purple3 pt:10px fs:10px]> state.scored_links.length |
|
|