Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
添加下载管理页面&添加测试用入口
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed Jun 27, 2020
1 parent 30f404e commit bc18732
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 0 deletions.
32 changes: 32 additions & 0 deletions PixivFSUWP/DownloadManager.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<Page
x:Class="PixivFSUWP.DownloadManager"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:PixivFSUWP"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<Grid Margin="0 75 0 0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="128"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ListView>
<ListViewItem>
<Grid>
<StackPanel Orientation="Horizontal">
<TextBlock x:Uid="DownloadingCaption"/>
</StackPanel>
</Grid>
</ListViewItem>
<ListViewItem>
<Grid>
<StackPanel Orientation="Horizontal">
<TextBlock x:Uid="DownloadedCaption"/>
</StackPanel>
</Grid>
</ListViewItem>
</ListView>
</Grid>
</Page>
30 changes: 30 additions & 0 deletions PixivFSUWP/DownloadManager.xaml.cs
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;

// https://go.microsoft.com/fwlink/?LinkId=234238 上介绍了“空白页”项模板

namespace PixivFSUWP
{
/// <summary>
/// 可用于自身或导航至 Frame 内部的空白页。
/// </summary>
public sealed partial class DownloadManager : Page
{
public DownloadManager()
{
this.InitializeComponent();
}
}
}
4 changes: 4 additions & 0 deletions PixivFSUWP/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}"
FontSize="16" Glyph="&#xED15;"/>
</AppBarButton>
<AppBarButton Width="48" x:Name="btnDownload" Click="btnDownload_Click">
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}"
FontSize="16" Glyph="&#xE896;"/>
</AppBarButton>
<AppBarButton Width="48" x:Name="btnMe" Click="BtnMe_Click">
<Grid Margin="-7">
<ProgressRing x:Name="avatarRing" Height="20" Width="20" IsActive="True"/>
Expand Down
5 changes: 5 additions & 0 deletions PixivFSUWP/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,5 +270,10 @@ private async void btnExperimentalWarning_Click(object sender, RoutedEventArgs e
warningDialog.Commands.Add(new UICommand("No"));
await warningDialog.ShowAsync();
}

private void btnDownload_Click(object sender, RoutedEventArgs e)
{
ContentFrame.Navigate(typeof(DownloadManager));
}
}
}
10 changes: 10 additions & 0 deletions PixivFSUWP/MultilingualResources/PixivFSUWP.ja.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,16 @@ Do you want to disable them?</target>
<target state="new">Copied</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText (❌Unworkable)</note>
</trans-unit>
<trans-unit id="DownloadedCaption.Text" translate="yes" xml:space="preserve">
<source>Downloaded</source>
<target state="new">Downloaded</target>
<note from="MultilingualBuild" annotates="source" priority="2">TextBlock</note>
</trans-unit>
<trans-unit id="DownloadingCaption.Text" translate="yes" xml:space="preserve">
<source>Downloading</source>
<target state="new">Downloading</target>
<note from="MultilingualBuild" annotates="source" priority="2">TextBlock</note>
</trans-unit>
</group>
</body>
</file>
Expand Down
10 changes: 10 additions & 0 deletions PixivFSUWP/MultilingualResources/PixivFSUWP.zh-Hans.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,16 @@ Do you want to disable them?</source>
<target state="translated">当然</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText (❌Unworkable)</note>
</trans-unit>
<trans-unit id="DownloadedCaption.Text" translate="yes" xml:space="preserve">
<source>Downloaded</source>
<target state="new">Downloaded</target>
<note from="MultilingualBuild" annotates="source" priority="2">TextBlock</note>
</trans-unit>
<trans-unit id="DownloadingCaption.Text" translate="yes" xml:space="preserve">
<source>Downloading</source>
<target state="new">Downloading</target>
<note from="MultilingualBuild" annotates="source" priority="2">TextBlock</note>
</trans-unit>
</group>
</body>
</file>
Expand Down
10 changes: 10 additions & 0 deletions PixivFSUWP/MultilingualResources/PixivFSUWP.zh-Hant.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,16 @@ Do you want to disable them?</source>
<target state="translated">當然</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText (❌Unworkable)</note>
</trans-unit>
<trans-unit id="DownloadedCaption.Text" translate="yes" xml:space="preserve">
<source>Downloaded</source>
<target state="new">Downloaded</target>
<note from="MultilingualBuild" annotates="source" priority="2">TextBlock</note>
</trans-unit>
<trans-unit id="DownloadingCaption.Text" translate="yes" xml:space="preserve">
<source>Downloading</source>
<target state="new">Downloading</target>
<note from="MultilingualBuild" annotates="source" priority="2">TextBlock</note>
</trans-unit>
</group>
</body>
</file>
Expand Down
7 changes: 7 additions & 0 deletions PixivFSUWP/PixivFSUWP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@
<Compile Include="Data\UserDetail.cs" />
<Compile Include="Data\Collections\UserIllustsCollection.cs" />
<Compile Include="Data\WaterfallItem.cs" />
<Compile Include="DownloadManager.xaml.cs">
<DependentUpon>DownloadManager.xaml</DependentUpon>
</Compile>
<Compile Include="IllustDetailPage.xaml.cs">
<DependentUpon>IllustDetailPage.xaml</DependentUpon>
</Compile>
Expand Down Expand Up @@ -246,6 +249,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="DownloadManager.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="IllustDetailPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
Expand Down
8 changes: 8 additions & 0 deletions PixivFSUWP/Strings/en/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,14 @@
<value>Developers</value>
<comment>TextBlock</comment>
</data>
<data name="DownloadedCaption.Text" xml:space="preserve">
<value>Downloaded</value>
<comment>TextBlock</comment>
</data>
<data name="DownloadingCaption.Text" xml:space="preserve">
<value>Downloading</value>
<comment>TextBlock</comment>
</data>
<data name="DownloadingUgoiraPlain" xml:space="preserve">
<value>Downloading ugoira</value>
<comment>PlainText</comment>
Expand Down

0 comments on commit bc18732

Please sign in to comment.