feat: add the ability to lock the screen (#30)

* feat: 锁屏功能

* feat: 锁屏样式调整

* feat: complete the lock-screen screen and support shortcut keys and preference configuration

---------

Co-authored-by: vince <vince292007@gmail.com>
This commit is contained in:
Laychen
2024-07-12 12:14:09 +08:00
committed by GitHub
parent 61dbb05b5d
commit 06f5d5686d
27 changed files with 482 additions and 48 deletions

View File

@@ -82,7 +82,7 @@ function handleSubmit() {
});
}
function goLogin() {
function goToLogin() {
router.push(props.loginPath);
}
@@ -151,7 +151,7 @@ onBeforeUnmount(() => {
<VbenButton :loading="loading" class="mt-2 w-full" @click="handleSubmit">
{{ $t('common.login') }}
</VbenButton>
<VbenButton class="mt-4 w-full" variant="outline" @click="goLogin()">
<VbenButton class="mt-4 w-full" variant="outline" @click="goToLogin()">
{{ $t('common.back') }}
</VbenButton>
</div>

View File

@@ -50,7 +50,7 @@ function handleSubmut() {
emit('submit', formState.email);
}
function goLogin() {
function goToLogin() {
router.push(props.loginPath);
}
</script>
@@ -79,7 +79,7 @@ function goLogin() {
<VbenButton class="mt-2 w-full" @click="handleSubmut">
{{ $t('authentication.sendResetLink') }}
</VbenButton>
<VbenButton class="mt-4 w-full" variant="outline" @click="goLogin()">
<VbenButton class="mt-4 w-full" variant="outline" @click="goToLogin()">
{{ $t('common.back') }}
</VbenButton>
</div>

View File

@@ -39,7 +39,7 @@ const qrcode = useQRCode(text, {
margin: 4,
});
function goLogin() {
function goToLogin() {
router.push(props.loginPath);
}
</script>
@@ -62,7 +62,7 @@ function goLogin() {
</p>
</div>
<VbenButton class="mt-4 w-full" variant="outline" @click="goLogin()">
<VbenButton class="mt-4 w-full" variant="outline" @click="goToLogin()">
{{ $t('common.back') }}
</VbenButton>
</div>

View File

@@ -78,7 +78,7 @@ function handleSubmit() {
});
}
function goLogin() {
function goToLogin() {
router.push(props.loginPath);
}
</script>
@@ -160,7 +160,7 @@ function goLogin() {
{{ $t('authentication.alreadyHaveAccount') }}
<span
class="text-primary hover:text-primary-hover cursor-pointer text-sm font-normal"
@click="goLogin()"
@click="goToLogin()"
>
{{ $t('authentication.goToLogin') }}
</span>