tgui-core 1.1.7 → 1.1.9
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/lib/common/assets.ts +38 -0
- package/lib/common/collections.ts +27 -0
- package/lib/common/color.ts +88 -0
- package/lib/common/constants.ts +349 -0
- package/lib/common/events.ts +262 -0
- package/{dist/common/exhaustive.d.ts → lib/common/exhaustive.ts} +3 -1
- package/lib/common/format.ts +167 -0
- package/{dist/common/fp.d.ts → lib/common/fp.ts} +16 -2
- package/lib/common/hotkeys.ts +207 -0
- package/lib/common/http.ts +16 -0
- package/lib/common/keycodes.ts +86 -0
- package/{dist/common/keys.d.ts → lib/common/keys.ts} +24 -21
- package/lib/common/math.ts +76 -0
- package/lib/common/perf.ts +72 -0
- package/lib/common/random.ts +32 -0
- package/lib/common/react.ts +59 -0
- package/lib/common/redux.ts +187 -0
- package/lib/common/storage.ts +207 -0
- package/lib/common/string.ts +169 -0
- package/lib/common/timer.ts +63 -0
- package/lib/common/type-utils.ts +41 -0
- package/lib/common/types.d.ts +12 -0
- package/lib/common/uuid.ts +18 -0
- package/lib/components/AnimatedNumber.tsx +180 -0
- package/lib/components/Autofocus.tsx +23 -0
- package/lib/components/Blink.tsx +91 -0
- package/lib/components/BlockQuote.tsx +9 -0
- package/lib/components/BodyZoneSelector.tsx +149 -0
- package/lib/components/Box.tsx +252 -0
- package/lib/components/Button.tsx +425 -0
- package/lib/components/ByondUi.jsx +110 -0
- package/lib/components/Chart.tsx +155 -0
- package/lib/components/Collapsible.tsx +43 -0
- package/lib/components/ColorBox.tsx +29 -0
- package/lib/components/Dialog.tsx +81 -0
- package/lib/components/Dimmer.tsx +13 -0
- package/lib/components/Divider.tsx +20 -0
- package/lib/components/DmIcon.tsx +86 -0
- package/lib/components/DraggableControl.jsx +276 -0
- package/lib/components/Dropdown.tsx +246 -0
- package/lib/components/FakeTerminal.jsx +52 -0
- package/lib/components/FitText.tsx +99 -0
- package/lib/components/Flex.tsx +159 -0
- package/lib/components/Icon.tsx +95 -0
- package/lib/components/Image.tsx +54 -0
- package/lib/components/InfinitePlane.jsx +192 -0
- package/lib/components/Input.tsx +176 -0
- package/lib/components/KeyListener.tsx +40 -0
- package/lib/components/Knob.tsx +178 -0
- package/lib/components/LabeledControls.tsx +44 -0
- package/lib/components/LabeledList.tsx +154 -0
- package/lib/components/MenuBar.tsx +228 -0
- package/lib/components/Modal.tsx +23 -0
- package/lib/components/NoticeBox.tsx +45 -0
- package/lib/components/NumberInput.tsx +328 -0
- package/lib/components/Popper.tsx +100 -0
- package/lib/components/ProgressBar.tsx +105 -0
- package/lib/components/RestrictedInput.jsx +301 -0
- package/lib/components/RoundGauge.tsx +180 -0
- package/lib/components/Section.tsx +120 -0
- package/lib/components/Slider.tsx +169 -0
- package/lib/components/Stack.tsx +96 -0
- package/lib/components/StyleableSection.tsx +33 -0
- package/lib/components/Table.tsx +84 -0
- package/lib/components/Tabs.tsx +89 -0
- package/lib/components/TextArea.tsx +182 -0
- package/lib/components/TimeDisplay.jsx +64 -0
- package/lib/components/Tooltip.tsx +152 -0
- package/lib/components/TrackOutsideClicks.tsx +35 -0
- package/lib/components/VirtualList.tsx +69 -0
- package/lib/styles/atomic/candystripe.scss +8 -0
- package/lib/styles/atomic/centered-image.scss +7 -0
- package/lib/styles/atomic/color.scss +21 -0
- package/lib/styles/atomic/debug-layout.scss +17 -0
- package/lib/styles/atomic/fit-text.scss +14 -0
- package/lib/styles/atomic/links.scss +12 -0
- package/lib/styles/atomic/outline.scss +47 -0
- package/lib/styles/atomic/text.scss +44 -0
- package/lib/styles/base.scss +32 -0
- package/lib/styles/colors.scss +92 -0
- package/lib/styles/components/BlockQuote.module.scss +20 -0
- package/lib/styles/components/BlockQuote.module.scss.d.ts +4 -0
- package/lib/styles/components/Button.module.scss +157 -0
- package/lib/styles/components/Button.module.scss.d.ts +46 -0
- package/lib/styles/components/ColorBox.module.scss +12 -0
- package/lib/styles/components/ColorBox.module.scss.d.ts +4 -0
- package/lib/styles/components/Dialog.module.scss +60 -0
- package/lib/styles/components/Dialog.module.scss.d.ts +10 -0
- package/lib/styles/components/Dimmer.module.scss +22 -0
- package/lib/styles/components/Dimmer.module.scss.d.ts +4 -0
- package/lib/styles/components/Divider.module.scss +27 -0
- package/lib/styles/components/Divider.module.scss.d.ts +6 -0
- package/lib/styles/components/Dropdown.scss +72 -0
- package/lib/styles/components/Flex.module.scss +13 -0
- package/lib/styles/components/Flex.module.scss.d.ts +5 -0
- package/lib/styles/components/Icon.module.scss +25 -0
- package/lib/styles/components/Icon.module.scss.d.ts +5 -0
- package/lib/styles/components/Input.module.scss +64 -0
- package/lib/styles/components/Input.module.scss.d.ts +8 -0
- package/lib/styles/components/Knob.module.scss +131 -0
- package/lib/styles/components/Knob.module.scss.d.ts +33 -0
- package/lib/styles/components/LabeledList.module.scss +49 -0
- package/lib/styles/components/LabeledList.module.scss.d.ts +8 -0
- package/lib/styles/components/MenuBar.module.scss +75 -0
- package/lib/styles/components/MenuBar.module.scss.d.ts +14 -0
- package/lib/styles/components/Modal.module.scss +14 -0
- package/lib/styles/components/Modal.module.scss.d.ts +4 -0
- package/lib/styles/components/NoticeBox.module.scss +65 -0
- package/lib/styles/components/NoticeBox.module.scss.d.ts +27 -0
- package/lib/styles/components/NumberInput.module.scss +71 -0
- package/lib/styles/components/NumberInput.module.scss.d.ts +9 -0
- package/lib/styles/components/ProgressBar.module.scss +63 -0
- package/lib/styles/components/ProgressBar.module.scss.d.ts +27 -0
- package/lib/styles/components/RoundGauge.module.scss +85 -0
- package/lib/styles/components/RoundGauge.module.scss.d.ts +49 -0
- package/lib/styles/components/Section.module.scss +130 -0
- package/lib/styles/components/Section.module.scss.d.ts +13 -0
- package/lib/styles/components/Slider.module.scss +54 -0
- package/lib/styles/components/Slider.module.scss.d.ts +8 -0
- package/lib/styles/components/Stack.module.scss +60 -0
- package/lib/styles/components/Stack.module.scss.d.ts +12 -0
- package/lib/styles/components/Table.module.scss +44 -0
- package/lib/styles/components/Table.module.scss.d.ts +10 -0
- package/lib/styles/components/Tabs.module.scss +144 -0
- package/lib/styles/components/Tabs.module.scss.d.ts +35 -0
- package/lib/styles/components/TextArea.module.scss +86 -0
- package/lib/styles/components/TextArea.module.scss.d.ts +11 -0
- package/lib/styles/components/Tooltip.module.scss +24 -0
- package/lib/styles/components/Tooltip.module.scss.d.ts +4 -0
- package/lib/styles/functions.scss +79 -0
- package/lib/styles/input.scss +9 -0
- package/lib/styles/main.scss +20 -0
- package/lib/styles/reset.scss +68 -0
- package/package.json +6 -6
- package/dist/ProgressBar.module-BkAFfFy0.js +0 -29
- package/dist/Section.module-CLVHJ4yA.js +0 -15
- package/dist/assets/BlockQuote.css +0 -1
- package/dist/assets/Button.css +0 -1
- package/dist/assets/ColorBox.css +0 -1
- package/dist/assets/Dialog.css +0 -1
- package/dist/assets/Dimmer.css +0 -1
- package/dist/assets/Divider.css +0 -1
- package/dist/assets/Flex.css +0 -1
- package/dist/assets/Icon.css +0 -6
- package/dist/assets/Input.css +0 -1
- package/dist/assets/Knob.css +0 -1
- package/dist/assets/LabeledList.css +0 -1
- package/dist/assets/MenuBar.css +0 -1
- package/dist/assets/Modal.css +0 -1
- package/dist/assets/NoticeBox.css +0 -1
- package/dist/assets/NumberInput.css +0 -1
- package/dist/assets/ProgressBar.css +0 -1
- package/dist/assets/RoundGauge.css +0 -1
- package/dist/assets/Section.css +0 -1
- package/dist/assets/Slider.css +0 -1
- package/dist/assets/Stack.css +0 -1
- package/dist/assets/Table.css +0 -1
- package/dist/assets/Tabs.css +0 -1
- package/dist/assets/TextArea.css +0 -1
- package/dist/assets/Tooltip.css +0 -1
- package/dist/common/assets.d.ts +0 -4
- package/dist/common/assets.js +0 -21
- package/dist/common/collections.d.ts +0 -10
- package/dist/common/collections.js +0 -15
- package/dist/common/color.d.ts +0 -25
- package/dist/common/color.js +0 -69
- package/dist/common/constants.d.ts +0 -102
- package/dist/common/constants.js +0 -312
- package/dist/common/events.d.ts +0 -33
- package/dist/common/events.js +0 -147
- package/dist/common/exhaustive.js +0 -6
- package/dist/common/format.d.ts +0 -11
- package/dist/common/format.js +0 -114
- package/dist/common/fp.js +0 -9
- package/dist/common/hotkeys.d.ts +0 -25
- package/dist/common/hotkeys.js +0 -112
- package/dist/common/http.d.ts +0 -4
- package/dist/common/http.js +0 -10
- package/dist/common/keycodes.d.ts +0 -85
- package/dist/common/keycodes.js +0 -88
- package/dist/common/keys.js +0 -8
- package/dist/common/math.d.ts +0 -39
- package/dist/common/math.js +0 -41
- package/dist/common/perf.d.ts +0 -24
- package/dist/common/perf.js +0 -33
- package/dist/common/random.d.ts +0 -16
- package/dist/common/random.js +0 -18
- package/dist/common/react.d.ts +0 -23
- package/dist/common/react.js +0 -30
- package/dist/common/redux.d.ts +0 -64
- package/dist/common/redux.js +0 -72
- package/dist/common/storage.js +0 -124
- package/dist/common/string.d.ts +0 -65
- package/dist/common/string.js +0 -83
- package/dist/common/timer.d.ts +0 -18
- package/dist/common/timer.js +0 -28
- package/dist/common/type-utils.d.ts +0 -9
- package/dist/common/type-utils.js +0 -25
- package/dist/common/uuid.d.ts +0 -9
- package/dist/common/uuid.js +0 -10
- package/dist/components/AnimatedNumber.d.ts +0 -60
- package/dist/components/AnimatedNumber.js +0 -76
- package/dist/components/Autofocus.d.ts +0 -4
- package/dist/components/Autofocus.js +0 -17
- package/dist/components/Blink.d.ts +0 -26
- package/dist/components/Blink.js +0 -56
- package/dist/components/BlockQuote.d.ts +0 -3
- package/dist/components/BlockQuote.js +0 -13
- package/dist/components/BodyZoneSelector.d.ts +0 -28
- package/dist/components/BodyZoneSelector.js +0 -115
- package/dist/components/Box.d.ts +0 -91
- package/dist/components/Box.js +0 -133
- package/dist/components/Button.d.ts +0 -93
- package/dist/components/Button.js +0 -298
- package/dist/components/ByondUi.js +0 -73
- package/dist/components/Chart.d.ts +0 -28
- package/dist/components/Chart.js +0 -95
- package/dist/components/Collapsible.d.ts +0 -15
- package/dist/components/Collapsible.js +0 -27
- package/dist/components/ColorBox.d.ts +0 -8
- package/dist/components/ColorBox.js +0 -24
- package/dist/components/Dialog.d.ts +0 -24
- package/dist/components/Dialog.js +0 -67
- package/dist/components/Dimmer.d.ts +0 -3
- package/dist/components/Dimmer.js +0 -13
- package/dist/components/Divider.d.ts +0 -6
- package/dist/components/Divider.js +0 -22
- package/dist/components/DmIcon.d.ts +0 -31
- package/dist/components/DmIcon.js +0 -31
- package/dist/components/DraggableControl.js +0 -176
- package/dist/components/Dropdown.d.ts +0 -48
- package/dist/components/Dropdown.js +0 -152
- package/dist/components/FakeTerminal.js +0 -38
- package/dist/components/FitText.d.ts +0 -22
- package/dist/components/FitText.js +0 -63
- package/dist/components/Flex.d.ts +0 -93
- package/dist/components/Flex.js +0 -72
- package/dist/components/Icon.d.ts +0 -30
- package/dist/components/Icon.js +0 -51
- package/dist/components/Image.d.ts +0 -14
- package/dist/components/Image.js +0 -35
- package/dist/components/InfinitePlane.js +0 -139
- package/dist/components/Input.d.ts +0 -61
- package/dist/components/Input.js +0 -89
- package/dist/components/KeyListener.d.ts +0 -15
- package/dist/components/KeyListener.js +0 -23
- package/dist/components/Knob.d.ts +0 -49
- package/dist/components/Knob.js +0 -162
- package/dist/components/LabeledControls.d.ts +0 -11
- package/dist/components/LabeledControls.js +0 -39
- package/dist/components/LabeledList.d.ts +0 -57
- package/dist/components/LabeledList.js +0 -94
- package/dist/components/MenuBar.d.ts +0 -28
- package/dist/components/MenuBar.js +0 -174
- package/dist/components/Modal.d.ts +0 -3
- package/dist/components/Modal.js +0 -25
- package/dist/components/NoticeBox.d.ts +0 -20
- package/dist/components/NoticeBox.js +0 -49
- package/dist/components/NumberInput.d.ts +0 -45
- package/dist/components/NumberInput.js +0 -221
- package/dist/components/Popper.d.ts +0 -27
- package/dist/components/Popper.js +0 -177
- package/dist/components/ProgressBar.d.ts +0 -46
- package/dist/components/ProgressBar.js +0 -37
- package/dist/components/RestrictedInput.js +0 -155
- package/dist/components/RoundGauge.d.ts +0 -53
- package/dist/components/RoundGauge.js +0 -147
- package/dist/components/Section.d.ts +0 -63
- package/dist/components/Section.js +0 -62
- package/dist/components/Slider.d.ts +0 -46
- package/dist/components/Slider.js +0 -124
- package/dist/components/Stack.d.ts +0 -27
- package/dist/components/Stack.js +0 -67
- package/dist/components/StyleableSection.d.ts +0 -11
- package/dist/components/StyleableSection.js +0 -16
- package/dist/components/Table.d.ts +0 -29
- package/dist/components/Table.js +0 -67
- package/dist/components/Tabs.d.ts +0 -23
- package/dist/components/Tabs.js +0 -89
- package/dist/components/TextArea.d.ts +0 -39
- package/dist/components/TextArea.js +0 -118
- package/dist/components/TimeDisplay.js +0 -34
- package/dist/components/Tooltip.d.ts +0 -29
- package/dist/components/Tooltip.js +0 -83
- package/dist/components/TrackOutsideClicks.d.ts +0 -13
- package/dist/components/TrackOutsideClicks.js +0 -24
- package/dist/components/VirtualList.d.ts +0 -8
- package/dist/components/VirtualList.js +0 -34
- package/dist/components/index.js +0 -92
- package/dist/popper-CiqSDJTE.js +0 -906
- /package/{dist/components/index.d.ts → lib/components/index.ts} +0 -0
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
type Gas = {
|
|
2
|
-
color: string;
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
name: string;
|
|
6
|
-
path: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const UI_INTERACTIVE = 2;
|
|
9
|
-
export declare const UI_UPDATE = 1;
|
|
10
|
-
export declare const UI_DISABLED = 0;
|
|
11
|
-
export declare const UI_CLOSE = -1;
|
|
12
|
-
export declare const COLORS: {
|
|
13
|
-
readonly department: {
|
|
14
|
-
readonly captain: "#c06616";
|
|
15
|
-
readonly security: "#e74c3c";
|
|
16
|
-
readonly medbay: "#3498db";
|
|
17
|
-
readonly science: "#9b59b6";
|
|
18
|
-
readonly engineering: "#f1c40f";
|
|
19
|
-
readonly cargo: "#f39c12";
|
|
20
|
-
readonly service: "#7cc46a";
|
|
21
|
-
readonly centcom: "#00c100";
|
|
22
|
-
readonly other: "#c38312";
|
|
23
|
-
};
|
|
24
|
-
readonly damageType: {
|
|
25
|
-
readonly oxy: "#3498db";
|
|
26
|
-
readonly toxin: "#2ecc71";
|
|
27
|
-
readonly burn: "#e67e22";
|
|
28
|
-
readonly brute: "#e74c3c";
|
|
29
|
-
};
|
|
30
|
-
readonly reagent: {
|
|
31
|
-
readonly acidicbuffer: "#fbc314";
|
|
32
|
-
readonly basicbuffer: "#3853a4";
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export declare const CSS_COLORS: readonly ["average", "bad", "black", "blue", "brown", "good", "green", "grey", "label", "olive", "orange", "pink", "purple", "red", "teal", "transparent", "violet", "white", "yellow"];
|
|
36
|
-
export type CssColor = (typeof CSS_COLORS)[number];
|
|
37
|
-
export declare const RADIO_CHANNELS: readonly [{
|
|
38
|
-
readonly name: "Syndicate";
|
|
39
|
-
readonly freq: 1213;
|
|
40
|
-
readonly color: "#8f4a4b";
|
|
41
|
-
}, {
|
|
42
|
-
readonly name: "Red Team";
|
|
43
|
-
readonly freq: 1215;
|
|
44
|
-
readonly color: "#ff4444";
|
|
45
|
-
}, {
|
|
46
|
-
readonly name: "Blue Team";
|
|
47
|
-
readonly freq: 1217;
|
|
48
|
-
readonly color: "#3434fd";
|
|
49
|
-
}, {
|
|
50
|
-
readonly name: "Green Team";
|
|
51
|
-
readonly freq: 1219;
|
|
52
|
-
readonly color: "#34fd34";
|
|
53
|
-
}, {
|
|
54
|
-
readonly name: "Yellow Team";
|
|
55
|
-
readonly freq: 1221;
|
|
56
|
-
readonly color: "#fdfd34";
|
|
57
|
-
}, {
|
|
58
|
-
readonly name: "CentCom";
|
|
59
|
-
readonly freq: 1337;
|
|
60
|
-
readonly color: "#2681a5";
|
|
61
|
-
}, {
|
|
62
|
-
readonly name: "Supply";
|
|
63
|
-
readonly freq: 1347;
|
|
64
|
-
readonly color: "#b88646";
|
|
65
|
-
}, {
|
|
66
|
-
readonly name: "Service";
|
|
67
|
-
readonly freq: 1349;
|
|
68
|
-
readonly color: "#6ca729";
|
|
69
|
-
}, {
|
|
70
|
-
readonly name: "Science";
|
|
71
|
-
readonly freq: 1351;
|
|
72
|
-
readonly color: "#c68cfa";
|
|
73
|
-
}, {
|
|
74
|
-
readonly name: "Command";
|
|
75
|
-
readonly freq: 1353;
|
|
76
|
-
readonly color: "#fcdf03";
|
|
77
|
-
}, {
|
|
78
|
-
readonly name: "Medical";
|
|
79
|
-
readonly freq: 1355;
|
|
80
|
-
readonly color: "#57b8f0";
|
|
81
|
-
}, {
|
|
82
|
-
readonly name: "Engineering";
|
|
83
|
-
readonly freq: 1357;
|
|
84
|
-
readonly color: "#f37746";
|
|
85
|
-
}, {
|
|
86
|
-
readonly name: "Security";
|
|
87
|
-
readonly freq: 1359;
|
|
88
|
-
readonly color: "#dd3535";
|
|
89
|
-
}, {
|
|
90
|
-
readonly name: "AI Private";
|
|
91
|
-
readonly freq: 1447;
|
|
92
|
-
readonly color: "#d65d95";
|
|
93
|
-
}, {
|
|
94
|
-
readonly name: "Common";
|
|
95
|
-
readonly freq: 1459;
|
|
96
|
-
readonly color: "#1ecc43";
|
|
97
|
-
}];
|
|
98
|
-
export declare function getGasLabel(gasId: string, fallbackValue?: string): string;
|
|
99
|
-
export declare function getGasColor(gasId: string): "black" | "blue" | "brown" | "grey" | "olive" | "pink" | "purple" | "teal" | "white" | "yellow" | "lightsteelblue" | "bisque" | "limegreen" | "mediumpurple" | "mediumslateblue" | "paleturquoise" | "salmon" | "greenyellow" | "darkgreen" | "aliceblue" | "maroon";
|
|
100
|
-
export declare const getGasFromId: (gasId: string) => Gas | undefined;
|
|
101
|
-
export declare const getGasFromPath: (gasPath: string) => Gas | undefined;
|
|
102
|
-
export {};
|
package/dist/common/constants.js
DELETED
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
const t = 2, n = 1, i = 0, m = -1, c = {
|
|
2
|
-
// Department colors
|
|
3
|
-
department: {
|
|
4
|
-
captain: "#c06616",
|
|
5
|
-
security: "#e74c3c",
|
|
6
|
-
medbay: "#3498db",
|
|
7
|
-
science: "#9b59b6",
|
|
8
|
-
engineering: "#f1c40f",
|
|
9
|
-
cargo: "#f39c12",
|
|
10
|
-
service: "#7cc46a",
|
|
11
|
-
centcom: "#00c100",
|
|
12
|
-
other: "#c38312"
|
|
13
|
-
},
|
|
14
|
-
// Damage type colors
|
|
15
|
-
damageType: {
|
|
16
|
-
oxy: "#3498db",
|
|
17
|
-
toxin: "#2ecc71",
|
|
18
|
-
burn: "#e67e22",
|
|
19
|
-
brute: "#e74c3c"
|
|
20
|
-
},
|
|
21
|
-
// reagent / chemistry related colours
|
|
22
|
-
reagent: {
|
|
23
|
-
acidicbuffer: "#fbc314",
|
|
24
|
-
basicbuffer: "#3853a4"
|
|
25
|
-
}
|
|
26
|
-
}, u = [
|
|
27
|
-
"average",
|
|
28
|
-
"bad",
|
|
29
|
-
"black",
|
|
30
|
-
"blue",
|
|
31
|
-
"brown",
|
|
32
|
-
"good",
|
|
33
|
-
"green",
|
|
34
|
-
"grey",
|
|
35
|
-
"label",
|
|
36
|
-
"olive",
|
|
37
|
-
"orange",
|
|
38
|
-
"pink",
|
|
39
|
-
"purple",
|
|
40
|
-
"red",
|
|
41
|
-
"teal",
|
|
42
|
-
"transparent",
|
|
43
|
-
"violet",
|
|
44
|
-
"white",
|
|
45
|
-
"yellow"
|
|
46
|
-
], d = [
|
|
47
|
-
{
|
|
48
|
-
name: "Syndicate",
|
|
49
|
-
freq: 1213,
|
|
50
|
-
color: "#8f4a4b"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: "Red Team",
|
|
54
|
-
freq: 1215,
|
|
55
|
-
color: "#ff4444"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: "Blue Team",
|
|
59
|
-
freq: 1217,
|
|
60
|
-
color: "#3434fd"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: "Green Team",
|
|
64
|
-
freq: 1219,
|
|
65
|
-
color: "#34fd34"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: "Yellow Team",
|
|
69
|
-
freq: 1221,
|
|
70
|
-
color: "#fdfd34"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: "CentCom",
|
|
74
|
-
freq: 1337,
|
|
75
|
-
color: "#2681a5"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: "Supply",
|
|
79
|
-
freq: 1347,
|
|
80
|
-
color: "#b88646"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: "Service",
|
|
84
|
-
freq: 1349,
|
|
85
|
-
color: "#6ca729"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
name: "Science",
|
|
89
|
-
freq: 1351,
|
|
90
|
-
color: "#c68cfa"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: "Command",
|
|
94
|
-
freq: 1353,
|
|
95
|
-
color: "#fcdf03"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: "Medical",
|
|
99
|
-
freq: 1355,
|
|
100
|
-
color: "#57b8f0"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: "Engineering",
|
|
104
|
-
freq: 1357,
|
|
105
|
-
color: "#f37746"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
name: "Security",
|
|
109
|
-
freq: 1359,
|
|
110
|
-
color: "#dd3535"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
name: "AI Private",
|
|
114
|
-
freq: 1447,
|
|
115
|
-
color: "#d65d95"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: "Common",
|
|
119
|
-
freq: 1459,
|
|
120
|
-
color: "#1ecc43"
|
|
121
|
-
}
|
|
122
|
-
], e = [
|
|
123
|
-
{
|
|
124
|
-
id: "o2",
|
|
125
|
-
path: "/datum/gas/oxygen",
|
|
126
|
-
name: "Oxygen",
|
|
127
|
-
label: "O₂",
|
|
128
|
-
color: "blue"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
id: "n2",
|
|
132
|
-
path: "/datum/gas/nitrogen",
|
|
133
|
-
name: "Nitrogen",
|
|
134
|
-
label: "N₂",
|
|
135
|
-
color: "yellow"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
id: "co2",
|
|
139
|
-
path: "/datum/gas/carbon_dioxide",
|
|
140
|
-
name: "Carbon Dioxide",
|
|
141
|
-
label: "CO₂",
|
|
142
|
-
color: "grey"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
id: "plasma",
|
|
146
|
-
path: "/datum/gas/plasma",
|
|
147
|
-
name: "Plasma",
|
|
148
|
-
label: "Plasma",
|
|
149
|
-
color: "pink"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
id: "water_vapor",
|
|
153
|
-
path: "/datum/gas/water_vapor",
|
|
154
|
-
name: "Water Vapor",
|
|
155
|
-
label: "H₂O",
|
|
156
|
-
color: "lightsteelblue"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
id: "hypernoblium",
|
|
160
|
-
path: "/datum/gas/hypernoblium",
|
|
161
|
-
name: "Hyper-noblium",
|
|
162
|
-
label: "Hyper-nob",
|
|
163
|
-
color: "teal"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
id: "n2o",
|
|
167
|
-
path: "/datum/gas/nitrous_oxide",
|
|
168
|
-
name: "Nitrous Oxide",
|
|
169
|
-
label: "N₂O",
|
|
170
|
-
color: "bisque"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
id: "no2",
|
|
174
|
-
path: "/datum/gas/nitrium",
|
|
175
|
-
name: "Nitrium",
|
|
176
|
-
label: "Nitrium",
|
|
177
|
-
color: "brown"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
id: "tritium",
|
|
181
|
-
path: "/datum/gas/tritium",
|
|
182
|
-
name: "Tritium",
|
|
183
|
-
label: "Tritium",
|
|
184
|
-
color: "limegreen"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
id: "bz",
|
|
188
|
-
path: "/datum/gas/bz",
|
|
189
|
-
name: "BZ",
|
|
190
|
-
label: "BZ",
|
|
191
|
-
color: "mediumpurple"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
id: "pluoxium",
|
|
195
|
-
path: "/datum/gas/pluoxium",
|
|
196
|
-
name: "Pluoxium",
|
|
197
|
-
label: "Pluoxium",
|
|
198
|
-
color: "mediumslateblue"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
id: "miasma",
|
|
202
|
-
path: "/datum/gas/miasma",
|
|
203
|
-
name: "Miasma",
|
|
204
|
-
label: "Miasma",
|
|
205
|
-
color: "olive"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
id: "freon",
|
|
209
|
-
path: "/datum/gas/freon",
|
|
210
|
-
name: "Freon",
|
|
211
|
-
label: "Freon",
|
|
212
|
-
color: "paleturquoise"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
id: "hydrogen",
|
|
216
|
-
path: "/datum/gas/hydrogen",
|
|
217
|
-
name: "Hydrogen",
|
|
218
|
-
label: "H₂",
|
|
219
|
-
color: "white"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
id: "healium",
|
|
223
|
-
path: "/datum/gas/healium",
|
|
224
|
-
name: "Healium",
|
|
225
|
-
label: "Healium",
|
|
226
|
-
color: "salmon"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
id: "proto_nitrate",
|
|
230
|
-
path: "/datum/gas/proto_nitrate",
|
|
231
|
-
name: "Proto Nitrate",
|
|
232
|
-
label: "Proto-Nitrate",
|
|
233
|
-
color: "greenyellow"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
id: "zauker",
|
|
237
|
-
path: "/datum/gas/zauker",
|
|
238
|
-
name: "Zauker",
|
|
239
|
-
label: "Zauker",
|
|
240
|
-
color: "darkgreen"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
id: "halon",
|
|
244
|
-
path: "/datum/gas/halon",
|
|
245
|
-
name: "Halon",
|
|
246
|
-
label: "Halon",
|
|
247
|
-
color: "purple"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
id: "helium",
|
|
251
|
-
path: "/datum/gas/helium",
|
|
252
|
-
name: "Helium",
|
|
253
|
-
label: "He",
|
|
254
|
-
color: "aliceblue"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
id: "antinoblium",
|
|
258
|
-
path: "/datum/gas/antinoblium",
|
|
259
|
-
name: "Antinoblium",
|
|
260
|
-
label: "Anti-Noblium",
|
|
261
|
-
color: "maroon"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
id: "nitrium",
|
|
265
|
-
path: "/datum/gas/nitrium",
|
|
266
|
-
name: "Nitrium",
|
|
267
|
-
label: "Nitrium",
|
|
268
|
-
color: "brown"
|
|
269
|
-
}
|
|
270
|
-
];
|
|
271
|
-
function b(a, o) {
|
|
272
|
-
if (!a) return o || "None";
|
|
273
|
-
const r = a.toLowerCase();
|
|
274
|
-
for (let l = 0; l < e.length; l++)
|
|
275
|
-
if (e[l].id === r)
|
|
276
|
-
return e[l].label;
|
|
277
|
-
return o || "None";
|
|
278
|
-
}
|
|
279
|
-
function s(a) {
|
|
280
|
-
if (!a) return "black";
|
|
281
|
-
const o = a.toLowerCase();
|
|
282
|
-
for (let r = 0; r < e.length; r++)
|
|
283
|
-
if (e[r].id === o)
|
|
284
|
-
return e[r].color;
|
|
285
|
-
return "black";
|
|
286
|
-
}
|
|
287
|
-
const g = (a) => {
|
|
288
|
-
if (!a) return;
|
|
289
|
-
const o = a.toLowerCase();
|
|
290
|
-
for (let r = 0; r < e.length; r++)
|
|
291
|
-
if (e[r].id === o)
|
|
292
|
-
return e[r];
|
|
293
|
-
}, p = (a) => {
|
|
294
|
-
if (a) {
|
|
295
|
-
for (let o = 0; o < e.length; o++)
|
|
296
|
-
if (e[o].path === a)
|
|
297
|
-
return e[o];
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
export {
|
|
301
|
-
c as COLORS,
|
|
302
|
-
u as CSS_COLORS,
|
|
303
|
-
d as RADIO_CHANNELS,
|
|
304
|
-
m as UI_CLOSE,
|
|
305
|
-
i as UI_DISABLED,
|
|
306
|
-
t as UI_INTERACTIVE,
|
|
307
|
-
n as UI_UPDATE,
|
|
308
|
-
s as getGasColor,
|
|
309
|
-
g as getGasFromId,
|
|
310
|
-
p as getGasFromPath,
|
|
311
|
-
b as getGasLabel
|
|
312
|
-
};
|
package/dist/common/events.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
type Fn = (...args: any[]) => void;
|
|
2
|
-
export declare class EventEmitter {
|
|
3
|
-
private listeners;
|
|
4
|
-
constructor();
|
|
5
|
-
on(name: string, listener: Fn): void;
|
|
6
|
-
off(name: string, listener: Fn): void;
|
|
7
|
-
emit(name: string, ...params: any[]): void;
|
|
8
|
-
clear(): void;
|
|
9
|
-
}
|
|
10
|
-
export declare const globalEvents: EventEmitter;
|
|
11
|
-
export declare const setupGlobalEvents: (options?: {
|
|
12
|
-
ignoreWindowFocus?: boolean;
|
|
13
|
-
}) => void;
|
|
14
|
-
export declare function canStealFocus(node: HTMLElement): boolean;
|
|
15
|
-
export declare function addScrollableNode(node: HTMLElement): void;
|
|
16
|
-
export declare function removeScrollableNode(node: HTMLElement): void;
|
|
17
|
-
export declare class KeyEvent {
|
|
18
|
-
event: KeyboardEvent;
|
|
19
|
-
type: 'keydown' | 'keyup';
|
|
20
|
-
code: number;
|
|
21
|
-
ctrl: boolean;
|
|
22
|
-
shift: boolean;
|
|
23
|
-
alt: boolean;
|
|
24
|
-
repeat: boolean;
|
|
25
|
-
_str?: string;
|
|
26
|
-
constructor(e: KeyboardEvent, type: 'keydown' | 'keyup', repeat?: boolean);
|
|
27
|
-
hasModifierKeys(): boolean;
|
|
28
|
-
isModifierKey(): boolean;
|
|
29
|
-
isDown(): boolean;
|
|
30
|
-
isUp(): boolean;
|
|
31
|
-
toString(): string;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
package/dist/common/events.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
var _ = Object.defineProperty;
|
|
2
|
-
var v = (t, e, s) => e in t ? _(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
|
-
var i = (t, e, s) => v(t, typeof e != "symbol" ? e + "" : e, s);
|
|
4
|
-
import { KEY_CTRL as F, KEY_SHIFT as L, KEY_ALT as b, KEY_F1 as K, KEY_F12 as S } from "./keycodes.js";
|
|
5
|
-
class C {
|
|
6
|
-
constructor() {
|
|
7
|
-
i(this, "listeners");
|
|
8
|
-
this.listeners = {};
|
|
9
|
-
}
|
|
10
|
-
on(e, s) {
|
|
11
|
-
this.listeners[e] = this.listeners[e] || [], this.listeners[e].push(s);
|
|
12
|
-
}
|
|
13
|
-
off(e, s) {
|
|
14
|
-
const n = this.listeners[e];
|
|
15
|
-
if (!n)
|
|
16
|
-
throw new Error(`There is no listeners for "${e}"`);
|
|
17
|
-
this.listeners[e] = n.filter((l) => l !== s);
|
|
18
|
-
}
|
|
19
|
-
emit(e, ...s) {
|
|
20
|
-
const n = this.listeners[e];
|
|
21
|
-
if (n)
|
|
22
|
-
for (let l = 0, k = n.length; l < k; l += 1) {
|
|
23
|
-
const g = n[l];
|
|
24
|
-
g(...s);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
clear() {
|
|
28
|
-
this.listeners = {};
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
const o = new C();
|
|
32
|
-
let m = !1;
|
|
33
|
-
const W = (t = {}) => {
|
|
34
|
-
m = !!t.ignoreWindowFocus;
|
|
35
|
-
};
|
|
36
|
-
let d, f = !0;
|
|
37
|
-
function u(t, e) {
|
|
38
|
-
if (m) {
|
|
39
|
-
f = !0;
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
if (d && (clearTimeout(d), d = null), e) {
|
|
43
|
-
d = setTimeout(() => u(t));
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
f !== t && (f = t, o.emit(t ? "window-focus" : "window-blur"), o.emit("window-focus-change", t));
|
|
47
|
-
}
|
|
48
|
-
let r = null;
|
|
49
|
-
function E(t) {
|
|
50
|
-
const e = String(t.tagName).toLowerCase();
|
|
51
|
-
return e === "input" || e === "textarea";
|
|
52
|
-
}
|
|
53
|
-
function T(t) {
|
|
54
|
-
a(), r = t, r.addEventListener("blur", a);
|
|
55
|
-
}
|
|
56
|
-
function a() {
|
|
57
|
-
r && (r.removeEventListener("blur", a), r = null);
|
|
58
|
-
}
|
|
59
|
-
let w = null, c = null;
|
|
60
|
-
const h = [];
|
|
61
|
-
function A(t) {
|
|
62
|
-
h.push(t);
|
|
63
|
-
}
|
|
64
|
-
function B(t) {
|
|
65
|
-
const e = h.indexOf(t);
|
|
66
|
-
e >= 0 && h.splice(e, 1);
|
|
67
|
-
}
|
|
68
|
-
function N(t) {
|
|
69
|
-
if (r || !f)
|
|
70
|
-
return;
|
|
71
|
-
const e = document.body;
|
|
72
|
-
for (; t && t !== e; ) {
|
|
73
|
-
if (h.includes(t)) {
|
|
74
|
-
if (t.contains(w))
|
|
75
|
-
return;
|
|
76
|
-
w = t, t.focus();
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
t = t.parentElement;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
window.addEventListener("mousemove", (t) => {
|
|
83
|
-
const e = t.target;
|
|
84
|
-
e !== c && (c = e, N(e));
|
|
85
|
-
});
|
|
86
|
-
window.addEventListener("focusin", (t) => {
|
|
87
|
-
c = null, w = t.target, u(!0), E(t.target) && T(t.target);
|
|
88
|
-
});
|
|
89
|
-
window.addEventListener("focusout", () => {
|
|
90
|
-
c = null, u(!1, !0);
|
|
91
|
-
});
|
|
92
|
-
window.addEventListener("blur", () => {
|
|
93
|
-
c = null, u(!1, !0);
|
|
94
|
-
});
|
|
95
|
-
window.addEventListener("beforeunload", () => {
|
|
96
|
-
u(!1);
|
|
97
|
-
});
|
|
98
|
-
const y = {};
|
|
99
|
-
class p {
|
|
100
|
-
constructor(e, s, n) {
|
|
101
|
-
i(this, "event");
|
|
102
|
-
i(this, "type");
|
|
103
|
-
i(this, "code");
|
|
104
|
-
i(this, "ctrl");
|
|
105
|
-
i(this, "shift");
|
|
106
|
-
i(this, "alt");
|
|
107
|
-
i(this, "repeat");
|
|
108
|
-
i(this, "_str");
|
|
109
|
-
this.event = e, this.type = s, this.code = e.keyCode, this.ctrl = e.ctrlKey, this.shift = e.shiftKey, this.alt = e.altKey, this.repeat = !!n;
|
|
110
|
-
}
|
|
111
|
-
hasModifierKeys() {
|
|
112
|
-
return this.ctrl || this.alt || this.shift;
|
|
113
|
-
}
|
|
114
|
-
isModifierKey() {
|
|
115
|
-
return this.code === F || this.code === L || this.code === b;
|
|
116
|
-
}
|
|
117
|
-
isDown() {
|
|
118
|
-
return this.type === "keydown";
|
|
119
|
-
}
|
|
120
|
-
isUp() {
|
|
121
|
-
return this.type === "keyup";
|
|
122
|
-
}
|
|
123
|
-
toString() {
|
|
124
|
-
return this._str ? this._str : (this._str = "", this.ctrl && (this._str += "Ctrl+"), this.alt && (this._str += "Alt+"), this.shift && (this._str += "Shift+"), this.code >= 48 && this.code <= 90 ? this._str += String.fromCharCode(this.code) : this.code >= K && this.code <= S ? this._str += "F" + (this.code - 111) : this._str += "[" + this.code + "]", this._str);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
document.addEventListener("keydown", (t) => {
|
|
128
|
-
if (E(t.target))
|
|
129
|
-
return;
|
|
130
|
-
const e = t.keyCode, s = new p(t, "keydown", y[e]);
|
|
131
|
-
o.emit("keydown", s), o.emit("key", s), y[e] = !0;
|
|
132
|
-
});
|
|
133
|
-
document.addEventListener("keyup", (t) => {
|
|
134
|
-
if (E(t.target))
|
|
135
|
-
return;
|
|
136
|
-
const e = t.keyCode, s = new p(t, "keyup");
|
|
137
|
-
o.emit("keyup", s), o.emit("key", s), y[e] = !1;
|
|
138
|
-
});
|
|
139
|
-
export {
|
|
140
|
-
C as EventEmitter,
|
|
141
|
-
p as KeyEvent,
|
|
142
|
-
A as addScrollableNode,
|
|
143
|
-
E as canStealFocus,
|
|
144
|
-
o as globalEvents,
|
|
145
|
-
B as removeScrollableNode,
|
|
146
|
-
W as setupGlobalEvents
|
|
147
|
-
};
|
package/dist/common/format.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const formatSiUnit: (value: number, minBase1000?: number, unit?: string) => string;
|
|
2
|
-
export declare function formatPower(value: number, minBase1000?: number): string;
|
|
3
|
-
export declare function formatEnergy(value: number, minBase1000?: number): string;
|
|
4
|
-
export declare function formatMoney(value: number, precision?: number): string;
|
|
5
|
-
export declare function formatDb(value: number): string;
|
|
6
|
-
export declare const formatSiBaseTenUnit: (value: number, minBase1000?: number, unit?: string) => string;
|
|
7
|
-
/**
|
|
8
|
-
* Formats decisecond count into HH:MM:SS display by default
|
|
9
|
-
* "short" format does not pad and adds hms suffixes
|
|
10
|
-
*/
|
|
11
|
-
export declare const formatTime: (val: number, formatType?: "short" | "default") => string;
|