diff --git a/app/db.imba b/app/db.imba index 83c4e1e..a9127c5 100644 --- a/app/db.imba +++ b/app/db.imba @@ -31,15 +31,21 @@ db.version(3).stores({ link.url = api.parse_url(link.url).href db.version(4).stores({ - links: "++id,display_name,name,is_bang,is_pinned,url,frequency,history,icon" + links: "++id,display_name,name,is_bang,url,frequency,icon" }).upgrade! do |trans| p "upgrading to fuzzyhome db version 4" trans.links.toCollection!.modify! do |link| link.display_name = link.name link.is_bang = no link.icon = link.img + delete link.img + +db.version(5).stores({ + links: "++id,display_name,name,is_bang,is_pinned,url,frequency,history,icon" +}).upgrade! do |trans| + p "upgrading to fuzzyhome db version 5" + trans.links.toCollection!.modify! do |link| link.is_pinned = no link.history = [] - delete link.img export default db diff --git a/app/styles.imba b/app/styles.imba index d123cd9..f2a5c2b 100644 --- a/app/styles.imba +++ b/app/styles.imba @@ -25,7 +25,7 @@ global css .light $text-c:#3c3c3c $input-bg:blue4/10 $input-c:blue3 - $input-caret-c:blue3 + $input-caret-c:#3c3c3c $input-bc:blue4 $tip-hotkey-c:blue4/80 $tip-content-c:blue5 diff --git a/package.json b/package.json index 2430c64..6a78c33 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "publish-release": "npx gh-pages --no-history --dotfiles --dist dist/ --branch release", "start": "imba -w app/index.html", "static": "npm run build && cd dist && python3 -m http.server", - "preview": "npm version patch && npm run build && npm run publish-preview", + "preview": "npm run build && npm run publish-preview", "deploy-only-after-preview": "npm run publish-release" }, "dependencies": {