Mobile UI MyPage

This commit is contained in:
Aigio Liu
2021-06-03 22:12:43 +08:00
parent fece6a1394
commit ac78e2cfcb
47 changed files with 242 additions and 4 deletions
@@ -5,6 +5,7 @@ using System.CommandLine;
using System.CommandLine.Invocation;
using System.Windows;
using AvaloniaApplication = Avalonia.Application;
using LogLevel = Microsoft.Extensions.Logging.LogLevel;
namespace System.Application.UI
{
@@ -121,6 +122,7 @@ namespace System.Application.UI
devtools.Handler = CommandHandler.Create(() =>
{
AppHelper.EnableDevtools = true;
AppHelper.LoggerMinLevel = LogLevel.Debug;
MainHandlerByCLT();
});
rootCommand.AddCommand(devtools);
+19 -1
View File
@@ -1,4 +1,4 @@
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
@@ -2394,6 +2394,15 @@ namespace System.Application.UI.Resx {
}
}
/// <summary>
/// 查找类似 我的 的本地化字符串。
/// </summary>
public static string My {
get {
return ResourceManager.GetString("My", resourceCulture);
}
}
/// <summary>
/// 查找类似 昵称 的本地化字符串。
/// </summary>
@@ -3160,6 +3169,15 @@ namespace System.Application.UI.Resx {
}
}
/// <summary>
/// 查找类似 工具箱 的本地化字符串。
/// </summary>
public static string Toolbox {
get {
return ResourceManager.GetString("Toolbox", resourceCulture);
}
}
/// <summary>
/// 查找类似 未绑定 的本地化字符串。
/// </summary>
@@ -900,6 +900,9 @@
<data name="MoveUp" xml:space="preserve">
<value>上移</value>
</data>
<data name="My" xml:space="preserve">
<value>我的</value>
</data>
<data name="NickName" xml:space="preserve">
<value>昵称</value>
</data>
@@ -1157,6 +1160,9 @@
<data name="Success_" xml:space="preserve">
<value>{0}成功</value>
</data>
<data name="Toolbox" xml:space="preserve">
<value>工具箱</value>
</data>
<data name="Unbound" xml:space="preserve">
<value>未绑定</value>
</data>
Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 639 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 B

@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M3,5v14c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2L21,5c0,-1.1 -0.9,-2 -2,-2L5,3c-1.11,0 -2,0.9 -2,2zM15,9c0,1.66 -1.34,3 -3,3s-3,-1.34 -3,-3 1.34,-3 3,-3 3,1.34 3,3zM6,17c0,-2 4,-3.1 6,-3.1s6,1.1 6,3.1v1L6,18v-1z"/>
</vector>
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-6h2v6zM13,9h-2L11,7h2v2z"/>
</vector>
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M16,1L8,1C6.34,1 5,2.34 5,4v16c0,1.66 1.34,3 3,3h8c1.66,0 3,-1.34 3,-3L19,4c0,-1.66 -1.34,-3 -3,-3zM14,21h-4v-1h4v1zM17.25,18L6.75,18L6.75,4h10.5v14z"/>
</vector>
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M19.14,12.94c0.04,-0.3 0.06,-0.61 0.06,-0.94c0,-0.32 -0.02,-0.64 -0.07,-0.94l2.03,-1.58c0.18,-0.14 0.23,-0.41 0.12,-0.61l-1.92,-3.32c-0.12,-0.22 -0.37,-0.29 -0.59,-0.22l-2.39,0.96c-0.5,-0.38 -1.03,-0.7 -1.62,-0.94L14.4,2.81c-0.04,-0.24 -0.24,-0.41 -0.48,-0.41h-3.84c-0.24,0 -0.43,0.17 -0.47,0.41L9.25,5.35C8.66,5.59 8.12,5.92 7.63,6.29L5.24,5.33c-0.22,-0.08 -0.47,0 -0.59,0.22L2.74,8.87C2.62,9.08 2.66,9.34 2.86,9.48l2.03,1.58C4.84,11.36 4.8,11.69 4.8,12s0.02,0.64 0.07,0.94l-2.03,1.58c-0.18,0.14 -0.23,0.41 -0.12,0.61l1.92,3.32c0.12,0.22 0.37,0.29 0.59,0.22l2.39,-0.96c0.5,0.38 1.03,0.7 1.62,0.94l0.36,2.54c0.05,0.24 0.24,0.41 0.48,0.41h3.84c0.24,0 0.44,-0.17 0.47,-0.41l0.36,-2.54c0.59,-0.24 1.13,-0.56 1.62,-0.94l2.39,0.96c0.22,0.08 0.47,0 0.59,-0.22l1.92,-3.32c0.12,-0.22 0.07,-0.47 -0.12,-0.61L19.14,12.94zM12,15.6c-1.98,0 -3.6,-1.62 -3.6,-3.6s1.62,-3.6 3.6,-3.6s3.6,1.62 3.6,3.6S13.98,15.6 12,15.6z"/>
</vector>
@@ -0,0 +1,27 @@
{
"images": [
{
"filename": "baseline_account_box_black_24pt_1x.png",
"idiom": "universal",
"scale": "1x",
"size": "24x24"
},
{
"filename": "baseline_account_box_black_24pt_2x.png",
"idiom": "universal",
"scale": "2x",
"size": "24x24"
},
{
"filename": "baseline_account_box_black_24pt_3x.png",
"idiom": "universal",
"scale": "3x",
"size": "24x24"
}
],
"info": {
"author": "xcode",
"template-rendering-intent": "template",
"version": 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

@@ -0,0 +1,27 @@
{
"images": [
{
"filename": "baseline_info_black_24pt_1x.png",
"idiom": "universal",
"scale": "1x",
"size": "24x24"
},
{
"filename": "baseline_info_black_24pt_2x.png",
"idiom": "universal",
"scale": "2x",
"size": "24x24"
},
{
"filename": "baseline_info_black_24pt_3x.png",
"idiom": "universal",
"scale": "3x",
"size": "24x24"
}
],
"info": {
"author": "xcode",
"template-rendering-intent": "template",
"version": 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

@@ -0,0 +1,27 @@
{
"images": [
{
"filename": "baseline_phone_iphone_black_24pt_1x.png",
"idiom": "universal",
"scale": "1x",
"size": "24x24"
},
{
"filename": "baseline_phone_iphone_black_24pt_2x.png",
"idiom": "universal",
"scale": "2x",
"size": "24x24"
},
{
"filename": "baseline_phone_iphone_black_24pt_3x.png",
"idiom": "universal",
"scale": "3x",
"size": "24x24"
}
],
"info": {
"author": "xcode",
"template-rendering-intent": "template",
"version": 1
}
}
@@ -0,0 +1,27 @@
{
"images": [
{
"filename": "baseline_settings_black_24pt_1x.png",
"idiom": "universal",
"scale": "1x",
"size": "24x24"
},
{
"filename": "baseline_settings_black_24pt_2x.png",
"idiom": "universal",
"scale": "2x",
"size": "24x24"
},
{
"filename": "baseline_settings_black_24pt_3x.png",
"idiom": "universal",
"scale": "3x",
"size": "24x24"
}
],
"info": {
"author": "xcode",
"template-rendering-intent": "template",
"version": 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 B

+4 -1
View File
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
@@ -102,6 +102,9 @@
<EmbeddedResource Update="UI\Styles\ThemeDark.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Update="UI\Views\MyPage.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
</ItemGroup>
</Project>
+3 -2
View File
@@ -3,6 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:System.Application.UI.Views"
xmlns:controls="clr-namespace:System.Application.UI.Views.Controls;assembly=System.Application.SteamTools.Client.Mobile"
xmlns:resx="clr-namespace:System.Application.UI.Resx"
Title="Steam++"
Visual="Material"
x:Class="System.Application.UI.AppShell">
@@ -48,8 +49,8 @@
</ResourceDictionary>
</Shell.Resources>
<TabBar>
<ShellContent Title="About" Icon="baseline_home_repair_service_black_24" Route="AboutPage" ContentTemplate="{DataTemplate local:AboutPage}"/>
<ShellContent Title="Browse" Icon="baseline_person_black_24" Route="BrowsePage" ContentTemplate="{DataTemplate local:ItemsPage}"/>
<ShellContent Title="{x:Static resx:AppResources.Toolbox}" Icon="baseline_home_repair_service_black_24" Route="AboutPage" ContentTemplate="{DataTemplate local:AboutPage}"/>
<ShellContent Title="{x:Static resx:AppResources.My}" Icon="baseline_person_black_24" Route="MyPage" ContentTemplate="{DataTemplate local:MyPage}"/>
</TabBar>
<TabBar>
<ShellContent Route="LoginOrRegister" ContentTemplate="{DataTemplate local:LoginOrRegisterPage}"/>
+41
View File
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:resx="clr-namespace:System.Application.UI.Resx"
x:Class="System.Application.UI.Views.MyPage"
Title="{x:Static resx:AppResources.My}">
<ContentPage.Resources>
</ContentPage.Resources>
<ContentPage.Content>
<TableView>
<TableRoot>
<TableSection>
<ImageCell ImageSource="baseline_person_black_24" Text="NickName" />
<ImageCell ImageSource="baseline_account_box_black_24" Text="{x:Static resx:AppResources.User_EditProfile}" />
<ImageCell Text="{x:Static resx:AppResources.User_BindPhoneNum}">
<ImageCell.ImageSource>
<OnPlatform x:TypeArguments="FileImageSource">
<OnPlatform.Platforms>
<On Platform="iOS" Value="baseline_phone_iphone_black_24" />
<On Platform="Android" Value="baseline_phone_android_black_24" />
</OnPlatform.Platforms>
</OnPlatform>
</ImageCell.ImageSource>
</ImageCell>
<ImageCell Text="{x:Static resx:AppResources.User_ChangePhoneNum}">
<ImageCell.ImageSource>
<OnPlatform x:TypeArguments="FileImageSource">
<OnPlatform.Platforms>
<On Platform="iOS" Value="baseline_phone_iphone_black_24" />
<On Platform="Android" Value="baseline_phone_android_black_24" />
</OnPlatform.Platforms>
</OnPlatform>
</ImageCell.ImageSource>
</ImageCell>
<ImageCell ImageSource="baseline_settings_black_24" Text="{x:Static resx:AppResources.Settings}" />
<ImageCell ImageSource="baseline_info_black_24" Text="{x:Static resx:AppResources.About}" />
</TableSection>
</TableRoot>
</TableView>
</ContentPage.Content>
</ContentPage>
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace System.Application.UI.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
partial class MyPage
{
public MyPage()
{
InitializeComponent();
}
}
}