You've already forked AstralRinth
forked from didirus/AstralRinth
feat: downtime banner (#4955)
This commit is contained in:
@@ -34,6 +34,33 @@
|
|||||||
'modrinth-parent__no-modal-blurs': !cosmetics.advancedRendering,
|
'modrinth-parent__no-modal-blurs': !cosmetics.advancedRendering,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
|
<PagewideBanner variant="error">
|
||||||
|
<template #title>
|
||||||
|
<span>Modrinth is experiencing downtime</span>
|
||||||
|
</template>
|
||||||
|
<template #description>
|
||||||
|
<p class="m-0">
|
||||||
|
Our service provider is performing emergency power maintenance. This outage will last up
|
||||||
|
to 2 hours and affects the website, API (503 errors), and Modrinth Hosting servers/control
|
||||||
|
panel in US East (133 nodes). Other regions are unaffected but the control panel may be
|
||||||
|
unavailable. Affected users will be credited. We apologize for the short notice.
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
<template #actions>
|
||||||
|
<div class="mt-2 flex w-fit gap-2">
|
||||||
|
<ButtonStyled color="red">
|
||||||
|
<a href="https://status.modrinth.com" target="_blank" rel="noopener">
|
||||||
|
<IssuesIcon aria-hidden="true" /> View status page
|
||||||
|
</a>
|
||||||
|
</ButtonStyled>
|
||||||
|
<ButtonStyled color="red">
|
||||||
|
<a href="https://status.modrinth.com" target="_blank" rel="noopener">
|
||||||
|
<ExternalIcon aria-hidden="true" /> Modrinth Discord
|
||||||
|
</a>
|
||||||
|
</ButtonStyled>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</PagewideBanner>
|
||||||
<PagewideBanner v-if="isRussia && !flags.hideRussiaCensorshipBanner" variant="error">
|
<PagewideBanner v-if="isRussia && !flags.hideRussiaCensorshipBanner" variant="error">
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="flex flex-col gap-1 text-contrast">
|
<div class="flex flex-col gap-1 text-contrast">
|
||||||
@@ -197,6 +224,7 @@
|
|||||||
</Button>
|
</Button>
|
||||||
</template>
|
</template>
|
||||||
</PagewideBanner>
|
</PagewideBanner>
|
||||||
|
<!-- Hiding generated state errors during outage
|
||||||
<PagewideBanner v-if="generatedStateErrors?.length" variant="error">
|
<PagewideBanner v-if="generatedStateErrors?.length" variant="error">
|
||||||
<template #title>
|
<template #title>
|
||||||
<span>{{ formatMessage(failedToBuildBannerMessages.title) }}</span>
|
<span>{{ formatMessage(failedToBuildBannerMessages.title) }}</span>
|
||||||
@@ -210,6 +238,7 @@
|
|||||||
}}
|
}}
|
||||||
</template>
|
</template>
|
||||||
</PagewideBanner>
|
</PagewideBanner>
|
||||||
|
-->
|
||||||
|
|
||||||
<CreatorTaxFormModal
|
<CreatorTaxFormModal
|
||||||
ref="taxFormModalRef"
|
ref="taxFormModalRef"
|
||||||
@@ -926,6 +955,7 @@ import {
|
|||||||
DiscordIcon,
|
DiscordIcon,
|
||||||
DownloadIcon,
|
DownloadIcon,
|
||||||
DropdownIcon,
|
DropdownIcon,
|
||||||
|
ExternalIcon,
|
||||||
FileIcon,
|
FileIcon,
|
||||||
FileTextIcon,
|
FileTextIcon,
|
||||||
GithubIcon,
|
GithubIcon,
|
||||||
@@ -977,7 +1007,6 @@ import OrganizationCreateModal from '~/components/ui/create/OrganizationCreateMo
|
|||||||
import ProjectCreateModal from '~/components/ui/create/ProjectCreateModal.vue'
|
import ProjectCreateModal from '~/components/ui/create/ProjectCreateModal.vue'
|
||||||
import CreatorTaxFormModal from '~/components/ui/dashboard/CreatorTaxFormModal.vue'
|
import CreatorTaxFormModal from '~/components/ui/dashboard/CreatorTaxFormModal.vue'
|
||||||
import TeleportOverflowMenu from '~/components/ui/servers/TeleportOverflowMenu.vue'
|
import TeleportOverflowMenu from '~/components/ui/servers/TeleportOverflowMenu.vue'
|
||||||
import { errors as generatedStateErrors } from '~/generated/state.json'
|
|
||||||
import { getProjectTypeMessage } from '~/utils/i18n-project-type.ts'
|
import { getProjectTypeMessage } from '~/utils/i18n-project-type.ts'
|
||||||
|
|
||||||
const country = useUserCountry()
|
const country = useUserCountry()
|
||||||
|
|||||||
Reference in New Issue
Block a user