You've already forked AstralRinth
forked from didirus/AstralRinth
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
This commit is contained in:
@@ -640,15 +640,15 @@
|
|||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<ButtonStyled color="blue" size="large">
|
<ButtonStyled color="blue" size="large">
|
||||||
<NuxtLink
|
<a
|
||||||
v-if="!loggedOut && isSmallAtCapacity"
|
v-if="!loggedOut && isSmallAtCapacity"
|
||||||
:to="outOfStockUrl"
|
:href="outOfStockUrl"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="flex items-center gap-2 !bg-highlight-blue !font-medium !text-blue"
|
class="flex items-center gap-2 !bg-highlight-blue !font-medium !text-blue"
|
||||||
>
|
>
|
||||||
Out of Stock
|
Out of Stock
|
||||||
<ExternalIcon class="!min-h-4 !min-w-4 !text-blue" />
|
<ExternalIcon class="!min-h-4 !min-w-4 !text-blue" />
|
||||||
</NuxtLink>
|
</a>
|
||||||
<button
|
<button
|
||||||
v-else
|
v-else
|
||||||
class="!bg-highlight-blue !font-medium !text-blue"
|
class="!bg-highlight-blue !font-medium !text-blue"
|
||||||
@@ -703,15 +703,15 @@
|
|||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<ButtonStyled color="brand" size="large">
|
<ButtonStyled color="brand" size="large">
|
||||||
<NuxtLink
|
<a
|
||||||
v-if="!loggedOut && isMediumAtCapacity"
|
v-if="!loggedOut && isMediumAtCapacity"
|
||||||
:to="outOfStockUrl"
|
:href="outOfStockUrl"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="flex items-center gap-2 !bg-highlight-green !font-medium !text-green"
|
class="flex items-center gap-2 !bg-highlight-green !font-medium !text-green"
|
||||||
>
|
>
|
||||||
Out of Stock
|
Out of Stock
|
||||||
<ExternalIcon class="!min-h-4 !min-w-4 !text-green" />
|
<ExternalIcon class="!min-h-4 !min-w-4 !text-green" />
|
||||||
</NuxtLink>
|
</a>
|
||||||
<button
|
<button
|
||||||
v-else
|
v-else
|
||||||
class="!bg-highlight-green !font-medium !text-green"
|
class="!bg-highlight-green !font-medium !text-green"
|
||||||
@@ -757,15 +757,15 @@
|
|||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<ButtonStyled color="brand" size="large">
|
<ButtonStyled color="brand" size="large">
|
||||||
<NuxtLink
|
<a
|
||||||
v-if="!loggedOut && isLargeAtCapacity"
|
v-if="!loggedOut && isLargeAtCapacity"
|
||||||
:to="outOfStockUrl"
|
:href="outOfStockUrl"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="flex items-center gap-2 !bg-highlight-purple !font-medium !text-purple"
|
class="flex items-center gap-2 !bg-highlight-purple !font-medium !text-purple"
|
||||||
>
|
>
|
||||||
Out of Stock
|
Out of Stock
|
||||||
<ExternalIcon class="!min-h-4 !min-w-4 !text-purple" />
|
<ExternalIcon class="!min-h-4 !min-w-4 !text-purple" />
|
||||||
</NuxtLink>
|
</a>
|
||||||
<button
|
<button
|
||||||
v-else
|
v-else
|
||||||
class="!bg-highlight-purple !font-medium !text-purple"
|
class="!bg-highlight-purple !font-medium !text-purple"
|
||||||
@@ -871,7 +871,7 @@ const deletingSpeed = 25;
|
|||||||
const pauseTime = 2000;
|
const pauseTime = 2000;
|
||||||
|
|
||||||
const loggedOut = computed(() => !auth.value.user);
|
const loggedOut = computed(() => !auth.value.user);
|
||||||
const outOfStockUrl = "https://support.modrinth.com";
|
const outOfStockUrl = "https://discord.modrinth.com";
|
||||||
|
|
||||||
const { data: hasServers } = await useAsyncData("ServerListCountCheck", async () => {
|
const { data: hasServers } = await useAsyncData("ServerListCountCheck", async () => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
</h2>
|
</h2>
|
||||||
</AutoLink>
|
</AutoLink>
|
||||||
<div
|
<div
|
||||||
v-if="recent"
|
v-if="recent && !future"
|
||||||
v-tooltip="dateTooltip"
|
v-tooltip="dateTooltip"
|
||||||
class="hidden sm:flex"
|
class="hidden sm:flex"
|
||||||
:class="{ 'cursor-help': dateTooltip }"
|
:class="{ 'cursor-help': dateTooltip }"
|
||||||
@@ -66,11 +66,8 @@ const props = withDefaults(
|
|||||||
)
|
)
|
||||||
|
|
||||||
const currentDate = ref(dayjs())
|
const currentDate = ref(dayjs())
|
||||||
const recent = computed(
|
const recent = computed(() => props.entry.date.isAfter(currentDate.value.subtract(1, 'week')))
|
||||||
() =>
|
const future = computed(() => props.entry.date.isBefore(currentDate.value))
|
||||||
props.entry.date.isAfter(currentDate.value.subtract(1, 'week')) &&
|
|
||||||
props.entry.date.isBefore(currentDate.value),
|
|
||||||
)
|
|
||||||
const dateTooltip = computed(() => props.entry.date.format('MMMM D, YYYY [at] h:mm A'))
|
const dateTooltip = computed(() => props.entry.date.format('MMMM D, YYYY [at] h:mm A'))
|
||||||
|
|
||||||
const relativeDate = computed(() => props.entry.date.fromNow())
|
const relativeDate = computed(() => props.entry.date.fromNow())
|
||||||
|
|||||||
@@ -10,6 +10,18 @@ export type VersionEntry = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const VERSIONS: VersionEntry[] = [
|
const VERSIONS: VersionEntry[] = [
|
||||||
|
{
|
||||||
|
date: `2025-02-12T19:10:00-08:00`,
|
||||||
|
product: 'web',
|
||||||
|
body: `### Improvements
|
||||||
|
- Servers out of stock link now links to Modrinth Discord instead of support page.`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
date: `2025-02-12T19:10:00-08:00`,
|
||||||
|
product: 'servers',
|
||||||
|
body: `### Added
|
||||||
|
- Added server upgrades to switch to a larger plan as an option in billing settings.`,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
date: `2025-02-12T12:10:00-08:00`,
|
date: `2025-02-12T12:10:00-08:00`,
|
||||||
product: 'web',
|
product: 'web',
|
||||||
|
|||||||
Reference in New Issue
Block a user