From 5a856ce99d679e6a936ce792a82d8b10b7d08106 Mon Sep 17 00:00:00 2001 From: Jerry Chen Date: Thu, 12 Sep 2024 14:05:12 -0500 Subject: [PATCH 01/18] com.apple.InterfaceBuilder.CocoaPlugin and com.apple.WebKit2IBPlugin version upgrades? --- Sky/Base.lproj/Main.storyboard | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sky/Base.lproj/Main.storyboard b/Sky/Base.lproj/Main.storyboard index 2283fd9..98c6854 100644 --- a/Sky/Base.lproj/Main.storyboard +++ b/Sky/Base.lproj/Main.storyboard @@ -1,8 +1,8 @@ - - + + From bc119cfc5bc9130154f205e7519c059da94f248d Mon Sep 17 00:00:00 2001 From: Jerry Chen Date: Fri, 13 Sep 2024 13:13:04 -0500 Subject: [PATCH 02/18] SkyUrls.messages points to \(root)/messages --- Sky/SkyUrls.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sky/SkyUrls.swift b/Sky/SkyUrls.swift index 6419e51..d1b015f 100644 --- a/Sky/SkyUrls.swift +++ b/Sky/SkyUrls.swift @@ -13,4 +13,5 @@ enum SkyUrls { static let notifications = "\(root)/notifications" static let moderation = "\(root)/moderation" static let settings = "\(root)/settings" + static let messages = "\(root)/messages" } From 8b70f9de980ba1ac2e3924b055af3eb0c8a54489 Mon Sep 17 00:00:00 2001 From: Jerry Chen Date: Fri, 13 Sep 2024 13:13:26 -0500 Subject: [PATCH 03/18] actionViewChat (unused) --- Sky/ViewController.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Sky/ViewController.swift b/Sky/ViewController.swift index c25517e..45eb637 100644 --- a/Sky/ViewController.swift +++ b/Sky/ViewController.swift @@ -174,6 +174,18 @@ class ViewController: NSViewController { ) } + @IBAction func actionViewChat(_ sender: Any?) { + let checkLoadNew = (webView.url!.absoluteString == SkyUrls.messages) + self.webView.evaluateJavaScript( + Scripts.navigateNavbar( + checkLoadNew: checkLoadNew, + label: "Chat", + index: -1, + url: SkyUrls.messages + ) + ) + } + @IBAction func actionViewProfile(_ sender: Any?) { self.webView.evaluateJavaScript( Scripts.navigateNavbar( From dec802eafaefa364cd5fb42588fe26384f429bcb Mon Sep 17 00:00:00 2001 From: Jerry Chen Date: Fri, 13 Sep 2024 13:25:14 -0500 Subject: [PATCH 04/18] Fix view section keybindings between full Desktop mode and non-Desktop mode --- Sky/Base.lproj/Main.storyboard | 24 ++++++++++++------------ Sky/WindowDelegate.swift | 28 +++++++++++++++++----------- 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/Sky/Base.lproj/Main.storyboard b/Sky/Base.lproj/Main.storyboard index 98c6854..40970b2 100644 --- a/Sky/Base.lproj/Main.storyboard +++ b/Sky/Base.lproj/Main.storyboard @@ -324,25 +324,25 @@ - + - + - + - + -