mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
chore(web): add prettier and format
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
||||
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
||||
|
||||
export interface Option {
|
||||
menu?: string;
|
||||
@@ -8,10 +8,7 @@ export interface Option {
|
||||
image?: string;
|
||||
icon?: IconProp;
|
||||
iconColor?: string;
|
||||
metadata?:
|
||||
| string[]
|
||||
| { [key: string]: any }
|
||||
| { label: string; value: any }[];
|
||||
metadata?: string[] | { [key: string]: any } | { label: string; value: any }[];
|
||||
event?: string;
|
||||
serverEvent?: string;
|
||||
args?: any;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
||||
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
||||
|
||||
export interface IInput {
|
||||
type: "input",
|
||||
type: 'input';
|
||||
label: string;
|
||||
placeholder?: string;
|
||||
default?: string;
|
||||
@@ -10,27 +10,29 @@ export interface IInput {
|
||||
}
|
||||
|
||||
export interface ICheckbox {
|
||||
type: "checkbox",
|
||||
type: 'checkbox';
|
||||
label: string;
|
||||
checked?: boolean;
|
||||
}
|
||||
|
||||
export interface ISelect {
|
||||
type: "select",
|
||||
type: 'select';
|
||||
label: string;
|
||||
default?: string;
|
||||
options?: { value: string; label?: string }[];
|
||||
}
|
||||
|
||||
export interface INumber {
|
||||
type: "number",
|
||||
type: 'number';
|
||||
label: string;
|
||||
placeholder?: string;
|
||||
default?: number;
|
||||
min?: number;
|
||||
max?: number;
|
||||
}
|
||||
|
||||
export interface ISlider {
|
||||
type: "slider",
|
||||
type: 'slider';
|
||||
label: string;
|
||||
default?: number;
|
||||
min?: number;
|
||||
|
||||
Reference in New Issue
Block a user