feat: app intents, siri & widgets + fix for auth (#5)

Reviewed-on: #5
Co-authored-by: Joshua Higgins <joshuafhiggins@gmail.com>
This commit was merged in pull request #5.
This commit is contained in:
joshuafhiggins authored and Joshua Higgins committed 2026-10-22 18:59:01 -04:00
1 parent 838a25b990
commit 7327ae9c68
45 files changed
+1390 -1205

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
import AppIntents
@available(iOS 18.0, *)
struct AppShortcuts: AppShortcutsProvider {
static var appShortcuts: [AppShortcut] {
AppShortcut(
intent: WakeDeviceIntent(),
phrases: [
"Wake a device in \(.applicationName)",
"Wake \(\.$device) in \(.applicationName)",
],
shortTitle: "Wake Device",
systemImageName: "bolt.fill"
)
AppShortcut(
intent: SleepDeviceIntent(),
phrases: [
"Sleep a device in \(.applicationName)",
"Sleep \(\.$device) in \(.applicationName)",
],
shortTitle: "Sleep Device",
systemImageName: "moon.fill"
)
AppShortcut(
intent: RestartDeviceIntent(),
phrases: [
"Restart a device in \(.applicationName)",
"Restart \(\.$device) in \(.applicationName)",
],
shortTitle: "Restart Device",
systemImageName: "arrow.clockwise"
)
AppShortcut(
intent: ShutdownDeviceIntent(),
phrases: [
"Shut down a device in \(.applicationName)",
"Shut down \(\.$device) in \(.applicationName)",
],
shortTitle: "Shut Down Device",
systemImageName: "power"
)
}
}