From a6b11035961a0e3cc31653a888554915f7d3c747 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 24 Feb 2020 20:29:03 -0500 Subject: [PATCH] add file pickers to web UI for mobile users --- docs/release-notes.md | 12 ++-- .../Views/JsonValidator/Index.cshtml | 9 ++- src/SMAPI.Web/Views/LogParser/Index.cshtml | 12 ++-- .../wwwroot/Content/css/file-upload.css | 25 +++++++ .../wwwroot/Content/css/json-validator.css | 25 ------- .../wwwroot/Content/css/log-parser.css | 21 ------ .../wwwroot/Content/js/file-upload.js | 71 +++++++++++++++++++ .../wwwroot/Content/js/json-validator.js | 51 ++++--------- .../wwwroot/Content/js/log-parser.js | 38 ++-------- 9 files changed, 139 insertions(+), 125 deletions(-) create mode 100644 src/SMAPI.Web/wwwroot/Content/css/file-upload.css create mode 100644 src/SMAPI.Web/wwwroot/Content/js/file-upload.js diff --git a/docs/release-notes.md b/docs/release-notes.md index 50c6f639..42316629 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,6 +1,10 @@ ← [README](README.md) # Release notes +## Upcoming release +* For the web UI: + * Added option to upload files using a file picker. + ## 3.3.2 Released 22 February 2020 for Stardew Valley 1.4.1 or later. @@ -27,6 +31,10 @@ Released 22 February 2020 for Stardew Valley 1.4.1 or later. * Fixed warning on MacOS when you have no saves yet. * Reduced log messages. +* For the web UI: + * Updated the JSON validator and Content Patcher schema for `.tmx` support. + * The mod compatibility page now has a sticky table header. + * For modders: * Added support for [message sending](https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Integrations#Message_sending) to mods on the current computer (in addition to remote computers). * Added `ExtendImage` method to content API when editing files to resize textures. @@ -37,10 +45,6 @@ Released 22 February 2020 for Stardew Valley 1.4.1 or later. * Updated dependencies (including Mono.Cecil 0.11.1 → 0.11.2). * Fixed dialogue propagation clearing marriage dialogue. -* For the web UI: - * Updated the JSON validator and Content Patcher schema for `.tmx` support. - * The mod compatibility page now has a sticky table header. - * For SMAPI/tool developers: * Improved support for four-part versions to support SMAPI on Android. * The SMAPI log now prefixes the OS name with `Android` on Android. diff --git a/src/SMAPI.Web/Views/JsonValidator/Index.cshtml b/src/SMAPI.Web/Views/JsonValidator/Index.cshtml index a00c8387..7287e00b 100644 --- a/src/SMAPI.Web/Views/JsonValidator/Index.cshtml +++ b/src/SMAPI.Web/Views/JsonValidator/Index.cshtml @@ -28,14 +28,16 @@ { } - + + - + + - + +