small fixes and bump version
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"name": "lume",
|
"name": "lume",
|
||||||
"description": "the communication app",
|
"description": "the communication app",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.2.5",
|
"version": "1.2.6",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 8.8 MiB |
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@@ -2638,7 +2638,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lume"
|
name = "lume"
|
||||||
version = "1.2.5"
|
version = "1.2.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cocoa 0.25.0",
|
"cocoa 0.25.0",
|
||||||
"objc",
|
"objc",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "lume"
|
name = "lume"
|
||||||
version = "1.2.5"
|
version = "1.2.6"
|
||||||
description = "the communication app"
|
description = "the communication app"
|
||||||
authors = ["Ren Amamiya"]
|
authors = ["Ren Amamiya"]
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
@@ -11,12 +11,13 @@ rust-version = "1.66"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
tauri-build = { version = "1.4", features = [] }
|
tauri-build = { version = "1.4.1", features = [] }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
tauri = { version = "1.4", features = [ "macos-private-api",
|
tauri = { version = "1.5", features = [
|
||||||
|
"macos-private-api",
|
||||||
"window-close",
|
"window-close",
|
||||||
"window-print",
|
"window-print",
|
||||||
"window-create",
|
"window-create",
|
||||||
|
|||||||
@@ -112,8 +112,6 @@ fn main() {
|
|||||||
apply_vibrancy(&window, NSVisualEffectMaterial::HudWindow, None, None)
|
apply_vibrancy(&window, NSVisualEffectMaterial::HudWindow, None, None)
|
||||||
.expect("Unsupported platform! 'apply_vibrancy' is only supported on macOS");
|
.expect("Unsupported platform! 'apply_vibrancy' is only supported on macOS");
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
|
||||||
window.set_transparent_titlebar(true);
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
window.position_traffic_lights(16.0, 25.0);
|
window.position_traffic_lights(16.0, 25.0);
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "Lume",
|
"productName": "Lume",
|
||||||
"version": "1.2.5"
|
"version": "1.2.6"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
"tauri": {
|
"tauri": {
|
||||||
"windows": [
|
"windows": [
|
||||||
{
|
{
|
||||||
"width": 400,
|
"width": 300,
|
||||||
"height": 500,
|
"height": 300,
|
||||||
"decorations": false,
|
"decorations": false,
|
||||||
"title": "Lume",
|
"title": "Lume",
|
||||||
"center": true,
|
"center": true,
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
"macOSPrivateApi": true,
|
"macOSPrivateApi": true,
|
||||||
"windows": [
|
"windows": [
|
||||||
{
|
{
|
||||||
"width": 400,
|
"width": 300,
|
||||||
"height": 500,
|
"height": 300,
|
||||||
"decorations": true,
|
"decorations": false,
|
||||||
"title": "Lume",
|
"title": "Lume",
|
||||||
"titleBarStyle": "Overlay",
|
"titleBarStyle": "Overlay",
|
||||||
"hiddenTitle": true,
|
"hiddenTitle": true,
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
"tauri": {
|
"tauri": {
|
||||||
"windows": [
|
"windows": [
|
||||||
{
|
{
|
||||||
"width": 400,
|
"width": 300,
|
||||||
"height": 500,
|
"height": 300,
|
||||||
"decorations": false,
|
"decorations": false,
|
||||||
"title": "Lume",
|
"title": "Lume",
|
||||||
"center": true,
|
"center": true,
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ export function CreateStep2Screen() {
|
|||||||
if (!db.secureDB) db.secureDB = stronghold;
|
if (!db.secureDB) db.secureDB = stronghold;
|
||||||
|
|
||||||
// save privkey to secure storage
|
// save privkey to secure storage
|
||||||
await db.secureSave(pubkey, privkey, pubkey);
|
await db.secureSave(pubkey, privkey);
|
||||||
|
|
||||||
// redirect to next step
|
// redirect to next step
|
||||||
navigate('/auth/create/step-3', { replace: true });
|
navigate('/auth/create/step-3', { replace: true });
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ export function ImportStep2Screen() {
|
|||||||
if (!db.secureDB) db.secureDB = stronghold;
|
if (!db.secureDB) db.secureDB = stronghold;
|
||||||
|
|
||||||
// save privkey to secure storage
|
// save privkey to secure storage
|
||||||
await db.secureSave(pubkey, privkey, pubkey);
|
await db.secureSave(pubkey, privkey);
|
||||||
|
|
||||||
// redirect to next step
|
// redirect to next step
|
||||||
navigate('/auth/import/step-3', { replace: true });
|
navigate('/auth/import/step-3', { replace: true });
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { message } from '@tauri-apps/api/dialog';
|
import { message } from '@tauri-apps/api/dialog';
|
||||||
import { invoke } from '@tauri-apps/api/tauri';
|
import { invoke } from '@tauri-apps/api/tauri';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect } from 'react';
|
||||||
|
|
||||||
import { useNDK } from '@libs/ndk/provider';
|
import { useNDK } from '@libs/ndk/provider';
|
||||||
import { useStorage } from '@libs/storage/provider';
|
import { useStorage } from '@libs/storage/provider';
|
||||||
@@ -14,12 +14,6 @@ export function SplashScreen() {
|
|||||||
const { ndk } = useNDK();
|
const { ndk } = useNDK();
|
||||||
const { fetchUserData } = useNostr();
|
const { fetchUserData } = useNostr();
|
||||||
|
|
||||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
|
||||||
|
|
||||||
const skip = async () => {
|
|
||||||
await invoke('close_splashscreen');
|
|
||||||
};
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function syncUserData() {
|
async function syncUserData() {
|
||||||
if (!db.account) {
|
if (!db.account) {
|
||||||
@@ -40,11 +34,11 @@ export function SplashScreen() {
|
|||||||
await invoke('close_splashscreen');
|
await invoke('close_splashscreen');
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setIsLoading(false);
|
|
||||||
await message(e, {
|
await message(e, {
|
||||||
title: 'An unexpected error has occurred',
|
title: 'An unexpected error has occurred',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
});
|
});
|
||||||
|
await invoke('close_splashscreen');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -59,34 +53,11 @@ export function SplashScreen() {
|
|||||||
<div className="relative flex h-screen w-screen items-center justify-center bg-black">
|
<div className="relative flex h-screen w-screen items-center justify-center bg-black">
|
||||||
<div data-tauri-drag-region className="absolute left-0 top-0 z-10 h-11 w-full" />
|
<div data-tauri-drag-region className="absolute left-0 top-0 z-10 h-11 w-full" />
|
||||||
<div className="flex min-h-0 w-full flex-1 items-center justify-center px-8">
|
<div className="flex min-h-0 w-full flex-1 items-center justify-center px-8">
|
||||||
<div className="flex flex-col items-center justify-center gap-4">
|
<div className="flex flex-col items-center justify-center gap-6">
|
||||||
<LoaderIcon className="h-6 w-6 animate-spin text-white" />
|
<LoaderIcon className="h-6 w-6 animate-spin text-white" />
|
||||||
{isLoading ? (
|
<h3 className="text-lg font-semibold leading-none text-white">
|
||||||
<div className="flex flex-col gap-2 text-center">
|
{!ndk ? 'Connecting...' : 'Syncing...'}
|
||||||
<h3 className="text-lg font-semibold leading-none text-white">
|
</h3>
|
||||||
{!ndk ? 'Connecting to relay...' : 'Syncing user data...'}
|
|
||||||
</h3>
|
|
||||||
{ndk ? (
|
|
||||||
<p className="text-sm text-white/50">
|
|
||||||
Ensure all your data is sync across all Nostr clients. It may take a few
|
|
||||||
seconds, please don't close app.
|
|
||||||
</p>
|
|
||||||
) : null}
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<div className="mt-2 flex flex-col gap-1 text-center">
|
|
||||||
<h3 className="text-lg font-semibold leading-none text-white">
|
|
||||||
An unexpected error has occurred
|
|
||||||
</h3>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={skip}
|
|
||||||
className="mx-auto mt-4 inline-flex h-10 w-max items-center justify-center rounded-md bg-white/10 px-8 text-sm font-medium leading-none text-white backdrop-blur-xl hover:bg-white/20"
|
|
||||||
>
|
|
||||||
Skip this step
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user