added init data page

This commit is contained in:
Ren Amamiya
2023-03-27 11:28:57 +07:00
parent 392ce50280
commit 1a9b3a2603
7 changed files with 188 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ tauri-build = { version = "1.2", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.2", features = ["app-all", "clipboard-all", "http-all", "notification-all", "os-all", "shell-open", "system-tray", "window-start-dragging"] }
tauri = { version = "1.2", features = ["app-all", "clipboard-all", "http-all", "notification-all", "os-all", "shell-open", "system-tray", "window-close", "window-start-dragging"] }
[dependencies.tauri-plugin-sql]
git = "https://github.com/tauri-apps/plugins-workspace"

View File

@@ -87,4 +87,18 @@ CREATE TABLE
content TEXT NOT NULL,
parent_id TEXT,
parent_comment_id TEXT
);
);
-- create settings
CREATE TABLE
settings (
id INTEGER PRIMARY KEY AUTOINCREMENT,
setting_key TEXT NOT NULL,
setting_value TEXT NOT NULL
);
-- add default setting
INSERT INTO
settings (setting_key, setting_value)
VALUES
("last_login", "0");

View File

@@ -39,7 +39,8 @@
"all": true
},
"window": {
"startDragging": true
"startDragging": true,
"close": true
}
},
"bundle": {