mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-13 12:52:08 +08:00
1.1.0 -> 1.1.1 第13次更新
This commit is contained in:
parent
3d307dd01f
commit
eaaca182d4
54
Consts/MainMultilangConst.Designer.cs
generated
54
Consts/MainMultilangConst.Designer.cs
generated
@ -70,7 +70,7 @@ namespace Sheas_Cealer.Consts {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Click to open about window 的本地化字符串。
|
||||
/// 查找类似 Click to open an about window 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string AboutButtonToolTip {
|
||||
get {
|
||||
@ -81,9 +81,9 @@ namespace Sheas_Cealer.Consts {
|
||||
/// <summary>
|
||||
/// 查找类似 Browser Path 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string BrowserPathModeName {
|
||||
public static string BrowserPathSettingsModeName {
|
||||
get {
|
||||
return ResourceManager.GetString("BrowserPathModeName", resourceCulture);
|
||||
return ResourceManager.GetString("BrowserPathSettingsModeName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
@ -97,7 +97,7 @@ namespace Sheas_Cealer.Consts {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Click to edit Cealing Host 的本地化字符串。
|
||||
/// 查找类似 Click to edit host 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string EditHostButtonToolTip {
|
||||
get {
|
||||
@ -106,38 +106,38 @@ namespace Sheas_Cealer.Consts {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Additional Args 的本地化字符串。
|
||||
/// 查找类似 Extra Args 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string ExtraArgsModeName {
|
||||
public static string ExtraArgsSettingsModeName {
|
||||
get {
|
||||
return ResourceManager.GetString("ExtraArgsModeName", resourceCulture);
|
||||
return ResourceManager.GetString("ExtraArgsSettingsModeName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Fill in the path of a Chromium-based browser 的本地化字符串。
|
||||
/// 查找类似 Fill in a Chromium-based browser path 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string SettingsBoxBrowserPathPlaceHolder {
|
||||
public static string SettingsBoxBrowserPathToolTip {
|
||||
get {
|
||||
return ResourceManager.GetString("SettingsBoxBrowserPathPlaceHolder", resourceCulture);
|
||||
return ResourceManager.GetString("SettingsBoxBrowserPathToolTip", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Fill in extra Chromium startup arguments 的本地化字符串。
|
||||
/// 查找类似 Fill in extra Chromium startup args 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string SettingsBoxExtraArgsPlaceHolder {
|
||||
public static string SettingsBoxExtraArgsToolTip {
|
||||
get {
|
||||
return ResourceManager.GetString("SettingsBoxExtraArgsPlaceHolder", resourceCulture);
|
||||
return ResourceManager.GetString("SettingsBoxExtraArgsToolTip", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Fill in the link to an upstream Cealing Host 的本地化字符串。
|
||||
/// 查找类似 Fill in an upstream host URL 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string SettingsBoxUpstreamUrlPlaceHolder {
|
||||
public static string SettingsBoxUpstreamUrlToolTip {
|
||||
get {
|
||||
return ResourceManager.GetString("SettingsBoxUpstreamUrlPlaceHolder", resourceCulture);
|
||||
return ResourceManager.GetString("SettingsBoxUpstreamUrlToolTip", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
@ -160,7 +160,7 @@ namespace Sheas_Cealer.Consts {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Click to process the contents of the input box 的本地化字符串。
|
||||
/// 查找类似 Click to process settings 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string SettingsFunctionButtonToolTip {
|
||||
get {
|
||||
@ -169,7 +169,7 @@ namespace Sheas_Cealer.Consts {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Reset Url 的本地化字符串。
|
||||
/// 查找类似 Reset URL 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string SettingsFunctionButtonUpstreamUrlContent {
|
||||
get {
|
||||
@ -178,7 +178,7 @@ namespace Sheas_Cealer.Consts {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Click to switch settings mode 的本地化字符串。
|
||||
/// 查找类似 Click to switch settings 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string SettingsModeButtonToolTip {
|
||||
get {
|
||||
@ -196,7 +196,7 @@ namespace Sheas_Cealer.Consts {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Click to launch the injected browser 的本地化字符串。
|
||||
/// 查找类似 Click to launch an injected browser 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string StartButtonToolTip {
|
||||
get {
|
||||
@ -205,7 +205,7 @@ namespace Sheas_Cealer.Consts {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Light Theme 的本地化字符串。
|
||||
/// 查找类似 Auto Theme 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string ThemesButtonDarkThemeContent {
|
||||
get {
|
||||
@ -214,7 +214,7 @@ namespace Sheas_Cealer.Consts {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Auto Theme 的本地化字符串。
|
||||
/// 查找类似 Dark Theme 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string ThemesButtonInheritThemeContent {
|
||||
get {
|
||||
@ -223,7 +223,7 @@ namespace Sheas_Cealer.Consts {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Dark Theme 的本地化字符串。
|
||||
/// 查找类似 Light Theme 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string ThemesButtonLightThemeContent {
|
||||
get {
|
||||
@ -250,7 +250,7 @@ namespace Sheas_Cealer.Consts {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Click to update Cealing Host 的本地化字符串。
|
||||
/// 查找类似 Click to update host 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string UpdateHostButtonToolTip {
|
||||
get {
|
||||
@ -259,11 +259,11 @@ namespace Sheas_Cealer.Consts {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Upstream Url 的本地化字符串。
|
||||
/// 查找类似 Upstream URL 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string UpstreamUrlModeName {
|
||||
public static string UpstreamUrlSettingsModeName {
|
||||
get {
|
||||
return ResourceManager.GetString("UpstreamUrlModeName", resourceCulture);
|
||||
return ResourceManager.GetString("UpstreamUrlSettingsModeName", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -121,28 +121,28 @@
|
||||
<value>About Me</value>
|
||||
</data>
|
||||
<data name="AboutButtonToolTip" xml:space="preserve">
|
||||
<value>Click to open about window</value>
|
||||
<value>Click to open an about window</value>
|
||||
</data>
|
||||
<data name="BrowserPathModeName" xml:space="preserve">
|
||||
<data name="BrowserPathSettingsModeName" xml:space="preserve">
|
||||
<value>Browser Path</value>
|
||||
</data>
|
||||
<data name="EditHostButtonContent" xml:space="preserve">
|
||||
<value>Edit Host</value>
|
||||
</data>
|
||||
<data name="EditHostButtonToolTip" xml:space="preserve">
|
||||
<value>Click to edit Cealing Host</value>
|
||||
<value>Click to edit host</value>
|
||||
</data>
|
||||
<data name="ExtraArgsModeName" xml:space="preserve">
|
||||
<value>Additional Args</value>
|
||||
<data name="ExtraArgsSettingsModeName" xml:space="preserve">
|
||||
<value>Extra Args</value>
|
||||
</data>
|
||||
<data name="SettingsBoxBrowserPathPlaceHolder" xml:space="preserve">
|
||||
<value>Fill in the path of a Chromium-based browser</value>
|
||||
<data name="SettingsBoxBrowserPathToolTip" xml:space="preserve">
|
||||
<value>Fill in a Chromium-based browser path</value>
|
||||
</data>
|
||||
<data name="SettingsBoxExtraArgsPlaceHolder" xml:space="preserve">
|
||||
<value>Fill in extra Chromium startup arguments</value>
|
||||
<data name="SettingsBoxExtraArgsToolTip" xml:space="preserve">
|
||||
<value>Fill in extra Chromium startup args</value>
|
||||
</data>
|
||||
<data name="SettingsBoxUpstreamUrlPlaceHolder" xml:space="preserve">
|
||||
<value>Fill in the link to an upstream Cealing Host</value>
|
||||
<data name="SettingsBoxUpstreamUrlToolTip" xml:space="preserve">
|
||||
<value>Fill in an upstream host URL</value>
|
||||
</data>
|
||||
<data name="SettingsFunctionButtonBrowserPathContent" xml:space="preserve">
|
||||
<value>Browse Path</value>
|
||||
@ -151,29 +151,29 @@
|
||||
<value>Clear Args</value>
|
||||
</data>
|
||||
<data name="SettingsFunctionButtonToolTip" xml:space="preserve">
|
||||
<value>Click to process the contents of the input box</value>
|
||||
<value>Click to process settings</value>
|
||||
</data>
|
||||
<data name="SettingsFunctionButtonUpstreamUrlContent" xml:space="preserve">
|
||||
<value>Reset Url</value>
|
||||
<value>Reset URL</value>
|
||||
</data>
|
||||
<data name="SettingsModeButtonToolTip" xml:space="preserve">
|
||||
<value>Click to switch settings mode</value>
|
||||
<value>Click to switch settings</value>
|
||||
</data>
|
||||
<data name="StartButtonContent" xml:space="preserve">
|
||||
<value>Start Cealing</value>
|
||||
</data>
|
||||
<data name="StartButtonToolTip" xml:space="preserve">
|
||||
<value>Click to launch the injected browser</value>
|
||||
<value>Click to launch an injected browser</value>
|
||||
</data>
|
||||
<data name="ThemesButtonDarkThemeContent" xml:space="preserve">
|
||||
<value>Light Theme</value>
|
||||
</data>
|
||||
<data name="ThemesButtonInheritThemeContent" xml:space="preserve">
|
||||
<value>Auto Theme</value>
|
||||
</data>
|
||||
<data name="ThemesButtonLightThemeContent" xml:space="preserve">
|
||||
<data name="ThemesButtonInheritThemeContent" xml:space="preserve">
|
||||
<value>Dark Theme</value>
|
||||
</data>
|
||||
<data name="ThemesButtonLightThemeContent" xml:space="preserve">
|
||||
<value>Light Theme</value>
|
||||
</data>
|
||||
<data name="ThemesButtonToolTip" xml:space="preserve">
|
||||
<value>Click to switch themes</value>
|
||||
</data>
|
||||
@ -181,9 +181,9 @@
|
||||
<value>Update Host</value>
|
||||
</data>
|
||||
<data name="UpdateHostButtonToolTip" xml:space="preserve">
|
||||
<value>Click to update Cealing Host</value>
|
||||
<value>Click to update host</value>
|
||||
</data>
|
||||
<data name="UpstreamUrlModeName" xml:space="preserve">
|
||||
<value>Upstream Url</value>
|
||||
<data name="UpstreamUrlSettingsModeName" xml:space="preserve">
|
||||
<value>Upstream URL</value>
|
||||
</data>
|
||||
</root>
|
@ -123,7 +123,7 @@
|
||||
<data name="AboutButtonToolTip" xml:space="preserve">
|
||||
<value>点击打开关于窗口</value>
|
||||
</data>
|
||||
<data name="BrowserPathModeName" xml:space="preserve">
|
||||
<data name="BrowserPathSettingsModeName" xml:space="preserve">
|
||||
<value>文件路径</value>
|
||||
</data>
|
||||
<data name="EditHostButtonContent" xml:space="preserve">
|
||||
@ -132,17 +132,17 @@
|
||||
<data name="EditHostButtonToolTip" xml:space="preserve">
|
||||
<value>点击编辑伪造规则</value>
|
||||
</data>
|
||||
<data name="ExtraArgsModeName" xml:space="preserve">
|
||||
<data name="ExtraArgsSettingsModeName" xml:space="preserve">
|
||||
<value>额外参数</value>
|
||||
</data>
|
||||
<data name="SettingsBoxBrowserPathPlaceHolder" xml:space="preserve">
|
||||
<value>填入任意以 Chromium 为内核的浏览器的路径</value>
|
||||
<data name="SettingsBoxBrowserPathToolTip" xml:space="preserve">
|
||||
<value>填入任意以 Chromium 为内核的浏览器路径</value>
|
||||
</data>
|
||||
<data name="SettingsBoxExtraArgsPlaceHolder" xml:space="preserve">
|
||||
<data name="SettingsBoxExtraArgsToolTip" xml:space="preserve">
|
||||
<value>填入任意额外的 Chromium 启动参数</value>
|
||||
</data>
|
||||
<data name="SettingsBoxUpstreamUrlPlaceHolder" xml:space="preserve">
|
||||
<value>填入任意上游伪造规则的链接</value>
|
||||
<data name="SettingsBoxUpstreamUrlToolTip" xml:space="preserve">
|
||||
<value>填入任意上游伪造规则链接</value>
|
||||
</data>
|
||||
<data name="SettingsFunctionButtonBrowserPathContent" xml:space="preserve">
|
||||
<value>浏览路径</value>
|
||||
@ -151,19 +151,19 @@
|
||||
<value>清除参数</value>
|
||||
</data>
|
||||
<data name="SettingsFunctionButtonToolTip" xml:space="preserve">
|
||||
<value>点击处理输入框内容</value>
|
||||
<value>点击处理设置内容</value>
|
||||
</data>
|
||||
<data name="SettingsFunctionButtonUpstreamUrlContent" xml:space="preserve">
|
||||
<value>重置链接</value>
|
||||
</data>
|
||||
<data name="SettingsModeButtonToolTip" xml:space="preserve">
|
||||
<value>点击切换输入框设置模式</value>
|
||||
<value>点击切换设置模式</value>
|
||||
</data>
|
||||
<data name="StartButtonContent" xml:space="preserve">
|
||||
<value>启动伪造</value>
|
||||
</data>
|
||||
<data name="StartButtonToolTip" xml:space="preserve">
|
||||
<value>点击启动伪造注入后的浏览器</value>
|
||||
<value>点击启动参数注入完成的浏览器</value>
|
||||
</data>
|
||||
<data name="ThemesButtonDarkThemeContent" xml:space="preserve">
|
||||
<value>跟随系统</value>
|
||||
@ -183,7 +183,7 @@
|
||||
<data name="UpdateHostButtonToolTip" xml:space="preserve">
|
||||
<value>点击更新伪造规则</value>
|
||||
</data>
|
||||
<data name="UpstreamUrlModeName" xml:space="preserve">
|
||||
<data name="UpstreamUrlSettingsModeName" xml:space="preserve">
|
||||
<value>上游链接</value>
|
||||
</data>
|
||||
</root>
|
@ -14,9 +14,9 @@ internal class MainSettingsBoxHintConv : IValueConverter
|
||||
|
||||
return settingsMode switch
|
||||
{
|
||||
MainConst.SettingsMode.BrowserPathMode => MainConst.BrowserPathModeName,
|
||||
MainConst.SettingsMode.UpstreamUrlMode => MainConst.UpstreamUrlModeName,
|
||||
MainConst.SettingsMode.ExtraArgsMode => MainConst.ExtraArgsModeName,
|
||||
MainConst.SettingsMode.BrowserPathMode => MainConst.BrowserPathSettingsModeName,
|
||||
MainConst.SettingsMode.UpstreamUrlMode => MainConst.UpstreamUrlSettingsModeName,
|
||||
MainConst.SettingsMode.ExtraArgsMode => MainConst.ExtraArgsSettingsModeName,
|
||||
_ => throw new UnreachableException()
|
||||
};
|
||||
}
|
||||
|
@ -14,9 +14,9 @@ internal class MainSettingsBoxToolTipConv : IValueConverter
|
||||
|
||||
return settingsMode switch
|
||||
{
|
||||
MainConst.SettingsMode.BrowserPathMode => MainConst.SettingsBoxBrowserPathPlaceHolder,
|
||||
MainConst.SettingsMode.UpstreamUrlMode => MainConst.SettingsBoxUpstreamUrlPlaceHolder,
|
||||
MainConst.SettingsMode.ExtraArgsMode => MainConst.SettingsBoxExtraArgsPlaceHolder,
|
||||
MainConst.SettingsMode.BrowserPathMode => MainConst.SettingsBoxBrowserPathToolTip,
|
||||
MainConst.SettingsMode.UpstreamUrlMode => MainConst.SettingsBoxUpstreamUrlToolTip,
|
||||
MainConst.SettingsMode.ExtraArgsMode => MainConst.SettingsBoxExtraArgsToolTip,
|
||||
_ => throw new UnreachableException()
|
||||
};
|
||||
}
|
||||
|
@ -13,9 +13,9 @@ internal class MainSettingsModeButtonContentConv : IValueConverter
|
||||
|
||||
return settingsMode switch
|
||||
{
|
||||
MainConst.SettingsMode.BrowserPathMode => MainConst.UpstreamUrlModeName,
|
||||
MainConst.SettingsMode.UpstreamUrlMode => MainConst.ExtraArgsModeName,
|
||||
MainConst.SettingsMode.ExtraArgsMode => MainConst.BrowserPathModeName,
|
||||
MainConst.SettingsMode.BrowserPathMode => MainConst.UpstreamUrlSettingsModeName,
|
||||
MainConst.SettingsMode.UpstreamUrlMode => MainConst.ExtraArgsSettingsModeName,
|
||||
MainConst.SettingsMode.ExtraArgsMode => MainConst.BrowserPathSettingsModeName,
|
||||
_ => throw new NotImplementedException()
|
||||
};
|
||||
}
|
||||
|
@ -13,8 +13,7 @@ internal class MainStartButtonIsEnabledConv : IMultiValueConverter
|
||||
string? browserPath = values[0] as string;
|
||||
string? extraArgs = values[1] as string;
|
||||
|
||||
return (File.Exists(browserPath) && Path.GetFileName(browserPath).ToLowerInvariant().EndsWith(".exe")) &&
|
||||
(extraArgs == MainConst.SettingsBoxExtraArgsPlaceHolder || MainConst.ExtraArgsRegex().IsMatch(extraArgs!));
|
||||
return File.Exists(browserPath) && Path.GetFileName(browserPath).ToLowerInvariant().EndsWith(".exe") && MainConst.ExtraArgsRegex().IsMatch(extraArgs!);
|
||||
}
|
||||
|
||||
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) => throw new NotImplementedException();
|
||||
|
@ -65,7 +65,7 @@
|
||||
</Binding>
|
||||
</md:HintAssist.Hint>
|
||||
</TextBox>
|
||||
<Button Grid.Column="2" Margin="5" d:Content="# #" ToolTip="{Binding Source={x:Static consts:MainConst.SettingsFunctionButtonToolTip}}"
|
||||
<Button Grid.Column="2" Margin="5" d:Content="# # # #" ToolTip="{Binding Source={x:Static consts:MainConst.SettingsFunctionButtonToolTip}}"
|
||||
Click="SettingsFunctionButton_Click">
|
||||
<Button.Content>
|
||||
<Binding Path="SettingsMode">
|
||||
|
Loading…
Reference in New Issue
Block a user