-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* a bunch of QoL improvements * git version fixes * try that * lol * come on sweetie * come _on_
- Loading branch information
Showing
29 changed files
with
376 additions
and
129 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
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,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using UniSky.Models; | ||
using Windows.ApplicationModel; | ||
|
||
namespace UniSky; | ||
|
||
public class Constants | ||
{ | ||
public static string Version | ||
{ | ||
get | ||
{ | ||
var gitSha = ""; | ||
var versionedAssembly = typeof(LoginModel).Assembly; | ||
var attribute = versionedAssembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>(); | ||
|
||
int idx; | ||
if (attribute != null && (idx = attribute.InformationalVersion.IndexOf('+')) != -1) | ||
{ | ||
gitSha = "-" + attribute.InformationalVersion.Substring(idx + 1); | ||
} | ||
|
||
var v = Package.Current.Id.Version; | ||
return $"{v.Major}.{v.Minor}.{v.Build}.{v.Revision}{gitSha}"; | ||
} | ||
} | ||
|
||
public static string UserAgent | ||
=> $"UniSky/{Version} (https://github.com/UnicordDev/UniSky)"; | ||
} |
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,32 @@ | ||
<sheets:SheetControl | ||
x:Class="UniSky.Controls.Settings.SettingsSheet" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:root="using:UniSky" | ||
xmlns:local="using:UniSky.Controls.Settings" | ||
xmlns:sheets="using:UniSky.Controls.Sheet" | ||
xmlns:settings="using:UniSky.ViewModels.Settings" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
d:DesignHeight="300" | ||
d:DesignWidth="400" | ||
d:DataContext="{d:DesignInstance Type=settings:SettingsViewModel}" | ||
Style="{ThemeResource DefaultSheetControlStyle}" | ||
PrimaryButtonVisibility="Collapsed" | ||
SecondaryButtonContent="Close" | ||
TitleContent="SETTINGS"> | ||
<ScrollViewer HorizontalScrollMode="Disabled" | ||
VerticalScrollMode="Auto" | ||
IsVerticalScrollChainingEnabled="True" | ||
IsVerticalRailEnabled="True" | ||
IsDeferredScrollingEnabled="False"> | ||
<StackPanel Margin="12"> | ||
<TextBlock Style="{ThemeResource SubtitleTextBlockStyle}" Text="About"/> | ||
<TextBlock TextWrapping="Wrap"> | ||
<Run Text="Version"/> | ||
<Run Text="{x:Bind root:Constants.Version, FallbackValue='1.0.0.0-abcdefg'}"/> | ||
</TextBlock> | ||
</StackPanel> | ||
</ScrollViewer> | ||
</sheets:SheetControl> |
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,11 @@ | ||
using UniSky.Controls.Sheet; | ||
|
||
namespace UniSky.Controls.Settings; | ||
|
||
public sealed partial class SettingsSheet : SheetControl | ||
{ | ||
public SettingsSheet() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} |
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
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,14 @@ | ||
<Page | ||
x:Class="UniSky.Pages.SettingsPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:UniSky.Pages" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
|
||
<Grid> | ||
|
||
</Grid> | ||
</Page> |
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,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Runtime.InteropServices.WindowsRuntime; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
using Windows.UI.Xaml.Controls.Primitives; | ||
using Windows.UI.Xaml.Data; | ||
using Windows.UI.Xaml.Input; | ||
using Windows.UI.Xaml.Media; | ||
using Windows.UI.Xaml.Navigation; | ||
|
||
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238 | ||
|
||
namespace UniSky.Pages | ||
{ | ||
/// <summary> | ||
/// An empty page that can be used on its own or navigated to within a Frame. | ||
/// </summary> | ||
public sealed partial class SettingsPage : Page | ||
{ | ||
public SettingsPage() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} | ||
} |
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,10 +1,12 @@ | ||
using System.Threading.Tasks; | ||
using System; | ||
using System.Threading.Tasks; | ||
using UniSky.Controls.Sheet; | ||
|
||
namespace UniSky.Services | ||
{ | ||
public interface ISheetService | ||
{ | ||
Task<ISheetController> ShowAsync<T>(object parameter = null) where T : SheetControl, new(); | ||
Task<ISheetController> ShowAsync<T>(Func<SheetControl> factory, object parameter = null) where T : SheetControl; | ||
} | ||
} |
Oops, something went wrong.