This commit is contained in:
ThatOneCalculator 2023-01-03 18:31:27 -08:00
parent e099a3346c
commit df02e06c37
2 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "calckey", "name": "calckey",
"version": "13.0.8.6", "version": "13.0.8",
"codename": "aqua", "codename": "aqua",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -1,16 +1,15 @@
<template> <template>
<MkModal ref="modal" :z-priority="'middle'" @click="$refs.modal.close()" @closed="$emit('closed')"> <MkModal ref="modal" :z-priority="'middle'" @click="modal.close()" @closed="$emit('closed')">
<div class="ewlycnyt"> <div class="ewlycnyt">
<div class="title"><MkSparkle>{{ i18n.ts.misskeyUpdated }}</MkSparkle></div> <div class="title"><MkSparkle>{{ i18n.ts.misskeyUpdated }}</MkSparkle></div>
<div class="version"> {{ version }} 🚀</div> <div class="version"> {{ version }} 🚀</div>
<!-- v-if="newRelease" --> <div v-if="newRelease" class="releaseNotes">
<div class="releaseNotes">
<Mfm :text="data.notes"/> <Mfm :text="data.notes"/>
<div v-if="data.screenshots.length > 0" style="max-width: 500"> <div v-if="data.screenshots.length > 0" style="max-width: 500">
<img v-for="i in data.screenshots" :key="i" :src="i"/> <img v-for="i in data.screenshots" :key="i" :src="i"/>
</div> </div>
</div> </div>
<MkButton class="gotIt" primary full @click="$refs.modal.close()">{{ i18n.ts.gotIt }}</MkButton> <MkButton class="gotIt" primary full @click="modal.close()">{{ i18n.ts.gotIt }}</MkButton>
</div> </div>
</MkModal> </MkModal>
</template> </template>
@ -23,6 +22,8 @@ import { version } from '@/config';
import { i18n } from '@/i18n'; import { i18n } from '@/i18n';
import * as os from '@/os'; import * as os from '@/os';
const modal = $ref<InstanceType<typeof MkModal>>();
let newRelease = false; let newRelease = false;
let data; let data;
os.api('release').then(res => { os.api('release').then(res => {