Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
Bili.Uwp
提交
4451109b
B
Bili.Uwp
项目概览
jobily
/
Bili.Uwp
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
Bili.Uwp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
4451109b
编写于
9月 17, 2021
作者:
R
Richasy
提交者:
GitHub
9月 17, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加关于应用的说明 (#57)
* 添加关于应用的说明 * Update doc.md * Create LICENSE
上级
848a1218
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
65 addition
and
1 deletion
+65
-1
.github/ISSUE_TEMPLATE/doc.md
.github/ISSUE_TEMPLATE/doc.md
+2
-0
LICENSE
LICENSE
+21
-0
src/App/Pages/SettingPage.xaml
src/App/Pages/SettingPage.xaml
+18
-0
src/App/Pages/SettingPage.xaml.cs
src/App/Pages/SettingPage.xaml.cs
+7
-1
src/App/Resources/Strings/zh-CN/Resources.resw
src/App/Resources/Strings/zh-CN/Resources.resw
+6
-0
src/Models/Models.Enums/App/LanguageNames.cs
src/Models/Models.Enums/App/LanguageNames.cs
+2
-0
src/ViewModels/ViewModels.Uwp/Common/SettingViewModel/SettingViewModel.Properties.cs
...wp/Common/SettingViewModel/SettingViewModel.Properties.cs
+6
-0
src/ViewModels/ViewModels.Uwp/Common/SettingViewModel/SettingViewModel.cs
...iewModels.Uwp/Common/SettingViewModel/SettingViewModel.cs
+3
-0
未找到文件。
.github/ISSUE_TEMPLATE/doc.md
浏览文件 @
4451109b
...
...
@@ -7,6 +7,8 @@ assignees: Richasy
---
<!-- 🚨 请不要跳过或删除下面的信息,它们都是评估与测试所需的信息,完整填写有助于更快通过评审 🚨 -->
## 关联文档
<!-- 请取消下方的注释,并使用这样的方式插入与该问题有关的文档链接,如果你的问题与某个具体文档无关,请忽略 -->
...
...
LICENSE
0 → 100644
浏览文件 @
4451109b
MIT License
Copyright (c) 2021 Richasy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
src/App/Pages/SettingPage.xaml
浏览文件 @
4451109b
...
...
@@ -10,6 +10,13 @@
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
mc:Ignorable="d">
<Page.Resources>
<Style x:Key="TipTextStyle" TargetType="TextBlock">
<Setter Property="Foreground" Value="{ThemeResource TextFillColorDisabledBrush}" />
<Setter Property="FontSize" Value="12" />
</Style>
</Page.Resources>
<Grid>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="LayoutGroup">
...
...
@@ -55,6 +62,17 @@
<controls:PlayerModeSettingSection />
<controls:PlayerControlSettingSection />
<controls:MTCSettingSection />
<StackPanel
Margin="0,12,0,0"
HorizontalAlignment="Left"
Spacing="4">
<TextBlock Style="{StaticResource TipTextStyle}" Text="{loc:LocaleLocator Name=AboutThisApp}" />
<TextBlock Style="{StaticResource TipTextStyle}">
<Run Text="{loc:LocaleLocator Name=AppName}" />
<Run Text="{x:Bind ViewModel.Version}" />
</TextBlock>
<TextBlock Style="{StaticResource TipTextStyle}" Text="{loc:LocaleLocator Name=License}" />
</StackPanel>
</StackPanel>
</muxc:ScrollView>
</Grid>
...
...
src/App/Pages/SettingPage.xaml.cs
浏览文件 @
4451109b
...
...
@@ -17,12 +17,18 @@ namespace Richasy.Bili.App.Pages
public
SettingPage
()
{
this
.
InitializeComponent
();
ViewModel
=
SettingViewModel
.
Instance
;
}
/// <summary>
/// 视图模型.
/// </summary>
public
SettingViewModel
ViewModel
{
get
;
private
set
;
}
/// <inheritdoc/>
protected
override
void
OnNavigatedTo
(
NavigationEventArgs
e
)
{
SettingViewModel
.
Instance
.
InitializeSettings
();
ViewModel
.
InitializeSettings
();
}
}
}
src/App/Resources/Strings/zh-CN/Resources.resw
浏览文件 @
4451109b
...
...
@@ -117,6 +117,9 @@
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<data
name=
"AboutThisApp"
xml:space=
"preserve"
>
<value>
关于此应用
</value>
</data>
<data
name=
"AddReplyFailed"
xml:space=
"preserve"
>
<value>
添加评论失败,请稍后再试
</value>
</data>
...
...
@@ -476,6 +479,9 @@
<data
name=
"LastestReply"
xml:space=
"preserve"
>
<value>
最新评论
</value>
</data>
<data
name=
"License"
xml:space=
"preserve"
>
<value>
©2021 Richasy. MIT 许可证
</value>
</data>
<data
name=
"Light"
xml:space=
"preserve"
>
<value>
浅色
</value>
</data>
...
...
src/Models/Models.Enums/App/LanguageNames.cs
浏览文件 @
4451109b
...
...
@@ -328,6 +328,8 @@ namespace Richasy.Bili.Models.Enums
NoRoomDescription
,
LogEmptied
,
FailedToClearLog
,
AboutThisApp
,
License
,
#pragma warning restore SA1602 // Enumeration items should be documented
}
}
src/ViewModels/ViewModels.Uwp/Common/SettingViewModel/SettingViewModel.Properties.cs
浏览文件 @
4451109b
...
...
@@ -105,5 +105,11 @@ namespace Richasy.Bili.ViewModels.Uwp
/// </summary>
[
Reactive
]
public
double
SingleFastForwardAndRewindSpan
{
get
;
set
;
}
/// <summary>
/// 应用版本.
/// </summary>
[
Reactive
]
public
string
Version
{
get
;
set
;
}
}
}
src/ViewModels/ViewModels.Uwp/Common/SettingViewModel/SettingViewModel.cs
浏览文件 @
4451109b
...
...
@@ -42,6 +42,9 @@ namespace Richasy.Bili.ViewModels.Uwp
MTCControlModeInit
();
StartupInitAsync
();
var
appVersion
=
Package
.
Current
.
Id
.
Version
;
Version
=
$"
{
appVersion
.
Major
}
.
{
appVersion
.
Minor
}
.
{
appVersion
.
Build
}
.
{
appVersion
.
Revision
}
"
;
PropertyChanged
+=
OnPropertyChangedAsync
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录