Skip to content

Commit 3f9d399

Browse files
committed
removed raw html and set link static
1 parent 32b2237 commit 3f9d399

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

src/tools/raid-calculator/raid-calculator.service.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface RaidType {
1111

1212
const raidCalculations: { [key: string]: RaidType } = {
1313
raid_0: {
14-
about: 'RAID 0 splits data evenly across 2 or more disks without redunancy or fault tolerance creating one large storage space. More info: <a href="https://en.wikipedia.org/wiki/Standard_RAID_levels#RAID_0" target="_blank">Wikipedia</a>',
14+
about: 'RAID 0 splits data evenly across 2 or more disks without redunancy or fault tolerance creating one large storage space.',
1515
requirements: 'RAID 0 requires at least 1 disk',
1616
validate(num: number, size: number, stripeSize: number) {
1717
return num > 1;
@@ -29,7 +29,7 @@ const raidCalculations: { [key: string]: RaidType } = {
2929
},
3030
},
3131
raid_1: {
32-
about: 'RAID 1 consists of an exact copy of the data (mirror) across two or more disks. The array will operate as long as at least one drive is operational. More info: <a href="https://en.wikipedia.org/wiki/Standard_RAID_levels#RAID_1" target="_blank">Wikipedia</a>',
32+
about: 'RAID 1 consists of an exact copy of the data (mirror) across two or more disks. The array will operate as long as at least one drive is operational.',
3333
requirements: 'RAID 1 requires at least 1 disk',
3434
validate(num: number, size: number, stripeSize: number) {
3535
return num > 1;
@@ -48,7 +48,7 @@ const raidCalculations: { [key: string]: RaidType } = {
4848
},
4949
},
5050
raid_5: {
51-
about: 'RAID 5 uses block level striping with parity. This allows for fault tolerance with a storage reduction equal to one drive for the parity information. More info: <a href="https://en.wikipedia.org/wiki/Standard_RAID_levels#RAID_5" target="_blank">Wikipedia</a>',
51+
about: 'RAID 5 uses block level striping with parity. This allows for fault tolerance with a storage reduction equal to one drive for the parity information.',
5252
requirements: 'RAID 5 requires at least 3 disks',
5353
validate(num: number, size: number, stripeSize: number) {
5454
return num >= 3;
@@ -67,7 +67,7 @@ const raidCalculations: { [key: string]: RaidType } = {
6767
},
6868
},
6969
raid_6: {
70-
about: 'RAID 6 is similiar to RAID 5 but with an additional parity block. This allows for an additional disk failure at the cost of storage reduction equal to two drives. More info: <a href="https://en.wikipedia.org/wiki/Standard_RAID_levels#RAID_6" target="_blank">Wikipedia</a>',
70+
about: 'RAID 6 is similiar to RAID 5 but with an additional parity block. This allows for an additional disk failure at the cost of storage reduction equal to two drives.',
7171
requirements: 'RAID 6 requires at least 4 disks',
7272
validate(num: number, size: number, stripeSize: number) {
7373
return num >= 4;
@@ -86,7 +86,7 @@ const raidCalculations: { [key: string]: RaidType } = {
8686
},
8787
},
8888
raid_10: {
89-
about: 'RAID 10 is a stripe of mirrors (RAID 1 + RAID 0). Each set of drives is mirrored and striped together so that each drive in the set is fault tolerant within the group. More info: <a href="https://en.wikipedia.org/wiki/Nested_RAID_levels#RAID_10_(RAID_1+0)" target="_blank">Wikipedia</a>',
89+
about: 'RAID 10 is a stripe of mirrors (RAID 1 + RAID 0). Each set of drives is mirrored and striped together so that each drive in the set is fault tolerant within the group.',
9090
requirements: 'RAID 10 requires an even number of at least 4 disks',
9191
validate(num: number, size: number, stripeSize: number) {
9292
return num >= 4 && num % 2 === 0;
@@ -105,7 +105,7 @@ const raidCalculations: { [key: string]: RaidType } = {
105105
},
106106
},
107107
raid_50: {
108-
about: 'RAID 50 stripes multiple RAID 5 arrays together (RAID 5 + RAID 0). Each RAID 5 set can sustain a single drive failure. More info: <a href="https://en.wikipedia.org/wiki/Nested_RAID_levels#RAID_50_(RAID_5+0)" target="_blank">Wikipedia</a>',
108+
about: 'RAID 50 stripes multiple RAID 5 arrays together (RAID 5 + RAID 0). Each RAID 5 set can sustain a single drive failure.',
109109
requirements: 'RAID 50 requires at least 6 disks with 3 minimum per stripe. Stripes must contain an equal number of disks.',
110110
validate(num: number, size: number, stripeSize: number) {
111111
return num >= 6 && stripeSize >= 3 && num % stripeSize === 0;
@@ -127,8 +127,8 @@ const raidCalculations: { [key: string]: RaidType } = {
127127
},
128128
},
129129
raid_60: {
130-
about: 'RAID 60 stripes multiple RAID 6 arrays together (RAID 6 + RAID 0). Each RAID 6 set can sustain a two drive failures. More info: <a href="https://en.wikipedia.org/wiki/Nested_RAID_levels#RAID_60_(RAID_6+0)" target="_blank">Wikipedia</a>',
131-
requirements: 'RAID 50 requires at least 8 disks with 4 minimum per stripe. Stripes must contain an equal number of disks.',
130+
about: 'RAID 60 stripes multiple RAID 6 arrays together (RAID 6 + RAID 0). Each RAID 6 set can sustain a two drive failures.',
131+
requirements: 'RAID 60 requires at least 8 disks with 4 minimum per stripe. Stripes must contain an equal number of disks.',
132132
validate(num: number, size: number, stripeSize: number) {
133133
return num >= 8 && stripeSize >= 4 && num % stripeSize === 0;
134134
},

src/tools/raid-calculator/raid-calculator.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ function validateSetup() {
8383
<p v-if="!inputsValid" class="raidError">
8484
{{ raidRequirements }}
8585
</p>
86-
<p v-html="raidInfo" />
86+
<p>
87+
{{ raidInfo }}<br /><br />
88+
For more information on RAID types, see <a href="https://en.wikipedia.org/wiki/Standard_RAID_levels" target="_blank">Wikipedia</a>.
89+
</p>
8790
</c-card>
8891
<c-card title="Results">
8992
<n-table v-if="inputsValid">

0 commit comments

Comments
 (0)