diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-21 21:26:39 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-21 21:26:39 +0900 |
| commit | 8cdc619f8f9ddb2a35e9192aba0a810eeaceb233 (patch) | |
| tree | 59c2f01cbe42d57bd4c3c1d8af9b8dfd7ac75ea2 | |
| parent | wip: refactor(client): migrate components to composition api (diff) | |
| download | sharkey-8cdc619f8f9ddb2a35e9192aba0a810eeaceb233.tar.gz sharkey-8cdc619f8f9ddb2a35e9192aba0a810eeaceb233.tar.bz2 sharkey-8cdc619f8f9ddb2a35e9192aba0a810eeaceb233.zip | |
chore(client): add #misskey button
| -rw-r--r-- | packages/client/src/pages/about-misskey.vue | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/client/src/pages/about-misskey.vue b/packages/client/src/pages/about-misskey.vue index efb44adffd..8119f33051 100644 --- a/packages/client/src/pages/about-misskey.vue +++ b/packages/client/src/pages/about-misskey.vue @@ -12,6 +12,9 @@ <div class="_formBlock" style="text-align: center;"> {{ i18n.locale._aboutMisskey.about }}<br><a href="https://misskey-hub.net/docs/misskey.html" target="_blank" class="_link">{{ i18n.locale.learnMore }}</a> </div> + <div class="_formBlock" style="text-align: center;"> + <MkButton primary rounded inline @click="iLoveMisskey">I <Mfm text="$[jelly ❤]"/> #Misskey</MkButton> + </div> <FormSection> <div class="_formLinks"> <FormLink to="https://github.com/misskey-dev/misskey" external> @@ -61,12 +64,13 @@ import { nextTick, onBeforeUnmount } from 'vue'; import { version } from '@/config'; import FormLink from '@/components/form/link.vue'; import FormSection from '@/components/form/section.vue'; -import MkKeyValue from '@/components/key-value.vue'; +import MkButton from '@/components/ui/button.vue'; import MkLink from '@/components/link.vue'; import { physics } from '@/scripts/physics'; import * as symbols from '@/symbols'; import { i18n } from '@/i18n'; import { defaultStore } from '@/store'; +import * as os from '@/os'; const patrons = [ 'まっちゃとーにゅ', @@ -175,6 +179,12 @@ function gravity() { easterEggEngine = physics(containerEl); } +function iLoveMisskey() { + os.post({ + initialText: 'I $[jelly ❤] #Misskey', + }); +} + onBeforeUnmount(() => { if (easterEggEngine) { easterEggEngine.stop(); |