@lowcodeunit/applications-flow-common 1.33.229-lets-get-social-ish → 1.33.230-lets-get-social-ish
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/esm2020/lib/controls/processor-details-form/processor-details-form.component.mjs +32 -50
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +27 -45
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +29 -47
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4595,16 +4595,14 @@ class ProcessorDetailsFormComponent {
|
|
|
4595
4595
|
}
|
|
4596
4596
|
SaveProcessorDetails() {
|
|
4597
4597
|
const app = this.EditingApplication;
|
|
4598
|
-
app.LookupConfig.AllowedMethods =
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
.filter((v) => !!v);
|
|
4598
|
+
app.LookupConfig.AllowedMethods = this.MethodsFormControl?.value
|
|
4599
|
+
?.split(' ')
|
|
4600
|
+
.filter((v) => !!v);
|
|
4602
4601
|
app.Processor.Type = this.ProcessorType;
|
|
4603
4602
|
switch (app.Processor.Type) {
|
|
4604
4603
|
case 'DFS':
|
|
4605
4604
|
app.Processor.DefaultFile =
|
|
4606
|
-
this.DefaultFileFormControl.value ||
|
|
4607
|
-
'index.html';
|
|
4605
|
+
this.DefaultFileFormControl.value || 'index.html';
|
|
4608
4606
|
app.LowCodeUnit = {
|
|
4609
4607
|
Type: this.LCUType,
|
|
4610
4608
|
};
|
|
@@ -4614,74 +4612,56 @@ class ProcessorDetailsFormComponent {
|
|
|
4614
4612
|
this.SourceControls[this.SourceControlFormControl.value].Organization;
|
|
4615
4613
|
app.LowCodeUnit.Repository =
|
|
4616
4614
|
this.SourceControls[this.SourceControlFormControl.value].Repository;
|
|
4617
|
-
app.LowCodeUnit.Build =
|
|
4618
|
-
|
|
4619
|
-
app.LowCodeUnit.Path =
|
|
4620
|
-
this.BuildPathFormControl.value;
|
|
4615
|
+
app.LowCodeUnit.Build = this.BuildFormControl.value;
|
|
4616
|
+
app.LowCodeUnit.Path = this.BuildPathFormControl.value;
|
|
4621
4617
|
app.LowCodeUnit.SourceControlLookup =
|
|
4622
4618
|
this.SourceControlFormControl.value;
|
|
4623
4619
|
break;
|
|
4624
4620
|
case 'NPM':
|
|
4625
|
-
app.LowCodeUnit.Package =
|
|
4626
|
-
|
|
4627
|
-
app.LowCodeUnit.Version =
|
|
4628
|
-
this.VersionFormControl.value;
|
|
4621
|
+
app.LowCodeUnit.Package = this.PackageFormControl.value;
|
|
4622
|
+
app.LowCodeUnit.Version = this.VersionFormControl.value;
|
|
4629
4623
|
break;
|
|
4630
4624
|
case 'WordPress':
|
|
4631
|
-
app.LowCodeUnit.APIRoot =
|
|
4632
|
-
this.APIRootFormControl.value;
|
|
4625
|
+
app.LowCodeUnit.APIRoot = this.APIRootFormControl.value;
|
|
4633
4626
|
break;
|
|
4634
4627
|
case 'Zip':
|
|
4635
|
-
app.LowCodeUnit.ZipFile =
|
|
4636
|
-
this.ZipFileFormControl.value;
|
|
4628
|
+
app.LowCodeUnit.ZipFile = this.ZipFileFormControl.value;
|
|
4637
4629
|
break;
|
|
4638
4630
|
}
|
|
4639
4631
|
break;
|
|
4640
4632
|
case 'OAuth':
|
|
4641
|
-
app.Processor.Scopes =
|
|
4642
|
-
|
|
4643
|
-
app.Processor.TokenLookup =
|
|
4644
|
-
this.TokenLookupFormControl.value;
|
|
4633
|
+
app.Processor.Scopes = this.ScopesFormControl.value.split(' ');
|
|
4634
|
+
app.Processor.TokenLookup = this.TokenLookupFormControl.value;
|
|
4645
4635
|
app.LowCodeUnit = {
|
|
4646
4636
|
Type: this.LCUType,
|
|
4647
4637
|
};
|
|
4648
4638
|
switch (app.LowCodeUnit.Type) {
|
|
4649
4639
|
case 'GitHubOAuth':
|
|
4650
|
-
app.LowCodeUnit.ClientID =
|
|
4651
|
-
|
|
4652
|
-
app.LowCodeUnit.ClientSecret =
|
|
4653
|
-
this.ClientSecretFormControl.value;
|
|
4640
|
+
app.LowCodeUnit.ClientID = this.ClientIDFormControl.value;
|
|
4641
|
+
app.LowCodeUnit.ClientSecret = this.ClientSecretFormControl.value;
|
|
4654
4642
|
break;
|
|
4655
4643
|
}
|
|
4656
4644
|
break;
|
|
4657
4645
|
case 'Proxy':
|
|
4658
|
-
app.Processor.InboundPath =
|
|
4659
|
-
this.InboundPathFormControl.value;
|
|
4646
|
+
app.Processor.InboundPath = this.InboundPathFormControl.value;
|
|
4660
4647
|
app.LowCodeUnit = {
|
|
4661
4648
|
Type: this.LCUType,
|
|
4662
4649
|
};
|
|
4663
4650
|
switch (app.LowCodeUnit.Type) {
|
|
4664
4651
|
case 'API':
|
|
4665
|
-
app.LowCodeUnit.APIRoot =
|
|
4666
|
-
|
|
4667
|
-
app.LowCodeUnit.Security =
|
|
4668
|
-
this.SecurityFormControl.value;
|
|
4652
|
+
app.LowCodeUnit.APIRoot = this.APIRootFormControl.value;
|
|
4653
|
+
app.LowCodeUnit.Security = this.SecurityFormControl.value;
|
|
4669
4654
|
break;
|
|
4670
4655
|
case 'SPA':
|
|
4671
|
-
app.LowCodeUnit.SPARoot =
|
|
4672
|
-
this.SPARootFormControl.value;
|
|
4656
|
+
app.LowCodeUnit.SPARoot = this.SPARootFormControl.value;
|
|
4673
4657
|
break;
|
|
4674
4658
|
}
|
|
4675
4659
|
break;
|
|
4676
4660
|
case 'Redirect':
|
|
4677
|
-
app.Processor.IncludeRequest =
|
|
4678
|
-
|
|
4679
|
-
app.Processor.
|
|
4680
|
-
|
|
4681
|
-
app.Processor.PreserveMethod =
|
|
4682
|
-
!!this.PreserveMethodFormControl.value;
|
|
4683
|
-
app.Processor.Redirect =
|
|
4684
|
-
this.RedirectFormControl.value;
|
|
4661
|
+
app.Processor.IncludeRequest = !!this.IncludeRequestFormControl.value;
|
|
4662
|
+
app.Processor.Permanent = !!this.PermanentFormControl.value;
|
|
4663
|
+
app.Processor.PreserveMethod = !!this.PreserveMethodFormControl.value;
|
|
4664
|
+
app.Processor.Redirect = this.RedirectFormControl.value;
|
|
4685
4665
|
break;
|
|
4686
4666
|
}
|
|
4687
4667
|
if (!app.LookupConfig.PathRegex.startsWith('/')) {
|
|
@@ -4692,12 +4672,12 @@ class ProcessorDetailsFormComponent {
|
|
|
4692
4672
|
Application: app,
|
|
4693
4673
|
ApplicationLookup: this.EditingApplicationLookup || Guid.CreateRaw(),
|
|
4694
4674
|
};
|
|
4695
|
-
this.eacSvc.SaveApplicationAsCode(saveAppReq).then(res => {
|
|
4675
|
+
this.eacSvc.SaveApplicationAsCode(saveAppReq).then((res) => {
|
|
4696
4676
|
this.SaveFormEvent.emit(res);
|
|
4697
4677
|
});
|
|
4698
4678
|
}
|
|
4699
4679
|
SetEditingApplication(appLookup) {
|
|
4700
|
-
this.EditingApplication = new EaCApplicationAsCode;
|
|
4680
|
+
this.EditingApplication = new EaCApplicationAsCode();
|
|
4701
4681
|
this.EditingApplicationLookup = appLookup;
|
|
4702
4682
|
this.setupProcessorDetailsForm();
|
|
4703
4683
|
}
|
|
@@ -4793,14 +4773,16 @@ class ProcessorDetailsFormComponent {
|
|
|
4793
4773
|
});
|
|
4794
4774
|
this.setupDfsForm();
|
|
4795
4775
|
this.setupLcuTypeSubForm();
|
|
4796
|
-
this.listBuildPaths();
|
|
4797
4776
|
}
|
|
4798
4777
|
}
|
|
4799
4778
|
setupLCUGitHubForm() {
|
|
4800
|
-
console.log(
|
|
4779
|
+
console.log('EditingApplication: ', this.EditingApplication);
|
|
4801
4780
|
this.ProcessorDetailsFormGroup.addControl('sourceControl', this.formBldr.control(this.EditingApplication.LowCodeUnit?.SourceControlLookup || '', [Validators.required]));
|
|
4802
|
-
this.ProcessorDetailsFormGroup.addControl('buildPath', this.formBldr.control(this.EditingApplication.LowCodeUnit?.Path || '', [
|
|
4781
|
+
this.ProcessorDetailsFormGroup.addControl('buildPath', this.formBldr.control(this.EditingApplication.LowCodeUnit?.Path || '', [
|
|
4782
|
+
Validators.required,
|
|
4783
|
+
]));
|
|
4803
4784
|
this.ProcessorDetailsFormGroup.addControl('build', this.formBldr.control(this.EditingApplication.LowCodeUnit?.Build || 'latest', [Validators.required]));
|
|
4785
|
+
this.listBuildPaths();
|
|
4804
4786
|
}
|
|
4805
4787
|
setupLCUApplicationPointerForm() {
|
|
4806
4788
|
this.ProcessorDetailsFormGroup.addControl('applicationId', this.formBldr.control(this.EditingApplication.LowCodeUnit?.ApplicationID || '', [Validators.required]));
|