Skip to content

Commit fa8f5e0

Browse files
authored
Merge pull request #137 from aws/comsemer-webforms-as-action
Added WebForms appsettings template and action
2 parents cc6e8c8 + 57e52f6 commit fa8f5e0

20 files changed

+332
-0
lines changed

RecommendationTools/UnitTests/S3SyncTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,14 @@ public async Task ValidateS3RecommendationContentMatchesRepository()
4040
ZipFile.ExtractToDirectory("github.zip", TempExtractDir);
4141
var pathToRepoRecs = $@"{TempExtractDir}\porting-assistant-dotnet-datastore-master\recommendation";
4242
var pathToRepoTemplates = $@"{TempExtractDir}\porting-assistant-dotnet-datastore-master\Templates";
43+
var pathToTagConfigs = $@"{TempExtractDir}\porting-assistant-dotnet-datastore-master\tagconfigs";
4344

4445
var allRepoFilesToCheck = Directory.EnumerateFiles(pathToRepoRecs, "*", SearchOption.AllDirectories).ToList();
4546
var allRepoTemplates = Directory.EnumerateFiles(pathToRepoTemplates, "*", SearchOption.AllDirectories).ToList();
47+
var allRepoConfigs = Directory.EnumerateFiles(pathToTagConfigs, "*", SearchOption.AllDirectories).ToList();
4648

4749
allRepoFilesToCheck.AddRange(allRepoTemplates);
50+
allRepoFilesToCheck.AddRange(allRepoConfigs);
4851

4952
Assert.Multiple(async () =>
5053
{
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"Logging": {
3+
"LogLevel": {
4+
"Default": "Information",
5+
"Microsoft": "Warning",
6+
"Microsoft.Hosting.Lifetime": "Information"
7+
}
8+
},
9+
"AllowedHosts": "*"
10+
}

recommendation/project.all.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@
8282
"Type": "ProjectFile",
8383
"Value": "",
8484
"Description": "Migrate csproj file to core"
85+
},
86+
{
87+
"Name": "WebFormsPorting",
88+
"Type": "ProjectType",
89+
"Value": "",
90+
"Description": "Perform WebForms specific porting steps"
8591
}
8692
]
8793
},
@@ -124,6 +130,12 @@
124130
"Type": "ProjectFile",
125131
"Value": "",
126132
"Description": "Migrate csproj file to core."
133+
},
134+
{
135+
"Name": "WebFormsPorting",
136+
"Type": "ProjectType",
137+
"Value": "",
138+
"Description": "Perform WebForms specific porting steps"
127139
}
128140
]
129141
},
@@ -166,6 +178,12 @@
166178
"Type": "ProjectFile",
167179
"Value": "",
168180
"Description": "Migrate csproj file to core."
181+
},
182+
{
183+
"Name": "WebFormsPorting",
184+
"Type": "ProjectType",
185+
"Value": "",
186+
"Description": "Perform WebForms specific porting steps"
169187
}
170188
]
171189
}

tagconfigs/asp.BoundField.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
!Template
2+
TagName: asp:BoundField
3+
4+
Invocations:
5+
- !AddUsingDirective
6+
NamespaceName: BlazorWebFormsComponents
7+
8+
Templates:
9+
Default: |
10+
<BoundField
11+
DataField=#DataField#
12+
DataFormatString=#DataFormatString#
13+
HeaderText=#HeaderText#
14+
Visible=#Visible:ComponentBoolean#>
15+
#InnerHtml#
16+
</BoundField>

tagconfigs/asp.Button.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
!Template
2+
TagName: asp:Button
3+
CodeBehindType: System.Web.UI.WebControls.Button
4+
CodeBehindHandler: Default
5+
6+
Templates:
7+
Default: |
8+
<button
9+
id=#ID#
10+
class=#CssClass#
11+
@onclick=#OnClick:Click:EventHandler#
12+
disabled=#Enabled:InvertedHtmlBoolean#>
13+
#Text#
14+
</button>

tagconfigs/asp.ButtonField.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
!Template
2+
TagName: asp:ButtonField
3+
4+
Invocations:
5+
- !AddUsingDirective
6+
NamespaceName: BlazorWebFormsComponents
7+
8+
Templates:
9+
Default: |
10+
<ButtonField
11+
ButtonType=#ButtonType#
12+
CommandName=#CommandName#
13+
DataTextField=#DataTextField#
14+
DataTextFormatString=#DataTextFormatString#
15+
ImageUrl=#ImageUrl#
16+
HeaderText=#HeaderText#
17+
Visible=#Visible:ComponentBoolean#>
18+
#InnerHtml#
19+
</ButtonField>

tagconfigs/asp.Content.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
!Template
2+
TagName: asp:Content
3+
Templates:
4+
Default: "#InnerHtml#"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
!Template
2+
TagName: asp:ContentPlaceHolder
3+
Templates:
4+
Default: "@Body"

tagconfigs/asp.GridView.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
!Template
2+
TagName: asp:GridView
3+
CodeBehindType: System.Web.UI.WebControls.GridView
4+
CodeBehindHandler: Default
5+
6+
Invocations:
7+
- !AddUsingDirective
8+
NamespaceName: BlazorWebFormsComponents
9+
10+
Templates:
11+
Default: |
12+
<GridView
13+
ID=#ID#
14+
AutoGenerateColumns=#AutoGenerateColumns:ComponentBoolean#
15+
CssClass=#CssClass#
16+
DataKeyNames=#DataKeyNames#
17+
DataSource=#DataSource#
18+
EmptyDataText=#EmptyDataText#
19+
Enabled=#Enabled:ComponentBoolean#
20+
Items=#Items#
21+
ItemType=#ItemType#
22+
OnDataBinding=#OnDataBinding:DataBinding:EventHandler#
23+
OnDataBound=#OnDataBound:DataBound:EventHandler#
24+
OnItemDataBound=#OnRowDataBound:RowDataBound:EventHandler#
25+
OnInit=#OnInit:Init:EventHandler#
26+
OnLoad=#OnLoad:Load:EventHandler#
27+
OnPreRender=#OnPreRender:PreRender:EventHandler#
28+
OnUnload=#OnUnload:Unload:EventHandler#
29+
OnDisposed=#OnDisposed:Disposed:EventHandler#
30+
TabIndex=#TabIndex#
31+
Visible=#Visible#>
32+
#InnerHtml#
33+
</GridView>

tagconfigs/asp.HyperLink.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
!Template
2+
TagName: asp:HyperLink
3+
CodeBehindType: System.Web.UI.WebControls.HyperLink
4+
CodeBehindHandler: Default
5+
6+
Templates:
7+
Default: |
8+
<a
9+
id=#ID#
10+
class=#CssClass#
11+
href=#NavigateUrl#>
12+
#Text#
13+
#InnerHtml#
14+
</a>

0 commit comments

Comments
 (0)