Skip to content

Commit d9983de

Browse files
authored
Change out of stock URL to discord (#3256)
* Change out of stock URL to discord, switch from router links to normal anchor tags * Update changelog
1 parent 6a12ef0 commit d9983de

File tree

3 files changed

+25
-16
lines changed

3 files changed

+25
-16
lines changed

apps/frontend/src/pages/servers/index.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -640,15 +640,15 @@
640640
</h2>
641641
</div>
642642
<ButtonStyled color="blue" size="large">
643-
<NuxtLink
643+
<a
644644
v-if="!loggedOut && isSmallAtCapacity"
645-
:to="outOfStockUrl"
645+
:href="outOfStockUrl"
646646
target="_blank"
647647
class="flex items-center gap-2 !bg-highlight-blue !font-medium !text-blue"
648648
>
649649
Out of Stock
650650
<ExternalIcon class="!min-h-4 !min-w-4 !text-blue" />
651-
</NuxtLink>
651+
</a>
652652
<button
653653
v-else
654654
class="!bg-highlight-blue !font-medium !text-blue"
@@ -703,15 +703,15 @@
703703
</h2>
704704
</div>
705705
<ButtonStyled color="brand" size="large">
706-
<NuxtLink
706+
<a
707707
v-if="!loggedOut && isMediumAtCapacity"
708-
:to="outOfStockUrl"
708+
:href="outOfStockUrl"
709709
target="_blank"
710710
class="flex items-center gap-2 !bg-highlight-green !font-medium !text-green"
711711
>
712712
Out of Stock
713713
<ExternalIcon class="!min-h-4 !min-w-4 !text-green" />
714-
</NuxtLink>
714+
</a>
715715
<button
716716
v-else
717717
class="!bg-highlight-green !font-medium !text-green"
@@ -757,15 +757,15 @@
757757
</h2>
758758
</div>
759759
<ButtonStyled color="brand" size="large">
760-
<NuxtLink
760+
<a
761761
v-if="!loggedOut && isLargeAtCapacity"
762-
:to="outOfStockUrl"
762+
:href="outOfStockUrl"
763763
target="_blank"
764764
class="flex items-center gap-2 !bg-highlight-purple !font-medium !text-purple"
765765
>
766766
Out of Stock
767767
<ExternalIcon class="!min-h-4 !min-w-4 !text-purple" />
768-
</NuxtLink>
768+
</a>
769769
<button
770770
v-else
771771
class="!bg-highlight-purple !font-medium !text-purple"
@@ -871,7 +871,7 @@ const deletingSpeed = 25;
871871
const pauseTime = 2000;
872872
873873
const loggedOut = computed(() => !auth.value.user);
874-
const outOfStockUrl = "https://support.modrinth.com";
874+
const outOfStockUrl = "https://discord.modrinth.com";
875875
876876
const { data: hasServers } = await useAsyncData("ServerListCountCheck", async () => {
877877
try {

packages/ui/src/components/changelog/ChangelogEntry.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</h2>
2424
</AutoLink>
2525
<div
26-
v-if="recent"
26+
v-if="recent && !future"
2727
v-tooltip="dateTooltip"
2828
class="hidden sm:flex"
2929
:class="{ 'cursor-help': dateTooltip }"
@@ -66,11 +66,8 @@ const props = withDefaults(
6666
)
6767
6868
const currentDate = ref(dayjs())
69-
const recent = computed(
70-
() =>
71-
props.entry.date.isAfter(currentDate.value.subtract(1, 'week')) &&
72-
props.entry.date.isBefore(currentDate.value),
73-
)
69+
const recent = computed(() => props.entry.date.isAfter(currentDate.value.subtract(1, 'week')))
70+
const future = computed(() => props.entry.date.isBefore(currentDate.value))
7471
const dateTooltip = computed(() => props.entry.date.format('MMMM D, YYYY [at] h:mm A'))
7572
7673
const relativeDate = computed(() => props.entry.date.fromNow())

packages/utils/changelog.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ export type VersionEntry = {
1010
}
1111

1212
const VERSIONS: VersionEntry[] = [
13+
{
14+
date: `2025-02-12T19:10:00-08:00`,
15+
product: 'web',
16+
body: `### Improvements
17+
- Servers out of stock link now links to Modrinth Discord instead of support page.`,
18+
},
19+
{
20+
date: `2025-02-12T19:10:00-08:00`,
21+
product: 'servers',
22+
body: `### Added
23+
- Added server upgrades to switch to a larger plan as an option in billing settings.`,
24+
},
1325
{
1426
date: `2025-02-12T12:10:00-08:00`,
1527
product: 'web',

0 commit comments

Comments
 (0)