1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-03 04:26:23 +02:00

Feat: サーバー初期設定ウィザード (#15954)

* wip

* wip

* Update welcome.setup.vue

* wip

* wip

* wip

* wip

* Update MkServerSetupWizard.vue

* Update MkServerSetupWizard.vue

* wip

* wip

* wip

* Update types.ts

* wip

* wip

* Update CHANGELOG.md
This commit is contained in:
syuilo
2025-05-09 19:41:54 +09:00
committed by GitHub
parent 0bd44bca6d
commit 96bc042d67
17 changed files with 803 additions and 82 deletions

View File

@@ -547,18 +547,24 @@ export function success(): Promise<void> {
});
}
export function waiting(text?: string | null): Promise<void> {
return new Promise(resolve => {
const showing = ref(true);
const { dispose } = popup(MkWaitingDialog, {
success: false,
showing: showing,
text,
}, {
done: () => resolve(),
closed: () => dispose(),
});
export function waiting(text?: string | null): () => void {
window.document.body.setAttribute('inert', 'true');
const showing = ref(true);
const { dispose } = popup(MkWaitingDialog, {
success: false,
showing: showing,
text,
}, {
closed: () => {
window.document.body.removeAttribute('inert');
dispose();
},
});
return () => {
showing.value = false;
};
}
export function form<F extends Form>(title: string, f: F): Promise<{ canceled: true, result?: undefined } | { canceled?: false, result: GetFormResultType<F> }> {