From 1783858854b8391cca8a2195850d8306b1ac051f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferdinand=20M=C3=BCtsch?= Date: Sun, 4 Apr 2021 10:42:27 +0200 Subject: [PATCH] fix: minor fixes (resolve #151) (resolve #154) --- repositories/key_value.go | 5 ----- static/assets/app.js | 15 --------------- version.txt | 2 +- views/summary.tpl.html | 16 +++++++++------- 4 files changed, 10 insertions(+), 28 deletions(-) diff --git a/repositories/key_value.go b/repositories/key_value.go index c8f8f9b..c59acce 100644 --- a/repositories/key_value.go +++ b/repositories/key_value.go @@ -2,7 +2,6 @@ package repositories import ( "errors" - "github.com/emvi/logbuch" "github.com/muety/wakapi/models" "gorm.io/gorm" "gorm.io/gorm/clause" @@ -40,10 +39,6 @@ func (r *KeyValueRepository) PutString(kv *models.KeyStringValue) error { return err } - if result.RowsAffected != 1 { - logbuch.Warn("did not insert key '%s', maybe just updated?", kv.Key) - } - return nil } diff --git a/static/assets/app.js b/static/assets/app.js index 2bf06e4..85a4e59 100644 --- a/static/assets/app.js +++ b/static/assets/app.js @@ -371,21 +371,6 @@ function copyApiKey(event) { event.stopPropagation() } -// https://koddsson.com/posts/emoji-favicon/ -const favicon = document.querySelector('link[rel=icon]') -if (favicon) { - const emoji = favicon.getAttribute('data-emoji') - if (emoji) { - const canvas = document.createElement('canvas') - canvas.height = 64 - canvas.width = 64 - const ctx = canvas.getContext('2d') - ctx.font = '64px serif' - ctx.fillText(emoji, 0, 64) - favicon.href = canvas.toDataURL() - } -} - // Click outside window.addEventListener('click', function (event) { if (event.target.classList.contains('popup')) { diff --git a/version.txt b/version.txt index 26a9e99..b45fe31 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.25.4 +1.25.5 diff --git a/views/summary.tpl.html b/views/summary.tpl.html index 8b6bf32..63eee7d 100644 --- a/views/summary.tpl.html +++ b/views/summary.tpl.html @@ -92,7 +92,7 @@
- Projects + Projects
@@ -108,7 +108,7 @@
- Operating Systems + Operating Systems
@@ -124,7 +124,7 @@
- Languages + Languages
@@ -140,7 +140,7 @@
- Editors + Editors
@@ -156,7 +156,7 @@
- Machines + Machines
@@ -209,8 +209,10 @@ {{ template "foot.tpl.html" . }} -