@dcrackel/hematournamentui 1.0.52 → 1.0.54
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/HemaTouranmentUI-lib.es.js +5185 -5155
- package/dist/HemaTouranmentUI-lib.umd.js +28 -28
- package/package.json +1 -1
- package/src/assets/M2b.png +0 -0
- package/src/mocks/tournamentMock.js +1 -1
- package/src/stories/Molecules/Buttons/BaseButton/BaseButton.vue +1 -1
- package/src/stories/Molecules/Cards/Detail/TournamentCardDetail.vue +25 -1
- package/src/stories/Organisms/Cards/EventCard/EventCard.vue +4 -4
- package/src/stories/Organisms/Cards/TournamentCard/TournamentCard.vue +1 -1
- package/src/stories/Organisms/Grids/GridContainer.vue +0 -1
- package/src/stories/Templates/Menus/Admin/AdminLeftMenu.vue +9 -3
- package/src/stories/Templates/TournamentManagement/EditTournament/ListEvents/ListEvents.vue +7 -1
- package/tailwind.config.js +60 -60
package/package.json
CHANGED
|
Binary file
|
|
@@ -44,7 +44,7 @@ const mockTournaments = [
|
|
|
44
44
|
"Name": "Test Tournament",
|
|
45
45
|
"StartDate": "2023-12-30",
|
|
46
46
|
"EndDate": "2023-12-31",
|
|
47
|
-
"Description": "<p>asdfasdfa</p>",
|
|
47
|
+
"Description": "<p>asdfasdfa ajhasd;likjfh;jkh asdlkjha;fdslkh ;asd;lkjfha;lksdhf ;alksh;lkjha;sdolfkjh;'asdklj f'as'lkj as'ldkj' asdkjlasd'fklja'dkljf sad'</p>",
|
|
48
48
|
"ClubId": 1,
|
|
49
49
|
"AddressId": 2,
|
|
50
50
|
"Club.Name": "Test Club",
|
|
@@ -62,7 +62,7 @@ export default {
|
|
|
62
62
|
admin: 'px-2.5 py-2 items-center rounded-md gap-2.5 text-center my-1 text-neutral hover:bg-primaryHighlight ' +
|
|
63
63
|
(props.selected ? 'bg-primary' : 'bg-primary'),
|
|
64
64
|
|
|
65
|
-
adminSecondary: 'px-2.5 py-
|
|
65
|
+
adminSecondary: 'px-2.5 py-2 rounded-xl items-center gap-2.5 text-center my-1 pb-2 border-b border-secondary hover:bg-bright w-11/12 text-neutral ' +
|
|
66
66
|
(props.selected ? 'bg-primary' : 'bg-primary'),
|
|
67
67
|
|
|
68
68
|
iconOnly: 'px-0.5 items-center rounded-full text-center text-tertiary shadow border border-dropdownSelect justify-center bg-primaryHighlight',
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
<BaseText :text="detail.Name" color="primary" size="xl" weight="semi-bold" />
|
|
4
4
|
<BaseText :text="detail.Address && detail.Address[0].Name" color="primary" size="sm" weight="normal" />
|
|
5
5
|
<div class="mt-4 flex flex-col">
|
|
6
|
-
<div class="mt-4 flex flex-col
|
|
6
|
+
<div class="mt-4 flex flex-col h-20" >
|
|
7
|
+
<span v-html="formattedDescription"></span>
|
|
8
|
+
<span v-if="isTruncated" @click="toggleDescription" class="text-blue-500 cursor-pointer text-right mr-2">
|
|
9
|
+
{{ showMoreDescription ? ' << less ' : 'more >>' }}
|
|
10
|
+
</span>
|
|
11
|
+
</div>
|
|
7
12
|
</div>
|
|
8
13
|
<div class="mt-4 flex flex-col">
|
|
9
14
|
<BaseText :text="`${detail.StartDate}`" color="primaryHighlight" size="sm" weight="light" />
|
|
@@ -49,9 +54,28 @@ export default {
|
|
|
49
54
|
})
|
|
50
55
|
}
|
|
51
56
|
},
|
|
57
|
+
data() {
|
|
58
|
+
return {
|
|
59
|
+
showMoreDescription: false,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
computed: {
|
|
63
|
+
formattedDescription() {
|
|
64
|
+
if (!this.showMoreDescription && this.detail.Description.length > 64) {
|
|
65
|
+
return this.detail.Description.substring(0, 64) + '...';
|
|
66
|
+
}
|
|
67
|
+
return this.detail.Description;
|
|
68
|
+
},
|
|
69
|
+
isTruncated() {
|
|
70
|
+
return this.detail.Description.length > 64;
|
|
71
|
+
}
|
|
72
|
+
},
|
|
52
73
|
methods: {
|
|
53
74
|
onClick() {
|
|
54
75
|
this.$emit('edit', this.detail);
|
|
76
|
+
},
|
|
77
|
+
toggleDescription() {
|
|
78
|
+
this.showMoreDescription = !this.showMoreDescription;
|
|
55
79
|
}
|
|
56
80
|
}
|
|
57
81
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="flex items-center p-4 border border-
|
|
2
|
+
<div class="flex items-center p-4 border border-dropdownSelect rounded-lg shadow-md w-full mb-5">
|
|
3
3
|
<div class="w-full flex flex-row justify-between">
|
|
4
4
|
<section class="flex flex-row justify-start">
|
|
5
5
|
<div class="flex flex-col pl-4">
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
<div class="flex flex-row">
|
|
20
20
|
<section class="w-20 h-16 bg-eventBoxBlue rounded-xl m-1">
|
|
21
21
|
<div class="flex flex-col justify-between h-14 py-2 pl-1">
|
|
22
|
-
<p class="flex flex-row justify-center w-full"><BaseText :text="event.Present" size="
|
|
22
|
+
<p class="flex flex-row justify-center w-full pb-1"><BaseText :text="event.Present" size="lg" color="quinary" weight="bold" /></p>
|
|
23
23
|
<p class="flex flex-row justify-center w-full"><BaseText text="PRESENT" size="xs" color="quinary" /></p>
|
|
24
24
|
</div>
|
|
25
25
|
</section>
|
|
26
26
|
<section class="w-20 h-16 bg-eventBoxGreen rounded-xl m-1">
|
|
27
27
|
<div class="flex flex-col justify-between h-14 py-2 pl-1">
|
|
28
|
-
<p class="flex flex-row justify-center w-full"><BaseText :text="event.Absent" size="
|
|
28
|
+
<p class="flex flex-row justify-center w-full pb-1"><BaseText :text="event.Absent" size="lg" color="quinary" weight="bold" /></p>
|
|
29
29
|
<p class="flex flex-row justify-center w-full"><BaseText text="ABSENT" size="xs" color="quinary" /></p>
|
|
30
30
|
</div>
|
|
31
31
|
</section>
|
|
32
32
|
<section class="w-20 h-16 bg-eventBoxRed rounded-xl m-1">
|
|
33
33
|
<div class="flex flex-col justify-between h-14 py-2 pl-1">
|
|
34
|
-
<p class="flex flex-row justify-center w-full"><BaseText :text="event.Removed" size="
|
|
34
|
+
<p class="flex flex-row justify-center w-full pb-1"><BaseText :text="event.Removed" size="lg" color="quinary" weight="bold" /></p>
|
|
35
35
|
<p class="flex flex-row justify-center w-full"><BaseText text="REMOVED" size="xs" color="quinary" /></p>
|
|
36
36
|
</div>
|
|
37
37
|
</section>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="rounded-xl w-72 shadow border hover:border-bright" @click="listEvents">
|
|
2
|
+
<div class="rounded-xl w-72 shadow border border-dropdownSelect hover:border-bright" @click="listEvents">
|
|
3
3
|
<TournamentHeader :artwork="detail.images && detail.images.length > 0 ? detail.images[0].URL : ''" :tags="detail.tags" />
|
|
4
4
|
<TournamentDetail :detail="detail" @click="onClick"/>
|
|
5
5
|
</div>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="bg-secondary
|
|
2
|
+
<div class="bg-secondary min-h-screen flex flex-col justify-between">
|
|
3
3
|
<section class="h-28 border-b border-neutral">
|
|
4
4
|
<div class="flex flex-col justify-center h-28">
|
|
5
|
-
<div class="
|
|
6
|
-
<img class="w-
|
|
5
|
+
<div class="flex justify-center">
|
|
6
|
+
<img alt="Logo" class="w-24" :src="logoImage" />
|
|
7
7
|
</div>
|
|
8
8
|
</div>
|
|
9
9
|
</section>
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
<script>
|
|
40
40
|
import BaseButton from "../../../Molecules/Buttons/BaseButton/BaseButton.vue";
|
|
41
|
+
import logoImage from '../../../../assets/M2b.png';
|
|
41
42
|
|
|
42
43
|
export default {
|
|
43
44
|
name: 'AdminLeftMenu',
|
|
@@ -48,6 +49,11 @@ export default {
|
|
|
48
49
|
default: () => []
|
|
49
50
|
}
|
|
50
51
|
},
|
|
52
|
+
data() {
|
|
53
|
+
return {
|
|
54
|
+
logoImage,
|
|
55
|
+
};
|
|
56
|
+
},
|
|
51
57
|
methods: {
|
|
52
58
|
handleButtonClick(button) {
|
|
53
59
|
this.$emit('button-click', button);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<section class="w-full">
|
|
5
5
|
<div class="w-full flex flex-col justify-center items-center mb-6" style="text-align: center">
|
|
6
6
|
<div v-if="events.length === 0">
|
|
7
|
-
<img alt="Small desert scene with wind blowing." class="w-96
|
|
7
|
+
<img alt="Small desert scene with wind blowing." class="w-96" :src="emptyDesertIcon" />
|
|
8
8
|
<BaseText :color="'primaryHighlight'" :size="'lf'" :text="'0 events added yet.'"
|
|
9
9
|
:weight="'normal'" data-testid="text-num-events"/>
|
|
10
10
|
<BaseText :color="'primaryHighlight'" :size="'lf'" :text="'Click below to add first event.'"
|
|
@@ -30,6 +30,7 @@ import EditTournamentMenu from "../../../Menus/EditTournamentMenu/EditTournament
|
|
|
30
30
|
import BaseText from "../../../../Atoms/Text/BaseText.vue";
|
|
31
31
|
import BaseButton from "../../../../Molecules/Buttons/BaseButton/BaseButton.vue";
|
|
32
32
|
import EventCard from "../../../../Organisms/Cards/EventCard/EventCard.vue";
|
|
33
|
+
import emptyDesertIcon from '../../../../../assets/empty_desert_icon.png';
|
|
33
34
|
|
|
34
35
|
export default {
|
|
35
36
|
components: {
|
|
@@ -42,6 +43,11 @@ export default {
|
|
|
42
43
|
tournamentId: Number,
|
|
43
44
|
events: Array,
|
|
44
45
|
},
|
|
46
|
+
data() {
|
|
47
|
+
return {
|
|
48
|
+
emptyDesertIcon,
|
|
49
|
+
};
|
|
50
|
+
},
|
|
45
51
|
methods: {
|
|
46
52
|
handleAddEvent() {
|
|
47
53
|
this.$emit('addEvent', this.tournamentId);
|
package/tailwind.config.js
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
/** @type {import('tailwindcss').Config} */
|
|
2
2
|
export default {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
plugins: [
|
|
48
|
-
function ({ addBase, theme }) {
|
|
49
|
-
addBase({
|
|
50
|
-
h1: {
|
|
51
|
-
fontSize: theme('fontSize.3xl'),
|
|
52
|
-
lineHeight: theme('lineHeight.leading-h1'),
|
|
53
|
-
},
|
|
54
|
-
h2: {
|
|
55
|
-
fontSize: theme('fontSize.2xl'),
|
|
56
|
-
lineHeight: theme('lineHeight.h2'),
|
|
3
|
+
content: [
|
|
4
|
+
"./index.html",
|
|
5
|
+
"./src/**/*.{vue,js,ts,jsx,tsx}",
|
|
6
|
+
],
|
|
7
|
+
safelist: [
|
|
8
|
+
'text-accepted',
|
|
9
|
+
'bg-acceptedHighlight',
|
|
10
|
+
'hover:text-alarm'
|
|
11
|
+
],
|
|
12
|
+
theme: {
|
|
13
|
+
extend: {
|
|
14
|
+
fontFamily: {
|
|
15
|
+
sans: ['Inter', 'system-ui', '-apple-system', 'BlinkMacSystemFont']
|
|
16
|
+
},
|
|
17
|
+
lineHeight: {
|
|
18
|
+
'h1': '1.25',
|
|
19
|
+
'h2': '1.5',
|
|
20
|
+
'h3': '1.75'
|
|
21
|
+
},
|
|
22
|
+
colors: {
|
|
23
|
+
accepted: '#1D7E64',
|
|
24
|
+
acceptedBorder: '#ADCFC6',
|
|
25
|
+
acceptedHighlight: '#E5F6F1',
|
|
26
|
+
alarm: '#FD546F',
|
|
27
|
+
alarmText: '#F90229',
|
|
28
|
+
alert: '#FFD255',
|
|
29
|
+
bright: '#6190f2',
|
|
30
|
+
dropdownSelect: '#D5E4EE',
|
|
31
|
+
neutral: '#FFFFFF',
|
|
32
|
+
primary: '#141B33',
|
|
33
|
+
primaryHighlight: '#52586C',
|
|
34
|
+
quaternary: '#8991AC',
|
|
35
|
+
quinary: '#989daa',
|
|
36
|
+
secondary: '#2B324B',
|
|
37
|
+
tertiary: '#F6FAFD',
|
|
38
|
+
eventBoxBlue: '#eff4f7',
|
|
39
|
+
eventBoxGreen: '#f2f7ef',
|
|
40
|
+
eventBoxRed: '#f7efef',
|
|
41
|
+
},
|
|
42
|
+
boxShadow: {
|
|
43
|
+
custom: 'var(--tw-shadow)',
|
|
44
|
+
},
|
|
57
45
|
},
|
|
58
|
-
h3: {
|
|
59
|
-
fontSize: theme('fontSize.xl'),
|
|
60
|
-
lineHeight: theme('lineHeight.h3'),
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
46
|
},
|
|
64
|
-
|
|
47
|
+
plugins: [
|
|
48
|
+
function ({addBase, theme}) {
|
|
49
|
+
addBase({
|
|
50
|
+
h1: {
|
|
51
|
+
fontSize: theme('fontSize.3xl'),
|
|
52
|
+
lineHeight: theme('lineHeight.leading-h1'),
|
|
53
|
+
},
|
|
54
|
+
h2: {
|
|
55
|
+
fontSize: theme('fontSize.2xl'),
|
|
56
|
+
lineHeight: theme('lineHeight.h2'),
|
|
57
|
+
},
|
|
58
|
+
h3: {
|
|
59
|
+
fontSize: theme('fontSize.xl'),
|
|
60
|
+
lineHeight: theme('lineHeight.h3'),
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
65
|
}
|