1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 05:45:22 +02:00

feat(system/upgrade): add get license dialog [EE-4743] (#8249)

This commit is contained in:
Chaim Lev-Ari 2023-01-19 15:31:49 +02:00 committed by GitHub
parent 5942f4ff58
commit 406ff8812c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 369 additions and 25 deletions

42
app/global.d.ts vendored
View file

@ -30,11 +30,53 @@ declare module 'axios-progress-bar' {
): void;
}
interface HubSpotCreateFormOptions {
/** User's portal ID */
portalId: string;
/** Unique ID of the form you wish to build */
formId: string;
region: string;
/**
* jQuery style selector specifying an existing element on the page into which the form will be placed once built.
*
* NOTE: If you're including multiple forms on the page, it is strongly recommended that you include a separate, specific target for each form.
*/
target: string;
/**
* Callback that executes after form is validated, just before the data is actually sent.
* This is for any logic that needs to execute during the submit.
* Any changes will not be validated.
* Takes the jQuery form object as the argument: onFormSubmit($form).
*
* Note: Performing a browser redirect in this callback is not recommended and could prevent the form submission
*/
onFormSubmit?: (form: JQuery<HTMLFormElement>) => void;
/**
* Callback when the data is actually sent.
* This allows you to perform an action when the submission is fully complete,
* such as displaying a confirmation or thank you message.
*/
onFormSubmitted?: (form: JQuery<HTMLFormElement>) => void;
/**
* Callback that executes after form is built, placed in the DOM, and validation has been initialized.
* This is perfect for any logic that needs to execute when the form is on the page.
*
* Takes the jQuery form object as the argument: onFormReady($form)
*/
onFormReady?: (form: JQuery<HTMLFormElement>) => void;
}
interface Window {
/**
* will be true if portainer is run as a Docker Desktop Extension
*/
ddExtension?: boolean;
hbspt?: {
forms: {
create: (options: HubSpotCreateFormOptions) => void;
};
};
}
declare module 'process' {