Skip to content

Commit

Permalink
chore: added store storage
Browse files Browse the repository at this point in the history
  • Loading branch information
ayangweb committed Mar 9, 2023
1 parent 1b5a3f7 commit 455fc23
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"dependencies": {
"@tauri-apps/api": "^1.2.0",
"tauri-plugin-store-api": "https://github.com/tauri-apps/tauri-plugin-store",
"vue": "^3.2.45"
},
"devDependencies": {
Expand Down Expand Up @@ -46,4 +47,4 @@
"vite": "^4.0.0",
"vue-tsc": "^1.0.11"
}
}
}
13 changes: 13 additions & 0 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ tauri-build = { version = "1.2", features = [] }
tauri = { version = "1.2", features = ["api-all", "macos-private-api", "system-tray"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }

[features]
# this feature is used for production builds or when `devPath` points to the filesystem
Expand Down
1 change: 1 addition & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mod tray;
fn main() {
tauri::Builder::default()
.system_tray(tray::main_menu())
.plugin(tauri_plugin_store::Builder::default().build())
.on_system_tray_event(tray::handler)
.run(tauri::generate_context!())
.expect("error while running tauri application");
Expand Down
5 changes: 3 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@
"fullscreen": false,
"resizable": true,
"title": "ChatGPT-desktop",
"width": 800,
"height": 600
"alwaysOnTop": true,
"decorations": false,
"transparent": true
}
],
"systemTray": {
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts"></script>

<template>
<div class="">
<div class="main h-screen rounded-xl bg-white/50" data-tauri-drag-region>
<button class="btn btn-link">Button</button>
</div>
</template>
Expand Down
4 changes: 4 additions & 0 deletions src/assets/css/global.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@import './reset.scss';

html {
background-color: transparent !important;
}

body {
word-break: break-all;

Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { createApp } from 'vue'
import App from './App.vue'
import 'uno.css'
import '@kidonng/daisyui/index.css'
import './assets/css/global.scss'

createApp(App).mount('#app')

0 comments on commit 455fc23

Please sign in to comment.