(events: DebugEvent
[], timer = 1000): void => {
16 | if (process.env.NODE_ENV === "development" && isEnvBrowser()) {
17 | for (const event of events) {
18 | setTimeout(() => {
19 | window.dispatchEvent(
20 | new MessageEvent("message", {
21 | data: {
22 | action: event.action,
23 | data: event.data,
24 | },
25 | })
26 | );
27 | }, timer);
28 | }
29 | }
30 | };
--------------------------------------------------------------------------------
/data/client/marker.json:
--------------------------------------------------------------------------------
1 | {
2 | "double": false,
3 | "1": {
4 | "id": 27,
5 | "z": -0.99,
6 | "color1": [6, 34, 86, 100],
7 | "color2": [0, 0, 0, 100],
8 | "dir": { "x": 0.0, "y": 0.0, "z": 0.0 },
9 | "rot": { "x": 0.0, "y": 0.0, "z": 0.0 },
10 | "scale": { "x": 1.5, "y": 1.5, "z": 2.0 },
11 | "updown": false,
12 | "faceToCam": false,
13 | "p19": 2,
14 | "rotate": false,
15 | "textureDict": null,
16 | "textureName": null,
17 | "drawOnEnts": false
18 | },
19 | "2": {
20 | "id": 20,
21 | "z": 0.5,
22 | "color1": [6, 34, 86, 100],
23 | "color2": [255, 255, 255, 100],
24 | "dir": { "x": 0.0, "y": 0.0, "z": 0.0 },
25 | "rot": { "x": 0.0, "y": 180.0, "z": 0.0 },
26 | "scale": { "x": 0.5, "y": 0.5, "z": 0.2 },
27 | "updown": false,
28 | "faceToCam": false,
29 | "p19": 2,
30 | "rotate": true,
31 | "textureDict": null,
32 | "textureName": null,
33 | "drawOnEnts": false
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/modules/nui/client/config.lua:
--------------------------------------------------------------------------------
1 | ---@todo: more implementation about config interface from .cfg file
2 |
3 | -- local p DOCUMENTATION
2 |
3 | ---------
4 |
5 | supv_core v1.0 (work in progress!)
6 |
7 | :fr:
8 | - Ajouté ceci dans votre fichier `server.cfg` (Chaque paramètre est optionnel):
9 | ```cfg
10 | ## langage to use translate (default: fr)
11 | setr supv:locale fr
12 |
13 | ## config auto loader
14 | setr supv_core:auto_use:framework true
15 | setr supv_core:auto_use:inventory true
16 | setr supv_core:auto_use:mysql true
17 |
18 | ## config interface
19 | setr supv_core:interface:notification:simple {
20 | "container": {
21 | "width": "fit-content",
22 | "maxWidth": 400,
23 | "minWidth": 200,
24 | "height": "fit-content",
25 | "backgroundColor": "dark.4",
26 | "fontFamily": "Ubuntu"
27 | },
28 | "title": {
29 | "fontWeight": 500,
30 | "lineHeight": "normal",
31 | "color": "gray.6"
32 | },
33 | "description": {
34 | "fontSize": 12,
35 | "color": "gray.4",
36 | "fontFamily": "Ubuntu",
37 | "lineHeight": "normal"
38 | },
39 | "descriptionOnly": {
40 | "fontSize": 14,
41 | "color": "gray.2",
42 | "fontFamily": "Ubuntu",
43 | "lineHeight": "normal"
44 | }
45 | }
46 | ```
47 |
48 | :uk:
--------------------------------------------------------------------------------
/web/src/index.css:
--------------------------------------------------------------------------------
1 | @import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');
2 | @import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@100;200&display=swap');
3 | @import url('https://fonts.googleapis.com/css2?family=Yellowtail&display=swap');
4 | /* @import url('https://fonts.googleapis.com/css2?family=M+PLUS+1+Code:wght@100..700&family=Special+Elite&display=swap'); */
5 |
6 | html {
7 | color-scheme: normal !important;
8 | }
9 |
10 | body {
11 | background: none !important;
12 | user-select: none;
13 | overflow: hidden !important;
14 | font-family: 'Sarabun', sans-serif;
15 | /*font-family: 'Yellowtail', cursive;*/
16 | }
17 |
18 | /* .m-plus {
19 | font-family: "M PLUS 1 Code", monospace;
20 | //font-optical-sizing: auto;
21 | font-weight: 200;
22 | //font-style: normal;
23 | }
24 | */
25 |
26 | #root {
27 | height: 100%;
28 | }
29 |
30 | @keyframes NotifyScaleIn {
31 | from {
32 | opacity: 0;
33 | transform: scale(0.5);
34 | }
35 | to {
36 | opacity: 1;
37 | transform: scale(1);
38 | }
39 | }
40 |
41 | @keyframes NotifyScaleOut {
42 | 0% {
43 | opacity: 1;
44 | transform: translateY(0) rotateX(0) scale(1);
45 | }
46 | 50% {
47 | opacity: 0.1;
48 | transform: translateY(300px) rotateX(-15deg) scale(0.5);
49 | }
50 | 100% {
51 | opacity: 0;
52 | transform: translateY(600px) rotateX(-30deg) scale(0);
53 | }
54 | }
--------------------------------------------------------------------------------
/web/src/features/modal/components/custom/_number.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { NumberInput } from '@mantine/core';
3 | import type { _NumberInputProps } from '../../../../typings';
4 |
5 | export const NumberField: React.FC<_NumberInputProps> = ({
6 | index,
7 | label,
8 | data,
9 | onChanged,
10 | props,
11 | }) => {
12 | return (
13 | <>
14 |