Bug/template and sandbox (#589)
* Enhance booking template functionality and add sandbox extraction checks * Implement Recapt integration for feedback submission and user identification * Add Recapt identification component and bank sync status chip; update crontab entries * Update .gitignore to ignore the entire scripts directory * Refactor Recapt integration: add loader component, update privacy policy, and enhance bank sync status messages * Fix .gitignore to correctly ignore the scripts directory
This commit is contained in:
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
type RecaptFeedbackPayload =
|
||||
| { message: string; rating?: number }
|
||||
| { widget: 'show' | 'hide' | 'open' | 'close'; position?: string }
|
||||
|
||||
type RecaptIdentifyPayload = {
|
||||
uid: string | undefined
|
||||
email?: string
|
||||
nickname?: string
|
||||
}
|
||||
|
||||
interface RecaptFn {
|
||||
(action: 'feedback', data: RecaptFeedbackPayload): void
|
||||
(action: 'identify', data: RecaptIdentifyPayload): void
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
Recapt?: unknown
|
||||
recapt?: RecaptFn
|
||||
}
|
||||
}
|
||||
|
||||
export {}
|
||||
Reference in New Issue
Block a user