minor window adjustments
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "chatapp",
|
||||
"private": true,
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user