2020-02-12 11:48:52 -06:00
|
|
|
<template>
|
2021-04-12 00:16:30 -05:00
|
|
|
<div style="overflow: clip;">
|
2021-11-28 05:07:37 -06:00
|
|
|
<MkSpacer :content-max="600" :margin-min="20">
|
|
|
|
<div class="_formRoot znqjceqz">
|
|
|
|
<div id="debug"></div>
|
|
|
|
<div ref="about" v-panel class="_formBlock about" :class="{ playing: easterEggEngine != null }">
|
2021-11-19 04:36:12 -06:00
|
|
|
<img src="/client-assets/about-icon.png" alt="" class="icon" draggable="false" @load="iconLoaded" @click="gravity"/>
|
2020-12-06 08:54:58 -06:00
|
|
|
<div class="misskey">Misskey</div>
|
|
|
|
<div class="version">v{{ version }}</div>
|
2021-11-19 04:36:12 -06:00
|
|
|
<span v-for="emoji in easterEggEmojis" :key="emoji.id" class="emoji" :data-physics-x="emoji.left" :data-physics-y="emoji.top" :class="{ _physics_circle_: !emoji.emoji.startsWith(':') }"><MkEmoji class="emoji" :emoji="emoji.emoji" :custom-emojis="$instance.emojis" :is-reaction="false" :normal="true" :no-style="true"/></span>
|
2020-12-05 21:51:00 -06:00
|
|
|
</div>
|
2021-11-28 05:07:37 -06:00
|
|
|
<div class="_formBlock" style="text-align: center;">
|
|
|
|
{{ $ts._aboutMisskey.about }}<br><a href="https://misskey-hub.net/docs/misskey.html" target="_blank" class="_link">{{ $ts.learnMore }}</a>
|
|
|
|
</div>
|
|
|
|
<FormSection>
|
|
|
|
<div class="_formLinks">
|
|
|
|
<FormLink to="https://github.com/misskey-dev/misskey" external>
|
|
|
|
<template #icon><i class="fas fa-code"></i></template>
|
|
|
|
{{ $ts._aboutMisskey.source }}
|
|
|
|
<template #suffix>GitHub</template>
|
|
|
|
</FormLink>
|
|
|
|
<FormLink to="https://crowdin.com/project/misskey" external>
|
|
|
|
<template #icon><i class="fas fa-language"></i></template>
|
|
|
|
{{ $ts._aboutMisskey.translation }}
|
|
|
|
<template #suffix>Crowdin</template>
|
|
|
|
</FormLink>
|
|
|
|
<FormLink to="https://www.patreon.com/syuilo" external>
|
|
|
|
<template #icon><i class="fas fa-hand-holding-medical"></i></template>
|
|
|
|
{{ $ts._aboutMisskey.donate }}
|
|
|
|
<template #suffix>Patreon</template>
|
|
|
|
</FormLink>
|
|
|
|
</div>
|
|
|
|
</FormSection>
|
|
|
|
<FormSection>
|
|
|
|
<template #label>{{ $ts._aboutMisskey.contributors }}</template>
|
|
|
|
<div class="_formLinks">
|
|
|
|
<FormLink to="https://github.com/syuilo" external>@syuilo</FormLink>
|
|
|
|
<FormLink to="https://github.com/AyaMorisawa" external>@AyaMorisawa</FormLink>
|
|
|
|
<FormLink to="https://github.com/mei23" external>@mei23</FormLink>
|
|
|
|
<FormLink to="https://github.com/acid-chicken" external>@acid-chicken</FormLink>
|
|
|
|
<FormLink to="https://github.com/tamaina" external>@tamaina</FormLink>
|
|
|
|
<FormLink to="https://github.com/rinsuki" external>@rinsuki</FormLink>
|
|
|
|
<FormLink to="https://github.com/Xeltica" external>@Xeltica</FormLink>
|
|
|
|
<FormLink to="https://github.com/u1-liquid" external>@u1-liquid</FormLink>
|
|
|
|
<FormLink to="https://github.com/marihachi" external>@marihachi</FormLink>
|
|
|
|
</div>
|
|
|
|
<template #caption><MkLink url="https://github.com/misskey-dev/misskey/graphs/contributors">{{ $ts._aboutMisskey.allContributors }}</MkLink></template>
|
|
|
|
</FormSection>
|
|
|
|
<FormSection>
|
|
|
|
<template #label><Mfm text="$[jelly ❤]"/> {{ $ts._aboutMisskey.patrons }}</template>
|
|
|
|
<div v-for="patron in patrons" :key="patron">{{ patron }}</div>
|
|
|
|
<template #caption>{{ $ts._aboutMisskey.morePatrons }}</template>
|
|
|
|
</FormSection>
|
|
|
|
</div>
|
|
|
|
</MkSpacer>
|
2020-12-05 21:51:00 -06:00
|
|
|
</div>
|
2020-02-12 11:48:52 -06:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-10-17 06:12:00 -05:00
|
|
|
import { defineComponent } from 'vue';
|
2021-11-11 11:02:25 -06:00
|
|
|
import { version } from '@/config';
|
2021-11-28 05:07:37 -06:00
|
|
|
import FormLink from '@/components/form/link.vue';
|
|
|
|
import FormSection from '@/components/form/section.vue';
|
|
|
|
import MkKeyValue from '@/components/key-value.vue';
|
2021-11-11 11:02:25 -06:00
|
|
|
import MkLink from '@/components/link.vue';
|
|
|
|
import { physics } from '@/scripts/physics';
|
|
|
|
import * as symbols from '@/symbols';
|
2020-02-12 11:48:52 -06:00
|
|
|
|
2020-11-27 20:52:57 -06:00
|
|
|
const patrons = [
|
|
|
|
'Satsuki Yanagi',
|
|
|
|
'noellabo',
|
2021-08-10 05:34:53 -05:00
|
|
|
'mametsuko',
|
2020-11-27 20:52:57 -06:00
|
|
|
'AureoleArk',
|
2021-08-10 05:34:53 -05:00
|
|
|
'Gargron',
|
2020-11-27 20:52:57 -06:00
|
|
|
'Nokotaro Takeda',
|
2021-08-10 05:34:53 -05:00
|
|
|
'Suji Yan',
|
|
|
|
'Hekovic',
|
|
|
|
'Gitmo Life Services',
|
2020-11-27 20:52:57 -06:00
|
|
|
'nenohi',
|
2021-08-10 05:34:53 -05:00
|
|
|
'naga_rus',
|
|
|
|
'Melilot',
|
|
|
|
'Efertone',
|
|
|
|
'oi_yekssim',
|
2020-11-27 20:52:57 -06:00
|
|
|
'nanami kan',
|
2021-08-10 05:34:53 -05:00
|
|
|
'motcha',
|
|
|
|
'dansup',
|
|
|
|
'Quinton Macejkovic',
|
2020-11-27 20:52:57 -06:00
|
|
|
'YUKIMOCHI',
|
|
|
|
'mewl hayabusa',
|
2021-08-10 05:34:53 -05:00
|
|
|
'makokunsan',
|
|
|
|
'Peter G.',
|
|
|
|
'Nesakko',
|
|
|
|
'regtan',
|
2020-11-27 20:52:57 -06:00
|
|
|
'見当かなみ',
|
|
|
|
'natalie',
|
2021-08-10 05:34:53 -05:00
|
|
|
'Jerry',
|
2020-11-27 20:52:57 -06:00
|
|
|
'takimura',
|
|
|
|
'sikyosyounin',
|
2021-08-10 05:34:53 -05:00
|
|
|
'YuzuRyo61',
|
2020-11-27 20:52:57 -06:00
|
|
|
'sheeta.s',
|
|
|
|
'osapon',
|
|
|
|
'mkatze',
|
|
|
|
'CG',
|
2021-08-10 05:34:53 -05:00
|
|
|
'nafuchoco',
|
|
|
|
'Takumi Sugita',
|
|
|
|
'chidori ninokura',
|
|
|
|
'mydarkstar',
|
|
|
|
'kiritan',
|
|
|
|
'kabo2468y',
|
|
|
|
'weepjp',
|
|
|
|
'Liaizon Wakest',
|
|
|
|
'Steffen K9',
|
|
|
|
'Roujo',
|
|
|
|
'uroco @99',
|
|
|
|
'totokoro',
|
|
|
|
'public_yusuke',
|
|
|
|
'wara',
|
|
|
|
'S Y',
|
2020-11-27 20:52:57 -06:00
|
|
|
'Denshi',
|
|
|
|
'Osushimaru',
|
2021-08-10 05:34:53 -05:00
|
|
|
'吴浥',
|
|
|
|
'DignifiedSilence',
|
|
|
|
't_w',
|
2020-11-27 20:52:57 -06:00
|
|
|
];
|
|
|
|
|
2020-10-17 06:12:00 -05:00
|
|
|
export default defineComponent({
|
2020-02-12 12:01:39 -06:00
|
|
|
components: {
|
2021-11-28 05:07:37 -06:00
|
|
|
FormSection,
|
2020-11-27 20:52:57 -06:00
|
|
|
FormLink,
|
2021-11-28 05:07:37 -06:00
|
|
|
MkKeyValue,
|
2020-11-27 20:52:57 -06:00
|
|
|
MkLink,
|
2020-02-12 12:01:39 -06:00
|
|
|
},
|
|
|
|
|
2020-02-12 11:48:52 -06:00
|
|
|
data() {
|
|
|
|
return {
|
2021-04-09 22:54:12 -05:00
|
|
|
[symbols.PAGE_INFO]: {
|
2020-12-25 19:47:36 -06:00
|
|
|
title: this.$ts.aboutMisskey,
|
2020-11-03 05:36:12 -06:00
|
|
|
icon: null
|
2020-10-17 06:12:00 -05:00
|
|
|
},
|
2020-02-12 11:48:52 -06:00
|
|
|
version,
|
2020-11-27 20:52:57 -06:00
|
|
|
patrons,
|
2020-12-05 21:51:00 -06:00
|
|
|
easterEggReady: false,
|
|
|
|
easterEggEmojis: [],
|
|
|
|
easterEggEngine: null,
|
2020-02-12 11:48:52 -06:00
|
|
|
}
|
|
|
|
},
|
2020-11-29 07:37:56 -06:00
|
|
|
|
2020-12-05 21:51:00 -06:00
|
|
|
beforeUnmount() {
|
|
|
|
if (this.easterEggEngine) {
|
|
|
|
this.easterEggEngine.stop();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
iconLoaded() {
|
2020-12-18 19:55:52 -06:00
|
|
|
const emojis = this.$store.state.reactions;
|
2020-12-06 08:54:58 -06:00
|
|
|
const containerWidth = this.$refs.about.offsetWidth;
|
|
|
|
for (let i = 0; i < 32; i++) {
|
|
|
|
this.easterEggEmojis.push({
|
|
|
|
id: i.toString(),
|
|
|
|
top: -(128 + (Math.random() * 256)),
|
|
|
|
left: (Math.random() * containerWidth),
|
|
|
|
emoji: emojis[Math.floor(Math.random() * emojis.length)],
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2020-12-05 21:51:00 -06:00
|
|
|
this.$nextTick(() => {
|
|
|
|
this.easterEggReady = true;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
gravity() {
|
|
|
|
if (!this.easterEggReady) return;
|
|
|
|
this.easterEggReady = false;
|
|
|
|
this.easterEggEngine = physics(this.$refs.about);
|
|
|
|
}
|
|
|
|
}
|
2020-02-12 11:48:52 -06:00
|
|
|
});
|
|
|
|
</script>
|
2020-11-27 20:52:57 -06:00
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.znqjceqz {
|
2020-12-06 08:54:58 -06:00
|
|
|
> .about {
|
2021-11-28 05:07:37 -06:00
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
|
|
|
padding: 16px;
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
|
|
|
&.playing {
|
|
|
|
&, * {
|
|
|
|
user-select: none;
|
2020-12-06 08:54:58 -06:00
|
|
|
}
|
|
|
|
|
2021-11-28 05:07:37 -06:00
|
|
|
* {
|
|
|
|
will-change: transform;
|
2020-12-06 08:54:58 -06:00
|
|
|
}
|
|
|
|
|
2021-11-28 05:07:37 -06:00
|
|
|
> .emoji {
|
|
|
|
visibility: visible;
|
2020-12-06 08:54:58 -06:00
|
|
|
}
|
2021-11-28 05:07:37 -06:00
|
|
|
}
|
2020-12-06 08:54:58 -06:00
|
|
|
|
2021-11-28 05:07:37 -06:00
|
|
|
> .icon {
|
|
|
|
display: block;
|
|
|
|
width: 100px;
|
|
|
|
margin: 0 auto;
|
|
|
|
border-radius: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .misskey {
|
|
|
|
margin: 0.75em auto 0 auto;
|
|
|
|
width: max-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .version {
|
|
|
|
margin: 0 auto;
|
|
|
|
width: max-content;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .emoji {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
visibility: hidden;
|
2020-12-06 08:54:58 -06:00
|
|
|
|
|
|
|
> .emoji {
|
2021-11-28 05:07:37 -06:00
|
|
|
pointer-events: none;
|
|
|
|
font-size: 24px;
|
|
|
|
width: 24px;
|
2020-12-06 08:54:58 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-27 20:52:57 -06:00
|
|
|
}
|
|
|
|
</style>
|