Skip to content

Commit 515c002

Browse files
committed
wip: remove some unused classes
1 parent 2b8adb1 commit 515c002

39 files changed

+136
-1077
lines changed

packages/webui/src/client/lib/forms/SchemaFormWithOverrides.tsx

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -284,21 +284,14 @@ const EnumFormControlWrapper = ({
284284
if (multiple) {
285285
return (
286286
<MultiSelectInputControl
287-
classNames="input text-input dropdown input-l"
287+
classNames="dropdown"
288288
options={options}
289289
value={value}
290290
handleUpdate={handleUpdate}
291291
/>
292292
)
293293
} else {
294-
return (
295-
<DropdownInputControl
296-
classNames="input text-input input-l"
297-
options={options}
298-
value={value}
299-
handleUpdate={handleUpdate}
300-
/>
301-
)
294+
return <DropdownInputControl options={options} value={value} handleUpdate={handleUpdate} />
302295
}
303296
}}
304297
</LabelAndOverridesForDropdown>
@@ -312,8 +305,6 @@ const IntegerFormWithOverrides = ({ schema, commonAttrs }: Readonly<FormComponen
312305
<LabelAndOverridesForInt {...commonAttrs} zeroBased={zeroBased}>
313306
{(value, handleUpdate) => (
314307
<IntInputControl
315-
modifiedClassName="bghl"
316-
classNames="input text-input input-l"
317308
placeholder={schema.default}
318309
zeroBased={zeroBased}
319310
value={value}
@@ -331,8 +322,6 @@ const NumberFormWithOverrides = ({ schema, commonAttrs }: Readonly<FormComponent
331322
<LabelAndOverrides {...commonAttrs}>
332323
{(value, handleUpdate) => (
333324
<FloatInputControl
334-
modifiedClassName="bghl"
335-
classNames="input text-input input-l"
336325
placeholder={schema.default}
337326
value={value}
338327
handleUpdate={handleUpdate}
@@ -369,13 +358,7 @@ const StringFormWithOverrides = ({ schema, commonAttrs }: Readonly<FormComponent
369358
return (
370359
<LabelAndOverrides {...commonAttrs}>
371360
{(value, handleUpdate) => (
372-
<TextInputControl
373-
modifiedClassName="bghl"
374-
classNames="input text-input input-l"
375-
placeholder={schema.default}
376-
value={value}
377-
handleUpdate={handleUpdate}
378-
/>
361+
<TextInputControl placeholder={schema.default} value={value} handleUpdate={handleUpdate} />
379362
)}
380363
</LabelAndOverrides>
381364
)
@@ -386,8 +369,6 @@ const StringArrayFormWithOverrides = ({ schema, commonAttrs }: Readonly<FormComp
386369
<LabelAndOverrides {...commonAttrs}>
387370
{(value, handleUpdate) => (
388371
<MultiLineTextInputControl
389-
modifiedClassName="bghl"
390-
classNames="input text-input input-l"
391372
placeholder={schema.default?.join('\n')}
392373
value={value || []}
393374
handleUpdate={handleUpdate}
@@ -401,13 +382,7 @@ const JsonFormWithOverrides = ({ schema, commonAttrs }: Readonly<FormComponentPr
401382
return (
402383
<LabelAndOverrides {...commonAttrs}>
403384
{(value, handleUpdate) => (
404-
<JsonTextInputControl
405-
modifiedClassName="bghl"
406-
classNames="input text-input input-l"
407-
placeholder={JSON.stringify(schema.default)}
408-
value={value}
409-
handleUpdate={handleUpdate}
410-
/>
385+
<JsonTextInputControl placeholder={JSON.stringify(schema.default)} value={value} handleUpdate={handleUpdate} />
411386
)}
412387
</LabelAndOverrides>
413388
)
@@ -416,9 +391,7 @@ const JsonFormWithOverrides = ({ schema, commonAttrs }: Readonly<FormComponentPr
416391
const Base64ImagePickerWithOverrides = ({ commonAttrs }: FormComponentProps) => {
417392
return (
418393
<LabelAndOverridesForBase64Image {...commonAttrs}>
419-
{(value, handleUpdate) => (
420-
<Base64ImageInputControl classNames="input input-l" value={value} handleUpdate={handleUpdate} />
421-
)}
394+
{(value, handleUpdate) => <Base64ImageInputControl value={value} handleUpdate={handleUpdate} />}
422395
</LabelAndOverridesForBase64Image>
423396
)
424397
}

packages/webui/src/client/ui/Settings/BlueprintSettings.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,7 @@ export default translateWithTracker<IProps, IState, ITrackedProps>((props: IProp
265265
<LabelActual label={t('Blueprint Name')} />
266266

267267
<div className="field-content">
268-
<EditAttribute
269-
modifiedClassName="bghl"
270-
attribute="name"
271-
obj={blueprint}
272-
type="text"
273-
collection={Blueprints}
274-
className="mdinput"
275-
/>
268+
<EditAttribute attribute="name" obj={blueprint} type="text" collection={Blueprints} />
276269
</div>
277270
<div></div>
278271
<div>
@@ -330,7 +323,6 @@ export default translateWithTracker<IProps, IState, ITrackedProps>((props: IProp
330323
<LabelActual label={t('Disable version check')} />
331324
<div className="field-content">
332325
<EditAttribute
333-
modifiedClassName="bghl"
334326
attribute="disableVersionChecks"
335327
obj={blueprint}
336328
type="checkbox"

packages/webui/src/client/ui/Settings/DeviceSettings.tsx

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,12 @@ export default translateWithTracker<IDeviceSettingsProps, IDeviceSettingsState,
136136
{t('No name set')} <FontAwesomeIcon icon={faExclamationTriangle} />
137137
</div>
138138
) : null}
139-
<EditAttribute
140-
modifiedClassName="bghl"
141-
attribute="name"
142-
obj={device}
143-
type="text"
144-
collection={PeripheralDevices}
145-
></EditAttribute>
139+
<EditAttribute attribute="name" obj={device} type="text" collection={PeripheralDevices}></EditAttribute>
146140
</label>
147141

148142
<label className="field">
149143
<LabelActual label={t('Disable version check')} />
150144
<EditAttribute
151-
modifiedClassName="bghl"
152145
attribute="disableVersionChecks"
153146
obj={device}
154147
type="checkbox"
@@ -233,14 +226,7 @@ function IngestDeviceCoreConfig({ device }: Readonly<IngestDeviceCoreConfigProps
233226
return (
234227
<label className="field">
235228
<LabelActual label={t('NRCS Name')} />
236-
<EditAttribute
237-
modifiedClassName="bghl"
238-
attribute="nrcsName"
239-
obj={device}
240-
type="text"
241-
collection={PeripheralDevices}
242-
className="form-control input text-input input-l"
243-
/>
229+
<EditAttribute attribute="nrcsName" obj={device} type="text" collection={PeripheralDevices} />
244230
</label>
245231
)
246232
}

packages/webui/src/client/ui/Settings/RundownLayoutEditor.tsx

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -216,85 +216,71 @@ const RundownLayoutEditorContent = withTranslation()(
216216
<label className="field">
217217
<LabelActual label={t('Label')} />
218218
<EditAttribute
219-
modifiedClassName="bghl"
220219
attribute={`actionButtons.${index}.label`}
221220
obj={item}
222221
type="text"
223222
collection={RundownLayouts}
224-
className="input text-input input-l"
225223
/>
226224
</label>
227225

228226
<label className="field">
229227
<LabelActual label={t('Toggled Label')} />
230228
<EditAttribute
231-
modifiedClassName="bghl"
232229
attribute={`actionButtons.${index}.labelToggled`}
233230
obj={item}
234231
type="text"
235232
collection={RundownLayouts}
236-
className="input text-input input-l"
237233
/>
238234
</label>
239235

240236
<label className="field">
241237
<LabelActual label={t('Type')} />
242238
<EditAttribute
243-
modifiedClassName="bghl"
244239
attribute={`actionButtons.${index}.type`}
245240
obj={item}
246241
type="dropdown"
247242
options={ActionButtonType}
248243
collection={RundownLayouts}
249-
className="input text-input input-l"
250244
/>
251245
</label>
252246

253247
<label className="field">
254248
<LabelActual label={t('X')} />
255249
<EditAttribute
256-
modifiedClassName="bghl"
257250
attribute={`actionButtons.${index}.x`}
258251
obj={item}
259252
type="int"
260253
collection={RundownLayouts}
261-
className="input text-input input-l"
262254
/>
263255
</label>
264256

265257
<label className="field">
266258
<LabelActual label={t('Y')} />
267259
<EditAttribute
268-
modifiedClassName="bghl"
269260
attribute={`actionButtons.${index}.y`}
270261
obj={item}
271262
type="int"
272263
collection={RundownLayouts}
273-
className="input text-input input-l"
274264
/>
275265
</label>
276266

277267
<label className="field">
278268
<LabelActual label={t('Width')} />
279269
<EditAttribute
280-
modifiedClassName="bghl"
281270
attribute={`actionButtons.${index}.width`}
282271
obj={item}
283272
type="float"
284273
collection={RundownLayouts}
285-
className="input text-input input-l"
286274
/>
287275
</label>
288276

289277
<label className="field">
290278
<LabelActual label={t('Height')} />
291279
<EditAttribute
292-
modifiedClassName="bghl"
293280
attribute={`actionButtons.${index}.height`}
294281
obj={item}
295282
type="float"
296283
collection={RundownLayouts}
297-
className="input text-input input-l"
298284
/>
299285
</label>
300286
</div>
@@ -318,33 +304,23 @@ const RundownLayoutEditorContent = withTranslation()(
318304
<React.Fragment>
319305
<label className="field">
320306
<LabelActual label={t('Icon')} />
321-
<EditAttribute
322-
modifiedClassName="bghl"
323-
attribute={'icon'}
324-
obj={item}
325-
type="iconpicker"
326-
collection={RundownLayouts}
327-
className="input text-input input-s"
328-
></EditAttribute>
307+
<EditAttribute attribute={'icon'} obj={item} type="iconpicker" collection={RundownLayouts}></EditAttribute>
329308
</label>
330309

331310
<label className="field">
332311
<LabelActual label={t('Icon color')} />
333312
<EditAttribute
334-
modifiedClassName="bghl"
335313
attribute={'iconColor'}
336314
obj={item}
337315
options={defaultColorPickerPalette}
338316
type="colorpicker"
339317
collection={RundownLayouts}
340-
className="input text-input input-s"
341318
></EditAttribute>
342319
</label>
343320

344321
<label className="field">
345322
<LabelActual label={t('Use as default')} />
346323
<EditAttribute
347-
modifiedClassName="bghl"
348324
attribute={'isDefaultLayout'}
349325
obj={item}
350326
type="checkbox"
@@ -431,24 +407,20 @@ const RundownLayoutEditorContent = withTranslation()(
431407
<label className="field">
432408
<LabelActual label={t('Name')} />
433409
<EditAttribute
434-
modifiedClassName="bghl"
435410
attribute={'name'}
436411
obj={item}
437412
type="text"
438413
collection={RundownLayouts}
439-
className="input text-input input-l"
440414
></EditAttribute>
441415
</label>
442416
<label className="field">
443417
<LabelActual label={t('Type')} />
444418
<EditAttribute
445-
modifiedClassName="bghl"
446419
attribute={'type'}
447420
obj={item}
448421
options={this.props.layoutTypes}
449422
type="dropdown"
450423
collection={RundownLayouts}
451-
className="input text-input input-l"
452424
></EditAttribute>
453425
</label>
454426
{this.renderElements(item, layout)}

packages/webui/src/client/ui/Settings/ShowStyle/BlueprintConfiguration/SelectBlueprint.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,11 @@ export function SelectBlueprint({ showStyleBase }: Readonly<SelectBlueprintProps
4242
<LabelActual label={t('Blueprint')} />
4343

4444
<EditAttribute
45-
modifiedClassName="bghl"
4645
attribute="blueprintId"
4746
obj={showStyleBase}
4847
type="dropdown"
4948
options={blueprintOptions}
5049
collection={ShowStyleBases}
51-
className="input text-input input-l"
5250
/>
5351
<div>
5452
{!showStyleBase.blueprintId ? (

packages/webui/src/client/ui/Settings/ShowStyle/BlueprintConfiguration/SelectConfigPreset.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,13 @@ export function SelectConfigPreset({ showStyleBase }: Readonly<SelectConfigPrese
4747
<LabelActual label={t('Blueprint config preset')} />
4848

4949
<EditAttribute
50-
modifiedClassName="bghl"
5150
attribute="blueprintConfigPresetId"
5251
obj={showStyleBase}
5352
type="dropdown"
5453
options={configPresetOptions}
5554
mutateDisplayValue={(v) => v || ''}
5655
mutateUpdateValue={(v) => (v === '' ? undefined : v)}
5756
collection={ShowStyleBases}
58-
className="input text-input input-l"
5957
/>
6058
<div>
6159
{!showStyleBase.blueprintConfigPresetId && (

packages/webui/src/client/ui/Settings/ShowStyle/Generic.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,7 @@ export function ShowStyleGenericProperties({
2727
<LabelActual label={t('Show Style Base Name')} />
2828

2929
<div className="field-content">
30-
<EditAttribute
31-
modifiedClassName="bghl"
32-
attribute="name"
33-
obj={showStyleBase}
34-
type="text"
35-
collection={ShowStyleBases}
36-
></EditAttribute>
30+
<EditAttribute attribute="name" obj={showStyleBase} type="text" collection={ShowStyleBases}></EditAttribute>
3731
</div>
3832
<div></div>
3933
<div>

packages/webui/src/client/ui/Settings/ShowStyle/HotkeyLegend.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,23 +190,19 @@ export const HotkeyLegendSettings = withTranslation()(
190190
<label className="field">
191191
<LabelActual label={t('Key')} />
192192
<EditAttribute
193-
modifiedClassName="bghl"
194193
attribute={'hotkeyLegend.' + index + '.key'}
195194
obj={this.props.showStyleBase}
196195
type="text"
197196
collection={ShowStyleBases}
198-
className="input text-input input-l"
199197
></EditAttribute>
200198
</label>
201199
<label className="field">
202200
<LabelActual label={t('Value')} />
203201
<EditAttribute
204-
modifiedClassName="bghl"
205202
attribute={'hotkeyLegend.' + index + '.label'}
206203
obj={this.props.showStyleBase}
207204
type="text"
208205
collection={ShowStyleBases}
209-
className="input text-input input-l"
210206
></EditAttribute>
211207
</label>
212208
</div>

0 commit comments

Comments
 (0)