⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
vform
/
types
/
View File Name :
Form.d.ts
import { AxiosInstance, AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios'; import Errors from './Errors'; interface Progress { total: number; loaded: number; percentage: number; } declare class Form { [key: string]: any; originalData: Record<string, any>; /** * Indicates if the form is sent to the server. */ busy: boolean; /** * Indicates if the response form the server was successful. */ successful: boolean; /** * Indicates if the response form the server was recently successful. */ recentlySuccessful: boolean; recentlySuccessfulTimeoutId: number | undefined; /** * The validation errors from the server. */ errors: Errors; /** * The upload progress object. */ progress: Progress | undefined; static axios: AxiosInstance; static routes: Record<string, string>; static errorMessage: string; static recentlySuccessfulTimeout: number; static ignore: string[]; /** * Create a new form instance. */ constructor(data?: Record<string, any>); /** * Create a new form instance. */ static make<T extends typeof Form, U>(this: T, augment?: U): InstanceType<T> & U; /** * Update the form data. */ update(data: Record<string, any>): void; /** * Fill the form data. */ fill(data?: Record<string, any>): void; /** * Get the form data. */ data(): Record<string, any>; /** * Get the form data keys. */ keys(): string[]; /** * Start processing the form. */ startProcessing(): void; /** * Finish processing the form. */ finishProcessing(): void; /** * Clear the form errors. */ clear(): void; /** * Reset the form data. */ reset(): void; /** * Submit the form via a GET request. */ get<T = any>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>; /** * Submit the form via a POST request. */ post<T = any>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>; /** * Submit the form via a PATCH request. */ patch<T = any>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>; /** * Submit the form via a PUT request. */ put<T = any>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>; /** * Submit the form via a DELETE request. */ delete<T = any>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>; /** * Submit the form data via an HTTP request. */ submit<T = any>(method: string, url: string, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>; /** * Handle the errors. */ handleErrors(error: AxiosError): void; /** * Extract the errors from the response object. */ extractErrors(response: AxiosResponse): Record<string, any>; /** * Handle the upload progress. */ handleUploadProgress(event: ProgressEvent): void; /** * @deprecated */ route(name: string, parameters?: any): string; /** * Clear errors on keydown. */ onKeydown(event: KeyboardEvent): void; } export default Form;