mirror of
https://github.com/proxysu/ProxySU.git
synced 2024-11-25 06:36:08 +03:00
merge
This commit is contained in:
parent
25f322d35c
commit
4d3ad778a6
@ -530,15 +530,15 @@ namespace ProxySU_Core.ViewModels.Developers
|
|||||||
{
|
{
|
||||||
if (CmdType == CmdType.Apt)
|
if (CmdType == CmdType.Apt)
|
||||||
{
|
{
|
||||||
return "echo y | apt-get update ";
|
return "apt-get update";
|
||||||
}
|
}
|
||||||
else if (CmdType == CmdType.Dnf)
|
else if (CmdType == CmdType.Dnf)
|
||||||
{
|
{
|
||||||
return "echo y | dnf update ";
|
return "dnf clean all;dnf makecache";
|
||||||
}
|
}
|
||||||
else if (CmdType == CmdType.Yum)
|
else if (CmdType == CmdType.Yum)
|
||||||
{
|
{
|
||||||
return "echo y | yum update ";
|
return "yum clean all;yum makecache";
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Exception("未识别的系统");
|
throw new Exception("未识别的系统");
|
||||||
|
@ -35,7 +35,9 @@ namespace ProxySU_Core.ViewModels.Developers
|
|||||||
EnsureSystemEnv();
|
EnsureSystemEnv();
|
||||||
this.InstallCertToXray();
|
this.InstallCertToXray();
|
||||||
RunCmd("systemctl restart xray");
|
RunCmd("systemctl restart xray");
|
||||||
|
WriteOutput("************");
|
||||||
WriteOutput("安装证书完成");
|
WriteOutput("安装证书完成");
|
||||||
|
WriteOutput("************");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UploadWeb(Stream stream)
|
public void UploadWeb(Stream stream)
|
||||||
@ -51,7 +53,9 @@ namespace ProxySU_Core.ViewModels.Developers
|
|||||||
RunCmd("unzip /usr/share/caddy/caddy.zip -d /usr/share/caddy");
|
RunCmd("unzip /usr/share/caddy/caddy.zip -d /usr/share/caddy");
|
||||||
RunCmd("chmod -R 777 /usr/share/caddy");
|
RunCmd("chmod -R 777 /usr/share/caddy");
|
||||||
RunCmd("systemctl restart caddy");
|
RunCmd("systemctl restart caddy");
|
||||||
|
WriteOutput("************");
|
||||||
WriteOutput("上传网站模板完成");
|
WriteOutput("上传网站模板完成");
|
||||||
|
WriteOutput("************");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ReinstallCaddy()
|
public void ReinstallCaddy()
|
||||||
@ -60,7 +64,9 @@ namespace ProxySU_Core.ViewModels.Developers
|
|||||||
EnsureSystemEnv();
|
EnsureSystemEnv();
|
||||||
InstallCaddy();
|
InstallCaddy();
|
||||||
UploadCaddyFile();
|
UploadCaddyFile();
|
||||||
|
WriteOutput("************");
|
||||||
WriteOutput("重装Caddy完成");
|
WriteOutput("重装Caddy完成");
|
||||||
|
WriteOutput("************");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@ namespace ProxySU_Core.Views
|
|||||||
public ClientInfoWindow(Record record)
|
public ClientInfoWindow(Record record)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
ResizeMode = ResizeMode.NoResize;
|
||||||
|
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
||||||
|
|
||||||
Settings = new XraySettingsViewModel(record.Settings);
|
Settings = new XraySettingsViewModel(record.Settings);
|
||||||
DataContext = this;
|
DataContext = this;
|
||||||
|
@ -108,9 +108,9 @@
|
|||||||
<TabItem
|
<TabItem
|
||||||
Width="160"
|
Width="160"
|
||||||
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
|
Style="{StaticResource MaterialDesignNavigationRailTabItem}"
|
||||||
Header="V2ray">
|
Header="其他功能">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBox />
|
<TextBlock Text="还不知道要点啥...看大家建议?" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel Margin="10,0,0,0">
|
<StackPanel Margin="10,0,0,0">
|
||||||
<Label Content="静态网页模版(感谢网友推荐)" />
|
<Label Content="静态网页模版(感谢网友推荐),将网站压缩包上传到服务区即可。" />
|
||||||
<TextBlock>
|
<TextBlock>
|
||||||
<Hyperlink NavigateUri="https://www.themezy.com" Click="OpenLink">Themezy</Hyperlink>
|
<Hyperlink NavigateUri="https://www.themezy.com" Click="OpenLink">Themezy</Hyperlink>
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
|
Loading…
Reference in New Issue
Block a user