Browse Source

color new link url differently, dont show create link prompt if name exists

main
Mikey Oz 3 years ago
parent
commit
6932f0b730
  1. 15
      app/client.imba
  2. 2
      package.json
  3. 2
      sw.imba

15
app/client.imba

@ -234,11 +234,20 @@ tag app
@paste=handle_paste
>
<[fs:25px c:purple4 cursor:pointer]@click=toggle_settings> "..."
if state.query.trim!.split(/\s+/).length > 1
let split_query = state.query.trim!.split(/\s+/)
if split_query.length > 1
let last = split_query.pop!
let joined = split_query.join " "
if name_exists joined
<.create.disabled> "name already exists"
else
if loading_create
<.create.disabled> "+ {state.query}"
<.create.disabled>
<span> "+ {joined} {last}"
else
<.create@click=handle_click_create> "+ {state.query}"
<.create@click=handle_click_create>
<span> "+ {joined} "
<span[c:purple2]> last
<.links>
for obj in state.scored_links

2
package.json

@ -1,6 +1,6 @@
{
"name": "fuzzyhome",
"version": "0.0.17",
"version": "0.0.18",
"scripts": {
"start": "imba run -SMH --baseurl . -w server.imba",
"build-app": "imba build -SMH --baseurl . server.imba",

2
sw.imba

@ -1,7 +1,7 @@
let p = console.log
const app_prefix = "fuzzyhome_cache"
const version = "0.0.17"
const version = "0.0.18"
const cache_name = "{app_prefix}-{version}"

Loading…
Cancel
Save