@datability/8ui 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -0
- package/dist/index.es.js +1853 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +8 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/types/App.d.ts +2 -0
- package/dist/types/components/blackdrop/index.d.ts +4 -0
- package/dist/types/components/blackdrop/index.type.d.ts +6 -0
- package/dist/types/components/button/index.d.ts +4 -0
- package/dist/types/components/button/index.type.d.ts +12 -0
- package/dist/types/components/chip/index.d.ts +4 -0
- package/dist/types/components/chip/index.type.d.ts +9 -0
- package/dist/types/components/context.d.ts +8 -0
- package/dist/types/components/divider/index.d.ts +3 -0
- package/dist/types/components/index.d.ts +41 -0
- package/dist/types/components/input/input-auto-complete/index.d.ts +4 -0
- package/dist/types/components/input/input-auto-complete/index.type.d.ts +14 -0
- package/dist/types/components/input/input-base/index.d.ts +4 -0
- package/dist/types/components/input/input-base/index.type.d.ts +11 -0
- package/dist/types/components/input/input-basic/index.d.ts +4 -0
- package/dist/types/components/input/input-basic/index.type.d.ts +10 -0
- package/dist/types/components/input/input-checkbox/index.d.ts +4 -0
- package/dist/types/components/input/input-checkbox/index.type.d.ts +13 -0
- package/dist/types/components/input/input-date/index.d.ts +22 -0
- package/dist/types/components/input/input-date/index.type.d.ts +13 -0
- package/dist/types/components/input/input-date-range/index.d.ts +4 -0
- package/dist/types/components/input/input-date-range/index.type.d.ts +13 -0
- package/dist/types/components/input/input-date-time/index.d.ts +4 -0
- package/dist/types/components/input/input-date-time/index.type.d.ts +13 -0
- package/dist/types/components/input/input-number/index.d.ts +4 -0
- package/dist/types/components/input/input-number/index.type.d.ts +12 -0
- package/dist/types/components/input/input-password/index.d.ts +4 -0
- package/dist/types/components/input/input-password/index.type.d.ts +10 -0
- package/dist/types/components/input/input-radio/index.d.ts +4 -0
- package/dist/types/components/input/input-radio/index.type.d.ts +14 -0
- package/dist/types/components/input/input-select/index.d.ts +4 -0
- package/dist/types/components/input/input-select/index.type.d.ts +16 -0
- package/dist/types/components/input/input-switch/index.d.ts +4 -0
- package/dist/types/components/input/input-switch/index.type.d.ts +6 -0
- package/dist/types/components/input/input-textarea/index.d.ts +4 -0
- package/dist/types/components/input/input-textarea/index.type.d.ts +12 -0
- package/dist/types/components/menu/index.d.ts +4 -0
- package/dist/types/components/menu/index.type.d.ts +11 -0
- package/dist/types/components/modal/index.d.ts +4 -0
- package/dist/types/components/modal/index.type.d.ts +7 -0
- package/dist/types/index.d.ts +41 -0
- package/dist/types/main.d.ts +1 -0
- package/package.json +5 -1
- package/.prettierrc +0 -8
- package/.vscode/extensions.json +0 -6
- package/declaration.d.ts +0 -10
- package/docker-compose.yml +0 -20
- package/eslint.config.js +0 -23
- package/index.html +0 -13
- package/src/App.tsx +0 -370
- package/src/components/blackdrop/index.tsx +0 -18
- package/src/components/blackdrop/index.type.ts +0 -7
- package/src/components/button/index.tsx +0 -44
- package/src/components/button/index.type.ts +0 -13
- package/src/components/chip/index.tsx +0 -39
- package/src/components/chip/index.type.ts +0 -12
- package/src/components/context.tsx +0 -26
- package/src/components/divider/index.tsx +0 -13
- package/src/components/index.ts +0 -62
- package/src/components/input/input-auto-complete/index.tsx +0 -140
- package/src/components/input/input-auto-complete/index.type.tsx +0 -13
- package/src/components/input/input-base/index.tsx +0 -39
- package/src/components/input/input-base/index.type.tsx +0 -13
- package/src/components/input/input-basic/index.tsx +0 -47
- package/src/components/input/input-basic/index.type.tsx +0 -8
- package/src/components/input/input-checkbox/index.tsx +0 -69
- package/src/components/input/input-checkbox/index.type.tsx +0 -11
- package/src/components/input/input-date/index.tsx +0 -354
- package/src/components/input/input-date/index.type.tsx +0 -11
- package/src/components/input/input-date-range/index.tsx +0 -284
- package/src/components/input/input-date-range/index.type.tsx +0 -11
- package/src/components/input/input-date-time/index.tsx +0 -367
- package/src/components/input/input-date-time/index.type.tsx +0 -11
- package/src/components/input/input-number/index.tsx +0 -118
- package/src/components/input/input-number/index.type.tsx +0 -11
- package/src/components/input/input-password/index.tsx +0 -60
- package/src/components/input/input-password/index.type.tsx +0 -8
- package/src/components/input/input-radio/index.tsx +0 -72
- package/src/components/input/input-radio/index.type.tsx +0 -12
- package/src/components/input/input-select/index.tsx +0 -113
- package/src/components/input/input-select/index.type.tsx +0 -15
- package/src/components/input/input-switch/index.tsx +0 -44
- package/src/components/input/input-switch/index.type.tsx +0 -4
- package/src/components/input/input-textarea/index.tsx +0 -48
- package/src/components/input/input-textarea/index.type.tsx +0 -10
- package/src/components/menu/index.tsx +0 -136
- package/src/components/menu/index.type.ts +0 -8
- package/src/components/modal/index.tsx +0 -99
- package/src/components/modal/index.type.tsx +0 -8
- package/src/index.scss +0 -44
- package/src/index.ts +0 -62
- package/src/logoDownload.svg +0 -3
- package/src/main.tsx +0 -9
- package/tsconfig.app.json +0 -28
- package/tsconfig.json +0 -42
- package/tsconfig.node.json +0 -29
- package/vite.config.d.ts +0 -2
- package/vite.config.ts +0 -35
- /package/{src → dist}/components/assets/closed.svg +0 -0
- /package/{src → dist}/components/assets/expand-arrow.svg +0 -0
- /package/{src → dist}/components/assets/visibility-off.svg +0 -0
- /package/{src → dist}/components/assets/visibility.svg +0 -0
- /package/{src → dist}/components/blackdrop/index.scss +0 -0
- /package/{src → dist}/components/button/index.scss +0 -0
- /package/{src → dist}/components/chip/index.scss +0 -0
- /package/{src → dist}/components/divider/index.scss +0 -0
- /package/{src → dist}/components/input/extend.scss +0 -0
- /package/{src → dist}/components/input/input-auto-complete/index.scss +0 -0
- /package/{src → dist}/components/input/input-base/index.scss +0 -0
- /package/{src → dist}/components/input/input-basic/index.scss +0 -0
- /package/{src → dist}/components/input/input-checkbox/index.scss +0 -0
- /package/{src → dist}/components/input/input-date/index.scss +0 -0
- /package/{src → dist}/components/input/input-date-range/index.scss +0 -0
- /package/{src → dist}/components/input/input-date-time/index.scss +0 -0
- /package/{src → dist}/components/input/input-number/index.scss +0 -0
- /package/{src → dist}/components/input/input-password/index.scss +0 -0
- /package/{src → dist}/components/input/input-radio/index.scss +0 -0
- /package/{src → dist}/components/input/input-select/index.scss +0 -0
- /package/{src → dist}/components/input/input-switch/index.scss +0 -0
- /package/{src → dist}/components/input/input-textarea/index.scss +0 -0
- /package/{src → dist}/components/menu/index.scss +0 -0
- /package/{src → dist}/components/modal/index.scss +0 -0
- /package/{public → dist}/vite.svg +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CSSProperties, ElementType } from 'react';
|
|
2
|
+
export type PropsButton = {
|
|
3
|
+
name?: string;
|
|
4
|
+
type?: "button" | "submit";
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
+
startIcon?: string | ElementType;
|
|
8
|
+
endIcon?: string | ElementType;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: CSSProperties;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type TContext = {
|
|
3
|
+
openModalCount: number;
|
|
4
|
+
setOpenModalCount?: React.Dispatch<React.SetStateAction<number>>;
|
|
5
|
+
};
|
|
6
|
+
export declare const DBuiContext: React.Context<TContext>;
|
|
7
|
+
export declare const DBuiProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { default as Button } from './button';
|
|
2
|
+
export type { PropsButton } from './button/index.type';
|
|
3
|
+
export { default as Blackdrop } from './blackdrop';
|
|
4
|
+
export type { PropsBlackdrop } from './blackdrop/index.type';
|
|
5
|
+
export { default as Chip } from './chip';
|
|
6
|
+
export type { PropsChip } from './chip/index.type';
|
|
7
|
+
export { default as Divider } from './divider';
|
|
8
|
+
export { default as Menu } from './menu';
|
|
9
|
+
export type { PropsMenu } from './menu/index.type';
|
|
10
|
+
export { default as Modal } from './modal';
|
|
11
|
+
export type { PropsModal } from './modal/index.type';
|
|
12
|
+
export { default as Input } from './input/input-basic';
|
|
13
|
+
export type { PropsInputBasic as PropsInput } from './input/input-basic/index.type';
|
|
14
|
+
export { default as InputNumber } from './input/input-number';
|
|
15
|
+
export type { PropsInputNumber } from './input/input-number/index.type';
|
|
16
|
+
export { default as InputDate } from './input/input-date';
|
|
17
|
+
export type { PropsInputDate } from './input/input-date/index.type';
|
|
18
|
+
export { default as InputDateRange } from './input/input-date-range';
|
|
19
|
+
export type { PropsInputDateRange } from './input/input-date-range/index.type';
|
|
20
|
+
export { default as InputDateTime } from './input/input-date-time';
|
|
21
|
+
export type { PropsInputDateTime } from './input/input-date-time/index.type';
|
|
22
|
+
export { default as InputPassword } from './input/input-password';
|
|
23
|
+
export type { PropsInputPassword } from './input/input-password/index.type';
|
|
24
|
+
export { default as InputRadio } from './input/input-radio';
|
|
25
|
+
export type { PropsInputRadio } from './input/input-radio/index.type';
|
|
26
|
+
export { default as InputCheckbox } from './input/input-checkbox';
|
|
27
|
+
export type { PropsInputCheckbox } from './input/input-checkbox/index.type';
|
|
28
|
+
export { default as InputTextarea } from './input/input-textarea';
|
|
29
|
+
export type { PropsInputTextarea } from './input/input-textarea/index.type';
|
|
30
|
+
export { default as InputSelect } from './input/input-select';
|
|
31
|
+
export type { PropsInputSelect } from './input/input-select/index.type';
|
|
32
|
+
export { default as InputAutoComplete } from './input/input-auto-complete';
|
|
33
|
+
export type { PropsInputAutoComplete } from './input/input-auto-complete/index.type';
|
|
34
|
+
export { default as InputSwitch } from './input/input-switch';
|
|
35
|
+
export type { PropsInputSwitch } from './input/input-switch/index.type';
|
|
36
|
+
export type TValueOption = string | number;
|
|
37
|
+
export type TOption = {
|
|
38
|
+
label: string;
|
|
39
|
+
value: TValueOption;
|
|
40
|
+
};
|
|
41
|
+
export { DBuiContext, DBuiProvider } from './context';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
import { TOption } from '../..';
|
|
3
|
+
export type PropsInputAutoComplete = {
|
|
4
|
+
control: Control<any>;
|
|
5
|
+
name: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
require?: boolean;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
options: TOption[];
|
|
12
|
+
isMultiple?: boolean;
|
|
13
|
+
isInModal?: boolean;
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { FieldError, FieldErrorsImpl, Merge } from 'react-hook-form';
|
|
3
|
+
export type PropsInputBase = {
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
require?: boolean;
|
|
7
|
+
fullWidth?: boolean;
|
|
8
|
+
children: JSX.Element | JSX.Element[];
|
|
9
|
+
isInvalid: boolean;
|
|
10
|
+
errorMessage: string | FieldError | Merge<FieldError, FieldErrorsImpl<any>> | undefined;
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
export type PropsInputCheckbox = {
|
|
3
|
+
control: Control<any>;
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
require?: boolean;
|
|
8
|
+
fullWidth?: boolean;
|
|
9
|
+
options: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string | number;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PropsInputDate } from './index.type';
|
|
3
|
+
declare const InputDate: React.FC<PropsInputDate>;
|
|
4
|
+
export default InputDate;
|
|
5
|
+
export declare function generateYearOptions(minYear?: number, maxYear?: number): {
|
|
6
|
+
label: string;
|
|
7
|
+
value: number;
|
|
8
|
+
}[];
|
|
9
|
+
export declare function generateMonthOptions(): {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
export declare function updateYearInDateString(dateStr: string, newYear: number): string;
|
|
14
|
+
export declare function updateMonthInDateString(dateStr: string, newMonth: string): string;
|
|
15
|
+
export declare function getYearInDateString(dateStr: string): number;
|
|
16
|
+
export declare function getMonthInDateString(dateStr: string): string;
|
|
17
|
+
export declare function getDayInDateString(dateStr: string): string;
|
|
18
|
+
export declare function getDaysInMonthWithWeekday(year: number, month: string): {
|
|
19
|
+
date: string;
|
|
20
|
+
weekday: string;
|
|
21
|
+
}[];
|
|
22
|
+
export declare function getDateNow(): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
export type PropsInputDate = {
|
|
3
|
+
control: Control<any>;
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
require?: boolean;
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
isHideClearIcon?: boolean;
|
|
11
|
+
minYear?: number;
|
|
12
|
+
maxYear?: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
export type PropsInputDateRange = {
|
|
3
|
+
control: Control<any>;
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
require?: boolean;
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
isHideClearIcon?: boolean;
|
|
11
|
+
minYear?: number;
|
|
12
|
+
maxYear?: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
export type PropsInputDateTime = {
|
|
3
|
+
control: Control<any>;
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
require?: boolean;
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
isHideClearIcon?: boolean;
|
|
11
|
+
minYear?: number;
|
|
12
|
+
maxYear?: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
export type PropsInputNumber = {
|
|
3
|
+
control: Control<any>;
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
require?: boolean;
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
isPhoneNumber?: boolean;
|
|
11
|
+
isAvailableMinus?: boolean;
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
export type PropsInputRadio = {
|
|
3
|
+
control: Control<any>;
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
require?: boolean;
|
|
8
|
+
fullWidth?: boolean;
|
|
9
|
+
isVertical?: boolean;
|
|
10
|
+
options: {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string | number;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
import { TOption, TValueOption } from '../..';
|
|
3
|
+
export type PropsInputSelect = {
|
|
4
|
+
control: Control<any>;
|
|
5
|
+
name: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
require?: boolean;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
options: TOption[];
|
|
12
|
+
onChange?: (value: TValueOption | null) => void;
|
|
13
|
+
value?: string;
|
|
14
|
+
isHideClearIcon?: boolean;
|
|
15
|
+
isInModal?: boolean;
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
export type PropsInputTextarea = {
|
|
3
|
+
control: Control<any>;
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
require?: boolean;
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
rows?: number;
|
|
11
|
+
cols?: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { default as Button } from './components/button';
|
|
2
|
+
export type { PropsButton } from './components/button/index.type';
|
|
3
|
+
export { default as Blackdrop } from './components/blackdrop';
|
|
4
|
+
export type { PropsBlackdrop } from './components/blackdrop/index.type';
|
|
5
|
+
export { default as Chip } from './components/chip';
|
|
6
|
+
export type { PropsChip } from './components/chip/index.type';
|
|
7
|
+
export { default as Divider } from './components/divider';
|
|
8
|
+
export { default as Menu } from './components/menu';
|
|
9
|
+
export type { PropsMenu } from './components/menu/index.type';
|
|
10
|
+
export { default as Modal } from './components/modal';
|
|
11
|
+
export type { PropsModal } from './components/modal/index.type';
|
|
12
|
+
export { default as Input } from './components/input/input-basic';
|
|
13
|
+
export type { PropsInputBasic as PropsInput } from './components/input/input-basic/index.type';
|
|
14
|
+
export { default as InputNumber } from './components/input/input-number';
|
|
15
|
+
export type { PropsInputNumber } from './components/input/input-number/index.type';
|
|
16
|
+
export { default as InputDate } from './components/input/input-date';
|
|
17
|
+
export type { PropsInputDate } from './components/input/input-date/index.type';
|
|
18
|
+
export { default as InputDateRange } from './components/input/input-date-range';
|
|
19
|
+
export type { PropsInputDateRange } from './components/input/input-date-range/index.type';
|
|
20
|
+
export { default as InputDateTime } from './components/input/input-date-time';
|
|
21
|
+
export type { PropsInputDateTime } from './components/input/input-date-time/index.type';
|
|
22
|
+
export { default as InputPassword } from './components/input/input-password';
|
|
23
|
+
export type { PropsInputPassword } from './components/input/input-password/index.type';
|
|
24
|
+
export { default as InputRadio } from './components/input/input-radio';
|
|
25
|
+
export type { PropsInputRadio } from './components/input/input-radio/index.type';
|
|
26
|
+
export { default as InputCheckbox } from './components/input/input-checkbox';
|
|
27
|
+
export type { PropsInputCheckbox } from './components/input/input-checkbox/index.type';
|
|
28
|
+
export { default as InputTextarea } from './components/input/input-textarea';
|
|
29
|
+
export type { PropsInputTextarea } from './components/input/input-textarea/index.type';
|
|
30
|
+
export { default as InputSelect } from './components/input/input-select';
|
|
31
|
+
export type { PropsInputSelect } from './components/input/input-select/index.type';
|
|
32
|
+
export { default as InputAutoComplete } from './components/input/input-auto-complete';
|
|
33
|
+
export type { PropsInputAutoComplete } from './components/input/input-auto-complete/index.type';
|
|
34
|
+
export { default as InputSwitch } from './components/input/input-switch';
|
|
35
|
+
export type { PropsInputSwitch } from './components/input/input-switch/index.type';
|
|
36
|
+
export type TValueOption = string | number;
|
|
37
|
+
export type TOption = {
|
|
38
|
+
label: string;
|
|
39
|
+
value: TValueOption;
|
|
40
|
+
};
|
|
41
|
+
export { DBuiContext, DBuiProvider } from './components/context';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datability/8ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"./dist/index.css": "./dist/index.css",
|
|
12
12
|
"./style.css": "./dist/index.css"
|
|
13
13
|
},
|
|
14
|
+
"style": "./dist/index.css",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
14
18
|
"scripts": {
|
|
15
19
|
"dev": "vite",
|
|
16
20
|
"build": "vite build && npm run cp-scss && npm run cp-scss-2 && npm run cp-svg",
|
package/.prettierrc
DELETED
package/.vscode/extensions.json
DELETED
package/declaration.d.ts
DELETED
package/docker-compose.yml
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
services:
|
|
2
|
-
frontend:
|
|
3
|
-
container_name: npm-fe
|
|
4
|
-
image: node:20
|
|
5
|
-
volumes:
|
|
6
|
-
- .:/workdir
|
|
7
|
-
working_dir: /workdir
|
|
8
|
-
ports:
|
|
9
|
-
- 4000:3000
|
|
10
|
-
# command: >
|
|
11
|
-
# bash -c "
|
|
12
|
-
# npm install &&
|
|
13
|
-
# npm run dev
|
|
14
|
-
# "
|
|
15
|
-
command: >
|
|
16
|
-
bash -c "
|
|
17
|
-
npm install &&
|
|
18
|
-
npm run build &&
|
|
19
|
-
npm run preview
|
|
20
|
-
"
|
package/eslint.config.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js'
|
|
2
|
-
import globals from 'globals'
|
|
3
|
-
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
|
-
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
|
-
import tseslint from 'typescript-eslint'
|
|
6
|
-
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
7
|
-
|
|
8
|
-
export default defineConfig([
|
|
9
|
-
globalIgnores(['dist']),
|
|
10
|
-
{
|
|
11
|
-
files: ['**/*.{ts,tsx}'],
|
|
12
|
-
extends: [
|
|
13
|
-
js.configs.recommended,
|
|
14
|
-
tseslint.configs.recommended,
|
|
15
|
-
reactHooks.configs.flat.recommended,
|
|
16
|
-
reactRefresh.configs.vite,
|
|
17
|
-
],
|
|
18
|
-
languageOptions: {
|
|
19
|
-
ecmaVersion: 2020,
|
|
20
|
-
globals: globals.browser,
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
])
|
package/index.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>8ui</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="root"></div>
|
|
11
|
-
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|