Skip to content

Commit c23a1bd

Browse files
author
Bryan Soltis
committed
Fix typo: Resoure -> Resource throughout the application
1 parent 73186fa commit c23a1bd

10 files changed

Lines changed: 19 additions & 19 deletions

File tree

src/Components/Modals/AddModal.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
</div>
169169
<div id="typemetdadatacontainer" class="modern-card" style="margin-bottom: 1rem;">
170170
<div class="modern-card-header collapsible @(GetCollapseClass("typemetdadata"))" @onclick="@(() => ToggleCollapse("typemetdadata"))">
171-
<span class="oi oi-chevron-bottom" aria-hidden="true"></span> Resoure Type Metadata
171+
<span class="oi oi-chevron-bottom" aria-hidden="true"></span> Resource Type Metadata
172172
</div>
173173
<div class="modern-card-body @(GetCollapseClass("typemetdadata"))" id="typemetdadata">
174174
<div style="margin-bottom: 1rem;">

src/Components/Modals/EditModal.razor

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
</div>
232232
<div id="typemetdadatacontainer" class="modern-card" style="margin-bottom: 1rem;">
233233
<div class="modern-card-header collapsible @(GetCollapseClass("typemetdadata"))" @onclick="@(() => ToggleCollapse("typemetdadata"))">
234-
<span class="oi oi-chevron-bottom" aria-hidden="true"></span> Resoure Type Metadata
234+
<span class="oi oi-chevron-bottom" aria-hidden="true"></span> Resource Type Metadata
235235
</div>
236236
<div class="modern-card-body @(GetCollapseClass("typemetdadata"))" id="typemetdadata">
237237
<div style="margin-bottom: 1rem;">
@@ -347,7 +347,7 @@
347347
</div>
348348
<div id="typemetdadatadisabledcontainer" class="modern-card" style="margin-bottom: 1rem;">
349349
<div class="modern-card-header collapsible @(GetCollapseClass("typemetdadatadisabled"))" @onclick="@(() => ToggleCollapse("typemetdadatadisabled"))">
350-
<span class="oi oi-chevron-bottom" aria-hidden="true"></span> Resoure Type Metadata
350+
<span class="oi oi-chevron-bottom" aria-hidden="true"></span> Resource Type Metadata
351351
</div>
352352
<div class="modern-card-body @(GetCollapseClass("typemetdadatadisabled"))" id="typemetdadatadisabled">
353353
<div style="margin-bottom: 1rem;">
@@ -452,7 +452,7 @@
452452
This option will ADD the component as OPTIONAL for all resource types.
453453
</td>
454454
<td>
455-
<button type="button" class="modern-btn-success w-100" @onclick="@(e => FormAction("ResourceComponent","optional-add"))" style="min-width:42px;" title="Add as OPTIONAL for all resoure types">
455+
<button type="button" class="modern-btn-success w-100" @onclick="@(e => FormAction("ResourceComponent","optional-add"))" style="min-width:42px;" title="Add as OPTIONAL for all Resource types">
456456
ADD
457457
</button>
458458
</td>
@@ -462,7 +462,7 @@
462462
This option will REMOVE the component from OPTIONAL for all resource types.
463463
</td>
464464
<td>
465-
<button type="button" class="modern-btn-danger w-100" @onclick="@(e => FormAction("ResourceComponent","optional-remove"))" style="min-width:42px;" title="Remove as OPTIONAL for all resoure types">
465+
<button type="button" class="modern-btn-danger w-100" @onclick="@(e => FormAction("ResourceComponent","optional-remove"))" style="min-width:42px;" title="Remove as OPTIONAL for all Resource types">
466466
REMOVE
467467
</button>
468468
</td>
@@ -486,7 +486,7 @@
486486
This option will ADD the component as EXCLUDE for all resource types.
487487
</td>
488488
<td>
489-
<button type="button" class="modern-btn-success w-100" @onclick="@(e => FormAction("ResourceComponent","exclude-add"))" style="min-width:42px;" title="Add as EXCLUDE for all resoure types">
489+
<button type="button" class="modern-btn-success w-100" @onclick="@(e => FormAction("ResourceComponent","exclude-add"))" style="min-width:42px;" title="Add as EXCLUDE for all Resource types">
490490
ADD
491491
</button>
492492
</td>
@@ -496,7 +496,7 @@
496496
This option will REMOVE the component from EXCLUDE for all resource types.
497497
</td>
498498
<td>
499-
<button type="button" class="modern-btn-danger w-100" @onclick="@(e => FormAction("ResourceComponent","exclude-remove"))" style="min-width:42px;" title="Remove as EXCLUDE for all resoure types">
499+
<button type="button" class="modern-btn-danger w-100" @onclick="@(e => FormAction("ResourceComponent","exclude-remove"))" style="min-width:42px;" title="Remove as EXCLUDE for all Resource types">
500500
REMOVE
501501
</button>
502502
</td>

src/Components/Pages/Generate.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@
729729
{
730730
// Single type generation
731731
StringBuilder sbName = new();
732-
selectedResourceTypeFull = GeneralHelper.FormatResoureType(selectedResourceTypeDisplayName);
732+
selectedResourceTypeFull = GeneralHelper.FormatResourceType(selectedResourceTypeDisplayName);
733733
if (GeneralHelper.IsNotNull(selectedResourceTypeFull[1]))
734734
{
735735
selectedResourceType = selectedResourceTypeFull[1];
@@ -1096,7 +1096,7 @@
10961096

10971097
if (!String.IsNullOrEmpty(selectedResourceTypeDisplayName))
10981098
{
1099-
selectedResourceTypeFull = GeneralHelper.FormatResoureType(selectedResourceTypeDisplayName);
1099+
selectedResourceTypeFull = GeneralHelper.FormatResourceType(selectedResourceTypeDisplayName);
11001100
if (GeneralHelper.IsNotNull(selectedResourceTypeFull[1]))
11011101
{
11021102
selectedResourceType = selectedResourceTypeFull[1];

src/Helpers/GeneralHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public static string SetTextEnabledClass(bool enabled)
171171
/// </summary>
172172
/// <param name="type">The resource type string</param>
173173
/// <returns>An array containing the formatted resource type</returns>
174-
public static string[] FormatResoureType(string type)
174+
public static string[] FormatResourceType(string type)
175175
{
176176
String[] returntype = new String[4];
177177
returntype[0] = type;

src/Helpers/ValidationHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public static ValidateNameResponse ValidateGeneratedName(Models.ResourceType res
145145
}
146146
else
147147
{
148-
sbMessage.Append("The specified delimiter was removed. This is often caused by the length of the name exceeding the max length and the delimiter removed to shorten the value or the delimiter is not an allowed character for the resoure type.");
148+
sbMessage.Append("The specified delimiter was removed. This is often caused by the length of the name exceeding the max length and the delimiter removed to shorten the value or the delimiter is not an allowed character for the Resource type.");
149149
sbMessage.Append(Environment.NewLine);
150150
}
151151
}

src/Services/ResourceNamingRequestService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public ResourceNamingRequestService(
6868
}
6969

7070
/// <summary>
71-
/// This function will generate a resoure type name for specifed component values. This function requires full definition for all components. It is recommended to use the ResourceNameRequest API function for name generation.
71+
/// This function will generate a Resource type name for specifed component values. This function requires full definition for all components. It is recommended to use the ResourceNameRequest API function for name generation.
7272
/// </summary>
7373
/// <param name="request"></param>
7474
/// <returns>ResourceNameResponse - Response of name generation</returns>

src/Services/ResourceTypeService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,12 +567,12 @@ public async Task<ServiceResponse> ValidateResourceTypeNameAsync(ValidateNameReq
567567
ResourceType? resourceType = null;
568568
if (GeneralHelper.IsNotNull(validateNameRequest.ResourceTypeId))
569569
{
570-
// Get the specified resoure type by id
570+
// Get the specified Resource type by id
571571
resourceType = resourceTypes.FirstOrDefault(x => x.Id == validateNameRequest.ResourceTypeId)!;
572572
}
573573
else
574574
{
575-
// Get the specified resoure type by short name
575+
// Get the specified Resource type by short name
576576
resourceType = resourceTypes.FirstOrDefault(x => x.ShortName == validateNameRequest.ResourceType)!;
577577
}
578578
if (GeneralHelper.IsNotNull(resourceType))

src/repository/resourcetypes.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@
707707
"resource": "Authorization/policyAssignments",
708708
"optional": "UnitDept",
709709
"exclude": "Org,Function",
710-
"property": "Resoure Name",
710+
"property": "Resource Name",
711711
"ShortName": "pas",
712712
"scope": "scope of assignment",
713713
"lengthMin": "1",
@@ -745,7 +745,7 @@
745745
"resource": "Authorization/policyDefinitions",
746746
"optional": "UnitDept",
747747
"exclude": "Org,Function",
748-
"property": "Resoure Name",
748+
"property": "Resource Name",
749749
"ShortName": "policy",
750750
"scope": "scope of definition",
751751
"lengthMin": "1",
@@ -802,7 +802,7 @@
802802
"resource": "Authorization/policySetDefinitions",
803803
"optional": "UnitDept",
804804
"exclude": "Org,Function",
805-
"property": "Resoure Name",
805+
"property": "Resource Name",
806806
"ShortName": "init",
807807
"scope": "scope of definition",
808808
"lengthMin": "1",

tests/AzureNamingTool.UnitTests/GeneralHelperTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void FormatResourceType_SplitsInputIntoArray_WhenInputContains()
3131
{
3232
const string input = "Web/sites - Static Web App (stapp)";
3333

34-
var result = GeneralHelper.FormatResoureType(input);
34+
var result = GeneralHelper.FormatResourceType(input);
3535

3636
result.Length.Should().Be(4);
3737
result[0].Should().Be("Web/sites - Static Web App");

tests/AzureNamingTool.UnitTests/Helpers/GeneralHelperTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public void GenerateRandomString_ShouldContainAlphanumericCharacters_WhenAlphanu
160160
public void FormatResourceType_ShouldFormatCorrectly(string input, string expectedBase)
161161
{
162162
// Act
163-
var result = GeneralHelper.FormatResoureType(input);
163+
var result = GeneralHelper.FormatResourceType(input);
164164

165165
// Assert
166166
result[0].Should().Be(expectedBase);

0 commit comments

Comments
 (0)