Skip to content

Commit

Permalink
fix: update links & clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Pd233 committed Mar 3, 2024
1 parent 168f382 commit 2521ad1
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ private static class Strings

private static class DefaultProxies
{
public const string Github = "mirror.ghproxy.com";
public const string Github_LipInstaller = "https://mirror.ghproxy.com";
public const string Github_Lip = "https://github.bibk.top";
public const string GoProxy_Lip = "https://goproxy.cn";
}

void IPlugin.OnInitlalize(LipuiServices services)
Expand Down Expand Up @@ -64,7 +66,7 @@ void IPlugin.OnEnable(LipuiServices services)

confirmButton.Click += async (sender, _) =>
{
services.LipuiConfig.GeneralSettings.GithubProxy = DefaultProxies.Github;
services.LipuiConfig.GeneralSettings.GithubProxy = DefaultProxies.Github_LipInstaller;
var lip = await services.CreateLipConsoleAsync((sender as Button)!.XamlRoot, string.Empty);

if (lip is null)
Expand All @@ -78,14 +80,14 @@ void IPlugin.OnEnable(LipuiServices services)

cts.Cancel();

var cmd = LipCommand.CreateCommand() + LipCommand.Config + $"GitHubMirrorURL {DefaultProxies.Github}";

services.ShowInfoBar(
message: Strings.SettingUp,
severity: InfoBarSeverity.Informational,
interval: TimeSpan.FromSeconds(2));

await lip.Run(cmd);
await lip.Run(LipCommand.CreateCommand() + LipCommand.Config + $"GitHubMirrorURL {DefaultProxies.Github_Lip}");

await lip.Run(LipCommand.CreateCommand() + LipCommand.Config + $"GoModuleProxyURL {DefaultProxies.GoProxy_Lip}");

services.ShowInfoBar(
message: Strings.Complete,
Expand Down
13 changes: 0 additions & 13 deletions src/LipUI/BuiltInPlugins/LipPanel/LipPanelPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
Expand Down
1 change: 0 additions & 1 deletion src/LipUI/MainWindow/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Microsoft.UI.Dispatching;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Octokit;
using Windows.ApplicationModel.DataTransfer;
using Windows.Storage;
using Windows.System;
Expand Down
1 change: 0 additions & 1 deletion src/LipUI/MainWindow/MainWindowInfoBarController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using WinUIEx.Messaging;

namespace LipUI;

Expand Down
1 change: 0 additions & 1 deletion src/LipUI/Models/Config.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.WinUI.Helpers;
using LipUI.Pages.Settings;
using Microsoft.UI;
using Microsoft.UI.Xaml;
using System.ComponentModel;
Expand Down
1 change: 0 additions & 1 deletion src/LipUI/Models/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using System.Diagnostics.CodeAnalysis;
using System.Text.Encodings.Web;
using System.Text.Json;

namespace LipUI.Models;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using LipUI.Models;
using LipUI.Models.Lip;
using LipUI.Protocol;
using Microsoft.UI.Dispatching;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
Expand All @@ -12,9 +11,6 @@
using System.Diagnostics;
using System.Text.RegularExpressions;
using Windows.UI;
using static LipUI.Models.Lip.LipCommand;
using static LipUI.Models.Lip.LipCommandOption;
using static LipUI.Protocol.LipIndex.LipIndexData;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
Expand Down
13 changes: 0 additions & 13 deletions src/LipUI/Pages/Settings/LipSettingsView.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
Expand Down

0 comments on commit 2521ad1

Please sign in to comment.