From aad072294e5f5edd3784c5aa50957a327301fd11 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Fri, 15 Mar 2024 07:56:38 +0900 Subject: [PATCH 1/2] Add fullscreen icon on the front mage --- src/lib/Others/GithubStars.svelte | 11 +++++++++-- src/ts/storage/globalApi.ts | 4 ++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/lib/Others/GithubStars.svelte b/src/lib/Others/GithubStars.svelte index c50def08..d87269d9 100644 --- a/src/lib/Others/GithubStars.svelte +++ b/src/lib/Others/GithubStars.svelte @@ -1,6 +1,6 @@ @@ -27,4 +27,11 @@ }}> + {#if !isTauri} + + {/if} \ No newline at end of file diff --git a/src/ts/storage/globalApi.ts b/src/ts/storage/globalApi.ts index 83c64b52..f7a082d3 100644 --- a/src/ts/storage/globalApi.ts +++ b/src/ts/storage/globalApi.ts @@ -1468,4 +1468,8 @@ export async function fetchNative(url:string, arg:{ export function textifyReadableStream(stream:ReadableStream){ return new Response(stream).text() +} + +export function toggleFullscreen(){ + document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen() } \ No newline at end of file From 36614e8fefdcb50a4372408dea7476f108d7e6bc Mon Sep 17 00:00:00 2001 From: kwaroran Date: Fri, 15 Mar 2024 07:56:58 +0900 Subject: [PATCH 2/2] Update version to 1.82.3 --- src-tauri/tauri.conf.json | 2 +- src/ts/storage/database.ts | 2 +- version.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index f2235588..79f39e39 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "RisuAI", - "version": "1.82.2" + "version": "1.82.3" }, "tauri": { "allowlist": { diff --git a/src/ts/storage/database.ts b/src/ts/storage/database.ts index bac89b2e..ba659329 100644 --- a/src/ts/storage/database.ts +++ b/src/ts/storage/database.ts @@ -15,7 +15,7 @@ import type { OobaChatCompletionRequestParams } from '../model/ooba'; export const DataBase = writable({} as any as Database) export const loadedStore = writable(false) -export let appVer = "1.82.2" +export let appVer = "1.82.3" export let webAppSubVer = '' export function setDatabase(data:Database){ diff --git a/version.json b/version.json index 60e91dd9..1739fd02 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{"version":"1.82.2"} \ No newline at end of file +{"version":"1.82.3"} \ No newline at end of file