From 4c07938a0dab76f3f8c5198530154937f1babdda Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Wed, 2 Oct 2024 12:35:15 +0200 Subject: [PATCH] Fixes + PWA Progress --- FakeDeckUI/FakeDeck/Class/FakeDeckMain.cs | 1 + FakeDeckUI/FakeDeck/Class/HttpServer.cs | 1 + FakeDeckUI/FakeDeck/FakeDeck.csproj | 3 +++ FakeDeckUI/FakeDeck/StaticFiles/app.js | 2 ++ FakeDeckUI/FakeDeck/StaticFiles/manifest.json | 10 ++++++++++ 5 files changed, 17 insertions(+) create mode 100644 FakeDeckUI/FakeDeck/StaticFiles/manifest.json diff --git a/FakeDeckUI/FakeDeck/Class/FakeDeckMain.cs b/FakeDeckUI/FakeDeck/Class/FakeDeckMain.cs index 2f17717..a76a675 100644 --- a/FakeDeckUI/FakeDeck/Class/FakeDeckMain.cs +++ b/FakeDeckUI/FakeDeck/Class/FakeDeckMain.cs @@ -24,6 +24,7 @@ namespace FakeDeck.Class " " + " " + " " + + " " + " " + " " + "
"; diff --git a/FakeDeckUI/FakeDeck/Class/HttpServer.cs b/FakeDeckUI/FakeDeck/Class/HttpServer.cs index de327a6..fd80ddc 100644 --- a/FakeDeckUI/FakeDeck/Class/HttpServer.cs +++ b/FakeDeckUI/FakeDeck/Class/HttpServer.cs @@ -56,6 +56,7 @@ namespace FakeDeck.Class {".img", "application/octet-stream"}, {".iso", "application/octet-stream"}, {".jar", "application/java-archive"}, + {".json", "application/json"}, {".jardiff", "application/x-java-archive-diff"}, {".jng", "image/x-jng"}, {".jnlp", "application/x-java-jnlp-file"}, diff --git a/FakeDeckUI/FakeDeck/FakeDeck.csproj b/FakeDeckUI/FakeDeck/FakeDeck.csproj index 509e229..75cd812 100644 --- a/FakeDeckUI/FakeDeck/FakeDeck.csproj +++ b/FakeDeckUI/FakeDeck/FakeDeck.csproj @@ -19,6 +19,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest diff --git a/FakeDeckUI/FakeDeck/StaticFiles/app.js b/FakeDeckUI/FakeDeck/StaticFiles/app.js index 25f0256..b96ad3c 100644 --- a/FakeDeckUI/FakeDeck/StaticFiles/app.js +++ b/FakeDeckUI/FakeDeck/StaticFiles/app.js @@ -68,6 +68,8 @@ function formToAjax(){ const target = event.currentTarget; target.style.opacity = "0.5" + navigator.vibrate(200); + console.log(target.method, target.action); console.log(form.method, form.action); console.log(form === target); diff --git a/FakeDeckUI/FakeDeck/StaticFiles/manifest.json b/FakeDeckUI/FakeDeck/StaticFiles/manifest.json new file mode 100644 index 0000000..e27972c --- /dev/null +++ b/FakeDeckUI/FakeDeck/StaticFiles/manifest.json @@ -0,0 +1,10 @@ +{ + "name": "FakeDeck", + "short_name": "FakeDeck", + "theme_color": "#fff", + "background_color": "#fff", + "display": "fullscreen", + "orientation": "landscape", + "scope": "/", + "start_url": "/" +} \ No newline at end of file