-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* enable FwDataBridge in FwLiteWeb * reword home page for mobile * use dev assets when running a dev build on windows only in maui or fwlite web * add an app bar to the home page * Touch up Home Page esp. ListItems * make home sections more obvious and style the sub-titles * enable injecting FwLiteConfig to pass data into the frontend * provide app version and os to FwLiteConfig * show feedback button on the home page * tweak server project styles, instruct users to login to see projects * update feedback button in project view * Remove unsed variable * Prevent viewport overflow of notifications on mobile * Touch-up app bar margin and add logo * Touch-up home page * Remove maui log file from version control * Fix Feedback button placement on home screen * Fix page height with entry-list expanded * Increase contrast of clickable projects * Touch up remote project states --------- Co-authored-by: Tim Haasdyk <[email protected]>
- Loading branch information
Showing
29 changed files
with
492 additions
and
986 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,4 @@ artifacts/ | |
backend/FwLite/FwLiteShared/wwwroot/viewer | ||
|
||
*.csproj.user | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,9 @@ | ||
using System.Reflection; | ||
using FwLiteShared.Services; | ||
|
||
namespace FwLiteMaui; | ||
|
||
public class AppVersion | ||
{ | ||
static AppVersion() | ||
{ | ||
var infoVersion = typeof(AppVersion).Assembly | ||
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion; | ||
//info version may look like v2024-12-12-3073dd1c+3073dd1ce2ff5510f54a9411366f55c958b9ea45. We want to strip off everything after the +, so we can compare versions | ||
if (infoVersion is not null && infoVersion.Contains('+')) | ||
{ | ||
infoVersion = infoVersion[..infoVersion.IndexOf('+')]; | ||
} | ||
Version = infoVersion ?? "dev"; | ||
} | ||
|
||
public static readonly string Version; | ||
public static readonly string Version = VersionHelper.DisplayVersion(typeof(AppVersion).Assembly); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
using System.Runtime.InteropServices; | ||
using FwLiteShared; | ||
using Microsoft.Extensions.Hosting; | ||
|
||
namespace FwLiteMaui; | ||
|
||
public static class WindowsKernel | ||
{ | ||
public static void AddFwLiteWindows(this IServiceCollection services) | ||
public static void AddFwLiteWindows(this IServiceCollection services, IHostEnvironment environment) | ||
{ | ||
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) return; | ||
if (!FwLiteMauiKernel.IsPortableApp) | ||
{ | ||
services.AddSingleton<IMauiInitializeService, AppUpdateService>(); | ||
services.AddSingleton<IMauiInitializeService, WindowsShortcutService>(); | ||
} | ||
services.Configure<FwLiteConfig>(config => | ||
{ | ||
config.UseDevAssets = environment.IsDevelopment(); | ||
}); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Runtime.InteropServices; | ||
|
||
namespace FwLiteShared; | ||
|
||
public class FwLiteConfig | ||
{ | ||
public bool UseDevAssets { get; set; } = false; | ||
public string AppVersion { get; set; } = "Unknown"; | ||
public FwLitePlatform Os { get; set; } = Environment.OSVersion.Platform switch { | ||
PlatformID.Win32NT => FwLitePlatform.Windows, | ||
PlatformID.Unix => FwLitePlatform.Linux, | ||
PlatformID.MacOSX => FwLitePlatform.Mac, | ||
_ => FwLitePlatform.Other | ||
}; | ||
public string FeedbackUrl => $"https://docs.google.com/forms/d/e/1FAIpQLSdUdNufT3sdoBscY7vixguYnvtgpaw-hjX-z54BKi9KlYv4vw/viewform?usp=pp_url&entry.2102942583={AppVersion}&entry.1772086822={Os}"; | ||
} | ||
|
||
public enum FwLitePlatform | ||
{ | ||
Windows, | ||
Linux, | ||
Mac, | ||
Other, | ||
Android, | ||
// ReSharper disable once InconsistentNaming | ||
iOS, | ||
Web | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Reflection; | ||
|
||
namespace FwLiteShared.Services; | ||
|
||
public class VersionHelper | ||
{ | ||
public static string DisplayVersion(Assembly assembly) | ||
{ | ||
var infoVersion = assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion; | ||
//info version may look like v2024-12-12-3073dd1c+3073dd1ce2ff5510f54a9411366f55c958b9ea45. We want to strip off everything after the +, so we can compare versions | ||
if (infoVersion is not null && infoVersion.Contains('+')) | ||
{ | ||
infoVersion = infoVersion[..infoVersion.IndexOf('+')]; | ||
} | ||
|
||
return infoVersion ?? "dev"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.