@baravak/risloo-profile-cli 4.2.0 → 4.2.3
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/package.json
CHANGED
package/src/samples/YSQ93.js
CHANGED
|
@@ -96,7 +96,7 @@ class YSQ93 extends Profile {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
a6_line.push(start + 2)
|
|
99
|
-
const is_critical = a5.length
|
|
99
|
+
const is_critical = a5.length + a6.length >= 3 ? true : false
|
|
100
100
|
return Object.assign({}, s, {
|
|
101
101
|
up:s.label.eng.toUpperCase(),
|
|
102
102
|
a5:a5,
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
{{#if item.a5}}
|
|
35
35
|
<line x1="{{item.a5_line.[0]}}" x2="{{item.a5_line.[1]}}" y1="8" y2="8" stroke="#D1D5DB" />
|
|
36
36
|
<g transform="translate(0, 0)">
|
|
37
|
-
<rect x="0" y="0" rx="4" fill="#E11D48" width="35" height="16" />
|
|
37
|
+
<rect x="0" y="0" rx="4" fill="{{ternary is_critical '#E11D48' '#4F46E5'}}" width="35" height="16" />
|
|
38
38
|
<text x="17.5" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="13" fill="#FFFFFF">گ5</text>
|
|
39
39
|
</g>
|
|
40
40
|
{{#each item.a5 as |aItem aIndex|}}
|
|
41
41
|
<g transform="translate({{aItem.start}}, 0)">
|
|
42
|
-
<rect x="0" y="0" rx="4" fill="#FFF1F2" width="24" height="16" />
|
|
43
|
-
<text x="12" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="13" fill="#E11D48">{{aItem.item}}</text>
|
|
42
|
+
<rect x="0" y="0" rx="4" fill="{{ternary ../is_critical '#FFF1F2' '#EEF2FF'}}" width="24" height="16" />
|
|
43
|
+
<text x="12" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="13" fill="{{ternary ../is_critical '#E11D48' '#4F46E5'}}">{{aItem.item}}</text>
|
|
44
44
|
</g>
|
|
45
45
|
{{/each}}
|
|
46
46
|
{{/if}}
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
{{#if item.a6}}
|
|
49
49
|
<line x1="{{item.a6_line.[0]}}" x2="{{item.a6_line.[1]}}" y1="8" y2="8" stroke="#D1D5DB" />
|
|
50
50
|
<g transform="translate({{item.a6_start}}, 0)">
|
|
51
|
-
<rect x="0" y="0" rx="4" fill="#BE123C" width="35" height="16" />
|
|
51
|
+
<rect x="0" y="0" rx="4" fill="{{ternary is_critical '#BE123C' '#4338CA'}}" width="35" height="16" />
|
|
52
52
|
<text x="17.5" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="13" fill="#FFFFFF">گ6</text>
|
|
53
53
|
</g>
|
|
54
54
|
{{#each item.a6 as |aItem aIndex|}}
|
|
55
55
|
<g transform="translate({{aItem.start}}, 0)">
|
|
56
|
-
<rect x="0" y="0" rx="4" fill="#FFE4E6" width="24" height="16" />
|
|
57
|
-
<text x="12" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="13" fill="#BE123C">{{aItem.item}}</text>
|
|
56
|
+
<rect x="0" y="0" rx="4" fill="{{ternary ../is_critical '#FFE4E6' '#EEF2FF'}}" width="24" height="16" />
|
|
57
|
+
<text x="12" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="13" fill="{{ternary ../is_critical '#BE123C' '#4338CA'}}">{{aItem.item}}</text>
|
|
58
58
|
</g>
|
|
59
59
|
{{/each}}
|
|
60
60
|
{{/if}}
|