mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-13 12:52:08 +08:00
1.1.1 -> 1.1.2 第7次更新
This commit is contained in:
parent
334f8a56a2
commit
0810b64fe4
@ -117,7 +117,7 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<data name="AgreementsButtonContent" xml:space="preserve">
|
<data name="AgreementButtonContent" xml:space="preserve">
|
||||||
<value>EULA</value>
|
<value>EULA</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="DeveloperButtonContent" xml:space="preserve">
|
<data name="DeveloperButtonContent" xml:space="preserve">
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<data name="AgreementsButtonContent" xml:space="preserve">
|
<data name="AgreementButtonContent" xml:space="preserve">
|
||||||
<value>使用协议</value>
|
<value>使用协议</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="DeveloperButtonContent" xml:space="preserve">
|
<data name="DeveloperButtonContent" xml:space="preserve">
|
||||||
|
@ -12,6 +12,6 @@ internal partial class MainConst : MainMultilangConst
|
|||||||
[GeneratedRegex(@"^(https?:\/\/)?[a-zA-Z0-9](-*[a-zA-Z0-9])*(\.[a-zA-Z0-9](-*[a-zA-Z0-9])*)*(:\d{1,5})?(\/[a-zA-Z0-9.\-_\~\!\$\&\'\(\)\*\+\,\;\=\:\@\%]*)*$")]
|
[GeneratedRegex(@"^(https?:\/\/)?[a-zA-Z0-9](-*[a-zA-Z0-9])*(\.[a-zA-Z0-9](-*[a-zA-Z0-9])*)*(:\d{1,5})?(\/[a-zA-Z0-9.\-_\~\!\$\&\'\(\)\*\+\,\;\=\:\@\%]*)*$")]
|
||||||
internal static partial Regex UpstreamUrlRegex();
|
internal static partial Regex UpstreamUrlRegex();
|
||||||
|
|
||||||
[GeneratedRegex(@"^(--[a-z](-?[a-z])*( --[a-z](-?[a-z])*)*)?$")]
|
[GeneratedRegex(@"^(--[a-z](-?[a-z])*(=("".*"")|.*)?( --[a-z](-?[a-z])*(="".*"")?)*)?$")]
|
||||||
internal static partial Regex ExtraArgsRegex();
|
internal static partial Regex ExtraArgsRegex();
|
||||||
}
|
}
|
4
Consts/MainMultilangConst.Designer.cs
generated
4
Consts/MainMultilangConst.Designer.cs
generated
@ -72,9 +72,9 @@ namespace Sheas_Cealer.Consts {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 The args cannot be recognized, check if the host contains syntax errors 的本地化字符串。
|
/// 查找类似 The args cannot be recognized, check if the host contains syntax errors 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string _CealingHostErrorHint {
|
public static string _HostErrorHint {
|
||||||
get {
|
get {
|
||||||
return ResourceManager.GetString("_CealingHostErrorHint", resourceCulture);
|
return ResourceManager.GetString("_HostErrorHint", resourceCulture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@
|
|||||||
<data name="_BrowserPathDialogFilterFileType" xml:space="preserve">
|
<data name="_BrowserPathDialogFilterFileType" xml:space="preserve">
|
||||||
<value>Browser</value>
|
<value>Browser</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="_CealingHostErrorHint" xml:space="preserve">
|
<data name="_HostErrorHint" xml:space="preserve">
|
||||||
<value>The args cannot be recognized, check if the host contains syntax errors</value>
|
<value>The args cannot be recognized, check if the host contains syntax errors</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="_HostUtdHint" xml:space="preserve">
|
<data name="_HostUtdHint" xml:space="preserve">
|
||||||
|
@ -189,7 +189,7 @@
|
|||||||
<data name="_BrowserPathDialogFilterFileType" xml:space="preserve">
|
<data name="_BrowserPathDialogFilterFileType" xml:space="preserve">
|
||||||
<value>浏览器</value>
|
<value>浏览器</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="_CealingHostErrorHint" xml:space="preserve">
|
<data name="_HostErrorHint" xml:space="preserve">
|
||||||
<value>规则无法识别,请检查伪造规则是否含有语法错误</value>
|
<value>规则无法识别,请检查伪造规则是否含有语法错误</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="_HostUtdHint" xml:space="preserve">
|
<data name="_HostUtdHint" xml:space="preserve">
|
||||||
|
@ -34,7 +34,7 @@ internal partial class MainPres : ObservableObject
|
|||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private bool? isLightTheme = null;
|
private bool? isLightTheme = null;
|
||||||
partial void OnIsLightThemeChanged(bool? value)
|
private partial void OnIsLightThemeChanged(bool? value)
|
||||||
{
|
{
|
||||||
PaletteHelper paletteHelper = new();
|
PaletteHelper paletteHelper = new();
|
||||||
Theme newTheme = paletteHelper.GetTheme();
|
Theme newTheme = paletteHelper.GetTheme();
|
||||||
@ -45,7 +45,7 @@ internal partial class MainPres : ObservableObject
|
|||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string browserPath;
|
private string browserPath;
|
||||||
partial void OnBrowserPathChanged(string value)
|
private partial void OnBrowserPathChanged(string value)
|
||||||
{
|
{
|
||||||
if (File.Exists(value) && Path.GetFileName(value).ToLowerInvariant().EndsWith(".exe"))
|
if (File.Exists(value) && Path.GetFileName(value).ToLowerInvariant().EndsWith(".exe"))
|
||||||
{
|
{
|
||||||
@ -56,7 +56,7 @@ internal partial class MainPres : ObservableObject
|
|||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string upstreamUrl;
|
private string upstreamUrl;
|
||||||
partial void OnUpstreamUrlChanged(string value)
|
private partial void OnUpstreamUrlChanged(string value)
|
||||||
{
|
{
|
||||||
if (MainConst.UpstreamUrlRegex().IsMatch(value))
|
if (MainConst.UpstreamUrlRegex().IsMatch(value))
|
||||||
{
|
{
|
||||||
@ -67,7 +67,7 @@ internal partial class MainPres : ObservableObject
|
|||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string extraArgs;
|
private string extraArgs;
|
||||||
partial void OnExtraArgsChanged(string value)
|
private partial void OnExtraArgsChanged(string value)
|
||||||
{
|
{
|
||||||
if (MainConst.ExtraArgsRegex().IsMatch(value))
|
if (MainConst.ExtraArgsRegex().IsMatch(value))
|
||||||
{
|
{
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.3.2" />
|
||||||
<PackageReference Include="MaterialDesignThemes" Version="5.1.0" />
|
<PackageReference Include="MaterialDesignThemes" Version="5.1.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ public partial class MainWin : Window
|
|||||||
HoldButtonTimer!.Stop();
|
HoldButtonTimer!.Stop();
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(CealArgs))
|
if (string.IsNullOrWhiteSpace(CealArgs))
|
||||||
throw new Exception(MainConst._CealingHostErrorHint);
|
throw new Exception(MainConst._HostErrorHint);
|
||||||
if (MessageBox.Show(MainConst._KillBrowserProcessesPrompt, string.Empty, MessageBoxButton.YesNo) != MessageBoxResult.Yes)
|
if (MessageBox.Show(MainConst._KillBrowserProcessesPrompt, string.Empty, MessageBoxButton.YesNo) != MessageBoxResult.Yes)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user