|
|
@ -7,6 +7,7 @@ import FirebaseDatabase |
|
|
|
|
|
|
|
|
|
|
|
protocol AppFeedbackWindowControllerDelegate: AnyObject { |
|
|
|
protocol AppFeedbackWindowControllerDelegate: AnyObject { |
|
|
|
func appFeedbackWindowWillClose() |
|
|
|
func appFeedbackWindowWillClose() |
|
|
|
|
|
|
|
func appFeedbackWindoEntryPoint() -> String |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
extension NSNib.Name { |
|
|
|
extension NSNib.Name { |
|
|
@ -31,6 +32,7 @@ enum AppFeedbackConstants { |
|
|
|
static let CLAppFeedbackDateProperty = "date" |
|
|
|
static let CLAppFeedbackDateProperty = "date" |
|
|
|
static let CLAppFeedbackUserPreferences = "Prefs" |
|
|
|
static let CLAppFeedbackUserPreferences = "Prefs" |
|
|
|
static let CLCaliforniaTimezoneIdentifier = "America/Los_Angeles" |
|
|
|
static let CLCaliforniaTimezoneIdentifier = "America/Los_Angeles" |
|
|
|
|
|
|
|
static let CLFeedbackEntryPoint = "entry_point" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class AppFeedbackWindowController: NSWindowController { |
|
|
|
class AppFeedbackWindowController: NSWindowController { |
|
|
@ -208,6 +210,7 @@ class AppFeedbackWindowController: NSWindowController { |
|
|
|
AppFeedbackConstants.CLClockerVersion: versionInfo, |
|
|
|
AppFeedbackConstants.CLClockerVersion: versionInfo, |
|
|
|
AppFeedbackConstants.CLAppFeedbackDateProperty: todaysDate(), |
|
|
|
AppFeedbackConstants.CLAppFeedbackDateProperty: todaysDate(), |
|
|
|
AppFeedbackConstants.CLAppFeedbackUserPreferences: generateUserPreferences(), |
|
|
|
AppFeedbackConstants.CLAppFeedbackUserPreferences: generateUserPreferences(), |
|
|
|
|
|
|
|
AppFeedbackConstants.CLFeedbackEntryPoint: appFeedbackWindowDelegate?.appFeedbackWindoEntryPoint() ?? "Error" |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|