Browse Source

add default links for new users per trafnar's idea

main
Mikey Oz 3 years ago
parent
commit
78dd429265
  1. 5
      app/client.imba
  2. 2
      package.json
  3. 2
      sw.imba

5
app/client.imba

@ -20,6 +20,11 @@ tag app
def mount def mount
$input.focus! $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! state.links = await db.reload!
sort_links! sort_links!

2
package.json

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

2
sw.imba

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

Loading…
Cancel
Save