pleroma-fe/src/components/update_notification/update_notification.vue

101 lines
2.8 KiB
Vue
Raw Normal View History

2022-08-01 23:37:48 +02:00
<template>
<Modal
:is-open="!!shouldShow"
2022-08-01 23:37:48 +02:00
class="UpdateNotification"
:no-background="true"
>
2022-08-04 00:56:52 +02:00
<div
class="UpdateNotificationModal panel"
:class="{ '-peek': !showingMore }"
2022-08-08 11:17:32 +02:00
:style="dynamicStyles"
2022-08-04 00:56:52 +02:00
>
2022-08-01 23:37:48 +02:00
<div class="panel-heading">
<span class="title">
{{ $t('update.big_update_title') }}
</span>
</div>
<div class="panel-body">
2022-08-08 11:17:32 +02:00
<div class="content">
2022-08-08 01:14:43 +02:00
<img
class="pleroma-tan"
:src="pleromaTanVariant"
:style="pleromaTanStyles"
>
<div class="spacer-top" />
2022-08-04 00:56:52 +02:00
<div class="text">
<p>
2022-08-08 01:14:43 +02:00
{{ $t('update.big_update_content') }}
2022-08-04 00:56:52 +02:00
</p>
2022-08-08 11:18:06 +02:00
<div
ref="animatedText"
class="extra-info-group"
>
2022-08-08 11:17:32 +02:00
<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>
2022-08-08 13:20:01 +02:00
<p class="art-credit">
<i18n-t
keypath="update.art_by"
tag="small"
>
<template #linkToArtist>
<a
target="_blank"
href="https://post.ebin.club/pipivovott"
>pipivovott</a>
</template>
</i18n-t>
</p>
2022-08-08 11:17:32 +02:00
</div>
2022-08-08 01:14:09 +02:00
</div>
2022-08-08 01:14:43 +02:00
<div class="spacer-bottom" />
2022-08-04 00:56:52 +02:00
</div>
</div>
<div class="panel-footer">
<button
class="button-default"
@click.prevent="neverShowAgain"
2022-08-08 01:14:43 +02:00
>
2022-08-04 00:56:52 +02:00
{{ $t("general.never_show_again") }}
</button>
2022-08-01 23:37:48 +02:00
<button
2022-08-08 01:14:43 +02:00
v-if="!showingMore"
2022-08-04 00:56:52 +02:00
class="button-default"
2022-08-04 01:12:04 +02:00
@click.prevent="toggleShow"
2022-08-08 01:14:43 +02:00
>
2022-08-01 23:37:48 +02:00
{{ $t("general.show_more") }}
</button>
<button
2022-08-04 00:56:52 +02:00
class="button-default"
@click.prevent="dismiss"
2022-08-08 01:14:43 +02:00
>
2022-08-04 00:56:52 +02:00
{{ $t("general.dismiss") }}
2022-08-01 23:37:48 +02:00
</button>
</div>
</div>
</Modal>
</template>
<script src="./update_notification.js"></script>
<style src="./update_notification.scss" lang="scss"></style>