diff --git a/src/App.vue b/src/App.vue index 0aee679..d2ab454 100644 --- a/src/App.vue +++ b/src/App.vue @@ -36,6 +36,7 @@ const viewMode = ref('focus') const printLayout = ref('single') const demoMode = ref(false) const demoDayOffset = ref(0) +const demoViewMode = ref('single') const authDialogOpen = ref(false) const authMode = ref('login') const authBusy = ref(false) @@ -490,6 +491,9 @@ const secondaryDateDisplay = computed(() => getDateDisplay(secondaryDate.value)) const demoDate = computed(() => createDemoDate(demoDayOffset.value)) const demoDateDisplay = computed(() => getDateDisplay(demoDate.value)) const demoPlanner = computed(() => createDemoRecord(demoDayOffset.value)) +const demoNextDate = computed(() => createDemoDate(Math.min(demoDayOffset.value + 1, 1))) +const demoNextDateDisplay = computed(() => getDateDisplay(demoNextDate.value)) +const demoNextPlanner = computed(() => createDemoRecord(Math.min(demoDayOffset.value + 1, 1))) const demoDday = computed(() => { const offset = demoDayOffset.value @@ -503,6 +507,15 @@ const demoDday = computed(() => { return 'D-7 나만의 루틴 만들기' }) +const demoNextDday = computed(() => { + const offset = Math.min(demoDayOffset.value + 1, 1) + + if (offset > 0) { + return 'D-6 나만의 루틴 만들기' + } + + return 'D-7 나만의 루틴 만들기' +}) const monthLabel = computed(() => `${calendarViewDate.value.getMonth() + 1}`.padStart(2, '0'), @@ -2146,7 +2159,7 @@ onBeforeUnmount(() => { @@ -2170,10 +2183,10 @@ onBeforeUnmount(() => {