mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 02:45:55 +02:00
@@ -69,9 +69,11 @@ import MkInfo from '@/components/MkInfo.vue';
|
||||
const props = withDefaults(defineProps<{
|
||||
message?: string,
|
||||
openOnRemote?: OpenOnRemoteOptions,
|
||||
initialUsername?: string;
|
||||
}>(), {
|
||||
message: '',
|
||||
openOnRemote: undefined,
|
||||
initialUsername: undefined,
|
||||
});
|
||||
|
||||
const emit = defineEmits<{
|
||||
@@ -81,7 +83,7 @@ const emit = defineEmits<{
|
||||
|
||||
const host = toUnicode(configHost);
|
||||
|
||||
const username = ref('');
|
||||
const username = ref(props.initialUsername ?? '');
|
||||
|
||||
//#region Open on remote
|
||||
function openRemote(options: OpenOnRemoteOptions, targetHost?: string): void {
|
||||
|
||||
@@ -20,6 +20,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
key="input"
|
||||
:message="message"
|
||||
:openOnRemote="openOnRemote"
|
||||
:initialUsername="initialUsername"
|
||||
|
||||
@usernameSubmitted="onUsernameSubmitted"
|
||||
@passkeyClick="onPasskeyLogin"
|
||||
@@ -89,10 +90,12 @@ const props = withDefaults(defineProps<{
|
||||
autoSet?: boolean;
|
||||
message?: string,
|
||||
openOnRemote?: OpenOnRemoteOptions,
|
||||
initialUsername?: string;
|
||||
}>(), {
|
||||
autoSet: false,
|
||||
message: '',
|
||||
openOnRemote: undefined,
|
||||
initialUsername: undefined,
|
||||
});
|
||||
|
||||
const page = ref<'input' | 'password' | 'totp' | 'passkey'>('input');
|
||||
|
||||
@@ -16,7 +16,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
<button :class="$style.closeButton" class="_button" @click="onClose"><i class="ti ti-x"></i></button>
|
||||
</div>
|
||||
<div :class="$style.content">
|
||||
<MkSignin :autoSet="autoSet" :message="message" :openOnRemote="openOnRemote" @login="onLogin"/>
|
||||
<MkSignin :autoSet="autoSet" :message="message" :openOnRemote="openOnRemote" :initialUsername="initialUsername" @login="onLogin"/>
|
||||
</div>
|
||||
</div>
|
||||
</MkModal>
|
||||
@@ -34,10 +34,12 @@ withDefaults(defineProps<{
|
||||
autoSet?: boolean;
|
||||
message?: string,
|
||||
openOnRemote?: OpenOnRemoteOptions,
|
||||
initialUsername?: string;
|
||||
}>(), {
|
||||
autoSet: false,
|
||||
message: '',
|
||||
openOnRemote: undefined,
|
||||
initialUsername: undefined,
|
||||
});
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
||||
Reference in New Issue
Block a user