@dcrackel/meyersquaredui 1.0.129 → 1.0.130
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/dist/meyersquaredui.es.js +49 -34
- package/dist/meyersquaredui.umd.js +4 -4
- package/package.json +1 -1
- package/src/stories/Organisms/Cards/BoutCard/BoutCard.stories.js +1 -1
- package/src/stories/Organisms/Cards/BoutCard/BoutCard.vue +13 -5
- package/src/stories/Organisms/Cards/BoutCardMobile/BoutCardMobile.vue +9 -0
- package/src/stories/Organisms/Grids/GridLivePool/GridLivePool.vue +2 -2
- package/src/stories/Organisms/Headers/TabHeader/TabHeader.vue +1 -1
- package/src/stories/Organisms/HeroBanners/HomePage/HeroBanner.vue +1 -1
- package/src/stories/Organisms/HeroBanners/TournamentDetails/TournamentDetailsBanner.vue +1 -1
- package/src/stories/Organisms/HeroBanners/Tournaments/TournamentBanner.vue +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section>
|
|
3
|
+
<!-- Custom Status -->
|
|
4
|
+
<div v-if="bout.customStatus && status !== 'Active'" class="text-left">
|
|
5
|
+
<BaseText size="sm" color="primary">{{ bout.customStatus }}</BaseText>
|
|
6
|
+
</div>
|
|
3
7
|
<div class="flex items-center justify-between rounded-lg w-full">
|
|
4
8
|
<!-- Fencer 1 -->
|
|
5
9
|
<div class="w-5/12 flex justify-between border-l border-t border-b p-2 bg-poolBox rounded-l-xl"
|
|
@@ -42,11 +46,6 @@
|
|
|
42
46
|
</div>
|
|
43
47
|
</div>
|
|
44
48
|
</div>
|
|
45
|
-
|
|
46
|
-
<!-- Custom Status -->
|
|
47
|
-
<div v-if="bout.customStatus && status !== 'Active'" class="text-left">
|
|
48
|
-
<BaseText size="sm" color="primary">{{ bout.customStatus }}</BaseText>
|
|
49
|
-
</div>
|
|
50
49
|
</section>
|
|
51
50
|
</template>
|
|
52
51
|
|
|
@@ -93,6 +92,15 @@ export default {
|
|
|
93
92
|
beforeDestroy() {
|
|
94
93
|
this.stopTimer();
|
|
95
94
|
},
|
|
95
|
+
watch: {
|
|
96
|
+
timerStatus(newStatus) {
|
|
97
|
+
if (newStatus === 'running') {
|
|
98
|
+
this.startTimer();
|
|
99
|
+
} else {
|
|
100
|
+
this.stopTimer();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
96
104
|
computed: {
|
|
97
105
|
status() {
|
|
98
106
|
return this.isWaiting ? 'waiting' : this.bout.Status;
|
|
@@ -85,6 +85,15 @@ export default {
|
|
|
85
85
|
beforeDestroy() {
|
|
86
86
|
this.stopTimer();
|
|
87
87
|
},
|
|
88
|
+
watch: {
|
|
89
|
+
timerStatus(newStatus) {
|
|
90
|
+
if (newStatus === 'running') {
|
|
91
|
+
this.startTimer();
|
|
92
|
+
} else {
|
|
93
|
+
this.stopTimer();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
88
97
|
computed: {
|
|
89
98
|
status() {
|
|
90
99
|
return this.isWaiting ? 'waiting' : this.bout.Status;
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
<BoutCardMobile v-if="isMobile" :bout="{}" :hostingClubColors="hostingClubColors" :isWaiting="true"/>
|
|
11
11
|
</div>
|
|
12
12
|
<div v-for="bout in activeBouts" :key="bout.BoutId" class="w-full md:w-3/4 md:my-4">
|
|
13
|
-
<BoutCard v-if="!isMobile" :bout="bout" :hostingClubColors="hostingClubColors" />
|
|
14
|
-
<BoutCardMobile v-if="isMobile" :bout="bout" :hostingClubColors="hostingClubColors" />
|
|
13
|
+
<BoutCard v-if="!isMobile" :bout="bout" :hostingClubColors="hostingClubColors" :timerStatus="bout.TimerStatus" />
|
|
14
|
+
<BoutCardMobile v-if="isMobile" :bout="bout" :hostingClubColors="hostingClubColors" :timerStatus="bout.TimerStatus" />
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
17
|
</section>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<!-- Center Content -->
|
|
7
7
|
<div class="relative w-full md:border-b md:border-l md:border-r border-lineGrey">
|
|
8
8
|
<!-- Non-Mobile Image -->
|
|
9
|
-
<img v-if="!isMobile" :src="imageSrc" alt="Hero Image" class="w-full h-full object-cover" />
|
|
9
|
+
<img v-if="!isMobile" :src="imageSrc" alt="Hero Image" class="w-full h-full object-cover" loading="lazy" />
|
|
10
10
|
|
|
11
11
|
<!-- Text Overlay for Desktop -->
|
|
12
12
|
<section class="hidden md:flex absolute inset-0 items-center justify-start px-8 mt-40">
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<!-- Main Content -->
|
|
7
7
|
<div class="relative w-full md:border-b md:border-l md:border-r border-lineGrey">
|
|
8
8
|
<!-- Background Image -->
|
|
9
|
-
<img v-if="!isMobile" :src="imageSrc" alt="Hero Image" class="w-full h-full object-cover object-top max-h-96"/>
|
|
9
|
+
<img v-if="!isMobile" :src="imageSrc" alt="Hero Image" class="w-full h-full object-cover object-top max-h-96" loading="lazy"/>
|
|
10
10
|
|
|
11
11
|
<!-- Text Overlay for Desktop -->
|
|
12
12
|
<section class="hidden w-full md:flex absolute inset-0 justify-between items-end">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="hidden md:block w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"></div>
|
|
4
4
|
|
|
5
5
|
<div class="relative w-full md:border-b md:border-l md:border-r border-lineGrey">
|
|
6
|
-
<img v-if="!isMobile" :src="imageSrc" alt="Hero Image" class="w-full h-full object-cover object-top max-h-96" />
|
|
6
|
+
<img v-if="!isMobile" :src="imageSrc" alt="Hero Image" class="w-full h-full object-cover object-top max-h-96" loading="lazy" />
|
|
7
7
|
|
|
8
8
|
<section class="hidden md:flex absolute inset-0 items-center justify-start px-8 pt-32">
|
|
9
9
|
<div class="text-left text-white max-w-lg">
|