From d4d1c2bbabfcec3c62767e614c9d67f516938af2 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 26 Aug 2022 01:18:28 -0400 Subject: basic patch notes viewer, lazy-load settings and store, build frontend as esmodule, add lazy-loaded react-markdown, backend changes to accomodate ESModule frontend --- frontend/src/updater.ts | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'frontend/src/updater.ts') diff --git a/frontend/src/updater.ts b/frontend/src/updater.ts index dd37f0b4..ff9cb591 100644 --- a/frontend/src/updater.ts +++ b/frontend/src/updater.ts @@ -11,19 +11,22 @@ export interface DeckyUpdater { finish: () => void; } +export interface RemoteVerInfo { + assets: { + browser_download_url: string; + created_at: string; + }[]; + name: string; + body: string; + prerelease: boolean; + published_at: string; + tag_name: string; +} + export interface VerInfo { current: string; - remote: { - assets: { - browser_download_url: string; - created_at: string; - }[]; - name: string; - body: string; - prerelease: boolean; - published_at: string; - tag_name: string; - } | null; + remote: RemoteVerInfo | null; + all: RemoteVerInfo[] | null; updatable: boolean; } -- cgit v1.2.3