@dcrackel/meyersquaredui 1.0.76 → 1.0.77
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
|
@@ -1,38 +1,36 @@
|
|
|
1
1
|
const mockGetTournamentId =
|
|
2
2
|
{
|
|
3
|
-
"TournamentId":
|
|
4
|
-
"Name": "
|
|
5
|
-
"StartDate": "2024-10-
|
|
6
|
-
"EndDate": "2024-10-
|
|
7
|
-
"RegistrationCutOff": "2024-10-
|
|
8
|
-
"Description": "<p>
|
|
3
|
+
"TournamentId": 79,
|
|
4
|
+
"Name": "Going The Distance",
|
|
5
|
+
"StartDate": "2024-10-26",
|
|
6
|
+
"EndDate": "2024-10-26",
|
|
7
|
+
"RegistrationCutOff": "2024-10-26",
|
|
8
|
+
"Description": "<p>adsfasdfasdf</p>",
|
|
9
9
|
"HostedOnM2": true,
|
|
10
10
|
"TotalParticipants": 0,
|
|
11
11
|
"Events": [],
|
|
12
12
|
"Club": {
|
|
13
|
-
"Name": "
|
|
14
|
-
"ClubId":
|
|
15
|
-
"Images": [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
]
|
|
13
|
+
"Name": "Columbus United Fencing Club",
|
|
14
|
+
"ClubId": 10,
|
|
15
|
+
"Images": [{
|
|
16
|
+
"ImageId": 45,
|
|
17
|
+
"URL": "https://meyersquared.com/uploads/t-23ee43e9.png",
|
|
18
|
+
"AltText": "Pumpkin Slice image"
|
|
19
|
+
}]
|
|
22
20
|
},
|
|
23
21
|
"Address": {
|
|
24
|
-
"Name": "
|
|
25
|
-
"City": "
|
|
26
|
-
"State": "
|
|
27
|
-
"Address1": "
|
|
28
|
-
"Zip":
|
|
29
|
-
"Coordinates": "
|
|
22
|
+
"Name": "Test Location",
|
|
23
|
+
"City": "Delaware",
|
|
24
|
+
"State": "OH",
|
|
25
|
+
"Address1": "123 Anywhere",
|
|
26
|
+
"Zip": 43015,
|
|
27
|
+
"Coordinates": "40.2828592,-83.1118049"
|
|
30
28
|
},
|
|
31
29
|
"Images": [
|
|
32
30
|
{
|
|
33
|
-
"ImageId":
|
|
34
|
-
"URL": "https://
|
|
35
|
-
"AltText": "
|
|
31
|
+
"ImageId": 42,
|
|
32
|
+
"URL": "https://lh3.googleusercontent.com/p/AF1QipOgGD-nunVSt3U0qj4wItcoXDJfzlGyPgVjdLSU=s680-w680-h510",
|
|
33
|
+
"AltText": "Going The Distance image"
|
|
36
34
|
}
|
|
37
35
|
],
|
|
38
36
|
"PrimaryContact": {
|
|
@@ -42,19 +40,14 @@ const mockGetTournamentId =
|
|
|
42
40
|
},
|
|
43
41
|
"SocialMedia": [
|
|
44
42
|
{
|
|
45
|
-
"Link": "https://www.
|
|
46
|
-
"Type": "
|
|
47
|
-
"Label": "
|
|
43
|
+
"Link": "https://www.cvcombatguild.ca/",
|
|
44
|
+
"Type": "Rules",
|
|
45
|
+
"Label": "Rules Link"
|
|
48
46
|
},
|
|
49
47
|
{
|
|
50
|
-
"Link": "https://
|
|
48
|
+
"Link": "https://hemaeventcalendar.com/",
|
|
51
49
|
"Type": "Registration",
|
|
52
50
|
"Label": "Registration Link"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"Link": "https://www.facebook.com/events/654044546924140/",
|
|
56
|
-
"Type": "Rules",
|
|
57
|
-
"Label": "Rules Link"
|
|
58
51
|
}
|
|
59
52
|
],
|
|
60
53
|
"TotalEvents": 0,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<section>
|
|
13
13
|
<div class="w-full flex justify-center mt-4 md:mt-12 md:pr-4">
|
|
14
14
|
<TournamentDetails
|
|
15
|
-
:imageSrc="
|
|
15
|
+
:imageSrc="TournamentImage"
|
|
16
16
|
:description="tournament.Description"
|
|
17
17
|
:shareLinks="ShareLinks"
|
|
18
18
|
/>
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
</div>
|
|
34
34
|
</section>
|
|
35
35
|
<section class="mt-8 md:mt-16">
|
|
36
|
-
<HostColumn
|
|
37
|
-
:organizerName="ContactName"
|
|
38
|
-
:organizerPortrait="ContactImage"
|
|
39
|
-
:address="tournament.Address"
|
|
40
|
-
:fencersGoing="tournament.TotalParticipants"
|
|
41
|
-
:bookmarksCount="tournament.TotalBookmarks"
|
|
42
|
-
:rulesLink="RulesLink"
|
|
43
|
-
:apiKey="apiKey"
|
|
44
|
-
@rules-click="onRulesClick"
|
|
45
|
-
|
|
36
|
+
<!-- <HostColumn-->
|
|
37
|
+
<!-- :organizerName="ContactName"-->
|
|
38
|
+
<!-- :organizerPortrait="ContactImage"-->
|
|
39
|
+
<!-- :address="tournament.Address"-->
|
|
40
|
+
<!-- :fencersGoing="tournament.TotalParticipants"-->
|
|
41
|
+
<!-- :bookmarksCount="tournament.TotalBookmarks"-->
|
|
42
|
+
<!-- :rulesLink="RulesLink"-->
|
|
43
|
+
<!-- :apiKey="apiKey"-->
|
|
44
|
+
<!-- @rules-click="onRulesClick"-->
|
|
45
|
+
<!-- />-->
|
|
46
46
|
</section>
|
|
47
47
|
</section>
|
|
48
48
|
<Footer/>
|
|
@@ -60,7 +60,6 @@ import EventListCard from "../../Organisms/Cards/EventListCard/EventListCard.vue
|
|
|
60
60
|
import BaseText from "../../Atoms/BaseText/BaseText.vue";
|
|
61
61
|
import BaseButton from "../../Atoms/BaseButton/BaseButton.vue";
|
|
62
62
|
import HostColumn from "../../Organisms/Column/HostColumn.vue";
|
|
63
|
-
import protrait1 from "../../../assets/images/portrait1.png";
|
|
64
63
|
|
|
65
64
|
export default {
|
|
66
65
|
name: 'TournamentDetailPage',
|
|
@@ -82,7 +81,7 @@ export default {
|
|
|
82
81
|
},
|
|
83
82
|
imageSrc: {
|
|
84
83
|
type: String,
|
|
85
|
-
default: 'https://
|
|
84
|
+
default: 'https://meyersquared.com/images/banners/largebanner01.jpg'
|
|
86
85
|
},
|
|
87
86
|
tournament: {
|
|
88
87
|
type: Object,
|
|
@@ -123,6 +122,13 @@ export default {
|
|
|
123
122
|
}
|
|
124
123
|
return this.tournament?.PrimaryContact?.Images?.[0]?.URL || this.defaultPortrait;
|
|
125
124
|
},
|
|
125
|
+
TournamentImage() {
|
|
126
|
+
if (this.tournament?.Images?.[0]?.URL && this.tournament.Images[0].URL.trim() !== '') {
|
|
127
|
+
return 'https://meyersquared.com/uploads/defaulttournament.png';
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return this.defaultTournamentImage;
|
|
131
|
+
},
|
|
126
132
|
RulesLink() {
|
|
127
133
|
console.log(this.tournament.SocialMedia);
|
|
128
134
|
const rulesLink = this.tournament.SocialMedia.find(social => social.Type === 'Rules');
|
|
@@ -155,7 +161,7 @@ export default {
|
|
|
155
161
|
},
|
|
156
162
|
data() {
|
|
157
163
|
return {
|
|
158
|
-
|
|
164
|
+
|
|
159
165
|
}
|
|
160
166
|
},
|
|
161
167
|
methods: {
|