From 78dd429265d0b4128602c9b14b8de0d688ccfe5f Mon Sep 17 00:00:00 2001
From: Mikey Oz <ozmichaelt@icloud.com>
Date: Wed, 4 May 2022 15:21:48 -0700
Subject: [PATCH] add default links for new users per trafnar's idea

---
 app/client.imba | 5 +++++
 package.json    | 2 +-
 sw.imba         | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/app/client.imba b/app/client.imba
index ef3c15e..22c5695 100644
--- a/app/client.imba
+++ b/app/client.imba
@@ -20,6 +20,11 @@ tag app
 
 	def mount
 		$input.focus!
+		unless global.localStorage.fuzzyhome_visited
+			await put_link { name: "fuzzy home help", link: "github.com/familyfriendlymikey/fuzzyhome" }
+			await put_link { name: "google", link: "google.com" }
+			await put_link { name: "youtube", link: "youtube.com" }
+			global.localStorage.fuzzyhome_visited = yes
 		state.links = await db.reload!
 		sort_links!
 
diff --git a/package.json b/package.json
index e335b98..5beff5f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
 	"name": "fuzzyhome",
-	"version": "0.0.16",
+	"version": "0.0.17",
 	"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 ba5e741..eb2a4d3 100644
--- a/sw.imba
+++ b/sw.imba
@@ -1,7 +1,7 @@
 let p = console.log
 
 const app_prefix = "fuzzyhome_cache"
-const version = "0.0.16"
+const version = "0.0.17"
 
 const cache_name = "{app_prefix}-{version}"