mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-29 07:18:08 +09:00
enhance(client): ✨
This commit is contained in:
parent
594033dec1
commit
90571fd6bd
@ -175,14 +175,7 @@ export default defineComponent({
|
|||||||
if (!this.$store.state.animatedMfm) {
|
if (!this.$store.state.animatedMfm) {
|
||||||
return genEl(token.children);
|
return genEl(token.children);
|
||||||
}
|
}
|
||||||
let count = token.props.args.count ? parseInt(token.props.args.count) : 10;
|
return h(MkSparkle, {}, genEl(token.children));
|
||||||
if (count > 100) {
|
|
||||||
count = 100;
|
|
||||||
}
|
|
||||||
const speed = token.props.args.speed ? parseFloat(token.props.args.speed) : 1;
|
|
||||||
return h(MkSparkle, {
|
|
||||||
count, speed,
|
|
||||||
}, genEl(token.children));
|
|
||||||
}
|
}
|
||||||
case 'rotate': {
|
case 'rotate': {
|
||||||
const degrees = parseInt(token.props.args.deg) || '90';
|
const degrees = parseInt(token.props.args.deg) || '90';
|
||||||
|
@ -67,18 +67,7 @@ import { defineComponent, onMounted, onUnmounted, ref } from 'vue';
|
|||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
props: {
|
setup() {
|
||||||
count: {
|
|
||||||
type: Number,
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
speed: {
|
|
||||||
type: Number,
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
setup(props) {
|
|
||||||
const particles = ref([]);
|
const particles = ref([]);
|
||||||
const el = ref<HTMLElement>();
|
const el = ref<HTMLElement>();
|
||||||
const width = ref(0);
|
const width = ref(0);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<MkModal ref="modal" :z-priority="'middle'" @click="$refs.modal.close()" @closed="$emit('closed')">
|
<MkModal ref="modal" :z-priority="'middle'" @click="$refs.modal.close()" @closed="$emit('closed')">
|
||||||
<div class="ewlycnyt">
|
<div class="ewlycnyt">
|
||||||
<div class="title">{{ $ts.misskeyUpdated }}</div>
|
<div class="title"><MkSparkle>{{ $ts.misskeyUpdated }}</MkSparkle></div>
|
||||||
<div class="version">✨{{ version }}🚀</div>
|
<div class="version">✨{{ version }}🚀</div>
|
||||||
<MkButton full @click="whatIsNew">{{ $ts.whatIsNew }}</MkButton>
|
<MkButton full @click="whatIsNew">{{ $ts.whatIsNew }}</MkButton>
|
||||||
<MkButton class="gotIt" primary full @click="$refs.modal.close()">{{ $ts.gotIt }}</MkButton>
|
<MkButton class="gotIt" primary full @click="$refs.modal.close()">{{ $ts.gotIt }}</MkButton>
|
||||||
@ -9,31 +9,19 @@
|
|||||||
</MkModal>
|
</MkModal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts" setup>
|
||||||
import { defineComponent } from 'vue';
|
import { ref } from 'vue';
|
||||||
import MkModal from '@/components/ui/modal.vue';
|
import MkModal from '@/components/ui/modal.vue';
|
||||||
import MkButton from '@/components/ui/button.vue';
|
import MkButton from '@/components/ui/button.vue';
|
||||||
|
import MkSparkle from '@/components/sparkle.vue';
|
||||||
import { version } from '@/config';
|
import { version } from '@/config';
|
||||||
|
|
||||||
export default defineComponent({
|
const modal = ref();
|
||||||
components: {
|
|
||||||
MkModal,
|
|
||||||
MkButton,
|
|
||||||
},
|
|
||||||
|
|
||||||
data() {
|
const whatIsNew = () => {
|
||||||
return {
|
modal.value.close();
|
||||||
version: version,
|
window.open(`https://misskey-hub.net/docs/releases.html#_${version.replace(/\./g, '-')}`, '_blank');
|
||||||
};
|
};
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
|
||||||
whatIsNew() {
|
|
||||||
this.$refs.modal.close();
|
|
||||||
window.open(`https://misskey-hub.net/docs/releases.html#_${version.replace(/\./g, '-')}`, '_blank');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
Loading…
Reference in New Issue
Block a user