diff --git a/package.json b/package.json index c91e5a98..4bb31a7f 100644 --- a/package.json +++ b/package.json @@ -71,8 +71,10 @@ "react-hook-form": "^7.47.0", "react-markdown": "^8.0.7", "react-router-dom": "^6.16.0", + "react-string-replace": "^1.1.1", "reactflow": "^11.9.2", "remark-gfm": "^3.0.1", + "tauri-controls": "^0.2.0", "tippy.js": "^6.3.7", "virtua": "^0.9.1", "zustand": "^4.4.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f45141d3..46e8b929 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -164,12 +164,18 @@ dependencies: react-router-dom: specifier: ^6.16.0 version: 6.16.0(react-dom@18.2.0)(react@18.2.0) + react-string-replace: + specifier: ^1.1.1 + version: 1.1.1 reactflow: specifier: ^11.9.2 version: 11.9.2(@types/react@18.2.24)(react-dom@18.2.0)(react@18.2.0) remark-gfm: specifier: ^3.0.1 version: 3.0.1 + tauri-controls: + specifier: ^0.2.0 + version: 0.2.0(@tauri-apps/plugin-os@2.0.0-alpha.2)(@tauri-apps/plugin-window@2.0.0-alpha.1)(clsx@2.0.0)(react-dom@18.2.0)(react@18.2.0)(tailwind-merge@1.14.0) tippy.js: specifier: ^6.3.7 version: 6.3.7 @@ -3153,7 +3159,6 @@ packages: /clsx@2.0.0: resolution: {integrity: sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==} engines: {node: '>=6'} - dev: true /color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} @@ -5804,6 +5809,11 @@ packages: react: 18.2.0 dev: false + /react-string-replace@1.1.1: + resolution: {integrity: sha512-26TUbLzLfHQ5jO5N7y3Mx88eeKo0Ml0UjCQuX4BMfOd/JX+enQqlKpL1CZnmjeBRvQE8TR+ds9j1rqx9CxhKHQ==} + engines: {node: '>=0.12.0'} + dev: false + /react-style-singleton@2.2.1(@types/react@18.2.24)(react@18.2.0): resolution: {integrity: sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==} engines: {node: '>=10'} @@ -6211,7 +6221,6 @@ packages: /tailwind-merge@1.14.0: resolution: {integrity: sha512-3mFKyCo/MBcgyOTlrY8T7odzZFx+w+qKSMAmdFzRvqBfLlSigU6TZnlFHK0lkMwj9Bj8OYU+9yW9lmGuS0QEnQ==} - dev: true /tailwindcss@3.3.3: resolution: {integrity: sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==} @@ -6244,6 +6253,25 @@ packages: - ts-node dev: true + /tauri-controls@0.2.0(@tauri-apps/plugin-os@2.0.0-alpha.2)(@tauri-apps/plugin-window@2.0.0-alpha.1)(clsx@2.0.0)(react-dom@18.2.0)(react@18.2.0)(tailwind-merge@1.14.0): + resolution: {integrity: sha512-/IDXLhcqGRjNN7QKfzgyr2y4QfnWT9MSIdqxrjH2oElXyngSo/cQltTb8LT6h/sH/7gRiSQMvQBEmavfn9Hk0w==} + peerDependencies: + '@tauri-apps/plugin-os': 2.0.0-alpha.2 + '@tauri-apps/plugin-window': 2.0.0-alpha.1 + clsx: ^2.0.0 + react: ^18.2.0 + react-dom: ^18.2.0 + tailwind-merge: ^1.14.0 + dependencies: + '@tauri-apps/api': 2.0.0-alpha.8 + '@tauri-apps/plugin-os': 2.0.0-alpha.2 + '@tauri-apps/plugin-window': 2.0.0-alpha.1 + clsx: 2.0.0 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + tailwind-merge: 1.14.0 + dev: false + /text-table@0.2.0: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} dev: true diff --git a/public/lockscreen/1.png b/public/lockscreen/1.png new file mode 100644 index 00000000..30dd8f4b Binary files /dev/null and b/public/lockscreen/1.png differ diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json index 41eb03d0..19bd3611 100644 --- a/src-tauri/tauri.linux.conf.json +++ b/src-tauri/tauri.linux.conf.json @@ -17,6 +17,7 @@ "height": 800, "minWidth": 1080, "minHeight": 800, + "decorations": false, "resizable": true, "theme": "Dark", "title": "Lume", diff --git a/src/app/auth/unlock.tsx b/src/app/auth/unlock.tsx index 616a3e2d..2c1657ae 100644 --- a/src/app/auth/unlock.tsx +++ b/src/app/auth/unlock.tsx @@ -83,44 +83,37 @@ export function UnlockScreen() { return (