Skip to content

Commit 14970a7

Browse files
committed
UI(vue) + extras: fix bugs/spelling and standardize
1 parent ac3b180 commit 14970a7

27 files changed

+81
-83
lines changed

.github/linters/codespell.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ initalize
266266
initator
267267
initilization
268268
inspite
269-
instace
270269
instal
271270
instnace
272271
intefaces
@@ -395,7 +394,6 @@ reponse
395394
reqest
396395
reqiured
397396
requieres
398-
requried
399397
reserv
400398
reserverd
401399
reseted

plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/CloudStackTypes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// C# versions of certain CloudStack types to simplify JSON serialisation.
2727
// Limit to the number of types, because they are written and maintained manually.
2828
// JsonProperty used to identify property name when serialised, which allows
29-
// later adoption of C# naming conventions if requried.
29+
// later adoption of C# naming conventions if required.
3030
namespace HypervResource
3131
{
3232
public class PrimaryDataStoreTO

server/src/test/java/com/cloud/api/ApiResponseHelperTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ public void testCreateTrafficTypeResponse() {
458458
}
459459
}
460460

461-
private UnmanagedInstanceTO getUnmanagedInstaceForTests() {
461+
private UnmanagedInstanceTO getUnmanagedInstanceForTests() {
462462
UnmanagedInstanceTO instance = Mockito.mock(UnmanagedInstanceTO.class);
463463
Mockito.when(instance.getPowerState()).thenReturn(UnmanagedInstanceTO.PowerState.PowerOff);
464464
Mockito.when(instance.getClusterName()).thenReturn("CL1");
@@ -477,7 +477,7 @@ private UnmanagedInstanceTO getUnmanagedInstaceForTests() {
477477

478478
@Test
479479
public void testCreateUnmanagedInstanceResponseVmwareDcVms() {
480-
UnmanagedInstanceTO instance = getUnmanagedInstaceForTests();
480+
UnmanagedInstanceTO instance = getUnmanagedInstanceForTests();
481481
UnmanagedInstanceResponse response = apiResponseHelper.createUnmanagedInstanceResponse(instance, null, null);
482482
Assert.assertEquals(1, response.getDisks().size());
483483
Assert.assertEquals(1, response.getNics().size());

test/integration/component/test_netscaler_nw_off.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def test_02_multiple_netscaler_capacilty(self):
802802

803803
# Validate the following
804804
# 1. Add another netscaler device and spawn a new VM again
805-
# 2. VM deployement should be successful
805+
# 2. VM deployment should be successful
806806

807807
self.debug("Adding another netscaler device: %s" %
808808
self.services["netscaler_2"]["ipaddress"])
@@ -1672,7 +1672,7 @@ def test_shared_to_dedicated_upgrade(self):
16721672
# LB rules
16731673
# 5. Deploy instance with dedicated network offering in account 3.
16741674
# Create Lb rules.
1675-
# 6. Configure another instace of netscaler in dedicated mode
1675+
# 6. Configure another instance of netscaler in dedicated mode
16761676
# 7. upgrade networkj for user 1 to dedicated network offering.
16771677
# Create LB rules. LB rule creation should be successful
16781678

@@ -2063,7 +2063,7 @@ def test_shared_to_dedicated_upgrade(self):
20632063
# LB rules
20642064
# 5. Deploy instance with dedicated network offering in account 3.
20652065
# Create Lb rules.
2066-
# 6. Configure another instace of netscaler in dedicated mode
2066+
# 6. Configure another instance of netscaler in dedicated mode
20672067
# 7. upgrade networkj for user 1 to dedicated network offering.
20682068
# Create LB rules. LB rule creation should be successful
20692069

test/integration/component/test_vpc_vm_life_cycle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ def test_02_deploy_vm_vpcvr_stopped(self):
12741274
except Exception as e:
12751275
self.fail("Failed to deploy the virtual instance: %s" % e)
12761276

1277-
self.debug("Verify the deployment of virtual instace")
1277+
self.debug("Verify the deployment of virtual instance")
12781278
vms = VirtualMachine.list(
12791279
self.apiclient,
12801280
id=vm.id,

ui/src/components/view/DedicateDomain.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default {
6767
props: {
6868
error: {
6969
type: Boolean,
70-
requried: true
70+
required: true
7171
}
7272
},
7373
data () {

ui/src/components/view/DeployVMFromBackup.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,7 @@ export default {
15891589
})
15901590
this.fetchBootTypes()
15911591
this.fetchBootModes()
1592-
this.fetchInstaceGroups()
1592+
this.fetchInstanceGroups()
15931593
this.fetchIoPolicyTypes()
15941594
nextTick().then(() => {
15951595
['name', 'keyboard', 'boottype', 'bootmode', 'iothreadsenabled', 'iodriverpolicy', 'nicmultiqueuenumber', 'nicpackedvirtqueues'].forEach(this.fillValue)
@@ -1640,7 +1640,7 @@ export default {
16401640
{ id: 'storage_specific', description: 'storage_specific' }
16411641
]
16421642
},
1643-
fetchInstaceGroups () {
1643+
fetchInstanceGroups () {
16441644
this.options.instanceGroups = []
16451645
getAPI('listInstanceGroups', {
16461646
account: this.$store.getters.project?.id ? null : this.$store.getters.userInfo.account,
@@ -2467,12 +2467,12 @@ export default {
24672467
configuration.cpunumber = 0
24682468
configuration.cpuspeed = 0
24692469
configuration.memory = 0
2470-
for (var harwareItem of configuration.hardwareItems) {
2471-
if (harwareItem.resourceType === 'Processor') {
2472-
configuration.cpunumber = harwareItem.virtualQuantity
2473-
configuration.cpuspeed = harwareItem.reservation
2474-
} else if (harwareItem.resourceType === 'Memory') {
2475-
configuration.memory = harwareItem.virtualQuantity
2470+
for (var hardwareItem of configuration.hardwareItems) {
2471+
if (hardwareItem.resourceType === 'Processor') {
2472+
configuration.cpunumber = hardwareItem.virtualQuantity
2473+
configuration.cpuspeed = hardwareItem.reservation
2474+
} else if (hardwareItem.resourceType === 'Memory') {
2475+
configuration.memory = hardwareItem.virtualQuantity
24762476
}
24772477
}
24782478
configurations.push(configuration)

ui/src/components/view/ResourceCountUsage.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
v-if="taggedUsage[item]"
4141
class="list-item__collapse"
4242
@change="handleCollapseChange(item)">
43-
<a-collapse-panel key="1" :header="collpaseActive[item] ? $t('label.tagged.limits') : $t('label.tagged.limits') + ' - ' + this.tagData[item].tagsasstring">
43+
<a-collapse-panel key="1" :header="collapseActive[item] ? $t('label.tagged.limits') : $t('label.tagged.limits') + ' - ' + this.tagData[item].tagsasstring">
4444
<a-list
4545
size="small"
4646
:loading="loading"
@@ -96,7 +96,7 @@ export default {
9696
],
9797
taggedUsage: {},
9898
tagData: {},
99-
collpaseActive: {}
99+
collapseActive: {}
100100
}
101101
},
102102
created () {
@@ -168,11 +168,11 @@ export default {
168168
}
169169
},
170170
handleCollapseChange (type) {
171-
if (this.collpaseActive[type]) {
172-
this.collpaseActive[type] = null
171+
if (this.collapseActive[type]) {
172+
this.collapseActive[type] = null
173173
return
174174
}
175-
this.collpaseActive[type] = true
175+
this.collapseActive[type] = true
176176
}
177177
}
178178
}

ui/src/components/view/ResourceLimitTab.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
v-if="item.taggedresource && item.taggedresource.length > 0"
4444
class="tagged-limit-collapse"
4545
@change="handleCollapseChange(item.resourcetypename)">
46-
<a-collapse-panel key="1" :header="collpaseActive[item.resourcetypename] ? $t('label.tagged.limits') : $t('label.tagged.limits') + ' - ' + item.tagsasstring">
46+
<a-collapse-panel key="1" :header="collapseActive[item.resourcetypename] ? $t('label.tagged.limits') : $t('label.tagged.limits') + ' - ' + item.tagsasstring">
4747
<div v-for="(subItem, subItemIndex) in item.taggedresource" :key="subItemIndex">
4848
<a-form-item
4949
:v-bind="subItem.resourcetypename"
@@ -94,7 +94,7 @@ export default {
9494
return {
9595
formLoading: false,
9696
dataResource: [],
97-
collpaseActive: {},
97+
collapseActive: {},
9898
resourceTypeIdNames: {}
9999
}
100100
},
@@ -259,11 +259,11 @@ export default {
259259
})
260260
},
261261
handleCollapseChange (type) {
262-
if (this.collpaseActive[type]) {
263-
this.collpaseActive[type] = null
262+
if (this.collapseActive[type]) {
263+
this.collapseActive[type] = null
264264
return
265265
}
266-
this.collpaseActive[type] = true
266+
this.collapseActive[type] = true
267267
}
268268
}
269269
}

ui/src/components/view/TestWebhookDeliveryView.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default {
126126
collapseKey: undefined,
127127
loading: false,
128128
testDeliveryInterval: null,
129-
testDeliveryIntervalCouter: 0
129+
testDeliveryIntervalCounter: 0
130130
}
131131
},
132132
beforeCreate () {
@@ -154,8 +154,8 @@ export default {
154154
return (duration > 0 ? duration / 1000.0 : 0) + ''
155155
},
156156
computedOverlayStyle () {
157-
var opacity = this.testDeliveryIntervalCouter <= 10.0 ? 0 : 0.3
158-
var width = this.testDeliveryIntervalCouter
157+
var opacity = this.testDeliveryIntervalCounter <= 10.0 ? 0 : 0.3
158+
var width = this.testDeliveryIntervalCounter
159159
return 'opacity: ' + opacity + '; width: ' + width + '%;'
160160
}
161161
},
@@ -168,7 +168,7 @@ export default {
168168
if (this.testDeliveryInterval) {
169169
clearInterval(this.testDeliveryInterval)
170170
}
171-
this.testDeliveryIntervalCouter = 0
171+
this.testDeliveryIntervalCounter = 0
172172
},
173173
testWebhookDelivery () {
174174
this.resetTestDeliveryInterval()
@@ -223,8 +223,8 @@ export default {
223223
this.resetTestDeliveryInterval()
224224
return
225225
}
226-
this.testDeliveryIntervalCouter = this.testDeliveryIntervalCouter + 1
227-
if (this.testDeliveryIntervalCouter >= 100) {
226+
this.testDeliveryIntervalCounter = this.testDeliveryIntervalCounter + 1
227+
if (this.testDeliveryIntervalCounter >= 100) {
228228
this.executeTestWebhookDeliveryOrReset()
229229
}
230230
}, this.timedDeliveryWait / 100)

0 commit comments

Comments
 (0)