2023-07-27 07:31:52 +02:00
|
|
|
<!--
|
2024-02-13 16:59:27 +01:00
|
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 07:31:52 +02:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-01-29 20:37:25 +01:00
|
|
|
<template>
|
2023-01-15 00:32:20 +01:00
|
|
|
<div :class="[$style.root, { [$style.warn]: warn }]">
|
2023-09-30 21:53:52 +02:00
|
|
|
<i v-if="warn" class="ph-warning ph-bold ph-lg" :class="$style.i"></i>
|
|
|
|
<i v-else class="ph-info ph-bold ph-lg" :class="$style.i"></i>
|
2023-11-03 07:35:07 +01:00
|
|
|
<div><slot></slot></div>
|
2023-11-03 15:35:12 +01:00
|
|
|
<button v-if="closable" :class="$style.button" class="_button" @click="close()"><i class="ph-x ph-bold ph-lg"></i></button>
|
2020-01-29 20:37:25 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-09-06 11:09:17 +02:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2022-09-06 11:09:17 +02:00
|
|
|
const props = defineProps<{
|
|
|
|
warn?: boolean;
|
2023-11-03 07:35:07 +01:00
|
|
|
closable?: boolean;
|
2022-09-06 11:09:17 +02:00
|
|
|
}>();
|
2023-11-03 07:35:07 +01:00
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
|
|
(ev: 'close'): void;
|
|
|
|
}>();
|
|
|
|
|
|
|
|
function close() {
|
|
|
|
// こいつの中では非表示動作は行わない
|
|
|
|
emit('close');
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
</script>
|
|
|
|
|
2023-01-15 00:32:20 +01:00
|
|
|
<style lang="scss" module>
|
|
|
|
.root {
|
2023-11-03 07:35:07 +01:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-12-20 05:12:32 +01:00
|
|
|
padding: 12px 14px;
|
2020-01-29 20:37:25 +01:00
|
|
|
font-size: 90%;
|
2023-10-09 04:38:31 +02:00
|
|
|
background: color-mix(in srgb, var(--infoBg) 65%, transparent);
|
2020-01-29 20:37:25 +01:00
|
|
|
color: var(--infoFg);
|
2021-01-11 12:38:34 +01:00
|
|
|
border-radius: var(--radius);
|
enhance: account migration (#10592)
* copy block and mute then create follow and unfollow jobs
* copy block and mute and update lists when detecting an account has moved
* no need to care promise orders
* refactor updating actor and target
* automatically accept if a locked account had accepted an old account
* fix exception format
* prevent the old account from calling some endpoints
* do not unfollow when moving
* adjust following and follower counts
* check movedToUri when receiving a follow request
* skip if no need to adjust
* Revert "disable account migration"
This reverts commit 2321214c98591bcfe1385c1ab5bf0ff7b471ae1d.
* fix translation specifier
* fix checking alsoKnownAs and uri
* fix updating account
* fix refollowing locked account
* decrease followersCount if followed by the old account
* adjust following and followers counts when unfollowing
* fix copying mutings
* prohibit moved account from moving again
* fix move service
* allow app creation after moving
* fix lint
* remove unnecessary field
* fix cache update
* add e2e test
* add e2e test of accepting the new account automatically
* force follow if any error happens
* remove unnecessary joins
* use Array.map instead of for const of
* ユーザーリストの移行は追加のみを行う
* nanka iroiro
* fix misskey-js?
* :v:
* 移行を行ったアカウントからのフォローリクエストの自動許可を調整
* newUriを外に出す
* newUriを外に出す2
* clean up
* fix newUri
* prevent moving if the destination account has already moved
* set alsoKnownAs via /i/update
* fix database initialization
* add return type
* prohibit updating alsoKnownAs after moving
* skip to add to alsoKnownAs if toUrl is known
* skip adding to the list if it already has
* use Acct.parse instead
* rename error code
* :art:
* 制限を5から10に緩和
* movedTo(Uri), alsoKnownAsはユーザーidを返すように
* test api res
* fix
* 元アカウントはミュートし続ける
* :art:
* unfollow
* fix
* getUserUriをUserEntityServiceに
* ?
* job!
* :art:
* instance => server
* accountMovedShort, forbiddenBecauseYouAreMigrated
* accountMovedShort
* fix test
* import, pin禁止
* 実績を凍結する
* clean up
* :v:
* change message
* ブロック, フォロー, ミュート, リストのインポートファイルの制限を32MiBに
* Revert "ブロック, フォロー, ミュート, リストのインポートファイルの制限を32MiBに"
This reverts commit 3bd7be35d8aa455cb01ae58f8172a71a50485db1.
* validateAlsoKnownAs
* 移行後2時間以内はインポート可能なファイルサイズを拡大
* clean up
* どうせactorをupdatePersonで更新するならupdatePersonしか移行処理を発行しないことにする
* handle error?
* リモートからの移行処理の条件を是正
* log, port
* fix
* fix
* enhance(dev): non-production環境でhttpサーバー間でもユーザー、ノートの連合が可能なように
* refactor (use checkHttps)
* MISSKEY_WEBFINGER_USE_HTTP
* Environment Variable readme
* NEVER USE IN PRODUCTION
* fix punyHost
* fix indent
* fix
* experimental
---------
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-04-29 17:09:29 +02:00
|
|
|
white-space: pre-wrap;
|
2023-10-09 04:38:31 +02:00
|
|
|
z-index: 1;
|
2020-01-29 20:37:25 +01:00
|
|
|
|
|
|
|
&.warn {
|
2023-10-09 04:38:31 +02:00
|
|
|
background: color-mix(in srgb, var(--infoWarnBg) 65%, transparent);
|
2020-01-29 20:37:25 +01:00
|
|
|
color: var(--infoWarnFg);
|
|
|
|
}
|
2023-01-15 00:32:20 +01:00
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2023-01-15 00:32:20 +01:00
|
|
|
.i {
|
|
|
|
margin-right: 4px;
|
2020-01-29 20:37:25 +01:00
|
|
|
}
|
2023-11-03 07:35:07 +01:00
|
|
|
|
|
|
|
.button {
|
|
|
|
margin-left: auto;
|
|
|
|
padding: 4px;
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
</style>
|