chore: adiciona .gitignore e commit.command

This commit is contained in:
João Henrique
2026-08-18 08:25:29 -04:00
parent 68958fde00
commit 8fca456ceb
215 changed files with 65752 additions and 0 deletions
+54
View File
@@ -0,0 +1,54 @@
import ComposableArchitecture
import Inject
import Sparkle
import AppKit
import SwiftUI
@main
struct HexApp: App {
static let appStore = Store(initialState: AppFeature.State()) {
AppFeature()
}
@NSApplicationDelegateAdaptor(HexAppDelegate.self) var appDelegate
var body: some Scene {
MenuBarExtra {
MenuBarCopyLastTranscriptButton()
Button("Settings…") {
appDelegate.presentSettingsView()
}.keyboardShortcut(",")
CheckForUpdatesView()
Divider()
Button("Quit Hex") {
NSApplication.shared.terminate(nil)
}.keyboardShortcut("q")
} label: {
if let image = NSImage(named: "HexIcon").map({
let ratio = $0.size.height / $0.size.width
$0.size.height = 18
$0.size.width = 18 / ratio
return $0
}) {
Image(nsImage: image)
} else {
Image(systemName: "hexagon")
}
}
.commands {
CommandGroup(after: .appInfo) {
CheckForUpdatesView()
Button("Settings…") {
appDelegate.presentSettingsView()
}.keyboardShortcut(",")
}
CommandGroup(replacing: .help) {}
}
}
}