Browse Source

add favicons

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

5
app/client.imba

@ -138,6 +138,9 @@ tag app
css .frequency css .frequency
fs:15px c:blue3 fs:15px c:blue3
css img
mr:10px rd:3px h:20px w:20px
<.buttons> <.buttons>
<button@click=handle_click_create> "CREATE" <button@click=handle_click_create> "CREATE"
<button@click=handle_click_delete> "DELETE" <button@click=handle_click_delete> "DELETE"
@ -162,6 +165,8 @@ tag app
<.links> <.links>
for obj in state.scored_links for obj in state.scored_links
<.link@click.prevent=handle_click_link(obj)> <.link@click.prevent=handle_click_link(obj)>
<[d:flex]>
<img height=20 width=20 src="https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&size=128&url={obj.link}">
<a href=obj.link> obj.name <a href=obj.link> obj.name
<.frequency> obj.frequency or 0 <.frequency> obj.frequency or 0

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "fuzzyhome", "name": "fuzzyhome",
"version": "0.0.9", "version": "0.0.11",
"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.9" const version = "0.0.11"
const cache_name = "{app_prefix}-{version}" const cache_name = "{app_prefix}-{version}"

Loading…
Cancel
Save