104 lines
2.8 KiB
Vue
104 lines
2.8 KiB
Vue
<template>
|
|
<Modal
|
|
:is-open="!!shouldShow"
|
|
class="UpdateNotification"
|
|
:no-background="true"
|
|
>
|
|
<div
|
|
class="UpdateNotificationModal panel"
|
|
:class="{ '-peek': !showingMore }"
|
|
>
|
|
<div class="panel-heading">
|
|
<span class="title">
|
|
{{ $t('update.big_update_title') }}
|
|
</span>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div
|
|
class="content"
|
|
:class="{ '-noImage': !showingImage }"
|
|
>
|
|
<img
|
|
v-if="showingImage"
|
|
class="pleroma-tan"
|
|
:src="pleromaTanVariant"
|
|
:style="pleromaTanStyles"
|
|
>
|
|
<div class="spacer-top" />
|
|
<div class="text">
|
|
<p>
|
|
{{ $t('update.big_update_content') }}
|
|
</p>
|
|
<div
|
|
ref="animatedText"
|
|
class="extra-info-group"
|
|
>
|
|
<i18n-t
|
|
keypath="update.update_bugs"
|
|
tag="p"
|
|
>
|
|
<template #pleromaGitlab>
|
|
<a
|
|
target="_blank"
|
|
href="https://git.pleroma.social/"
|
|
>{{ $t('update.update_bugs_gitlab') }}</a>
|
|
</template>
|
|
</i18n-t>
|
|
<i18n-t
|
|
keypath="update.update_changelog"
|
|
tag="p"
|
|
>
|
|
<template #theFullChangelog>
|
|
<a
|
|
target="_blank"
|
|
href="https://pleroma.social/announcements/"
|
|
>{{ $t('update.update_changelog_here') }}</a>
|
|
</template>
|
|
</i18n-t>
|
|
<p class="art-credit">
|
|
<i18n-t
|
|
keypath="update.art_by"
|
|
tag="small"
|
|
>
|
|
<template #linkToArtist>
|
|
<a
|
|
target="_blank"
|
|
href="https://post.ebin.club/users/pipivovott"
|
|
>pipivovott</a>
|
|
</template>
|
|
</i18n-t>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="spacer-bottom" />
|
|
</div>
|
|
</div>
|
|
<div class="panel-footer">
|
|
<button
|
|
class="button-default"
|
|
@click.prevent="neverShowAgain"
|
|
>
|
|
{{ $t("general.never_show_again") }}
|
|
</button>
|
|
<button
|
|
v-if="!showingMore"
|
|
class="button-default"
|
|
@click.prevent="toggleShow"
|
|
>
|
|
{{ $t("general.show_more") }}
|
|
</button>
|
|
<button
|
|
class="button-default"
|
|
@click.prevent="dismiss"
|
|
>
|
|
{{ $t("general.dismiss") }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</Modal>
|
|
</template>
|
|
|
|
<script src="./update_notification.js"></script>
|
|
|
|
<style src="./update_notification.scss" lang="scss"></style>
|