diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-06 23:10:47 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-06 23:10:47 +0900 |
| commit | 3b1961bb3db360105ef8f9ee13c8193d2abc2af4 (patch) | |
| tree | c57cfeb494d8a759fa4639d6b4f69717d2e4e481 /packages/client/src/components/remote-caution.vue | |
| parent | clean up (diff) | |
| download | misskey-3b1961bb3db360105ef8f9ee13c8193d2abc2af4.tar.gz misskey-3b1961bb3db360105ef8f9ee13c8193d2abc2af4.tar.bz2 misskey-3b1961bb3db360105ef8f9ee13c8193d2abc2af4.zip | |
refactor(client): use composition api
Diffstat (limited to 'packages/client/src/components/remote-caution.vue')
| -rw-r--r-- | packages/client/src/components/remote-caution.vue | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/packages/client/src/components/remote-caution.vue b/packages/client/src/components/remote-caution.vue index c496ea8f48..aa623f0fb0 100644 --- a/packages/client/src/components/remote-caution.vue +++ b/packages/client/src/components/remote-caution.vue @@ -2,22 +2,10 @@ <div class="jmgmzlwq _block"><i class="fas fa-exclamation-triangle" style="margin-right: 8px;"></i>{{ $ts.remoteUserCaution }}<a :href="href" rel="nofollow noopener" target="_blank">{{ $ts.showOnRemote }}</a></div> </template> -<script lang="ts"> -import { defineComponent } from 'vue'; -import * as os from '@/os'; - -export default defineComponent({ - props: { - href: { - type: String, - required: true - }, - }, - data() { - return { - }; - } -}); +<script lang="ts" setup> +defineProps<{ + href: string; +}>(); </script> <style lang="scss" scoped> |