From cb5123c28a3c781baf86fd4dfa9d150d58f1f919 Mon Sep 17 00:00:00 2001 From: Mikey Oz Date: Wed, 4 May 2022 15:03:52 -0700 Subject: [PATCH] remove import and export buttons --- app/client.imba | 59 +++++++++++++++++++++++++++---------------------- package.json | 2 +- sw.imba | 2 +- 3 files changed, 35 insertions(+), 28 deletions(-) diff --git a/app/client.imba b/app/client.imba index 5b4f259..07206d0 100644 --- a/app/client.imba +++ b/app/client.imba @@ -137,6 +137,12 @@ tag app global.setTimeout(&, 0) do window.location.href = 'https://www.google.com/search?q=' + state.query.trim! + def toggle_settings + if settings_active + settings_active = no + else + settings_active = yes + def render @@ -144,7 +150,7 @@ tag app d:flex fld:column jc:flex-start ai:center bxs:0px 0px 10px rgba(0,0,0,0.35) w:80% h:80% max-width:700px min-height:205px - p:40px pt:20px box-sizing:border-box rd:10px + p:30px box-sizing:border-box rd:10px css .buttons d:flex fld:row jc:space-around w:100% h:50px @@ -164,7 +170,7 @@ tag app css .links d:flex fld:column jc:flex-start - w:100% mt:20px ofy:auto fl:1 + w:100% mt:10px ofy:auto fl:1 px:20px css .link @@ -196,31 +202,32 @@ tag app css .link@hover .delete o:100 - <.buttons> - - <.button@click=handle_click_export> "EXPORT" - - if loading_import - <.button.disabled> "IMPORT" + <[d:flex fld:column jc:space-between ai:center w:100%]> + if settings_active + <.buttons> + <.button@click=handle_click_export> "EXPORT" + if loading_import + <.button.disabled> "IMPORT" + else + + "IMPORT" + else - - "IMPORT" - - - + + <[fs:25px c:purple4 cursor:pointer]@click=toggle_settings> "..." if state.query.trim!.split(/\s+/).length > 1 if loading_create <.create.disabled> "+ {state.query}" diff --git a/package.json b/package.json index b5f4249..e335b98 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fuzzyhome", - "version": "0.0.15", + "version": "0.0.16", "scripts": { "start": "imba run -SMH --baseurl . -w server.imba", "build-app": "imba build -SMH --baseurl . server.imba", diff --git a/sw.imba b/sw.imba index 9cab46d..ba5e741 100644 --- a/sw.imba +++ b/sw.imba @@ -1,7 +1,7 @@ let p = console.log const app_prefix = "fuzzyhome_cache" -const version = "0.0.15" +const version = "0.0.16" const cache_name = "{app_prefix}-{version}"