chore: bump version

This commit is contained in:
reya
2024-08-08 10:09:11 +07:00
parent f3f806e3cf
commit 3c36db162f
5 changed files with 68 additions and 64 deletions

View File

@@ -16,7 +16,7 @@
"@radix-ui/react-progress": "^1.1.0",
"@radix-ui/react-scroll-area": "^1.1.0",
"@tanstack/react-query": "^5.51.21",
"@tanstack/react-router": "^1.46.6",
"@tanstack/react-router": "^1.46.8",
"@tauri-apps/api": "2.0.0-beta.15",
"@tauri-apps/plugin-clipboard-manager": "2.1.0-beta.5",
"@tauri-apps/plugin-dialog": "2.0.0-rc.0",
@@ -37,7 +37,7 @@
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@tanstack/router-plugin": "^1.46.6",
"@tanstack/router-plugin": "^1.47.0",
"@tauri-apps/cli": "2.0.0-rc.1",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
@@ -48,9 +48,9 @@
"postcss": "^8.4.41",
"tailwind-gradient-mask-image": "^1.2.0",
"tailwind-merge": "^2.4.0",
"tailwindcss": "^3.4.7",
"tailwindcss": "^3.4.8",
"typescript": "^5.5.4",
"vite": "^5.3.5",
"vite": "^5.4.0",
"vite-tsconfig-paths": "^4.3.2"
},
"overrides": {

99
pnpm-lock.yaml generated
View File

@@ -27,8 +27,8 @@ importers:
specifier: ^5.51.21
version: 5.51.21(react@19.0.0-rc-d025ddd3-20240722)
'@tanstack/react-router':
specifier: ^1.46.6
version: 1.46.6(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-d025ddd3-20240722))(react@19.0.0-rc-d025ddd3-20240722)
specifier: ^1.46.8
version: 1.46.8(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-d025ddd3-20240722))(react@19.0.0-rc-d025ddd3-20240722)
'@tauri-apps/api':
specifier: 2.0.0-beta.15
version: 2.0.0-beta.15
@@ -85,8 +85,8 @@ importers:
specifier: 1.8.3
version: 1.8.3
'@tanstack/router-plugin':
specifier: ^1.46.6
version: 1.46.6(vite@5.3.5)
specifier: ^1.47.0
version: 1.47.0(vite@5.4.0)
'@tauri-apps/cli':
specifier: 2.0.0-rc.1
version: 2.0.0-rc.1
@@ -98,7 +98,7 @@ importers:
version: types-react-dom@19.0.0-rc.1
'@vitejs/plugin-react':
specifier: ^4.3.1
version: 4.3.1(vite@5.3.5)
version: 4.3.1(vite@5.4.0)
autoprefixer:
specifier: ^10.4.20
version: 10.4.20(postcss@8.4.41)
@@ -118,17 +118,17 @@ importers:
specifier: ^2.4.0
version: 2.4.0
tailwindcss:
specifier: ^3.4.7
version: 3.4.7
specifier: ^3.4.8
version: 3.4.8
typescript:
specifier: ^5.5.4
version: 5.5.4
vite:
specifier: ^5.3.5
version: 5.3.5
specifier: ^5.4.0
version: 5.4.0
vite-tsconfig-paths:
specifier: ^4.3.2
version: 4.3.2(typescript@5.5.4)(vite@5.3.5)
version: 4.3.2(typescript@5.5.4)(vite@5.4.0)
packages:
@@ -813,8 +813,8 @@ packages:
peerDependencies:
react: ^18.0.0
'@tanstack/react-router@1.46.6':
resolution: {integrity: sha512-rCRLsHsT+zEQBvKwAqvSEHUOq4ceShETGbXTXvrS/zm4PGl0+1oBWbm/C8hnCbQJ9MWEH+4Ip0nslNjvAAbgcA==}
'@tanstack/react-router@1.46.8':
resolution: {integrity: sha512-9hQ2c/641tI2658iE+yNIHSRAjfuV9KWEP9siueP0PuMVU34Jnb8+26OazvOQTOa8yXC3VCQUMK+q8ZlCCw7BQ==}
engines: {node: '>=12'}
peerDependencies:
react: '>=18'
@@ -826,12 +826,12 @@ packages:
react: ^17.0.0 || ^18.0.0
react-dom: ^17.0.0 || ^18.0.0
'@tanstack/router-generator@1.45.7':
resolution: {integrity: sha512-5B756YXpZO0/yr7ahsxXoBOCpqroLx/D3l6X9qPlZaP0FVHVmTR6ZKGRX6zzuAxns/VO+sxnQso4AYLdDyZ9GA==}
'@tanstack/router-generator@1.47.0':
resolution: {integrity: sha512-b2xhsD7CGO8fwdqqHJV5vGykNMckeIXQ2TBGinmi7GLsRDnFkxjnHy6vPXSIPEnnZb5n0ePB4g1ggofvIMKdYg==}
engines: {node: '>=12'}
'@tanstack/router-plugin@1.46.6':
resolution: {integrity: sha512-zbQc7tjwbpzyKVXNU45AJJJovFkNcay5CtiFvJuRTX0kQUqY8VtiDX2ZCt/5X0Rp+DSwS75/ceZTVowog1xtkg==}
'@tanstack/router-plugin@1.47.0':
resolution: {integrity: sha512-2MOpkHQO5HWwgbhaxmo+HbmUPGBc3X+0faJAUxb7Odc4qfX+s7OfZ0dtyh02z1uIRXETh0kZoyuNokO/ctDmew==}
engines: {node: '>=12'}
peerDependencies:
'@rsbuild/core': '>=0.7.9'
@@ -1066,8 +1066,8 @@ packages:
resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}
engines: {node: '>= 6'}
caniuse-lite@1.0.30001649:
resolution: {integrity: sha512-fJegqZZ0ZX8HOWr6rcafGr72+xcgJKI9oWfDW5DrD7ExUtgZC7a7R7ZYmZqplh7XDocFdGeIFn7roAxhOeYrPQ==}
caniuse-lite@1.0.30001650:
resolution: {integrity: sha512-fgEc7hP/LB7iicdXHUI9VsBsMZmUmlVJeQP2qqQW+3lkqVhbmjEU8zp+h5stWeilX+G7uXuIUIIlWlDw9jdt8g==}
chalk@2.4.2:
resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}
@@ -1141,8 +1141,8 @@ packages:
eastasianwidth@0.2.0:
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
electron-to-chromium@1.5.4:
resolution: {integrity: sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA==}
electron-to-chromium@1.5.5:
resolution: {integrity: sha512-QR7/A7ZkMS8tZuoftC/jfqNkZLQO779SSW3YuZHP4eXpj3EffGLFcB/Xu9AAZQzLccTiCV+EmUo3ha4mQ9wnlA==}
emoji-regex@8.0.0:
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
@@ -1174,8 +1174,8 @@ packages:
resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}
engines: {node: '>=8'}
foreground-child@3.2.1:
resolution: {integrity: sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==}
foreground-child@3.3.0:
resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==}
engines: {node: '>=14'}
fraction.js@4.3.7:
@@ -1584,8 +1584,8 @@ packages:
tailwind-merge@2.4.0:
resolution: {integrity: sha512-49AwoOQNKdqKPd9CViyH5wJoSKsCDjUlzL8DxuGp3P1FsGY36NJDAa18jLZcaHAUUuTj+JB8IAo8zWgBNvBF7A==}
tailwindcss@3.4.7:
resolution: {integrity: sha512-rxWZbe87YJb4OcSopb7up2Ba4U82BoiSGUdoDr3Ydrg9ckxFS/YWsvhN323GMcddgU65QRy7JndC7ahhInhvlQ==}
tailwindcss@3.4.8:
resolution: {integrity: sha512-GkP17r9GQkxgZ9FKHJQEnjJuKBcbFhMFzKu5slmN6NjlCuFnYJMQ8N4AZ6VrUyiRXlDtPKHkesuQ/MS913Nvdg==}
engines: {node: '>=14.0.0'}
hasBin: true
@@ -1645,8 +1645,8 @@ packages:
resolution: {integrity: sha512-lMx9dX+KRmG8sq6gulYYpKWZc9RlGsgBR6aoO8Qsm3qvkSJ+3rAymr+TnV8EDMrIrwuFJ4kruzMWM/OpYzPoow==}
engines: {node: '>=8'}
unplugin@1.12.0:
resolution: {integrity: sha512-KeczzHl2sATPQUx1gzo+EnUkmN4VmGBYRRVOZSGvGITE9rGHRDGqft6ONceP3vgXcyJ2XjX5axG5jMWUwNCYLw==}
unplugin@1.12.1:
resolution: {integrity: sha512-aXEH9c5qi3uYZHo0niUtxDlT9ylG/luMW/dZslSCkbtC31wCyFkmM0kyoBBh+Grhn7CL+/kvKLfN61/EdxPxMQ==}
engines: {node: '>=14.0.0'}
update-browserslist-db@1.1.0:
@@ -1711,8 +1711,8 @@ packages:
vite:
optional: true
vite@5.3.5:
resolution: {integrity: sha512-MdjglKR6AQXQb9JGiS7Rc2wC6uMjcm7Go/NHNO63EwiJXfuk9PgqiP/n5IDJCziMkfw9n4Ubp7lttNwz+8ZVKA==}
vite@5.4.0:
resolution: {integrity: sha512-5xokfMX0PIiwCMCMb9ZJcMyh5wbBun0zUzKib+L65vAZ8GY9ePZMXxFrHbr/Kyll2+LSCY7xtERPpxkBDKngwg==}
engines: {node: ^18.0.0 || >=20.0.0}
hasBin: true
peerDependencies:
@@ -1720,6 +1720,7 @@ packages:
less: '*'
lightningcss: ^1.21.0
sass: '*'
sass-embedded: '*'
stylus: '*'
sugarss: '*'
terser: ^5.4.0
@@ -1732,6 +1733,8 @@ packages:
optional: true
sass:
optional: true
sass-embedded:
optional: true
stylus:
optional: true
sugarss:
@@ -2349,7 +2352,7 @@ snapshots:
'@tanstack/query-core': 5.51.21
react: 19.0.0-rc-d025ddd3-20240722
'@tanstack/react-router@1.46.6(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-d025ddd3-20240722))(react@19.0.0-rc-d025ddd3-20240722)':
'@tanstack/react-router@1.46.8(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-d025ddd3-20240722))(react@19.0.0-rc-d025ddd3-20240722)':
dependencies:
'@tanstack/history': 1.45.3
'@tanstack/react-store': 0.5.5(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-d025ddd3-20240722))(react@19.0.0-rc-d025ddd3-20240722)
@@ -2365,12 +2368,12 @@ snapshots:
react-dom: 19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-d025ddd3-20240722)
use-sync-external-store: 1.2.2(react@19.0.0-rc-d025ddd3-20240722)
'@tanstack/router-generator@1.45.7':
'@tanstack/router-generator@1.47.0':
dependencies:
prettier: 3.3.3
zod: 3.23.8
'@tanstack/router-plugin@1.46.6(vite@5.3.5)':
'@tanstack/router-plugin@1.47.0(vite@5.4.0)':
dependencies:
'@babel/core': 7.25.2
'@babel/generator': 7.25.0
@@ -2380,17 +2383,17 @@ snapshots:
'@babel/template': 7.25.0
'@babel/traverse': 7.25.3
'@babel/types': 7.25.2
'@tanstack/router-generator': 1.45.7
'@tanstack/router-generator': 1.47.0
'@types/babel__core': 7.20.5
'@types/babel__generator': 7.6.8
'@types/babel__template': 7.4.4
'@types/babel__traverse': 7.20.6
babel-dead-code-elimination: 1.0.6
chokidar: 3.6.0
unplugin: 1.12.0
unplugin: 1.12.1
zod: 3.23.8
optionalDependencies:
vite: 5.3.5
vite: 5.4.0
transitivePeerDependencies:
- supports-color
@@ -2522,14 +2525,14 @@ snapshots:
dependencies:
'@types/yargs-parser': 21.0.3
'@vitejs/plugin-react@4.3.1(vite@5.3.5)':
'@vitejs/plugin-react@4.3.1(vite@5.4.0)':
dependencies:
'@babel/core': 7.25.2
'@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.25.2)
'@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.25.2)
'@types/babel__core': 7.20.5
react-refresh: 0.14.2
vite: 5.3.5
vite: 5.4.0
transitivePeerDependencies:
- supports-color
@@ -2567,7 +2570,7 @@ snapshots:
autoprefixer@10.4.20(postcss@8.4.41):
dependencies:
browserslist: 4.23.3
caniuse-lite: 1.0.30001649
caniuse-lite: 1.0.30001650
fraction.js: 4.3.7
normalize-range: 0.1.2
picocolors: 1.0.1
@@ -2607,14 +2610,14 @@ snapshots:
browserslist@4.23.3:
dependencies:
caniuse-lite: 1.0.30001649
electron-to-chromium: 1.5.4
caniuse-lite: 1.0.30001650
electron-to-chromium: 1.5.5
node-releases: 2.0.18
update-browserslist-db: 1.1.0(browserslist@4.23.3)
camelcase-css@2.0.1: {}
caniuse-lite@1.0.30001649: {}
caniuse-lite@1.0.30001650: {}
chalk@2.4.2:
dependencies:
@@ -2681,7 +2684,7 @@ snapshots:
eastasianwidth@0.2.0: {}
electron-to-chromium@1.5.4: {}
electron-to-chromium@1.5.5: {}
emoji-regex@8.0.0: {}
@@ -2733,7 +2736,7 @@ snapshots:
dependencies:
to-regex-range: 5.0.1
foreground-child@3.2.1:
foreground-child@3.3.0:
dependencies:
cross-spawn: 7.0.3
signal-exit: 4.1.0
@@ -2759,7 +2762,7 @@ snapshots:
glob@10.4.5:
dependencies:
foreground-child: 3.2.1
foreground-child: 3.3.0
jackspeak: 3.4.3
minimatch: 9.0.5
minipass: 7.1.2
@@ -3094,7 +3097,7 @@ snapshots:
tailwind-merge@2.4.0: {}
tailwindcss@3.4.7:
tailwindcss@3.4.8:
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -3161,7 +3164,7 @@ snapshots:
unique-names-generator@4.7.1: {}
unplugin@1.12.0:
unplugin@1.12.1:
dependencies:
acorn: 8.12.1
chokidar: 3.6.0
@@ -3200,18 +3203,18 @@ snapshots:
react: 19.0.0-rc-d025ddd3-20240722
react-dom: 19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-d025ddd3-20240722)
vite-tsconfig-paths@4.3.2(typescript@5.5.4)(vite@5.3.5):
vite-tsconfig-paths@4.3.2(typescript@5.5.4)(vite@5.4.0):
dependencies:
debug: 4.3.6
globrex: 0.1.2
tsconfck: 3.1.1(typescript@5.5.4)
optionalDependencies:
vite: 5.3.5
vite: 5.4.0
transitivePeerDependencies:
- supports-color
- typescript
vite@5.3.5:
vite@5.4.0:
dependencies:
esbuild: 0.21.5
postcss: 8.4.41

View File

@@ -324,16 +324,18 @@ pub async fn login(
println!("[emit] error: {}", e)
}
if let Some(window) = handle.get_webview_window("main") {
if !window.is_focused().unwrap() {
if let Err(e) = handle
.notification()
.builder()
.body("You have a new message")
.title("Coop")
.show()
{
println!("[notification] error: {}", e);
if sender != public_key {
if let Some(window) = handle.get_webview_window("main") {
if !window.is_focused().unwrap() {
if let Err(e) = handle
.notification()
.builder()
.body("You have a new message")
.title("Coop")
.show()
{
println!("[notification] error: {}", e);
}
}
}
}

View File

@@ -1,6 +1,6 @@
{
"productName": "Coop",
"version": "0.1.5",
"version": "0.1.6",
"identifier": "nu.lume.coop",
"build": {
"beforeDevCommand": "pnpm dev",

View File

@@ -3,7 +3,6 @@ import { readFile } from "@tauri-apps/plugin-fs";
import {
isPermissionGranted,
requestPermission,
sendNotification,
} from "@tauri-apps/plugin-notification";
import { relaunch } from "@tauri-apps/plugin-process";
import { check } from "@tauri-apps/plugin-updater";