@eox/pages-theme-eox 1.3.0 → 1.4.0
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# [1.4.0](https://gitlab.eox.at/eox/hub/eoxhub-portal/compare/v1.3.0...v1.4.0) (2026-04-23)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- support strings for baseprice ([1fd6df2](https://gitlab.eox.at/eox/hub/eoxhub-portal/commit/1fd6df2a226ff79824e0a570312030f9747eacd0))
|
|
8
|
+
|
|
3
9
|
# [1.3.0](https://gitlab.eox.at/eox/hub/eoxhub-portal/compare/v1.2.2...v1.3.0) (2026-04-14)
|
|
4
10
|
|
|
5
11
|
### Features
|
package/package.json
CHANGED
|
@@ -98,10 +98,10 @@ describe("<FeaturesGallery />", () => {
|
|
|
98
98
|
},
|
|
99
99
|
});
|
|
100
100
|
|
|
101
|
-
cy.get("a.link-
|
|
101
|
+
cy.get(".link-card a.link-overlay")
|
|
102
102
|
.should("have.attr", "href", "/card-2")
|
|
103
103
|
.and("have.attr", "target", "_self");
|
|
104
|
-
cy.get("
|
|
104
|
+
cy.get(".link-card article").should("exist");
|
|
105
105
|
});
|
|
106
106
|
|
|
107
107
|
it("does not wrap card when link has text", () => {
|
|
@@ -81,7 +81,15 @@
|
|
|
81
81
|
:class="`cell orig-col-${index + 2}`"
|
|
82
82
|
>
|
|
83
83
|
<div class="small-round surface-container medium-padding">
|
|
84
|
-
<h4
|
|
84
|
+
<h4
|
|
85
|
+
v-if="typeof plan.basePrice === 'string'"
|
|
86
|
+
class="primary-text bold"
|
|
87
|
+
>
|
|
88
|
+
{{ t(plan.basePrice, theme.i18n) }}
|
|
89
|
+
</h4>
|
|
90
|
+
<h4 v-else class="primary-text bold">
|
|
91
|
+
€ {{ calculatePrice(plan) }},-
|
|
92
|
+
</h4>
|
|
85
93
|
</div>
|
|
86
94
|
</div>
|
|
87
95
|
|
|
@@ -301,7 +309,10 @@ export default {
|
|
|
301
309
|
},
|
|
302
310
|
methods: {
|
|
303
311
|
calculatePrice(plan) {
|
|
304
|
-
|
|
312
|
+
// Prevent Math operations from running if a string was passed
|
|
313
|
+
if (typeof plan.basePrice === "string") return 0;
|
|
314
|
+
|
|
315
|
+
const basePrice = plan.basePrice || 0;
|
|
305
316
|
const additionalOptionPrice = this.localOptions
|
|
306
317
|
.filter((option) => option.checked)
|
|
307
318
|
.reduce((sum, option) => sum + (option.modifier || 0), 0);
|