From f2b434983e5ecd883c425a0c821419c006356798 Mon Sep 17 00:00:00 2001 From: nocci Date: Mon, 12 May 2025 12:14:52 +0200 Subject: [PATCH 01/12] make "Show/Hide Keys" persistent --- setup.sh | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/setup.sh b/setup.sh index 301f1ac..be4359f 100644 --- a/setup.sh +++ b/setup.sh @@ -1679,7 +1679,7 @@ cat <<'HTML_END' > templates/index.html {{ _('Cover') }} {{ _('Name') }} - {{ _('Key') }} + {{ _('Key') }} {{ _('Status') }} {{ _('Created') }} {{ _('Redeem by') }} @@ -1712,7 +1712,7 @@ cat <<'HTML_END' > templates/index.html {{ game.name }} - {{ game.steam_key }} + {{ game.steam_key }} {% if game.status == 'nicht eingelöst' %} {{ _('Not redeemed') }} @@ -1840,22 +1840,34 @@ document.querySelectorAll('.generate-redeem').forEach(btn => { + {% else %}
{{ _('No games yet') }}
{% endif %} @@ -2100,7 +2112,7 @@ cat < templates/edit_game.html - +
From 24ae1a622cad8aef73ca5102155363ca35b8ed74 Mon Sep 17 00:00:00 2001 From: nocci Date: Mon, 12 May 2025 12:15:57 +0200 Subject: [PATCH 02/12] updated index.html --- steam-gift-manager/templates/index.html | 40 +++++++++++++++---------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/steam-gift-manager/templates/index.html b/steam-gift-manager/templates/index.html index faa450e..9249ac2 100644 --- a/steam-gift-manager/templates/index.html +++ b/steam-gift-manager/templates/index.html @@ -8,7 +8,7 @@ {{ _('Cover') }} {{ _('Name') }} - {{ _('Key') }} + {{ _('Key') }} {{ _('Status') }} {{ _('Created') }} {{ _('Redeem by') }} @@ -41,7 +41,7 @@ {{ game.name }} - {{ game.steam_key }} + {{ game.steam_key }} {% if game.status == 'nicht eingelöst' %} {{ _('Not redeemed') }} @@ -169,19 +169,30 @@ document.querySelectorAll('.generate-redeem').forEach(btn => { @@ -189,4 +200,3 @@ document.addEventListener('DOMContentLoaded', function() {
{{ _('No games yet') }}
{% endif %} {% endblock %} - From d8e53aa02fcdf583f938935f63e33fd76db572e5 Mon Sep 17 00:00:00 2001 From: nocci Date: Mon, 19 May 2025 14:34:55 +0200 Subject: [PATCH 03/12] LOL - Im sorry - I forgot the Add Game Button --- setup.sh | 7 +++++++ steam-gift-manager/templates/index.html | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/setup.sh b/setup.sh index 301f1ac..b450d1a 100644 --- a/setup.sh +++ b/setup.sh @@ -1672,6 +1672,13 @@ cat <<'HTML_END' > templates/index.html {% extends "base.html" %} {% block content %} + + + {% if games %}
diff --git a/steam-gift-manager/templates/index.html b/steam-gift-manager/templates/index.html index faa450e..945021e 100644 --- a/steam-gift-manager/templates/index.html +++ b/steam-gift-manager/templates/index.html @@ -1,6 +1,14 @@ {% extends "base.html" %} {% block content %} + + {{ _(Add New Game') }} + + {% if games %}
From 2042d56131b0c6ff4916a0238f95b9dca848df90 Mon Sep 17 00:00:00 2001 From: nocci Date: Mon, 19 May 2025 14:43:50 +0200 Subject: [PATCH 04/12] fix index --- setup.sh | 5 +++++ steam-gift-manager/templates/index.html | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/setup.sh b/setup.sh index be4359f..8320c16 100644 --- a/setup.sh +++ b/setup.sh @@ -1672,6 +1672,11 @@ cat <<'HTML_END' > templates/index.html {% extends "base.html" %} {% block content %} + {% if games %}
diff --git a/steam-gift-manager/templates/index.html b/steam-gift-manager/templates/index.html index 9249ac2..2b0c2e9 100644 --- a/steam-gift-manager/templates/index.html +++ b/steam-gift-manager/templates/index.html @@ -1,6 +1,11 @@ {% extends "base.html" %} {% block content %} + {% if games %}
From 0c22d15ee4bd7ba66969a8218a98bd7b382cbf12 Mon Sep 17 00:00:00 2001 From: nocci Date: Mon, 19 May 2025 14:45:03 +0200 Subject: [PATCH 05/12] info --- steam-gift-manager/templates/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/steam-gift-manager/templates/index.html b/steam-gift-manager/templates/index.html index 2b0c2e9..4ce517c 100644 --- a/steam-gift-manager/templates/index.html +++ b/steam-gift-manager/templates/index.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% block content %} +## add game gutton
{{ _('Add New Game') }} From 9ad102c020647f559305cb426d5d6a8a5752ba5a Mon Sep 17 00:00:00 2001 From: nocci Date: Mon, 19 May 2025 15:06:03 +0200 Subject: [PATCH 06/12] add game moved --- setup.sh | 2 -- steam-gift-manager/templates/index.html | 7 ------- 2 files changed, 9 deletions(-) diff --git a/setup.sh b/setup.sh index 5c5c37c..8320c16 100644 --- a/setup.sh +++ b/setup.sh @@ -1672,8 +1672,6 @@ cat <<'HTML_END' > templates/index.html {% extends "base.html" %} {% block content %} - -
- +
+ + +
diff --git a/steam-gift-manager/templates/edit_game.html b/steam-gift-manager/templates/edit_game.html index e33e108..1316c38 100644 --- a/steam-gift-manager/templates/edit_game.html +++ b/steam-gift-manager/templates/edit_game.html @@ -3,7 +3,7 @@

{{ _('Spiel bearbeiten') }}

- + {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
@@ -66,7 +66,12 @@
- +
+ + +
From 8ac203a3b5c00c9258c564ead9c1be92569c5c04 Mon Sep 17 00:00:00 2001 From: nocci Date: Sun, 25 May 2025 15:25:34 +0200 Subject: [PATCH 08/12] small fix in edit_game.html --- steam-gift-manager/templates/edit_game.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/steam-gift-manager/templates/edit_game.html b/steam-gift-manager/templates/edit_game.html index 1316c38..8e28040 100644 --- a/steam-gift-manager/templates/edit_game.html +++ b/steam-gift-manager/templates/edit_game.html @@ -97,6 +97,7 @@
+
@@ -135,7 +136,7 @@
- + {% if game.status == 'geschenkt' %}
@@ -185,6 +186,5 @@ }); }); + {% endblock %} - - From c9ee2925a23a6c982bf7b0d75ea15209878dcb80 Mon Sep 17 00:00:00 2001 From: nocci Date: Sun, 25 May 2025 15:26:34 +0200 Subject: [PATCH 09/12] cleanup --- setup.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index e068565..83ca989 100644 --- a/setup.sh +++ b/setup.sh @@ -2029,7 +2029,7 @@ cat < templates/edit_game.html

{{ _('Spiel bearbeiten') }}

- + {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
@@ -2090,7 +2090,6 @@ cat < templates/edit_game.html {% endfor %}
-
@@ -2123,7 +2122,8 @@ cat < templates/edit_game.html
- + +
@@ -2162,7 +2162,7 @@ cat < templates/edit_game.html
- + {% if game.status == 'geschenkt' %}
@@ -2212,9 +2212,11 @@ cat < templates/edit_game.html }); }); + {% endblock %} + HTML_END cat < templates/add_game.html From 0ac64ac7c1c4c7284c68514d997ae302f62689d9 Mon Sep 17 00:00:00 2001 From: nocci Date: Tue, 10 Jun 2025 11:46:32 +0200 Subject: [PATCH 10/12] fix edit_game in setup.sh --- setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.sh b/setup.sh index 83ca989..eb5fc4e 100644 --- a/setup.sh +++ b/setup.sh @@ -863,6 +863,7 @@ def add_game(): notes=request.form.get('notes', ''), url=url, steam_appid=steam_appid, + platform=request.form.get('platform', 'pc'), redeem_date=datetime.strptime(request.form['redeem_date'], '%Y-%m-%d') if request.form['redeem_date'] else None, user_id=current_user.id ) From 00f1767b6ad8f0d74b9e7c70fce4169d5c91fe98 Mon Sep 17 00:00:00 2001 From: nocci Date: Tue, 10 Jun 2025 11:51:11 +0200 Subject: [PATCH 11/12] fixed game_edit in app.py --- steam-gift-manager/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/steam-gift-manager/app.py b/steam-gift-manager/app.py index a866da5..18614b0 100644 --- a/steam-gift-manager/app.py +++ b/steam-gift-manager/app.py @@ -682,6 +682,7 @@ def add_game(): notes=request.form.get('notes', ''), url=url, steam_appid=steam_appid, + platform=request.form.get('platform', 'pc'), redeem_date=datetime.strptime(request.form['redeem_date'], '%Y-%m-%d') if request.form['redeem_date'] else None, user_id=current_user.id ) From 5f5800734f8c60b990e5116d852317e31e48c408 Mon Sep 17 00:00:00 2001 From: nocci Date: Thu, 12 Jun 2025 11:50:52 +0200 Subject: [PATCH 12/12] test --- setup.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.sh b/setup.sh index eb5fc4e..5194fda 100644 --- a/setup.sh +++ b/setup.sh @@ -2217,7 +2217,6 @@ cat < templates/edit_game.html {% endblock %} - HTML_END cat < templates/add_game.html