Browse Source

add dbv5, style input caret for light theme, remove version patch from preview

main
familyfriendlymikey 2 years ago
parent
commit
3879c6e5a9
  1. 10
      app/db.imba
  2. 2
      app/styles.imba
  3. 2
      package.json

10
app/db.imba

@ -31,15 +31,21 @@ db.version(3).stores({
link.url = api.parse_url(link.url).href link.url = api.parse_url(link.url).href
db.version(4).stores({ 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| }).upgrade! do |trans|
p "upgrading to fuzzyhome db version 4" p "upgrading to fuzzyhome db version 4"
trans.links.toCollection!.modify! do |link| trans.links.toCollection!.modify! do |link|
link.display_name = link.name link.display_name = link.name
link.is_bang = no link.is_bang = no
link.icon = link.img 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.is_pinned = no
link.history = [] link.history = []
delete link.img
export default db export default db

2
app/styles.imba

@ -25,7 +25,7 @@ global css .light
$text-c:#3c3c3c $text-c:#3c3c3c
$input-bg:blue4/10 $input-bg:blue4/10
$input-c:blue3 $input-c:blue3
$input-caret-c:blue3 $input-caret-c:#3c3c3c
$input-bc:blue4 $input-bc:blue4
$tip-hotkey-c:blue4/80 $tip-hotkey-c:blue4/80
$tip-content-c:blue5 $tip-content-c:blue5

2
package.json

@ -7,7 +7,7 @@
"publish-release": "npx gh-pages --no-history --dotfiles --dist dist/ --branch release", "publish-release": "npx gh-pages --no-history --dotfiles --dist dist/ --branch release",
"start": "imba -w app/index.html", "start": "imba -w app/index.html",
"static": "npm run build && cd dist && python3 -m http.server", "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" "deploy-only-after-preview": "npm run publish-release"
}, },
"dependencies": { "dependencies": {

Loading…
Cancel
Save