minor window adjustments

This commit is contained in:
2026-01-10 23:47:35 +01:00
parent 2612f1b4d1
commit b9819e7562
5 changed files with 10 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "chatapp",
"private": true,
"version": "1.0.1",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -18,7 +18,7 @@ crate-type = ["staticlib", "cdylib", "rlib"]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = [] }
tauri = { version = "2", features = ["devtools"] }
tauri-plugin-opener = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "chatapp",
"version": "0.1.0",
"version": "1.0.0",
"identifier": "com.strawberries.chatapp",
"build": {
"beforeDevCommand": "yarn dev",
@@ -15,10 +15,11 @@
"title": "chatapp",
"width": 800,
"height": 600,
"decorations": false,
"decorations": true,
"resizable": true,
"fullscreen": false,
"center": true
"center": true,
"theme": "Dark"
}
],
"security": {
@@ -28,6 +29,7 @@
"bundle": {
"active": true,
"targets": [
"appimage",
"deb",
"nsis",
"msi",

View File

@@ -24,9 +24,7 @@ export async function saveAuthData(token: string, user: User) {
export async function clearAuthData() {
const s = await getStore()
await s.delete('token')
await s.delete('user')
await s.delete('last_room_uuid')
s.clear()
await s.save()
}

View File

@@ -6,6 +6,8 @@ const host = process.env.TAURI_DEV_HOST;
// https://vite.dev/config/
export default defineConfig(async () => ({
base: './',
plugins: [vue()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`