2023-07-27 05:31:52 +00:00
|
|
|
<!--
|
2024-02-13 15:59:27 +00:00
|
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 05:31:52 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-03-21 04:07:02 +00:00
|
|
|
<template>
|
2023-01-14 08:23:49 +00:00
|
|
|
<div :class="$style.root"><i class="ti ti-alert-triangle" style="margin-right: 8px;"></i>{{ i18n.ts.remoteUserCaution }}<a :class="$style.link" :href="href" rel="nofollow noopener" target="_blank">{{ i18n.ts.showOnRemote }}</a></div>
|
2020-03-21 04:07:02 +00:00
|
|
|
</template>
|
|
|
|
|
2022-01-06 14:10:47 +00:00
|
|
|
<script lang="ts" setup>
|
2023-09-19 07:37:43 +00:00
|
|
|
import { i18n } from '@/i18n.js';
|
2022-07-20 13:24:26 +00:00
|
|
|
|
2022-01-06 14:10:47 +00:00
|
|
|
defineProps<{
|
|
|
|
href: string;
|
|
|
|
}>();
|
2020-03-21 04:07:02 +00:00
|
|
|
</script>
|
|
|
|
|
2023-01-14 08:23:49 +00:00
|
|
|
<style lang="scss" module>
|
|
|
|
.root {
|
2020-03-21 04:07:02 +00:00
|
|
|
font-size: 0.8em;
|
|
|
|
padding: 16px;
|
2024-10-09 09:08:14 +00:00
|
|
|
background: var(--MI_THEME-infoWarnBg);
|
|
|
|
color: var(--MI_THEME-infoWarnFg);
|
2023-01-07 08:39:24 +00:00
|
|
|
border-radius: var(--radius);
|
|
|
|
overflow: clip;
|
2023-01-14 08:23:49 +00:00
|
|
|
}
|
2020-03-21 04:07:02 +00:00
|
|
|
|
2023-01-14 08:23:49 +00:00
|
|
|
.link {
|
|
|
|
margin-left: 4px;
|
2024-10-09 09:08:14 +00:00
|
|
|
color: var(--MI_THEME-accent);
|
2020-03-21 04:07:02 +00:00
|
|
|
}
|
|
|
|
</style>
|