Sources/OrgstarWidgets/OrgstarWidgets.swift

e0794b27d2449358f323e3af8ad1f3e09f1b39df
orgstar/Sources/OrgstarWidgets/OrgstarWidgets.swift

29 lines · 814 bytes

 1import AppIntents
 2import OrgApp
 3import SwiftUI
 4import WidgetKit
 5
 6/// The agenda and habits on the Home Screen and the Lock Screen, capture and the clock in
 7/// Control Center, and the running clock's Live Activity; on the Mac, the agenda and habits on
 8/// the desktop and in Notification Center.
 9@main
10struct OrgstarWidgets: WidgetBundle {
11    var body: some Widget {
12        TodayWidget()
13        HabitsWidget()
14        UpNextWidget()
15        #if os(iOS)
16        CaptureWidget()
17        ClockActivityWidget()
18        CaptureControl()
19        ClockControl()
20        #endif
21    }
22}
23
24#if os(iOS)
25/// The App Intents OrgApp declares: the Live Activity's Clock Out button.
26struct OrgstarWidgetIntents: AppIntentsPackage {
27    static var includedPackages: [any AppIntentsPackage.Type] { [OrgAppIntents.self] }
28}
29#endif
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form