diff --git a/ClashX Dashboard.xcodeproj/project.pbxproj b/ClashX Dashboard.xcodeproj/project.pbxproj index 938032a..023a167 100644 --- a/ClashX Dashboard.xcodeproj/project.pbxproj +++ b/ClashX Dashboard.xcodeproj/project.pbxproj @@ -11,6 +11,8 @@ 0192315F29DD4DCF00539EDD /* ClashX_DashboardApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0192315E29DD4DCF00539EDD /* ClashX_DashboardApp.swift */; }; 0192316329DD4DD100539EDD /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0192316229DD4DD100539EDD /* Assets.xcassets */; }; 0192316629DD4DD100539EDD /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0192316529DD4DD100539EDD /* Preview Assets.xcassets */; }; + 01A78B7F2A2B188F0058D1CA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 01A78B7E2A2B188E0058D1CA /* Main.storyboard */; }; + 01FE884C2A29BB590084902C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01FE884B2A29BB590084902C /* AppDelegate.swift */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -20,6 +22,8 @@ 0192316229DD4DD100539EDD /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 0192316529DD4DD100539EDD /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; 0192316729DD4DD100539EDD /* ClashX_Dashboard.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ClashX_Dashboard.entitlements; sourceTree = ""; }; + 01A78B7E2A2B188E0058D1CA /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; + 01FE884B2A29BB590084902C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -63,6 +67,8 @@ isa = PBXGroup; children = ( 0192315E29DD4DCF00539EDD /* ClashX_DashboardApp.swift */, + 01FE884B2A29BB590084902C /* AppDelegate.swift */, + 01A78B7E2A2B188E0058D1CA /* Main.storyboard */, 0192316229DD4DD100539EDD /* Assets.xcassets */, 0192316729DD4DD100539EDD /* ClashX_Dashboard.entitlements */, 0192316429DD4DD100539EDD /* Preview Content */, @@ -141,6 +147,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 01A78B7F2A2B188F0058D1CA /* Main.storyboard in Resources */, 0192316629DD4DD100539EDD /* Preview Assets.xcassets in Resources */, 0192316329DD4DD100539EDD /* Assets.xcassets in Resources */, ); @@ -153,6 +160,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 01FE884C2A29BB590084902C /* AppDelegate.swift in Sources */, 0192315F29DD4DCF00539EDD /* ClashX_DashboardApp.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -286,6 +294,8 @@ ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INFOPLIST_KEY_NSMainStoryboardFile = Main; + INFOPLIST_KEY_UILaunchStoryboardName = ""; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", @@ -312,6 +322,8 @@ ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INFOPLIST_KEY_NSMainStoryboardFile = Main; + INFOPLIST_KEY_UILaunchStoryboardName = ""; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", diff --git a/ClashX Dashboard/AppDelegate.swift b/ClashX Dashboard/AppDelegate.swift new file mode 100644 index 0000000..4b7a0f8 --- /dev/null +++ b/ClashX Dashboard/AppDelegate.swift @@ -0,0 +1,22 @@ +// +// AppDelegate.swift +// ClashX Dashboard +// +// + +import Cocoa +import ClashX_Dashboard_Kit + + +@main +class AppDelegate: NSObject, NSApplicationDelegate { + + func applicationDidFinishLaunching(_ notification: Notification) { + + } + + + func applicationWillTerminate(_ notification: Notification) { + + } +} diff --git a/ClashX Dashboard/ClashX_DashboardApp.swift b/ClashX Dashboard/ClashX_DashboardApp.swift index ca7e88c..f492a15 100644 --- a/ClashX Dashboard/ClashX_DashboardApp.swift +++ b/ClashX Dashboard/ClashX_DashboardApp.swift @@ -7,7 +7,7 @@ import SwiftUI import ClashX_Dashboard_Kit -@main +//@main struct ClashX_DashboardApp: App { var body: some Scene { WindowGroup { diff --git a/ClashX Dashboard/Main.storyboard b/ClashX Dashboard/Main.storyboard new file mode 100644 index 0000000..77e2634 --- /dev/null +++ b/ClashX Dashboard/Main.storyboard @@ -0,0 +1,684 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +