From c80414a72da698f04b137cf8f44d1757a1cc7c6e Mon Sep 17 00:00:00 2001
From: Ren Amamiya <123083837+reyamir@users.noreply.github.com>
Date: Thu, 28 Sep 2023 07:29:05 +0700
Subject: [PATCH] small fixes and support $ boost sign
---
src-tauri/Cargo.toml | 2 +-
src/app/auth/import/step-3.tsx | 4 ++--
src/app/auth/welcome.tsx | 30 +++--------------------------
src/shared/notes/index.ts | 1 +
src/shared/notes/kinds/text.tsx | 4 ++++
src/shared/notes/mentions/boost.tsx | 5 +++++
src/shared/notes/mentions/user.tsx | 18 +++++++++--------
src/utils/parser.ts | 5 +++++
8 files changed, 31 insertions(+), 38 deletions(-)
create mode 100644 src/shared/notes/mentions/boost.tsx
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 2e7d3753..096a0f38 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -16,7 +16,7 @@ tauri-build = { version = "1.4", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
-tauri = { version = "1.4", features = [
+tauri = { version = "1.4", features = [ "macos-private-api",
"window-close",
"window-print",
"window-create",
diff --git a/src/app/auth/import/step-3.tsx b/src/app/auth/import/step-3.tsx
index bf8bbff7..0f100cfe 100644
--- a/src/app/auth/import/step-3.tsx
+++ b/src/app/auth/import/step-3.tsx
@@ -80,8 +80,8 @@ export function ImportStep3Screen() {
)}
- By clicking 'Continue', Lume will sync your old relay list and
- metadata.
It may take a bit, please be patient.
+ By clicking 'Continue', Lume will download your old relay list and
+ metadata. It may take a bit
diff --git a/src/app/auth/welcome.tsx b/src/app/auth/welcome.tsx
index d6dcc157..375ae582 100644
--- a/src/app/auth/welcome.tsx
+++ b/src/app/auth/welcome.tsx
@@ -1,34 +1,10 @@
-import { LogicalSize, getCurrent } from '@tauri-apps/api/window';
-import { useEffect } from 'react';
import { Link } from 'react-router-dom';
import { ArrowRightCircleIcon } from '@shared/icons/arrowRightCircle';
export function WelcomeScreen() {
- const appWindow = getCurrent();
-
- async function setWindow() {
- await appWindow.setSize(new LogicalSize(400, 500));
- await appWindow.setResizable(false);
- await appWindow.center();
- }
-
- async function resetWindow() {
- await appWindow.setSize(new LogicalSize(1080, 800));
- await appWindow.setResizable(true);
- await appWindow.center();
- }
-
- useEffect(() => {
- setWindow();
-
- return () => {
- resetWindow();
- };
- }, []);
-
return (
-