v0.1.22 - 로그인 오류 문구와 비로그인 화면 정리
This commit is contained in:
15
src/App.vue
15
src/App.vue
@@ -16,6 +16,7 @@ import {
|
||||
updatePassword,
|
||||
updateProfile,
|
||||
} from './lib/authClient'
|
||||
import { toUserFacingApiError } from './lib/apiBase'
|
||||
import { createGoal, deleteGoal, fetchGoals, updateGoal } from './lib/goalsApi'
|
||||
import { deletePlannerEntry, fetchPlannerEntries, savePlannerEntry } from './lib/plannerApi'
|
||||
import {
|
||||
@@ -849,7 +850,7 @@ async function submitAuthForm() {
|
||||
|
||||
await applyAuthSuccess(result)
|
||||
} catch (error) {
|
||||
authMessage.value = error.message || '인증 처리 중 문제가 발생했습니다.'
|
||||
authMessage.value = toUserFacingApiError(error, '인증 처리 중 문제가 발생했습니다.')
|
||||
} finally {
|
||||
authBusy.value = false
|
||||
}
|
||||
@@ -1296,8 +1297,14 @@ onMounted(() => {
|
||||
|
||||
<template>
|
||||
<main class="min-h-screen px-4 py-6 text-ink sm:px-6 lg:px-10 xl:h-screen xl:overflow-hidden">
|
||||
<div class="print-root mx-auto flex max-w-[1760px] flex-col gap-6 xl:h-[calc(100vh-3rem)] xl:grid xl:grid-cols-[300px_minmax(0,1fr)] xl:items-start">
|
||||
<aside class="scrollbar-hide print-hidden rounded-[28px] border border-white/60 bg-white/70 p-5 backdrop-blur sm:p-6 xl:h-full xl:overflow-y-auto">
|
||||
<div
|
||||
class="print-root mx-auto flex max-w-[1760px] flex-col gap-6 xl:h-[calc(100vh-3rem)] xl:items-start"
|
||||
:class="isAuthenticated ? 'xl:grid xl:grid-cols-[300px_minmax(0,1fr)]' : ''"
|
||||
>
|
||||
<aside
|
||||
v-if="isAuthenticated"
|
||||
class="scrollbar-hide print-hidden rounded-[28px] border border-white/60 bg-white/70 p-5 backdrop-blur sm:p-6 xl:h-full xl:overflow-y-auto"
|
||||
>
|
||||
<div class="space-y-6">
|
||||
<div class="space-y-2">
|
||||
<p class="text-[11px] font-bold uppercase tracking-[0.28em] text-stone-500">10 Minute Planner</p>
|
||||
@@ -1452,7 +1459,7 @@ onMounted(() => {
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<div class="min-w-0 space-y-6 xl:h-full xl:overflow-hidden">
|
||||
<div class="min-w-0 space-y-6" :class="isAuthenticated ? 'xl:h-full xl:overflow-hidden' : ''">
|
||||
<section
|
||||
v-if="!isAuthenticated"
|
||||
class="scrollbar-hide print-hidden rounded-[28px] border border-white/60 bg-white/65 p-6 shadow-[0_24px_80px_rgba(28,25,23,0.08)] sm:p-8 xl:h-full xl:overflow-y-auto"
|
||||
|
||||
Reference in New Issue
Block a user