2021-11-03 10:41:59 +00:00
|
|
|
declare module '*.jpg' {
|
|
|
|
export default '' as string;
|
|
|
|
}
|
|
|
|
declare module '*.png' {
|
|
|
|
export default '' as string;
|
|
|
|
}
|
|
|
|
|
2022-07-01 01:14:22 +00:00
|
|
|
declare module '*.svg' {
|
|
|
|
export default '' as string;
|
|
|
|
}
|
|
|
|
|
2022-06-28 07:42:42 +00:00
|
|
|
type SvgrComponent = React.StatelessComponent<React.SVGAttributes<SVGElement>>;
|
|
|
|
|
|
|
|
declare module '*.svg?c' {
|
|
|
|
const value: SvgrComponent;
|
|
|
|
export default value;
|
|
|
|
}
|
|
|
|
|
2021-11-03 10:41:59 +00:00
|
|
|
declare module '*.css';
|
2022-01-23 19:48:04 +00:00
|
|
|
|
|
|
|
declare module '@open-amt-cloud-toolkit/ui-toolkit-react/reactjs/src/kvm.bundle';
|
2022-02-01 17:38:45 +00:00
|
|
|
|
|
|
|
declare module 'axios-progress-bar' {
|
|
|
|
import { AxiosInstance } from 'axios';
|
|
|
|
import { NProgressOptions } from 'nprogress';
|
|
|
|
|
|
|
|
export function loadProgressBar(
|
|
|
|
config?: Partial<NProgressOptions>,
|
|
|
|
instance?: AxiosInstance
|
|
|
|
): void;
|
|
|
|
}
|
2022-04-19 01:10:42 +00:00
|
|
|
|
2023-01-19 13:31:49 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2022-04-19 01:10:42 +00:00
|
|
|
interface Window {
|
2022-06-23 07:25:56 +00:00
|
|
|
/**
|
|
|
|
* will be true if portainer is run as a Docker Desktop Extension
|
|
|
|
*/
|
|
|
|
ddExtension?: boolean;
|
2023-01-19 13:31:49 +00:00
|
|
|
hbspt?: {
|
|
|
|
forms: {
|
|
|
|
create: (options: HubSpotCreateFormOptions) => void;
|
|
|
|
};
|
|
|
|
};
|
2022-04-19 01:10:42 +00:00
|
|
|
}
|
2022-06-28 07:42:42 +00:00
|
|
|
|
|
|
|
declare module 'process' {
|
|
|
|
global {
|
|
|
|
namespace NodeJS {
|
|
|
|
interface ProcessEnv {
|
|
|
|
PORTAINER_EDITION: 'BE' | 'CE';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|