Skip to content

Commit

Permalink
Merge branch 'hotfix/update-log'
Browse files Browse the repository at this point in the history
  • Loading branch information
xnousnow committed Jun 11, 2023
2 parents 77e70bb + c0fef00 commit e7ca5ac
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/routes/settings/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<button
class="w-full rounded-xl bg-purple-500 py-3 text-xl font-medium text-white hover:bg-purple-600 focus:ring-purple-600"
on:click={() => {
$notifyRelease = false
notifyRelease.set(false)
localStorage.setItem('lastUsedBigRelease', version)
}}
>
Expand Down
6 changes: 1 addition & 5 deletions src/stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const currentSchoolIndex = writable(0)
const openSchoolToast = writable(false)

const lastBigRelease = import.meta.env.VITE_LAST_BIG_RELEASE
const notifyRelease = writable(false)
const notifyRelease: Writable<boolean | null> = writable(null)

const isNeisUnderMaintaince: Writable<undefined | boolean> = writable(undefined)

Expand Down Expand Up @@ -54,10 +54,6 @@ if (typeof window !== 'undefined') {
const lastUsedBigRelease = localStorage.getItem('lastUsedBigRelease') || ''
if (lastUsedBigRelease === '') localStorage.setItem('lastUsedBigRelease', lastBigRelease)
if (lastBigRelease != lastUsedBigRelease) notifyRelease.set(true)
notifyRelease.subscribe((value) => {
if (!value) return
localStorage.setItem('lastUsedBigRelease', lastBigRelease)
})

primarySchool.set(JSON.parse(localStorage.getItem('primarySchool') || '{}') || defaultSchoolObj)
altSchools.set(JSON.parse(localStorage.getItem('altSchools') || '[]'))
Expand Down
24 changes: 23 additions & 1 deletion src/updateLog.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SvelteComponent } from 'svelte'
import { Accessibility, Wifi, Sparkles, Grab } from 'lucide-svelte'
import { Accessibility, Wifi, Sparkles, Grab, CopyPlus, EggOff, ServerCrash, Image } from 'lucide-svelte'

interface Feature {
Icon: typeof SvelteComponent
Expand Down Expand Up @@ -31,5 +31,27 @@ export const logs: Record<string, Feature[]> = {
title: '쓸어서 날짜 이동',
description: '급식 화면에서 화면을 가로로 쓸면 이전/다음날로 이동할 수 있어요.'
}
],
'2.0.0': [
{
Icon: CopyPlus,
title: '여러 학교 선택',
description: '여러 학교를 선택해 빠르게 다른 학교의 급식을 확인할 수 있어요. 친구 학교도 등록해보세요!'
},
{
Icon: EggOff,
title: '알레르기 알림',
description: '알레르기를 설정하고 메뉴에 알레르기가 포함되면 알려드려요.'
},
{
Icon: ServerCrash,
title: '급식 서버 점검 알림',
description: '급식 서버가 점검 중일 때는 오류를 표시하는 대신 점검 중이라고 알려드려요.'
},
{
Icon: Image,
title: '재료 사진 출처',
description: '이제 재료 사진의 출처를 볼 수 있어요. 재료 이름 오른쪽 ⓘ를 눌러보세요!'
}
]
}

1 comment on commit e7ca5ac

@vercel
Copy link

@vercel vercel bot commented on e7ca5ac Jun 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.