1
0
Fork 0
mirror of https://github.com/proxysu/ProxySU.git synced 2025-04-13 22:20:55 +00:00

update ...

This commit is contained in:
autumn 2022-11-20 23:00:16 +08:00
parent 89af852433
commit 89649d136f
10 changed files with 236 additions and 212 deletions

View file

@ -6,6 +6,7 @@
xmlns:ui="http://schemas.modernwpf.com/2019" xmlns:ui="http://schemas.modernwpf.com/2019"
StartupUri="MainWindow.xaml"> StartupUri="MainWindow.xaml">
<Application.Resources> <Application.Resources>
<ResourceDictionary> <ResourceDictionary>
<ResourceDictionary.MergedDictionaries> <ResourceDictionary.MergedDictionaries>
<!--Language--> <!--Language-->

View file

@ -11,7 +11,7 @@ namespace ProxySuper.WPF
{ {
protected override void RegisterSetup() protected override void RegisterSetup()
{ {
this.RegisterSetupType<MvxWpfSetup<Core.App>>(); this.RegisterSetupType<Setup>();
} }
} }
} }

View file

@ -47,7 +47,7 @@
VerticalContentAlignment="Center" VerticalContentAlignment="Center"
Foreground="LimeGreen" Foreground="LimeGreen"
IsChecked="{Binding Path=Checked_VLESS_gRPC}"> IsChecked="{Binding Path=Checked_VLESS_gRPC}">
<Label Content="VLESS gRPC&#x0a;基于http2多路复用。" FontSize="13" Foreground="LimeGreen" /> <Label Content="{DynamicResource VlessRpcDesc}" FontSize="13" Foreground="LimeGreen" />
</CheckBox> </CheckBox>
<!--TCP--> <!--TCP-->
@ -99,25 +99,8 @@
<TextBox Text="{Binding Path=Domain}" Width="200" /> <TextBox Text="{Binding Path=Domain}" Width="200" />
</StackPanel> </StackPanel>
<!--Mask Domain-->
<StackPanel Margin="30,15,0,0"
Orientation="Horizontal">
<Label Content="{DynamicResource XrayMarkDomain}" Width="120" />
<TextBox Text="{Binding Path=MaskDomain}" Width="200" />
</StackPanel>
<StackPanel Margin="30,15,0,0"
Orientation="Horizontal">
<Label Content="{DynamicResource XrayWithTLS}" Width="120" />
<CheckBox IsChecked="{Binding Path=WithTLS}"
Content="{DynamicResource XrayWithTLSDesc}"
VerticalContentAlignment="Center"
VerticalAlignment="Center" />
</StackPanel>
<!--UUID--> <!--UUID-->
<StackPanel Margin="30,10,0,0" <StackPanel Margin="30,10,0,0" Orientation="Horizontal">
Orientation="Horizontal">
<Label Content="{DynamicResource XrayUUID}" Width="120" /> <Label Content="{DynamicResource XrayUUID}" Width="120" />
<TextBox Text="{Binding Path=UUID}" <TextBox Text="{Binding Path=UUID}"
@ -129,20 +112,46 @@
Content="{DynamicResource Random}" /> Content="{DynamicResource Random}" />
</StackPanel> </StackPanel>
<!--xray prot-->
<StackPanel Margin="30,15,0,0" Orientation="Horizontal">
<Label Content="{DynamicResource XrayPort}" Foreground="Gray" Width="120" />
<TextBox Text="{Binding Path=Port}" Width="120" />
<Label Content="{DynamicResource XrayPortDefault}" Foreground="Red" />
</StackPanel>
<Expander ExpandDirection="Down" Margin="30,10,0,0">
<Expander.Header>
<TextBlock Text="更多参数" FontWeight="Bold" />
</Expander.Header>
<Expander.Content>
<StackPanel>
<StackPanel Margin="0,15,0,0" Orientation="Horizontal">
<Label Content="{DynamicResource XrayWithTLS}" Width="120" />
<CheckBox IsChecked="{Binding Path=WithTLS}"
Content="{DynamicResource XrayWithTLSDesc}"
VerticalContentAlignment="Center"
VerticalAlignment="Center" />
</StackPanel>
<!--Mask Domain-->
<StackPanel Margin="0,15,0,0" Orientation="Horizontal">
<Label Content="{DynamicResource XrayMarkDomain}" Width="120" />
<TextBox Text="{Binding Path=MaskDomain}" Width="200" />
</StackPanel>
<!--WebSocket Path--> <!--WebSocket Path-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Orientation="Horizontal" Orientation="Horizontal"
Visibility="{ Visibility="{
Binding Path=Checked_VLESS_WS, Binding Path=Checked_VLESS_WS,
Converter={StaticResource VisibleConverter} Converter={StaticResource VisibleConverter}
}"> }">
<Label Content="{DynamicResource VlessWsPath}" Foreground="LimeGreen" Width="120" /> <Label Content="{DynamicResource VlessWsPath}" Foreground="LimeGreen" Width="120" />
<TextBox Text="{Binding Path=VLESS_WS_Path}" <TextBox Text="{Binding Path=VLESS_WS_Path}" Width="200" />
Width="200" />
</StackPanel> </StackPanel>
<!--seed--> <!--seed-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Orientation="Horizontal" Orientation="Horizontal"
Visibility="{ Visibility="{
Binding Path=Checked_VLESS_KCP, Binding Path=Checked_VLESS_KCP,
@ -153,7 +162,7 @@
</StackPanel> </StackPanel>
<!--kcp type--> <!--kcp type-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Visibility="{ Visibility="{
Binding Path=Checked_VLESS_KCP, Binding Path=Checked_VLESS_KCP,
Converter={StaticResource VisibleConverter} Converter={StaticResource VisibleConverter}
@ -167,7 +176,7 @@
</StackPanel> </StackPanel>
<!--kcp port--> <!--kcp port-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Visibility="{ Visibility="{
Binding Path=Checked_VLESS_KCP, Binding Path=Checked_VLESS_KCP,
Converter={StaticResource VisibleConverter} Converter={StaticResource VisibleConverter}
@ -178,7 +187,7 @@
</StackPanel> </StackPanel>
<!--gRPC Port--> <!--gRPC Port-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Orientation="Horizontal" Orientation="Horizontal"
Visibility="{ Visibility="{
Binding Path=Checked_VLESS_gRPC, Binding Path=Checked_VLESS_gRPC,
@ -188,7 +197,7 @@
<TextBox Text="{Binding Path=VLESS_gRPC_Port}" Width="200" /> <TextBox Text="{Binding Path=VLESS_gRPC_Port}" Width="200" />
</StackPanel> </StackPanel>
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Orientation="Horizontal" Orientation="Horizontal"
Visibility="{ Visibility="{
Binding Path=Checked_VLESS_gRPC, Binding Path=Checked_VLESS_gRPC,
@ -212,7 +221,7 @@
</StackPanel>--> </StackPanel>-->
<!--WebSocket Path--> <!--WebSocket Path-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Orientation="Horizontal" Orientation="Horizontal"
Visibility="{ Visibility="{
Binding Path=Checked_VMESS_WS, Binding Path=Checked_VMESS_WS,
@ -225,7 +234,7 @@
</StackPanel> </StackPanel>
<!--seed--> <!--seed-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Orientation="Horizontal" Orientation="Horizontal"
Visibility="{ Visibility="{
Binding Path=Checked_VMESS_KCP, Binding Path=Checked_VMESS_KCP,
@ -236,7 +245,7 @@
</StackPanel> </StackPanel>
<!--kcp type--> <!--kcp type-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Orientation="Horizontal" Orientation="Horizontal"
Visibility="{ Visibility="{
Binding Path=Checked_VMESS_KCP, Binding Path=Checked_VMESS_KCP,
@ -251,7 +260,7 @@
</StackPanel> </StackPanel>
<!--kcp port--> <!--kcp port-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Orientation="Horizontal" Orientation="Horizontal"
Visibility="{ Visibility="{
Binding Path=Checked_VMESS_KCP, Binding Path=Checked_VMESS_KCP,
@ -262,7 +271,7 @@
</StackPanel> </StackPanel>
<!--ss密码--> <!--ss密码-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Orientation="Horizontal" Orientation="Horizontal"
Visibility="{ Visibility="{
Binding Path=CheckedShadowSocks, Binding Path=CheckedShadowSocks,
@ -274,7 +283,7 @@
</StackPanel> </StackPanel>
<!--ss加密方式--> <!--ss加密方式-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Orientation="Horizontal" Orientation="Horizontal"
Visibility="{ Visibility="{
Binding Path=CheckedShadowSocks, Binding Path=CheckedShadowSocks,
@ -288,7 +297,7 @@
</StackPanel> </StackPanel>
<!--ss端口--> <!--ss端口-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Orientation="Horizontal" Orientation="Horizontal"
Visibility="{ Visibility="{
Binding Path=CheckedShadowSocks, Binding Path=CheckedShadowSocks,
@ -299,28 +308,18 @@
</StackPanel> </StackPanel>
<!--Trojan密码--> <!--Trojan密码-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="0,15,0,0"
Orientation="Horizontal" Orientation="Horizontal"
Visibility="{ Visibility="{
Binding Path=Checked_Trojan_TCP, Binding Path=Checked_Trojan_TCP,
Converter={StaticResource VisibleConverter} Converter={StaticResource VisibleConverter}
}"> }">
<Label Content="{DynamicResource TrojanPassword}" Foreground="CadetBlue" Width="120" /> <Label Content="{DynamicResource TrojanPassword}" Foreground="CadetBlue" Width="120" />
<TextBox Text="{Binding Path=TrojanPassword}" <TextBox Text="{Binding Path=TrojanPassword}" Width="200" />
Width="200" />
</StackPanel>
<!--xray prot-->
<StackPanel Margin="30,15,0,0"
Orientation="Horizontal">
<Label Content="{DynamicResource XrayPort}" Foreground="Gray" Width="120" />
<TextBox Text="{Binding Path=Port}" Width="120" />
<Label Content="{DynamicResource XrayPortDefault}" Foreground="Red" />
</StackPanel> </StackPanel>
<!--多用户--> <!--多用户-->
<StackPanel Margin="30,10,0,0" <StackPanel Margin="0,10,0,0" Orientation="Vertical">
Orientation="Vertical">
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<Label Content="{DynamicResource MultiUser}" Width="120" /> <Label Content="{DynamicResource MultiUser}" Width="120" />
@ -334,6 +333,9 @@
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
</Expander.Content>
</Expander>
</StackPanel>
</StackPanel> </StackPanel>
</UserControl> </UserControl>

View file

@ -136,6 +136,7 @@
<Compile Include="MainWindow.xaml.cs"> <Compile Include="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon> <DependentUpon>MainWindow.xaml</DependentUpon>
</Compile> </Compile>
<Compile Include="Setup.cs" />
<Compile Include="Views\Brook\BrookConfigView.xaml.cs"> <Compile Include="Views\Brook\BrookConfigView.xaml.cs">
<DependentUpon>BrookConfigView.xaml</DependentUpon> <DependentUpon>BrookConfigView.xaml</DependentUpon>
</Compile> </Compile>

View file

@ -67,9 +67,10 @@
<!--Xray--> <!--Xray-->
<sys:String x:Key="VlessXtlsDesc" xml:space="preserve">VLESS over TCP With XTLS&#x0a;Preferred</sys:String> <sys:String x:Key="VlessXtlsDesc" xml:space="preserve">VLESS over TCP With XTLS&#x0a;</sys:String>
<sys:String x:Key="VlessTcpDesc" xml:space="preserve">VLESS over TCP with TLS&#x0a;XTLS is Preferred</sys:String> <sys:String x:Key="VlessTcpDesc" xml:space="preserve">VLESS over TCP with TLS&#x0a;</sys:String>
<sys:String x:Key="VlessWsDesc" xml:space="preserve">VLESS over WS with TLS&#x0a;Support CDN</sys:String> <sys:String x:Key="VlessWsDesc" xml:space="preserve">VLESS over WS with TLS&#x0a;Support CDN</sys:String>
<sys:String x:Key="VlessRpcDesc" xml:space="preserve">VLESS gRPC&#x0a;http2multiplexing。</sys:String>
<sys:String x:Key="VlessKcpDesc" xml:space="preserve">VLESS mKCP&#x0a;low delaywithout Domain</sys:String> <sys:String x:Key="VlessKcpDesc" xml:space="preserve">VLESS mKCP&#x0a;low delaywithout Domain</sys:String>
<sys:String x:Key="VmessWsDesc" xml:space="preserve">VMESS over WS with TLS&#x0a;Support CDN</sys:String> <sys:String x:Key="VmessWsDesc" xml:space="preserve">VMESS over WS with TLS&#x0a;Support CDN</sys:String>
<sys:String x:Key="VmessKcpDesc" xml:space="preserve">VMESS mKCP&#x0a;low delaywithout Domian</sys:String> <sys:String x:Key="VmessKcpDesc" xml:space="preserve">VMESS mKCP&#x0a;low delaywithout Domian</sys:String>

View file

@ -65,9 +65,10 @@
<sys:String x:Key="ProxyTypeSocks5">Socks5</sys:String> <sys:String x:Key="ProxyTypeSocks5">Socks5</sys:String>
<!--Xray--> <!--Xray-->
<sys:String x:Key="VlessXtlsDesc" xml:space="preserve">VLESS Over TCP With XTLS&#x0a;性能數倍,首選方式。</sys:String> <sys:String x:Key="VlessXtlsDesc" xml:space="preserve">VLESS Over TCP With XTLS&#x0a;安全隱患,謹慎。</sys:String>
<sys:String x:Key="VlessTcpDesc" xml:space="preserve">VLESS over TCP with TLS&#x0a;仍推薦XTLS。</sys:String> <sys:String x:Key="VlessTcpDesc" xml:space="preserve">VLESS over TCP with TLS&#x0a;</sys:String>
<sys:String x:Key="VlessWsDesc" xml:space="preserve">VLESS over WS with TLS&#x0a;推薦支持CDN。</sys:String> <sys:String x:Key="VlessWsDesc" xml:space="preserve">VLESS over WS with TLS&#x0a;推薦支持CDN。</sys:String>
<sys:String x:Key="VlessRpcDesc" xml:space="preserve">VLESS gRPC&#x0a;基於http2多路複用。</sys:String>
<sys:String x:Key="VlessKcpDesc" xml:space="preserve">VLESS mKCP&#x0a;遊戲推薦,延遲低,免域名。</sys:String> <sys:String x:Key="VlessKcpDesc" xml:space="preserve">VLESS mKCP&#x0a;遊戲推薦,延遲低,免域名。</sys:String>
<sys:String x:Key="VmessWsDesc" xml:space="preserve">VMESS over WS with TLS&#x0a;推薦支持CDN。</sys:String> <sys:String x:Key="VmessWsDesc" xml:space="preserve">VMESS over WS with TLS&#x0a;推薦支持CDN。</sys:String>
<sys:String x:Key="VmessKcpDesc" xml:space="preserve">VMESS mKCP&#x0a;遊戲推薦,延遲低,免域名。</sys:String> <sys:String x:Key="VmessKcpDesc" xml:space="preserve">VMESS mKCP&#x0a;遊戲推薦,延遲低,免域名。</sys:String>

View file

@ -66,9 +66,10 @@
<sys:String x:Key="ProxyTypeSocks5">Socks5</sys:String> <sys:String x:Key="ProxyTypeSocks5">Socks5</sys:String>
<!--Xray--> <!--Xray-->
<sys:String x:Key="VlessXtlsDesc" xml:space="preserve">VLESS Over TCP With XTLS&#x0a;性能数倍,首选方式。</sys:String> <sys:String x:Key="VlessXtlsDesc" xml:space="preserve">VLESS Over TCP With XTLS&#x0a;安全隐患,谨慎。</sys:String>
<sys:String x:Key="VlessTcpDesc" xml:space="preserve">VLESS over TCP with TLS&#x0a;仍推荐XTLS。</sys:String> <sys:String x:Key="VlessTcpDesc" xml:space="preserve">VLESS over TCP with TLS&#x0a;推荐,主流。</sys:String>
<sys:String x:Key="VlessWsDesc" xml:space="preserve">VLESS over WS with TLS&#x0a;推荐支持CDN。</sys:String> <sys:String x:Key="VlessWsDesc" xml:space="preserve">VLESS over WS with TLS&#x0a;推荐支持CDN。</sys:String>
<sys:String x:Key="VlessRpcDesc" xml:space="preserve">VLESS gRPC&#x0a;基于http2多路复用。</sys:String>
<sys:String x:Key="VlessKcpDesc" xml:space="preserve">VLESS mKCP&#x0a;游戏推荐,延迟低,免域名。</sys:String> <sys:String x:Key="VlessKcpDesc" xml:space="preserve">VLESS mKCP&#x0a;游戏推荐,延迟低,免域名。</sys:String>
<sys:String x:Key="VmessWsDesc" xml:space="preserve">VMESS over WS with TLS&#x0a;推荐支持CDN。</sys:String> <sys:String x:Key="VmessWsDesc" xml:space="preserve">VMESS over WS with TLS&#x0a;推荐支持CDN。</sys:String>
<sys:String x:Key="VmessKcpDesc" xml:space="preserve">VMESS mKCP&#x0a;游戏推荐,延迟低,免域名。</sys:String> <sys:String x:Key="VmessKcpDesc" xml:space="preserve">VMESS mKCP&#x0a;游戏推荐,延迟低,免域名。</sys:String>

23
ProxySuper.WPF/Setup.cs Normal file
View file

@ -0,0 +1,23 @@
using Microsoft.Extensions.Logging;
using MvvmCross.Platforms.Wpf.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProxySuper.WPF
{
public class Setup : MvxWpfSetup<Core.App>
{
protected override ILoggerProvider CreateLogProvider()
{
return null;
}
protected override ILoggerFactory CreateLogFactory()
{
return null;
}
}
}

View file

@ -1,6 +1,8 @@
using MvvmCross; using MvvmCross;
using MvvmCross.Navigation; using MvvmCross.Navigation;
using MvvmCross.Platforms.Wpf.Presenters.Attributes;
using MvvmCross.Platforms.Wpf.Views; using MvvmCross.Platforms.Wpf.Views;
using MvvmCross.ViewModels;
using ProxySuper.Core.Models; using ProxySuper.Core.Models;
using ProxySuper.Core.ViewModels; using ProxySuper.Core.ViewModels;
using System; using System;
@ -10,9 +12,8 @@ using System.Windows;
namespace ProxySuper.WPF.Views namespace ProxySuper.WPF.Views
{ {
/// <summary> [MvxContentPresentation]
/// HomeView.xaml 的交互逻辑 [MvxViewFor(typeof(HomeViewModel))]
/// </summary>
public partial class HomeView : MvxWpfView public partial class HomeView : MvxWpfView
{ {

View file

@ -59,13 +59,6 @@
<ctrl:VLESS_gRPC_Control /> <ctrl:VLESS_gRPC_Control />
</TabItem> </TabItem>
<!--<TabItem Width="200" Height="40"
Tag="{x:Static models:XrayType.VMESS_TCP}"
IsEnabled="{Binding Checked_VMESS_TCP}"
Header="VMESS-TCP-TLS">
<ctrl:VMESS_TCP_TLS_Control />
</TabItem>-->
<TabItem Width="200" Height="40" <TabItem Width="200" Height="40"
Tag="{x:Static models:RayType.VMESS_WS}" Tag="{x:Static models:RayType.VMESS_WS}"
IsEnabled="{Binding Checked_VMESS_WS}" IsEnabled="{Binding Checked_VMESS_WS}"