@mundogamernetwork/shared-ui 1.1.64 → 1.1.66

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@mundogamernetwork/shared-ui",
3
- "version": "1.1.64",
3
+ "version": "1.1.66",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -761,7 +761,7 @@ onMounted(async () => {
761
761
  justify-content: space-between;
762
762
 
763
763
  .btn {
764
- background: #D297FF;
764
+ background: var(--key-accent, #D297FF);
765
765
  display: flex;
766
766
  height: 44px;
767
767
  padding: 0 14px;
@@ -787,7 +787,7 @@ onMounted(async () => {
787
787
  align-items: center;
788
788
  gap: 6px;
789
789
  font-size: 13px;
790
- color: #D297FF;
790
+ color: var(--key-accent, #D297FF);
791
791
  cursor: pointer;
792
792
  text-decoration: none;
793
793
  white-space: nowrap;
@@ -806,7 +806,7 @@ onMounted(async () => {
806
806
  font-size: 14px;
807
807
  font-weight: 600;
808
808
  color: var(--card-article-title);
809
- span { color: #d297ff; }
809
+ span { color: var(--key-accent, #d297ff); }
810
810
  .yellow { color: #FFD600; }
811
811
  .red { color: #ff4800; }
812
812
  }
@@ -819,7 +819,7 @@ onMounted(async () => {
819
819
 
820
820
  .progress {
821
821
  height: 24px;
822
- background-color: #d297ff;
822
+ background-color: var(--key-accent, #d297ff);
823
823
  span {
824
824
  position: absolute;
825
825
  right: 5px;
@@ -835,7 +835,7 @@ onMounted(async () => {
835
835
  .info {
836
836
  font-size: 12px;
837
837
  color: var(--secondary-info-fg);
838
- i { color: #d297ff; }
838
+ i { color: var(--key-accent, #d297ff); }
839
839
  .yellow { color: #FFD600; }
840
840
  .red { color: #ff4800; }
841
841
  }
@@ -882,7 +882,7 @@ onMounted(async () => {
882
882
  padding: 4px 10px;
883
883
  font-size: 12px;
884
884
  font-weight: 600;
885
- color: #D297FF;
885
+ color: var(--key-accent, #D297FF);
886
886
  background: rgba(210, 151, 255, 0.12);
887
887
  border: 1px solid rgba(210, 151, 255, 0.35);
888
888
  i { font-size: 13px; }
@@ -981,7 +981,7 @@ onMounted(async () => {
981
981
  gap: 6px;
982
982
  background-color: var(--button-secondary-default-bg);
983
983
  font-size: 28px;
984
- color: #D297FF;
984
+ color: var(--key-accent, #D297FF);
985
985
  font-weight: 700;
986
986
  width: -webkit-fill-available;
987
987
  span { font-size: 10px; color: var(--secondary-info-fg); font-weight: 400; }
@@ -1015,7 +1015,7 @@ onMounted(async () => {
1015
1015
  width: -webkit-fill-available;
1016
1016
  cursor: pointer;
1017
1017
  &:hover, &.active {
1018
- background-color: #D297FF;
1018
+ background-color: var(--key-accent, #D297FF);
1019
1019
  color: #1C1C1C;
1020
1020
  i { color: #1C1C1C; }
1021
1021
  }
@@ -1060,7 +1060,7 @@ onMounted(async () => {
1060
1060
  flex-shrink: 0;
1061
1061
  border-radius: 100%;
1062
1062
  text-align-last: center;
1063
- i { color: #D297FF; }
1063
+ i { color: var(--key-accent, #D297FF); }
1064
1064
  }
1065
1065
  .texts {
1066
1066
  display: flex;
@@ -1081,7 +1081,7 @@ onMounted(async () => {
1081
1081
  width: 100%;
1082
1082
  }
1083
1083
 
1084
- .reward span { color: #D297FF; }
1084
+ .reward span { color: var(--key-accent, #D297FF); }
1085
1085
 
1086
1086
  .data {
1087
1087
  display: flex;
@@ -1114,7 +1114,7 @@ onMounted(async () => {
1114
1114
  font-size: 12px;
1115
1115
  color: var(--secondary-info-fg);
1116
1116
  width: -webkit-fill-available;
1117
- span { font-size: 16px; color: #D297FF; font-weight: 600; }
1117
+ span { font-size: 16px; color: var(--key-accent, #D297FF); font-weight: 600; }
1118
1118
  }
1119
1119
  }
1120
1120
 
@@ -108,6 +108,7 @@
108
108
  class="img-content"
109
109
  :class="{ unavailable: card.isExpired || (!card.isUpcoming && card.available_count < 1) }"
110
110
  >
111
+
111
112
  <img
112
113
  :src="card.cover"
113
114
  :alt="card.text"
@@ -180,19 +181,19 @@
180
181
  </div>
181
182
  </div>
182
183
  </nuxt-link>
184
+ </div>
183
185
 
184
- <div class="title">
185
- <div class="days" v-if="card.time > 0 && card.user_can_access">
186
- <span>{{ card.time }}</span> {{ $t("keys.campaigns.days") }}
187
- </div>
188
- <div class="days" v-else></div>
189
- <span>
190
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
191
- <path d="M13.3333 4.1112L12.8666 3.64453L11.9333 4.57786L10.9333 3.64453L8.33329 4.1112L2.66663 9.77786L7.19996 14.3112L12.8666 8.64453L13.3333 6.04453L12.4 5.1112L13.3333 4.1112ZM12.6 6.24453L12.2666 8.3112L7.19996 13.3779L3.59996 9.77786L8.66663 4.7112L10.7333 4.3112L11.4666 5.04453L11 5.5112L10.5333 5.04453L9.99996 5.57786L11.4 6.97786L11.8666 6.5112L11.4 6.04453L11.8666 5.57786L12.6 6.24453Z" fill="#D297FF" />
192
- </svg>
193
- {{ card.type }}
194
- </span>
186
+ <div class="title">
187
+ <div class="days" v-if="card.time > 0 && card.user_can_access">
188
+ <span>{{ card.time }}</span> {{ $t("keys.campaigns.days") }}
195
189
  </div>
190
+ <div class="days" v-else></div>
191
+ <span>
192
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
193
+ <path d="M13.3333 4.1112L12.8666 3.64453L11.9333 4.57786L10.9333 3.64453L8.33329 4.1112L2.66663 9.77786L7.19996 14.3112L12.8666 8.64453L13.3333 6.04453L12.4 5.1112L13.3333 4.1112ZM12.6 6.24453L12.2666 8.3112L7.19996 13.3779L3.59996 9.77786L8.66663 4.7112L10.7333 4.3112L11.4666 5.04453L11 5.5112L10.5333 5.04453L9.99996 5.57786L11.4 6.97786L11.8666 6.5112L11.4 6.04453L11.8666 5.57786L12.6 6.24453Z" fill="var(--key-accent, #D297FF)" />
194
+ </svg>
195
+ {{ card.type }}
196
+ </span>
196
197
  </div>
197
198
 
198
199
  <div class="text">
@@ -736,7 +737,7 @@ onUnmounted(() => {
736
737
  display: inline-block;
737
738
  width: 20px;
738
739
  height: 20px;
739
- border: 2px solid #d297ff;
740
+ border: 2px solid var(--key-accent, #d297ff);
740
741
  border-radius: 50%;
741
742
  border-top-color: #fff;
742
743
  animation: spin 1s ease-in-out infinite;
@@ -774,7 +775,7 @@ onUnmounted(() => {
774
775
  position: absolute;
775
776
  bottom: 8px;
776
777
  right: 8px;
777
- background: rgba(107, 21, 172, 0.9);
778
+ background: var(--key-accent-dark, rgba(107, 21, 172, 0.9));
778
779
  color: #fff;
779
780
  font-size: 12px;
780
781
  font-weight: 600;
@@ -813,7 +814,7 @@ onUnmounted(() => {
813
814
  position: absolute;
814
815
  top: 8px;
815
816
  left: 8px;
816
- background: rgba(107, 21, 172, 0.9);
817
+ background: var(--key-accent-dark, rgba(107, 21, 172, 0.9));
817
818
  color: #fff;
818
819
  font-size: 10px;
819
820
  font-weight: 700;
@@ -841,9 +842,9 @@ onUnmounted(() => {
841
842
  padding: 12px;
842
843
  text-align: center;
843
844
 
844
- i { font-size: 24px; color: #D297FF; }
845
+ i { font-size: 24px; color: var(--key-accent, #D297FF); }
845
846
  .lock-label { color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
846
- .lock-countdown { color: #D297FF; font-size: 12px; font-weight: 600; }
847
+ .lock-countdown { color: var(--key-accent, #D297FF); font-size: 12px; font-weight: 600; }
847
848
  .lock-cta { color: #EAB308; font-size: 11px; font-weight: 600; }
848
849
  }
849
850
 
@@ -951,7 +952,7 @@ onUnmounted(() => {
951
952
  cursor: pointer;
952
953
  }
953
954
 
954
- span.active { background: #6b15ac; }
955
+ span.active { background: var(--key-accent, #6b15ac); }
955
956
  }
956
957
  }
957
958
 
@@ -996,7 +997,7 @@ onUnmounted(() => {
996
997
  }
997
998
 
998
999
  .header-left .btn.tertiary.active {
999
- background-color: #D297FF;
1000
+ background-color: var(--key-accent, #D297FF);
1000
1001
  color: #1C1C1C;
1001
1002
  }
1002
1003
 
@@ -1015,7 +1016,7 @@ onUnmounted(() => {
1015
1016
  color: var(--title-fg);
1016
1017
  }
1017
1018
 
1018
- &:focus { outline: none; border-color: #D297FF; }
1019
+ &:focus { outline: none; border-color: var(--key-accent, #D297FF); }
1019
1020
  }
1020
1021
 
1021
1022
  .filter-divider {
@@ -1082,40 +1083,12 @@ onUnmounted(() => {
1082
1083
 
1083
1084
  .card-header {
1084
1085
  display: flex;
1085
- align-items: center;
1086
- gap: 16px;
1086
+ flex-direction: column;
1087
+ align-items: stretch;
1087
1088
  border: 0;
1088
1089
  padding: 0;
1089
1090
  background-color: transparent;
1090
1091
 
1091
- .title {
1092
- display: flex;
1093
- padding: 8px 16px;
1094
- align-items: center;
1095
- position: absolute;
1096
- background: rgba(13, 13, 13, 0.9);
1097
- top: 0;
1098
- width: 100%;
1099
- justify-content: space-between;
1100
-
1101
- .days {
1102
- font-size: 12px;
1103
- color: var(--title-fg);
1104
- display: flex;
1105
- align-items: center;
1106
- gap: 4px;
1107
- span { color: #d297ff; font-size: 16px; font-weight: 600; }
1108
- }
1109
-
1110
- span {
1111
- font-size: 12px;
1112
- color: var(--secondary-info-fg);
1113
- display: flex;
1114
- align-items: center;
1115
- gap: 4px;
1116
- }
1117
- }
1118
-
1119
1092
  a {
1120
1093
  width: 100%;
1121
1094
  .img-content {
@@ -1129,6 +1102,32 @@ onUnmounted(() => {
1129
1102
  }
1130
1103
  }
1131
1104
 
1105
+ .title {
1106
+ display: flex;
1107
+ padding: 8px 16px;
1108
+ align-items: center;
1109
+ background: rgba(13, 13, 13, 0.9);
1110
+ width: 100%;
1111
+ justify-content: space-between;
1112
+
1113
+ .days {
1114
+ font-size: 12px;
1115
+ color: var(--title-fg);
1116
+ display: flex;
1117
+ align-items: center;
1118
+ gap: 4px;
1119
+ span { color: var(--key-accent, #d297ff); font-size: 16px; font-weight: 600; }
1120
+ }
1121
+
1122
+ span {
1123
+ font-size: 12px;
1124
+ color: var(--secondary-info-fg);
1125
+ display: flex;
1126
+ align-items: center;
1127
+ gap: 4px;
1128
+ }
1129
+ }
1130
+
1132
1131
  .text {
1133
1132
  color: var(--title-fg);
1134
1133
  font-size: 16px;
@@ -1169,7 +1168,7 @@ onUnmounted(() => {
1169
1168
  justify-content: center;
1170
1169
  cursor: pointer;
1171
1170
  flex-shrink: 0;
1172
- &:hover { border-color: #D297FF; color: #D297FF; }
1171
+ &:hover { border-color: var(--key-accent, #D297FF); color: var(--key-accent, #D297FF); }
1173
1172
  i { font-size: 14px; }
1174
1173
  }
1175
1174
  }
@@ -1188,7 +1187,7 @@ onUnmounted(() => {
1188
1187
  font-size: 12px;
1189
1188
  color: var(--title-fg);
1190
1189
  font-weight: 400;
1191
- span { color: #d297ff; }
1190
+ span { color: var(--key-accent, #d297ff); }
1192
1191
  }
1193
1192
  }
1194
1193
  }
@@ -209,6 +209,7 @@ export const fetchCampaigns = (
209
209
  ...(params.filter || {}),
210
210
  include_early_access_locked: true,
211
211
  mg_platform: mgPlatform,
212
+ status: 1,
212
213
  },
213
214
  page: params.page || 1,
214
215
  per_page: params.per_page || 15,
@@ -233,6 +234,7 @@ export const fetchFeaturedCampaigns = (mgPlatform = "MGTV") => {
233
234
  filter: {
234
235
  is_public: true,
235
236
  status: 1,
237
+ is_featured: true,
236
238
  mg_platform: mgPlatform,
237
239
  },
238
240
  sort: "id",