@@ -32,13 +32,6 @@ import { Lazy, map as lazyMap } from "../../utilities/lazy";
32
32
import { ResourceSelector } from "../../components/ResourceSelector" ;
33
33
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" ;
34
34
import { faTimesCircle } from "@fortawesome/free-solid-svg-icons" ;
35
- import {
36
- VSCodeButton ,
37
- VSCodeLink ,
38
- VSCodeRadio ,
39
- VSCodeRadioGroup ,
40
- VSCodeTextField ,
41
- } from "@vscode/webview-ui-toolkit/react" ;
42
35
import { faFolder } from "@fortawesome/free-regular-svg-icons" ;
43
36
import { distinct } from "../../utilities/array" ;
44
37
import { TextWithDropdown } from "../../components/TextWithDropdown" ;
@@ -231,7 +224,6 @@ export function DraftDeployment(initialState: InitialState) {
231
224
} ) ;
232
225
}
233
226
234
- const [ manifests , helm , kustomize ] : DeploymentSpecType [ ] = [ "manifests" , "helm" , "kustomize" ] ;
235
227
const existingFiles = getExistingPaths ( state . selectedDeploymentSpecType , state . existingFiles ) ;
236
228
237
229
const acrImageTooltipMessage =
@@ -372,7 +364,8 @@ export function DraftDeployment(initialState: InitialState) {
372
364
) }
373
365
374
366
{ state . selectedAcrRepository . value . isNew && (
375
- < VSCodeTextField
367
+ < input
368
+ type = "text"
376
369
id = "acr-image-tag-input"
377
370
className = { styles . control }
378
371
value = {
@@ -436,19 +429,20 @@ export function DraftDeployment(initialState: InitialState) {
436
429
< label htmlFor = "location-input" className = { styles . label } >
437
430
Location *
438
431
</ label >
439
- < VSCodeTextField
432
+ < input
433
+ type = "text"
440
434
id = "location-input"
441
435
readOnly
442
436
value = { `.${ state . workspaceConfig . pathSeparator } ${ state . selectedLocation . value } ` }
443
437
className = { styles . control }
444
438
/>
445
439
< div className = { styles . controlSupplement } >
446
- < VSCodeButton appearance = "icon " onClick = { handleChooseLocationClick } >
440
+ < button className = "choose-location-button " onClick = { handleChooseLocationClick } >
447
441
< span className = { styles . iconButton } >
448
442
< FontAwesomeIcon icon = { faFolder } />
449
443
Choose location
450
444
</ span >
451
- </ VSCodeButton >
445
+ </ button >
452
446
</ div >
453
447
{ hasMessage ( state . selectedLocation ) && (
454
448
< span className = { styles . validationMessage } >
@@ -460,22 +454,45 @@ export function DraftDeployment(initialState: InitialState) {
460
454
< label htmlFor = "deployment-type-input" className = { styles . label } >
461
455
Deployment options *
462
456
</ label >
463
- < VSCodeRadioGroup
464
- id = "deployment-type-input"
465
- className = { styles . control }
466
- value = { state . selectedDeploymentSpecType }
467
- orientation = "vertical"
468
- onChange = { handleDeploymentSpecTypeChange }
469
- >
470
- < VSCodeRadio value = { manifests } > Manifests</ VSCodeRadio >
471
- < VSCodeRadio value = { helm } > Helm</ VSCodeRadio >
472
- < VSCodeRadio value = { kustomize } > Kustomize</ VSCodeRadio >
473
- </ VSCodeRadioGroup >
457
+ < div id = "deployment-type-input" className = { styles . control } >
458
+ < div className = { styles . radioLine } >
459
+ < input
460
+ type = "radio"
461
+ name = "deployment-type"
462
+ value = "manifests"
463
+ checked = { state . selectedDeploymentSpecType === "manifests" }
464
+ onChange = { handleDeploymentSpecTypeChange }
465
+ />
466
+
467
+ < label className = { styles . radioLabel } > Manifests</ label >
468
+ </ div >
469
+ < div className = { styles . radioLine } >
470
+ < input
471
+ type = "radio"
472
+ name = "deployment-type"
473
+ value = "helm"
474
+ checked = { state . selectedDeploymentSpecType === "helm" }
475
+ onChange = { handleDeploymentSpecTypeChange }
476
+ />
477
+ < label className = { styles . radioLabel } > Helm</ label >
478
+ </ div >
479
+ < div className = { styles . radioLine } >
480
+ < input
481
+ type = "radio"
482
+ name = "deployment-type"
483
+ value = "kustomize"
484
+ checked = { state . selectedDeploymentSpecType === "kustomize" }
485
+ onChange = { handleDeploymentSpecTypeChange }
486
+ />
487
+ < label className = { styles . radioLabel } > Kustomize</ label >
488
+ </ div >
489
+ </ div >
474
490
475
491
< label htmlFor = "app-name-input" className = { styles . label } >
476
492
Application name *
477
493
</ label >
478
- < VSCodeTextField
494
+ < input
495
+ type = "text"
479
496
id = "app-name-input"
480
497
value = { orDefault ( state . selectedApplicationName , "" ) }
481
498
className = { styles . control }
@@ -554,9 +571,9 @@ export function DraftDeployment(initialState: InitialState) {
554
571
</ fieldset >
555
572
556
573
< div className = { styles . buttonContainer } >
557
- < VSCodeButton type = "submit" disabled = { state . status !== "Editing" || isNothing ( validate ( ) ) } >
574
+ < button type = "submit" disabled = { state . status !== "Editing" || isNothing ( validate ( ) ) } >
558
575
Create
559
- </ VSCodeButton >
576
+ </ button >
560
577
</ div >
561
578
562
579
{ existingFiles . length > 0 && (
@@ -565,15 +582,15 @@ export function DraftDeployment(initialState: InitialState) {
565
582
< ul className = { styles . existingFileList } >
566
583
{ existingFiles . map ( ( path , i ) => (
567
584
< li key = { i } >
568
- < VSCodeLink
585
+ < a
569
586
href = "#"
570
587
onClick = { ( e ) => {
571
588
e . preventDefault ( ) ;
572
589
vscode . postOpenFileRequest ( path ) ;
573
590
} }
574
591
>
575
592
{ path }
576
- </ VSCodeLink >
593
+ </ a >
577
594
</ li >
578
595
) ) }
579
596
</ ul >
@@ -588,9 +605,9 @@ export function DraftDeployment(initialState: InitialState) {
588
605
589
606
< p >
590
607
To generate a GitHub Action, you can run{ " " }
591
- < VSCodeLink href = "#" onClick = { handleDraftWorkflowClick } >
608
+ < a href = "#" onClick = { handleDraftWorkflowClick } >
592
609
Automated Deployments: Create a GitHub workflow
593
- </ VSCodeLink >
610
+ </ a >
594
611
.
595
612
</ p >
596
613
</ div >
0 commit comments