@serverkgg/bridge 0.0.14 → 0.0.15
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/package.json +1 -1
- package/src/cli/validate.test.ts +194 -2
- package/src/cli/validate.ts +83 -1
- package/src/guides/variables.ts +1 -0
- package/src/panel/bridgePanel.ts +11 -0
- package/src/panel/bridgePlace.ts +4 -0
- package/src/panel/index.ts +1 -0
- package/src/rcon/rconAccess.test.ts +20 -2
- package/src/rcon/rconAccess.ts +9 -1
- package/src/runtime/bridgeDriver.test.ts +145 -0
- package/src/runtime/bridgeDriver.ts +44 -2
- package/src/runtime/bridgeRegistry.test.ts +96 -0
- package/src/runtime/bridgeRegistry.ts +33 -1
- package/src/steam/avatars.test.ts +306 -0
- package/src/steam/avatars.ts +107 -0
- package/src/steam/index.ts +1 -0
- package/src/wire/panel.test.ts +79 -0
- package/src/wire/panel.ts +11 -0
package/src/wire/panel.ts
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
BridgeLayout,
|
|
13
13
|
type BridgeManifest,
|
|
14
14
|
type BridgePanel,
|
|
15
|
+
BridgePlace,
|
|
15
16
|
type BridgeSection,
|
|
16
17
|
type BridgeSetupManifest,
|
|
17
18
|
type BridgeSetupStep,
|
|
@@ -118,6 +119,7 @@ export const bridgeSectionActionSchema = z.object({
|
|
|
118
119
|
confirm: z.enum(BridgeConfirm).optional(),
|
|
119
120
|
confirmText: panelTextSchema.optional(),
|
|
120
121
|
download: z.boolean().optional(),
|
|
122
|
+
offline: z.boolean().optional(),
|
|
121
123
|
fields: z.array(bridgeFieldSchema).max(ACTION_FIELDS_LIMIT).optional(),
|
|
122
124
|
});
|
|
123
125
|
|
|
@@ -148,6 +150,7 @@ export const bridgeActionsSectionSchema = z.object({
|
|
|
148
150
|
id: zBridgeId,
|
|
149
151
|
title: panelTextSchema.optional(),
|
|
150
152
|
help: panelTextSchema.optional(),
|
|
153
|
+
place: z.enum(BridgePlace).optional(),
|
|
151
154
|
module: zBridgeModuleId,
|
|
152
155
|
actions: z.array(bridgeSectionActionSchema).min(1).max(SECTION_ACTIONS_LIMIT),
|
|
153
156
|
visibleWhen: bridgeVisibleWhenSchema.optional(),
|
|
@@ -158,6 +161,7 @@ export const bridgeFormSectionSchema = z.object({
|
|
|
158
161
|
layout: z.literal(BridgeLayout.Form),
|
|
159
162
|
id: zBridgeId,
|
|
160
163
|
title: panelTextSchema.optional(),
|
|
164
|
+
help: panelTextSchema.optional(),
|
|
161
165
|
target: z.enum(BridgeFormTarget),
|
|
162
166
|
module: zBridgeModuleId.optional(),
|
|
163
167
|
preview: bridgePreviewRefSchema.optional(),
|
|
@@ -175,6 +179,8 @@ export const bridgeDetailSectionSchema = z.object({
|
|
|
175
179
|
layout: z.literal(BridgeLayout.Detail),
|
|
176
180
|
id: zBridgeId,
|
|
177
181
|
title: panelTextSchema.optional(),
|
|
182
|
+
help: panelTextSchema.optional(),
|
|
183
|
+
place: z.enum(BridgePlace).optional(),
|
|
178
184
|
module: zBridgeModuleId,
|
|
179
185
|
actions: z.array(bridgeSectionActionSchema).max(SECTION_ACTIONS_LIMIT).optional(),
|
|
180
186
|
reinstall: z.boolean().optional(),
|
|
@@ -196,6 +202,8 @@ export const bridgeTableSectionSchema = z.object({
|
|
|
196
202
|
layout: z.literal(BridgeLayout.Table),
|
|
197
203
|
id: zBridgeId,
|
|
198
204
|
title: panelTextSchema.optional(),
|
|
205
|
+
help: panelTextSchema.optional(),
|
|
206
|
+
place: z.enum(BridgePlace).optional(),
|
|
199
207
|
module: zBridgeModuleId,
|
|
200
208
|
restartHint: z.boolean().optional(),
|
|
201
209
|
columns: z.array(bridgeColumnSchema).min(1).max(8),
|
|
@@ -211,6 +219,8 @@ export const bridgeCardsSectionSchema = z.object({
|
|
|
211
219
|
layout: z.literal(BridgeLayout.Cards),
|
|
212
220
|
id: zBridgeId,
|
|
213
221
|
title: panelTextSchema.optional(),
|
|
222
|
+
help: panelTextSchema.optional(),
|
|
223
|
+
place: z.enum(BridgePlace).optional(),
|
|
214
224
|
module: zBridgeModuleId,
|
|
215
225
|
titleKey: zKey,
|
|
216
226
|
subtitleKey: zKey.optional(),
|
|
@@ -224,6 +234,7 @@ export const bridgeCatalogSectionSchema = z.object({
|
|
|
224
234
|
layout: z.literal(BridgeLayout.Catalog),
|
|
225
235
|
id: zBridgeId,
|
|
226
236
|
title: panelTextSchema.optional(),
|
|
237
|
+
help: panelTextSchema.optional(),
|
|
227
238
|
module: zBridgeModuleId,
|
|
228
239
|
restartHint: z.boolean().optional(),
|
|
229
240
|
reinstall: z.boolean().optional(),
|