Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
feat: support new settings UI (#4874)
Kilu.He3dcf435f7d9a
diff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/OFL.txt b/frontend/appflowy_tauri/public/google_fonts/Poppins/OFL.txtnew file mode 100644index 0000000000..246c977c9f--- /dev/null+++ b/frontend/appflowy_tauri/public/google_fonts/Poppins/OFL.txt@@ -0,0 +1,93 @@+Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins)++This Font Software is licensed under the SIL Open Font License, Version 1.1.+This license is copied below, and is also available with a FAQ at:+http://scripts.sil.org/OFL+++-----------------------------------------------------------+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007+-----------------------------------------------------------++PREAMBLE+The goals of the Open Font License (OFL) are to stimulate worldwide+development of collaborative font projects, to support the font creation+efforts of academic and linguistic communities, and to provide a free and+open framework in which fonts may be shared and improved in partnership+with others.++The OFL allows the licensed fonts to be used, studied, modified and+redistributed freely as long as they are not sold by themselves. The+fonts, including any derivative works, can be bundled, embedded,+redistributed and/or sold with any software provided that any reserved+names are not used by derivative works. The fonts and derivatives,+however, cannot be released under any other type of license. The+requirement for fonts to remain under this license does not apply+to any document created using the fonts or their derivatives.++DEFINITIONS+"Font Software" refers to the set of files released by the Copyright+Holder(s) under this license and clearly marked as such. This may+include source files, build scripts and documentation.++"Reserved Font Name" refers to any names specified as such after the+copyright statement(s).++"Original Version" refers to the collection of Font Software components as+distributed by the Copyright Holder(s).++"Modified Version" refers to any derivative made by adding to, deleting,+or substituting -- in part or in whole -- any of the components of the+Original Version, by changing formats or by porting the Font Software to a+new environment.++"Author" refers to any designer, engineer, programmer, technical+writer or other person who contributed to the Font Software.++PERMISSION & CONDITIONS+Permission is hereby granted, free of charge, to any person obtaining+a copy of the Font Software, to use, study, copy, merge, embed, modify,+redistribute, and sell modified and unmodified copies of the Font+Software, subject to the following conditions:++1) Neither the Font Software nor any of its individual components,+in Original or Modified Versions, may be sold by itself.++2) Original or Modified Versions of the Font Software may be bundled,+redistributed and/or sold with any software, provided that each copy+contains the above copyright notice and this license. These can be+included either as stand-alone text files, human-readable headers or+in the appropriate machine-readable metadata fields within text or+binary files as long as those fields can be easily viewed by the user.++3) No Modified Version of the Font Software may use the Reserved Font+Name(s) unless explicit written permission is granted by the corresponding+Copyright Holder. This restriction only applies to the primary font name as+presented to the users.++4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font+Software shall not be used to promote, endorse or advertise any+Modified Version, except to acknowledge the contribution(s) of the+Copyright Holder(s) and the Author(s) or with their explicit written+permission.++5) The Font Software, modified or unmodified, in part or in whole,+must be distributed entirely under this license, and must not be+distributed under any other license. The requirement for fonts to+remain under this license does not apply to any document created+using the Font Software.++TERMINATION+This license becomes null and void if any of the above conditions are+not met.++DISCLAIMER+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM+OTHER DEALINGS IN THE FONT SOFTWARE.diff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Black.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Black.ttfnew file mode 100644index 0000000000..71c0f995eeBinary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Black.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-BlackItalic.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-BlackItalic.ttfnew file mode 100644index 0000000000..7aeb58bd1bBinary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-BlackItalic.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Bold.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Bold.ttfnew file mode 100644index 0000000000..00559eeb29Binary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Bold.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-BoldItalic.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-BoldItalic.ttfnew file mode 100644index 0000000000..e61e8e88bdBinary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-BoldItalic.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ExtraBold.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ExtraBold.ttfnew file mode 100644index 0000000000..df7093608aBinary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ExtraBold.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ExtraBoldItalic.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ExtraBoldItalic.ttfnew file mode 100644index 0000000000..14d2b375dcBinary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ExtraBoldItalic.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ExtraLight.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ExtraLight.ttfnew file mode 100644index 0000000000..e76ec69a65Binary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ExtraLight.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ExtraLightItalic.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ExtraLightItalic.ttfnew file mode 100644index 0000000000..89513d9469Binary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ExtraLightItalic.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Italic.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Italic.ttfnew file mode 100644index 0000000000..12b7b3c40bBinary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Italic.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Light.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Light.ttfnew file mode 100644index 0000000000..bc36bcc242Binary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Light.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-LightItalic.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-LightItalic.ttfnew file mode 100644index 0000000000..9e70be6a9eBinary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-LightItalic.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Medium.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Medium.ttfnew file mode 100644index 0000000000..6bcdcc27f2Binary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Medium.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-MediumItalic.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-MediumItalic.ttfnew file mode 100644index 0000000000..be67410fd0Binary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-MediumItalic.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Regular.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Regular.ttfnew file mode 100644index 0000000000..9f0c71b70aBinary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Regular.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-SemiBold.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-SemiBold.ttfnew file mode 100644index 0000000000..74c726e327Binary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-SemiBold.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-SemiBoldItalic.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-SemiBoldItalic.ttfnew file mode 100644index 0000000000..3e6c942233Binary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-SemiBoldItalic.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Thin.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Thin.ttfnew file mode 100644index 0000000000..03e736613aBinary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-Thin.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ThinItalic.ttf b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ThinItalic.ttfnew file mode 100644index 0000000000..e26db5dd3dBinary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Poppins/Poppins-ThinItalic.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Roboto_Mono/LICENSE.txt b/frontend/appflowy_tauri/public/google_fonts/Roboto_Mono/LICENSE.txtnew file mode 100644index 0000000000..75b52484ea--- /dev/null+++ b/frontend/appflowy_tauri/public/google_fonts/Roboto_Mono/LICENSE.txt@@ -0,0 +1,202 @@++ Apache License+ Version 2.0, January 2004+ http://www.apache.org/licenses/++ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION++ 1. Definitions.++ "License" shall mean the terms and conditions for use, reproduction,+ and distribution as defined by Sections 1 through 9 of this document.++ "Licensor" shall mean the copyright owner or entity authorized by+ the copyright owner that is granting the License.++ "Legal Entity" shall mean the union of the acting entity and all+ other entities that control, are controlled by, or are under common+ control with that entity. For the purposes of this definition,+ "control" means (i) the power, direct or indirect, to cause the+ direction or management of such entity, whether by contract or+ otherwise, or (ii) ownership of fifty percent (50%) or more of the+ outstanding shares, or (iii) beneficial ownership of such entity.++ "You" (or "Your") shall mean an individual or Legal Entity+ exercising permissions granted by this License.++ "Source" form shall mean the preferred form for making modifications,+ including but not limited to software source code, documentation+ source, and configuration files.++ "Object" form shall mean any form resulting from mechanical+ transformation or translation of a Source form, including but+ not limited to compiled object code, generated documentation,+ and conversions to other media types.++ "Work" shall mean the work of authorship, whether in Source or+ Object form, made available under the License, as indicated by a+ copyright notice that is included in or attached to the work+ (an example is provided in the Appendix below).++ "Derivative Works" shall mean any work, whether in Source or Object+ form, that is based on (or derived from) the Work and for which the+ editorial revisions, annotations, elaborations, or other modifications+ represent, as a whole, an original work of authorship. For the purposes+ of this License, Derivative Works shall not include works that remain+ separable from, or merely link (or bind by name) to the interfaces of,+ the Work and Derivative Works thereof.++ "Contribution" shall mean any work of authorship, including+ the original version of the Work and any modifications or additions+ to that Work or Derivative Works thereof, that is intentionally+ submitted to Licensor for inclusion in the Work by the copyright owner+ or by an individual or Legal Entity authorized to submit on behalf of+ the copyright owner. For the purposes of this definition, "submitted"+ means any form of electronic, verbal, or written communication sent+ to the Licensor or its representatives, including but not limited to+ communication on electronic mailing lists, source code control systems,+ and issue tracking systems that are managed by, or on behalf of, the+ Licensor for the purpose of discussing and improving the Work, but+ excluding communication that is conspicuously marked or otherwise+ designated in writing by the copyright owner as "Not a Contribution."++ "Contributor" shall mean Licensor and any individual or Legal Entity+ on behalf of whom a Contribution has been received by Licensor and+ subsequently incorporated within the Work.++ 2. Grant of Copyright License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ copyright license to reproduce, prepare Derivative Works of,+ publicly display, publicly perform, sublicense, and distribute the+ Work and such Derivative Works in Source or Object form.++ 3. Grant of Patent License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ (except as stated in this section) patent license to make, have made,+ use, offer to sell, sell, import, and otherwise transfer the Work,+ where such license applies only to those patent claims licensable+ by such Contributor that are necessarily infringed by their+ Contribution(s) alone or by combination of their Contribution(s)+ with the Work to which such Contribution(s) was submitted. If You+ institute patent litigation against any entity (including a+ cross-claim or counterclaim in a lawsuit) alleging that the Work+ or a Contribution incorporated within the Work constitutes direct+ or contributory patent infringement, then any patent licenses+ granted to You under this License for that Work shall terminate+ as of the date such litigation is filed.++ 4. Redistribution. You may reproduce and distribute copies of the+ Work or Derivative Works thereof in any medium, with or without+ modifications, and in Source or Object form, provided that You+ meet the following conditions:++ (a) You must give any other recipients of the Work or+ Derivative Works a copy of this License; and++ (b) You must cause any modified files to carry prominent notices+ stating that You changed the files; and++ (c) You must retain, in the Source form of any Derivative Works+ that You distribute, all copyright, patent, trademark, and+ attribution notices from the Source form of the Work,+ excluding those notices that do not pertain to any part of+ the Derivative Works; and++ (d) If the Work includes a "NOTICE" text file as part of its+ distribution, then any Derivative Works that You distribute must+ include a readable copy of the attribution notices contained+ within such NOTICE file, excluding those notices that do not+ pertain to any part of the Derivative Works, in at least one+ of the following places: within a NOTICE text file distributed+ as part of the Derivative Works; within the Source form or+ documentation, if provided along with the Derivative Works; or,+ within a display generated by the Derivative Works, if and+ wherever such third-party notices normally appear. The contents+ of the NOTICE file are for informational purposes only and+ do not modify the License. You may add Your own attribution+ notices within Derivative Works that You distribute, alongside+ or as an addendum to the NOTICE text from the Work, provided+ that such additional attribution notices cannot be construed+ as modifying the License.++ You may add Your own copyright statement to Your modifications and+ may provide additional or different license terms and conditions+ for use, reproduction, or distribution of Your modifications, or+ for any such Derivative Works as a whole, provided Your use,+ reproduction, and distribution of the Work otherwise complies with+ the conditions stated in this License.++ 5. Submission of Contributions. Unless You explicitly state otherwise,+ any Contribution intentionally submitted for inclusion in the Work+ by You to the Licensor shall be under the terms and conditions of+ this License, without any additional terms or conditions.+ Notwithstanding the above, nothing herein shall supersede or modify+ the terms of any separate license agreement you may have executed+ with Licensor regarding such Contributions.++ 6. Trademarks. This License does not grant permission to use the trade+ names, trademarks, service marks, or product names of the Licensor,+ except as required for reasonable and customary use in describing the+ origin of the Work and reproducing the content of the NOTICE file.++ 7. Disclaimer of Warranty. Unless required by applicable law or+ agreed to in writing, Licensor provides the Work (and each+ Contributor provides its Contributions) on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or+ implied, including, without limitation, any warranties or conditions+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A+ PARTICULAR PURPOSE. You are solely responsible for determining the+ appropriateness of using or redistributing the Work and assume any+ risks associated with Your exercise of permissions under this License.++ 8. Limitation of Liability. In no event and under no legal theory,+ whether in tort (including negligence), contract, or otherwise,+ unless required by applicable law (such as deliberate and grossly+ negligent acts) or agreed to in writing, shall any Contributor be+ liable to You for damages, including any direct, indirect, special,+ incidental, or consequential damages of any character arising as a+ result of this License or out of the use or inability to use the+ Work (including but not limited to damages for loss of goodwill,+ work stoppage, computer failure or malfunction, or any and all+ other commercial damages or losses), even if such Contributor+ has been advised of the possibility of such damages.++ 9. Accepting Warranty or Additional Liability. While redistributing+ the Work or Derivative Works thereof, You may choose to offer,+ and charge a fee for, acceptance of support, warranty, indemnity,+ or other liability obligations and/or rights consistent with this+ License. However, in accepting such obligations, You may act only+ on Your own behalf and on Your sole responsibility, not on behalf+ of any other Contributor, and only if You agree to indemnify,+ defend, and hold each Contributor harmless for any liability+ incurred by, or claims asserted against, such Contributor by reason+ of your accepting any such warranty or additional liability.++ END OF TERMS AND CONDITIONS++ APPENDIX: How to apply the Apache License to your work.++ To apply the Apache License to your work, attach the following+ boilerplate notice, with the fields enclosed by brackets "[]"+ replaced with your own identifying information. (Don't include+ the brackets!) The text should be enclosed in the appropriate+ comment syntax for the file format. We also recommend that a+ file or class name and description of purpose be included on the+ same "printed page" as the copyright notice for easier+ identification within third-party archives.++ Copyright [yyyy] [name of copyright owner]++ Licensed under the Apache License, Version 2.0 (the "License");+ you may not use this file except in compliance with the License.+ You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.diff --git a/frontend/appflowy_tauri/public/google_fonts/Roboto_Mono/RobotoMono-Italic.ttf b/frontend/appflowy_tauri/public/google_fonts/Roboto_Mono/RobotoMono-Italic.ttfnew file mode 100644index 0000000000..61e5303325Binary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Roboto_Mono/RobotoMono-Italic.ttf differdiff --git a/frontend/appflowy_tauri/public/google_fonts/Roboto_Mono/RobotoMono-Regular.ttf b/frontend/appflowy_tauri/public/google_fonts/Roboto_Mono/RobotoMono-Regular.ttfnew file mode 100644index 0000000000..6df2b25360Binary files /dev/null and b/frontend/appflowy_tauri/public/google_fonts/Roboto_Mono/RobotoMono-Regular.ttf differdiff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/launch_splash.jpg b/frontend/appflowy_tauri/public/launch_splash.jpgsimilarity index 100%rename from frontend/appflowy_tauri/src/appflowy_app/assets/launch_splash.jpgrename to frontend/appflowy_tauri/public/launch_splash.jpgdiff --git a/frontend/appflowy_tauri/src-tauri/src/main.rs b/frontend/appflowy_tauri/src-tauri/src/main.rsindex 111de889f1..10a17b5a3a 100644--- a/frontend/appflowy_tauri/src-tauri/src/main.rs+++ b/frontend/appflowy_tauri/src-tauri/src/main.rs@@ -31,11 +31,20 @@ fn main() {});}).setup(|_app| {- #[cfg(debug_assertions)]- {- let window = _app.get_window("main").unwrap();- window.open_devtools();- }+ let splashscreen_window = _app.get_window("splashscreen").unwrap();+ let window = _app.get_window("main").unwrap();++ // we perform the initialization code on a new task so the app doesn't freeze+ tauri::async_runtime::spawn(async move {+ // initialize your app here instead of sleeping :)+ println!("Initializing...");+ std::thread::sleep(std::time::Duration::from_secs(2));+ println!("Done initializing.");++ // After it's done, close the splashscreen and display the main window+ splashscreen_window.close().unwrap();+ window.show().unwrap();+ });Ok(())}).run(tauri::generate_context!())diff --git a/frontend/appflowy_tauri/src-tauri/tauri.conf.json b/frontend/appflowy_tauri/src-tauri/tauri.conf.jsonindex 293da0ec70..5011422312 100644--- a/frontend/appflowy_tauri/src-tauri/tauri.conf.json+++ b/frontend/appflowy_tauri/src-tauri/tauri.conf.json@@ -95,7 +95,18 @@"title": "AppFlowy","width": 1200,"minWidth": 800,- "minHeight": 600+ "minHeight": 600,+ "visible": false,+ "label": "main"+ },+ {+ "height": 300,+ "width": 549,+ "decorations": false,+ "url": "launch_splash.jpg",+ "label": "splashscreen",+ "center": true,+ "visible": true}]}diff --git a/frontend/appflowy_tauri/src/appflowy_app/application/folder/workspace.service.ts b/frontend/appflowy_tauri/src/appflowy_app/application/folder/workspace.service.tsindex 0a1ac683af..e58afb9f58 100644--- a/frontend/appflowy_tauri/src/appflowy_app/application/folder/workspace.service.ts+++ b/frontend/appflowy_tauri/src/appflowy_app/application/folder/workspace.service.ts@@ -1,5 +1,15 @@-import { CreateViewPayloadPB, UserWorkspaceIdPB, WorkspaceIdPB } from '@/services/backend';-import { UserEventOpenWorkspace } from '@/services/backend/events/flowy-user';+import {+ CreateViewPayloadPB,+ UserWorkspaceIdPB,+ WorkspaceIdPB,+ RenameWorkspacePB,+ ChangeWorkspaceIconPB,+} from '@/services/backend';+import {+ UserEventOpenWorkspace,+ UserEventRenameWorkspace,+ UserEventChangeWorkspaceIcon,+} from '@/services/backend/events/flowy-user';import {FolderEventCreateView,FolderEventDeleteWorkspace,@@ -108,3 +118,33 @@ export async function createCurrentWorkspaceChildView(return Promise.reject(result.err);}++export async function renameWorkspace(id: string, name: string) {+ const payload = new RenameWorkspacePB({+ workspace_id: id,+ new_name: name,+ });++ const result = await UserEventRenameWorkspace(payload);++ if (result.ok) {+ return result.val;+ }++ return Promise.reject(result.err);+}++export async function changeWorkspaceIcon(id: string, icon: string) {+ const payload = new ChangeWorkspaceIconPB({+ workspace_id: id,+ new_icon: icon,+ });++ const result = await UserEventChangeWorkspaceIcon(payload);++ if (result.ok) {+ return result.val;+ }++ return Promise.reject(result.err);+}diff --git a/frontend/appflowy_tauri/src/appflowy_app/application/notification.ts b/frontend/appflowy_tauri/src/appflowy_app/application/notification.tsindex 91bb15f069..c63a5d9823 100644--- a/frontend/appflowy_tauri/src/appflowy_app/application/notification.ts+++ b/frontend/appflowy_tauri/src/appflowy_app/application/notification.ts@@ -22,6 +22,7 @@ import {ViewPB,RepeatedTrashPB,ChildViewUpdatePB,+ WorkspacePB,} from '@/services/backend';import { AsyncQueue } from '$app/utils/async_queue';@@ -40,11 +41,12 @@ const Notification = {[DatabaseNotification.DidUpdateFieldSettings]: FieldSettingsPB,[DatabaseNotification.DidUpdateFilter]: FilterChangesetNotificationPB,[DocumentNotification.DidReceiveUpdate]: DocEventPB,- [UserNotification.DidUpdateUserProfile]: UserProfilePB,+ [FolderNotification.DidUpdateWorkspace]: WorkspacePB,[FolderNotification.DidUpdateWorkspaceViews]: RepeatedViewPB,[FolderNotification.DidUpdateView]: ViewPB,[FolderNotification.DidUpdateChildViews]: ChildViewUpdatePB,[FolderNotification.DidUpdateTrash]: RepeatedTrashPB,+ [UserNotification.DidUpdateUserProfile]: UserProfilePB,};type NotificationMap = typeof Notification;@@ -106,7 +108,7 @@ export function subscribeNotifications(callbacks: {[K in NotificationEnum]?: NotificationHandler<K>;},- options?: { id?: string }+ options?: { id?: string | number }): Promise<() => void> {const handler = async (subject: SubscribeObject) => {const { id, ty } = subject;diff --git a/frontend/appflowy_tauri/src/appflowy_app/application/user/user.service.ts b/frontend/appflowy_tauri/src/appflowy_app/application/user/user.service.tsindex f91c39cb71..ec64fb810c 100644--- a/frontend/appflowy_tauri/src/appflowy_app/application/user/user.service.ts+++ b/frontend/appflowy_tauri/src/appflowy_app/application/user/user.service.ts@@ -1,9 +1,10 @@import { Theme, ThemeMode, UserSetting } from '$app_reducers/current-user/slice';-import { AppearanceSettingsPB } from '@/services/backend';+import { AppearanceSettingsPB, UpdateUserProfilePayloadPB } from '@/services/backend';import {UserEventGetAppearanceSetting,UserEventGetUserProfile,UserEventSetAppearanceSetting,+ UserEventUpdateUserProfile,} from '@/services/backend/events/flowy-user';export const UserService = {@@ -52,4 +53,16 @@ export const UserService = {return;},++ updateUserProfile: async (params: ReturnType<typeof UpdateUserProfilePayloadPB.prototype.toObject>) => {+ const payload = UpdateUserProfilePayloadPB.fromObject(params);++ const res = await UserEventUpdateUserProfile(payload);++ if (res.ok) {+ return res.val;+ }++ return Promise.reject(res.err);+ },};diff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/dark-logo.svg b/frontend/appflowy_tauri/src/appflowy_app/assets/dark-logo.svgnew file mode 100644index 0000000000..80d8c4132e--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/assets/dark-logo.svg@@ -0,0 +1,73 @@+<svg width='103' height='24' viewBox='0 0 103 24' fill='none' xmlns='http://www.w3.org/2000/svg'>+ <g clip-path='url(#clip0_175_6957)'>+ <path+ d='M34.7324 7.84144H36.892V8.63601C37.4179 8.08166 38.4132 7.63818 39.5212 7.63818C41.8498 7.63818 43.3709 9.4121 43.3709 11.8882C43.3709 14.4197 41.6057 16.3969 38.8827 16.3969C38.1315 16.3969 37.3991 16.2675 36.9108 15.9904V19.9078H34.7512V7.84144H34.7324ZM36.9108 10.5393V13.9208C37.493 14.2904 37.9812 14.4012 38.6949 14.4012C40.1972 14.4012 41.0611 13.3295 41.0611 11.9436C41.0611 10.6132 40.2723 9.65231 38.8451 9.65231C38.1127 9.63384 37.4366 9.96644 36.9108 10.5393Z'+ fill='white'+ />+ <path+ d='M29.3802 7.6748C26.6572 7.6748 24.892 9.6335 24.892 12.1835C24.892 14.6596 26.3943 16.4335 28.7417 16.4335C29.8309 16.4335 30.8262 15.99 31.3708 15.4357V16.2302H33.5305V9.22698C31.9154 8.02589 30.1314 7.6748 29.3802 7.6748ZM31.3521 13.5324C30.8262 14.1052 30.1502 14.4378 29.4178 14.4378C27.9906 14.4378 27.2018 13.477 27.2018 12.1465C27.2018 10.7607 28.0657 9.67046 29.568 9.67046C30.2816 9.67046 30.7699 9.78133 31.3521 10.1509V13.5324Z'+ fill='white'+ />+ <path+ d='M44.291 7.84144H46.4506V8.63601C46.9765 8.08166 47.9718 7.63818 49.0797 7.63818C51.4084 7.63818 52.9295 9.4121 52.9295 11.8882C52.9295 14.4197 51.1642 16.3969 48.4412 16.3969C47.6901 16.3969 46.9577 16.2675 46.4694 15.9904V19.9078H44.3098V7.84144H44.291ZM46.4694 10.5393V13.9208C47.0516 14.2904 47.5398 14.4012 48.2535 14.4012C49.7558 14.4012 50.6196 13.3295 50.6196 11.9436C50.6196 10.6132 49.8309 9.65231 48.4037 9.65231C47.6713 9.63384 46.9952 9.96644 46.4694 10.5393Z'+ fill='white'+ />+ <path+ d='M59.2019 5.43925C58.8826 5.21751 58.3756 4.99577 57.8685 4.99577C56.892 4.99577 56.3849 5.49469 56.3849 6.64034V7.82295H57.9061V9.83708H56.3849V16.1751H54.2065V6.49251C54.2065 4.18273 55.3333 3.00012 57.23 3.00012C58.0939 3.00012 58.8826 3.20338 59.446 3.55447H61.3615V13.0153C61.3615 13.9577 61.6056 14.3643 62.0939 14.3643C62.4507 14.3643 62.7324 14.2164 62.9953 14.0316L63.446 15.6577C62.9577 16.0458 62.2253 16.3599 61.2112 16.3599C59.9155 16.3599 59.2019 15.5838 59.2019 13.8838V5.43925Z'+ fill='white'+ />+ <path+ d='M68.0846 7.63818C70.9015 7.63818 72.7043 9.50449 72.7043 12.0175C72.7043 14.5121 70.9015 16.3969 68.0846 16.3969C65.2677 16.3969 63.4648 14.5306 63.4648 12.0175C63.4648 9.50449 65.2864 7.63818 68.0846 7.63818ZM68.0846 14.4012C69.4179 14.4012 70.3944 13.4588 70.3944 12.0175C70.3944 10.6132 69.3991 9.65231 68.0846 9.65231C66.8076 9.65231 65.7935 10.5762 65.7935 12.0175C65.7935 13.4034 66.77 14.4012 68.0846 14.4012Z'+ fill='white'+ />+ <path+ d='M83.4274 16.2308H81.4931L79.6903 11.5928C79.5588 11.2786 79.5025 10.9275 79.4086 10.6134C79.3335 10.983 79.2396 11.2971 79.1081 11.6297L77.3053 16.2308H75.4649L72.7043 7.84167H75.0142L76.3663 12.3873C76.4978 12.7938 76.5353 13.108 76.6105 13.496C76.7043 13.1449 76.7607 12.8493 76.9297 12.3873L78.5072 7.84167H80.4227L82.0565 12.3688C82.1879 12.7384 82.2818 13.1265 82.3757 13.5145C82.4508 13.1265 82.5447 12.7199 82.6386 12.3134L83.8781 7.84167H86.0565L83.4274 16.2308Z'+ fill='white'+ />+ <path+ d='M90.6573 16.1936C89.4178 19.187 88.6291 19.9077 87.3709 19.9077C86.6009 19.9077 86.0375 19.612 85.5493 19.2609L86.2441 17.6533C86.4695 17.7827 86.7887 17.949 87.1267 17.949C87.6713 17.949 88.0657 17.524 88.4225 16.6555L88.6103 16.212L84.6854 7.85986H87.2958L89.2676 12.424C89.4366 12.8305 89.5493 13.2186 89.6807 13.6251C89.7558 13.237 89.831 12.8305 89.9812 12.4055L91.5023 7.85986H93.9624L90.6573 16.1936Z'+ fill='white'+ />+ <path+ d='M19.0141 13.4033C18.5258 16.0088 16.385 18.2816 13.9249 19.5566C13.6244 19.7229 13.2676 19.8153 12.9296 19.8338H18.1502C18.6573 19.8338 19.0141 19.4642 19.0141 19.0022V13.4033Z'+ fill='#F7931E'+ />+ <path+ d='M8.57282 8.37731C8.49771 8.43274 8.42259 8.48817 8.34747 8.54361C7.07048 9.43057 3.20193 12.2762 2.3193 11.0382C1.45545 9.83709 2.37564 6.43709 4.5916 4.79252C4.62916 4.75557 4.6855 4.73709 4.72306 4.70013C7.14559 3.01861 8.94841 3.25883 9.83104 4.47839C10.6573 5.62404 9.73714 7.43491 8.57282 8.37731Z'+ fill='#8427E0'+ />+ <path+ d='M18.0376 11.0204C16.8357 11.852 14.9578 10.8911 14.0188 9.69C13.9812 9.63456 13.9437 9.59761 13.9061 9.54217C13.0047 8.28565 10.1127 4.47913 11.3521 3.62913C12.5916 2.76065 16.1784 3.70304 17.8122 5.99434C17.8498 6.04978 17.8873 6.08674 17.9249 6.14217C19.5024 8.45195 19.2582 10.1704 18.0376 11.0204Z'+ fill='#00B5FF'+ />+ <path+ d='M16.4226 18.5219C16.385 18.5589 16.3475 18.5773 16.2911 18.6143C13.8686 20.2958 12.0658 20.0556 11.1832 18.836C10.3569 17.6904 11.277 15.8795 12.4414 14.9371C12.5165 14.8817 12.5916 14.8263 12.6667 14.7708C13.9437 13.9023 17.8123 11.0382 18.6761 12.2763C19.5587 13.4773 18.6573 16.8773 16.4226 18.5219Z'+ fill='#FFBD00'+ />+ <path+ d='M9.66194 19.6861C8.4225 20.5545 4.85443 19.6121 3.22063 17.3208C3.18307 17.2839 3.14551 17.2285 3.12673 17.1915C1.53049 14.8817 1.7934 13.1448 3.01405 12.3132C4.21593 11.4817 6.09387 12.4426 7.03283 13.6437C7.07039 13.6991 7.10795 13.7361 7.14551 13.7915C8.02814 15.0295 10.9202 18.8361 9.66194 19.6861Z'+ fill='#E3006D'+ />+ <path+ d='M8.57283 8.37731C6.84513 9.13491 3.16438 10.6871 2.61978 9.43057C2.1503 8.37731 3.01415 6.23383 4.59161 4.79252C4.62917 4.75557 4.68551 4.73709 4.72307 4.70013C7.1456 3.01861 8.94842 3.25883 9.83105 4.47839C10.6573 5.62404 9.73715 7.43491 8.57283 8.37731Z'+ fill='#9327FF'+ />+ <path+ d='M18.0375 11.0196C16.8357 11.8511 14.9577 10.8902 14.0188 9.68912C13.2488 7.93368 11.7652 4.47825 13.0047 3.96086C14.1314 3.48042 16.4601 4.44129 17.9436 6.14129C19.5023 8.45107 19.2582 10.1696 18.0375 11.0196Z'+ fill='#00C8FF'+ />+ <path+ d='M16.4226 18.5218C16.385 18.5587 16.3475 18.5772 16.2911 18.6142C13.8686 20.2957 12.0658 20.0555 11.1832 18.8359C10.3569 17.6903 11.277 15.8794 12.4414 14.937C14.1691 14.1794 17.8498 12.6272 18.3944 13.8837C18.8827 14.937 18.0188 17.0805 16.4226 18.5218Z'+ fill='#F7CF46'+ />+ <path+ d='M8.04692 19.3535C6.92016 19.8339 4.59152 18.8915 3.12673 17.1915C1.53049 14.8817 1.7934 13.1448 3.01405 12.3132C4.21593 11.4817 6.09387 12.4426 7.03283 13.6437C7.80279 15.3806 9.28635 18.8361 8.04692 19.3535Z'+ fill='#FB006D'+ />+ </g>+ <defs>+ <clipPath id='clip0_175_6957'>+ <rect width='92' height='17' fill='white' transform='translate(2 3)' />+ </clipPath>+ </defs>+</svg>\ No newline at end of filediff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/information.svg b/frontend/appflowy_tauri/src/appflowy_app/assets/information.svgnew file mode 100644index 0000000000..37ca4d5837--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/assets/information.svg@@ -0,0 +1,10 @@+<svg width='100%' height='100%' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'>+ <path+ d='M8 14.0039C11.3137 14.0039 14 11.3176 14 8.00391C14 4.6902 11.3137 2.00391 8 2.00391C4.68629 2.00391 2 4.6902 2 8.00391C2 11.3176 4.68629 14.0039 8 14.0039Z'+ stroke='currentColor'+ stroke-linecap="round"+ stroke-linejoin="round"+ />+ <rect x='7.5' y='7.00391' width='1' height='4' rx='0.5' fill='currentColor' />+ <rect x='7.5' y='5.00391' width='1' height='1' rx='0.5' fill='currentColor' />+</svg>\ No newline at end of filediff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/light-logo.svg b/frontend/appflowy_tauri/src/appflowy_app/assets/light-logo.svgnew file mode 100644index 0000000000..f5cd761ba7--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/assets/light-logo.svg@@ -0,0 +1,51 @@+<svg width='103' height='24' viewBox='0 0 103 24' fill='none' xmlns='http://www.w3.org/2000/svg'>+ <g clip-path='url(#clip0_159_6088)'>+ <path+ fill-rule='evenodd'+ clip-rule='evenodd'+ d='M59.2019 5.43913C58.8826 5.21739 58.3756 4.99565 57.8685 4.99565C56.892 4.99565 56.3849 5.49457 56.3849 6.64022V7.82283H57.9061V9.83696H56.3849V16.175H54.2065V6.49239C54.2065 4.18261 55.3333 3 57.23 3C58.0939 3 58.8826 3.20326 59.446 3.55435H61.3615V13.0152C61.3615 13.9576 61.6056 14.3641 62.0939 14.3641C62.4507 14.3641 62.7324 14.2163 62.9953 14.0315L63.446 15.6576C62.9577 16.0457 62.2253 16.3598 61.2112 16.3598C59.9155 16.3598 59.2019 15.5837 59.2019 13.8837V5.43913ZM34.7512 7.84144H36.892V8.63601C37.4179 8.08166 38.4132 7.63818 39.5212 7.63818C41.8498 7.63818 43.3709 9.4121 43.3709 11.8882C43.3709 14.4197 41.6057 16.3969 38.8827 16.3969C38.1315 16.3969 37.3991 16.2675 36.9108 15.9904V19.9077H34.7512V7.84144ZM36.9108 10.5393V13.9208C37.493 14.2904 37.9812 14.4012 38.6949 14.4012C40.1972 14.4012 41.0611 13.3295 41.0611 11.9436C41.0611 10.6132 40.2723 9.65231 38.8451 9.65231C38.1127 9.63384 37.4366 9.96644 36.9108 10.5393ZM29.3804 7.6748C26.6573 7.6748 24.8921 9.6335 24.8921 12.1835C24.8921 14.6596 26.3944 16.4335 28.7419 16.4335C29.8311 16.4335 30.8264 15.99 31.371 15.4357V16.2302H33.5306V9.22698C31.9156 8.02589 30.1315 7.6748 29.3804 7.6748ZM31.3522 13.5324C30.8264 14.1052 30.1503 14.4378 29.4179 14.4378C27.9907 14.4378 27.2019 13.477 27.2019 12.1465C27.2019 10.7607 28.0658 9.67046 29.5681 9.67046C30.2818 9.67046 30.77 9.78133 31.3522 10.1509V13.5324ZM46.4506 7.84144H44.3098V19.9077H46.4694V15.9904C46.9577 16.2675 47.6901 16.3969 48.4412 16.3969C51.1642 16.3969 52.9295 14.4197 52.9295 11.8882C52.9295 9.4121 51.4084 7.63818 49.0797 7.63818C47.9718 7.63818 46.9765 8.08166 46.4506 8.63601V7.84144ZM46.4694 13.9208V10.5393C46.9952 9.96644 47.6713 9.63384 48.4037 9.65231C49.8309 9.65231 50.6196 10.6132 50.6196 11.9436C50.6196 13.3295 49.7558 14.4012 48.2535 14.4012C47.5398 14.4012 47.0516 14.2904 46.4694 13.9208ZM72.7043 12.0175C72.7043 9.50449 70.9015 7.63818 68.0846 7.63818C65.2864 7.63818 63.4648 9.50449 63.4648 12.0175C63.4648 14.5306 65.2677 16.3969 68.0846 16.3969C70.9015 16.3969 72.7043 14.5121 72.7043 12.0175ZM70.3944 12.0175C70.3944 13.4588 69.4179 14.4012 68.0846 14.4012C66.77 14.4012 65.7935 13.4034 65.7935 12.0175C65.7935 10.5762 66.8076 9.65231 68.0846 9.65231C69.3991 9.65231 70.3944 10.6132 70.3944 12.0175ZM83.4274 16.2307H81.4931L79.6903 11.5926C79.6057 11.3905 79.5522 11.173 79.4998 10.96C79.4708 10.842 79.4421 10.7253 79.4086 10.6133C79.3335 10.9829 79.2396 11.297 79.1081 11.6296L77.3053 16.2307H75.4649L72.7043 7.84155H75.0142L76.3663 12.3872C76.4663 12.6964 76.512 12.9521 76.5611 13.2276L76.5612 13.228C76.5767 13.3146 76.5925 13.4031 76.6105 13.4959C76.6339 13.4081 76.655 13.3239 76.6762 13.2396C76.7396 12.9866 76.8029 12.7337 76.9297 12.3872L78.5072 7.84155H80.4227L82.0565 12.3687C82.1879 12.7383 82.2818 13.1263 82.3757 13.5144C82.4508 13.1263 82.5447 12.7198 82.6386 12.3133L83.8781 7.84155H86.0565L86.0507 7.85986H87.2959L89.2677 12.424C89.4023 12.7476 89.5011 13.0596 89.6021 13.3784C89.628 13.4601 89.654 13.5422 89.6808 13.6251L89.6916 13.5696C89.7633 13.1984 89.8382 12.8103 89.9813 12.4055L91.5024 7.85986H93.9625L90.6574 16.1936C89.4179 19.187 88.6292 19.9077 87.371 19.9077C86.601 19.9077 86.0377 19.612 85.5494 19.2609L86.2442 17.6533C86.4696 17.7827 86.7888 17.949 87.1269 17.949C87.6715 17.949 88.0658 17.524 88.4226 16.6555L88.6104 16.212L85.5045 9.60269L83.4274 16.2307Z'+ fill='black'+ />+ <path+ d='M19.0142 13.4033C18.5259 16.0088 16.3851 18.2816 13.925 19.5566C13.6245 19.7229 13.2677 19.8153 12.9297 19.8338H18.1503C18.6574 19.8338 19.0142 19.4642 19.0142 19.0022V13.4033Z'+ fill='#F7931E'+ />+ <path+ d='M8.57282 8.3773C8.49771 8.43274 8.42259 8.48817 8.34747 8.54361C7.07048 9.43057 3.20193 12.2762 2.3193 11.0382C1.45545 9.83709 2.37564 6.43709 4.5916 4.79252C4.62916 4.75557 4.6855 4.73709 4.72306 4.70013C7.14559 3.01861 8.94841 3.25883 9.83104 4.47839C10.6573 5.62404 9.73714 7.43491 8.57282 8.3773Z'+ fill='#8427E0'+ />+ <path+ d='M18.0376 11.0204C16.8357 11.852 14.9578 10.8911 14.0188 9.69C13.9812 9.63456 13.9437 9.59761 13.9061 9.54217C13.0047 8.28565 10.1127 4.47913 11.3521 3.62913C12.5916 2.76065 16.1784 3.70304 17.8122 5.99434C17.8498 6.04978 17.8873 6.08674 17.9249 6.14217C19.5024 8.45195 19.2582 10.1704 18.0376 11.0204Z'+ fill='#00B5FF'+ />+ <path+ d='M16.4226 18.5219C16.385 18.5589 16.3475 18.5773 16.2911 18.6143C13.8686 20.2958 12.0658 20.0556 11.1832 18.836C10.3569 17.6904 11.277 15.8795 12.4414 14.9371C12.5165 14.8817 12.5916 14.8263 12.6667 14.7708C13.9437 13.9023 17.8123 11.0382 18.6761 12.2763C19.5587 13.4773 18.6573 16.8773 16.4226 18.5219Z'+ fill='#FFBD00'+ />+ <path+ d='M9.66206 19.6861C8.42263 20.5545 4.85455 19.6121 3.22075 17.3208C3.18319 17.2839 3.14563 17.2285 3.12685 17.1915C1.53061 14.8817 1.79352 13.1448 3.01418 12.3132C4.21605 11.4817 6.09399 12.4426 7.03296 13.6437C7.07051 13.6991 7.10807 13.7361 7.14563 13.7915C8.02826 15.0295 10.9203 18.8361 9.66206 19.6861Z'+ fill='#E3006D'+ />+ <path+ d='M8.57283 8.37731C6.84513 9.13491 3.16438 10.6871 2.61978 9.43057C2.1503 8.37731 3.01415 6.23383 4.59161 4.79252C4.62917 4.75557 4.68551 4.73709 4.72307 4.70013C7.1456 3.01861 8.94842 3.25883 9.83105 4.47839C10.6573 5.62404 9.73715 7.43491 8.57283 8.37731Z'+ fill='#9327FF'+ />+ <path+ d='M18.0377 11.0196C16.8358 11.8511 14.9578 10.8902 14.0189 9.68912C13.2489 7.93368 11.7654 4.47825 13.0048 3.96086C14.1316 3.48042 16.4602 4.44129 17.9438 6.14129C19.5024 8.45107 19.2583 10.1696 18.0377 11.0196Z'+ fill='#00C8FF'+ />+ <path+ d='M16.4226 18.5218C16.385 18.5587 16.3475 18.5772 16.2911 18.6142C13.8686 20.2957 12.0658 20.0555 11.1832 18.8359C10.3569 17.6903 11.277 15.8794 12.4414 14.937C14.1691 14.1794 17.8498 12.6272 18.3944 13.8837C18.8827 14.937 18.0188 17.0805 16.4226 18.5218Z'+ fill='#FFCE00'+ />+ <path+ d='M8.04704 19.3535C6.92028 19.8339 4.59164 18.8915 3.12685 17.1915C1.53061 14.8817 1.79352 13.1448 3.01418 12.3132C4.21605 11.4817 6.09399 12.4426 7.03296 13.6437C7.80291 15.3806 9.28648 18.8361 8.04704 19.3535Z'+ fill='#FB006D'+ />+ </g>+ <defs>+ <clipPath id='clip0_159_6088'>+ <rect width='92' height='17' fill='white' transform='translate(2 3)' />+ </clipPath>+ </defs>+</svg>\ No newline at end of filediff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/logo.svg b/frontend/appflowy_tauri/src/appflowy_app/assets/logo.svgnew file mode 100644index 0000000000..b1ac8d66fb--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/assets/logo.svg@@ -0,0 +1,38 @@+<svg width='100%' height='100%' viewBox='0 0 41 40' fill='none' xmlns='http://www.w3.org/2000/svg'>+ <path+ d='M39.9564 24.0195C38.8098 30.1683 33.7828 35.5321 28.0061 38.5411C27.3005 38.9336 26.4627 39.1516 25.6689 39.1952H37.9279C39.1185 39.1952 39.9564 38.323 39.9564 37.2328V24.0195Z'+ fill='#F7931E'+ />+ <path+ d='M15.4381 12.1576C15.2617 12.2884 15.0853 12.4192 14.9089 12.55C11.9103 14.6432 2.82634 21.3589 0.753788 18.4371C-1.27467 15.6026 0.886079 7.57868 6.08952 3.69755C6.17771 3.61033 6.31 3.56672 6.3982 3.4795C12.0867 -0.48885 16.32 0.078058 18.3926 2.95621C20.3328 5.65992 18.1721 9.93353 15.4381 12.1576Z'+ fill='#8427E0'+ />+ <path+ d='M33.8715 36.098C33.7833 36.1852 33.6951 36.2288 33.5628 36.316C27.8743 40.2844 23.641 39.7175 21.5684 36.8393C19.6282 34.1356 21.7889 29.862 24.5229 27.638C24.6993 27.5072 24.8757 27.3763 25.0521 27.2455C28.0507 25.1959 37.1347 18.4366 39.1631 21.3584C41.2357 24.1929 39.119 32.2169 33.8715 36.098Z'+ fill='#FFBD00'+ />+ <path+ d='M17.9954 38.8459C15.085 40.8955 6.70658 38.6715 2.87014 33.264C2.78195 33.1768 2.69376 33.046 2.64966 32.9588C-1.09858 27.5078 -0.481224 23.4086 2.38508 21.4462C5.20728 19.4838 9.61698 21.7515 11.8218 24.586C11.91 24.7168 11.9982 24.804 12.0864 24.9349C14.159 27.8566 20.9499 36.8399 17.9954 38.8459Z'+ fill='#E3006D'+ />+ <path+ d='M15.4385 12.1576C11.3816 13.9455 2.73857 17.6086 1.45976 14.6432C0.357338 12.1576 2.3858 7.09899 6.08994 3.69755C6.17814 3.61033 6.31043 3.56672 6.39862 3.4795C12.0871 -0.48885 16.3204 0.078058 18.393 2.95621C20.3333 5.65992 18.1725 9.93353 15.4385 12.1576Z'+ fill='#9327FF'+ />+ <path+ d='M37.6624 18.3955C34.8402 20.3579 30.4305 18.0903 28.2257 15.2557C28.1375 15.1249 28.0493 15.0377 27.9611 14.9069C25.8444 11.9415 19.0535 2.95819 21.9639 0.952211C24.8743 -1.09738 33.2968 1.12664 37.1333 6.53407C37.2215 6.6649 37.3096 6.75211 37.3978 6.88294C41.102 12.334 40.5287 16.3895 37.6624 18.3955Z'+ fill='#00B5FF'+ />+ <path+ d='M37.6628 18.3934C34.8406 20.3557 30.4309 18.0881 28.2261 15.2536C26.4181 11.1108 22.9344 2.95603 25.8448 1.73499C28.4906 0.601179 33.9587 2.86881 37.4423 6.88077C41.1024 12.3318 40.5291 16.3874 37.6628 18.3934Z'+ fill='#00C8FF'+ />+ <path+ d='M33.8715 36.0986C33.7833 36.1858 33.6951 36.2294 33.5628 36.3166C27.8743 40.285 23.641 39.7181 21.5684 36.8399C19.6282 34.1362 21.7889 29.8626 24.5229 27.6386C28.5799 25.8506 37.2229 22.1875 38.5017 25.1529C39.6482 27.6386 37.6197 32.6971 33.8715 36.0986Z'+ fill='#FFCE00'+ />+ <path+ d='M14.2031 38.061C11.5572 39.1948 6.08922 36.9708 2.64966 32.9588C-1.09858 27.5078 -0.481224 23.4086 2.38508 21.4462C5.20728 19.4838 9.61698 21.7515 11.8218 24.586C13.6298 28.6852 17.1135 36.8399 14.2031 38.061Z'+ fill='#FB006D'+ />+</svg>\ No newline at end of filediff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/select-check.svg b/frontend/appflowy_tauri/src/appflowy_app/assets/select-check.svgindex 4e4a8c039a..05caec861a 100644--- a/frontend/appflowy_tauri/src/appflowy_app/assets/select-check.svg+++ b/frontend/appflowy_tauri/src/appflowy_app/assets/select-check.svg@@ -1,3 +1,3 @@<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">-<path d="M5 8.2L6.84615 10L13 4" stroke="#00BCF0" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M5 8.2L6.84615 10L13 4" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>diff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/settings/account.svg b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/account.svgnew file mode 100644index 0000000000..fddfca7575--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/account.svg@@ -0,0 +1,3 @@+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M11.9978 1.95316C9.2364 1.95316 6.9978 4.19176 6.9978 6.95315C6.9978 9.71455 9.2364 11.9532 11.9978 11.9532C14.7592 11.9532 16.9978 9.71455 16.9978 6.95315C16.9978 4.19176 14.7592 1.95316 11.9978 1.95316ZM11.9978 3.95316C13.6547 3.95316 14.9978 5.29625 14.9978 6.95315C14.9978 8.61005 13.6547 9.95315 11.9978 9.95315C10.3409 9.95315 8.9978 8.61005 8.9978 6.95315C8.9978 5.29625 10.3409 3.95316 11.9978 3.95316ZM8.4666 13.2657C5.8523 13.9802 3.9978 16.2534 3.9978 18.9532V20.9532C3.9978 21.5055 4.4455 21.9532 4.9978 21.9532H18.9978C19.5501 21.9532 19.9978 21.5055 19.9978 20.9532V18.9532C19.9978 16.2534 18.1433 13.9802 15.529 13.2657C15.3049 13.2044 15.0847 13.2327 14.8728 13.3282C13.9573 13.7408 12.9827 13.9532 11.9978 13.9532C11.0129 13.9532 10.0383 13.7408 9.1228 13.3282C8.9109 13.2327 8.6907 13.2044 8.4666 13.2657ZM8.8728 15.2657C9.8826 15.6476 10.9175 15.9532 11.9978 15.9532C13.0781 15.9532 14.113 15.6476 15.1228 15.2657C16.8262 15.7817 17.9978 17.2196 17.9978 18.9532V19.9532H5.9978V18.9532C5.9978 17.2196 7.1694 15.7817 8.8728 15.2657Z" fill="currentColor"/>+</svg>diff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/settings/check_circle.svg b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/check_circle.svgnew file mode 100644index 0000000000..c6fa56067b--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/check_circle.svg@@ -0,0 +1,8 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<mask id="mask0_83_2591" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="16" height="16">+<rect width="16" height="16" fill="#66CF80"/>+</mask>+<g mask="url(#mask0_83_2591)">+<path d="M7.06607 11.0666L11.7661 6.36659L10.8327 5.43325L7.06607 9.19992L5.16607 7.29992L4.23273 8.23325L7.06607 11.0666ZM7.9994 14.6666C7.07718 14.6666 6.21051 14.4916 5.3994 14.1416C4.58829 13.7916 3.88273 13.3166 3.28273 12.7166C2.68273 12.1166 2.20773 11.411 1.85773 10.5999C1.50773 9.78881 1.33273 8.92214 1.33273 7.99992C1.33273 7.0777 1.50773 6.21103 1.85773 5.39992C2.20773 4.58881 2.68273 3.88325 3.28273 3.28325C3.88273 2.68325 4.58829 2.20825 5.3994 1.85825C6.21051 1.50825 7.07718 1.33325 7.9994 1.33325C8.92162 1.33325 9.78829 1.50825 10.5994 1.85825C11.4105 2.20825 12.1161 2.68325 12.7161 3.28325C13.3161 3.88325 13.7911 4.58881 14.1411 5.39992C14.4911 6.21103 14.6661 7.0777 14.6661 7.99992C14.6661 8.92214 14.4911 9.78881 14.1411 10.5999C13.7911 11.411 13.3161 12.1166 12.7161 12.7166C12.1161 13.3166 11.4105 13.7916 10.5994 14.1416C9.78829 14.4916 8.92162 14.6666 7.9994 14.6666Z" fill="#66CF80"/>+</g>+</svg>diff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/settings/dark.png b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/dark.pngnew file mode 100644index 0000000000..15a2db5eb8Binary files /dev/null and b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/dark.png differdiff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/settings/discord.png b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/discord.pngnew file mode 100644index 0000000000..f71e68c6edBinary files /dev/null and b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/discord.png differdiff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/settings/github.png b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/github.pngnew file mode 100644index 0000000000..597883b7a3Binary files /dev/null and b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/github.png differdiff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/settings/google.png b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/google.pngnew file mode 100644index 0000000000..60032628a8Binary files /dev/null and b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/google.png differdiff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/settings/light.png b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/light.pngnew file mode 100644index 0000000000..09b2d9c475Binary files /dev/null and b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/light.png differdiff --git a/frontend/appflowy_tauri/src/appflowy_app/assets/settings/workplace.svg b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/workplace.svgnew file mode 100644index 0000000000..2076ea3e2c--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/assets/settings/workplace.svg@@ -0,0 +1,10 @@+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">+ <mask id="mask0_899_4965" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">+ <rect width="24" height="24" fill="#D9D9D9"/>+ </mask>+ <g mask="url(#mask0_899_4965)">+ <path d="M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H11V5H5V19ZM13 19H19V12H13V19ZM13 10H19V5H13V10Z" fill="currentColor"/>+ </g>+</svg>++diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/avatar/ProfileAvatar.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/avatar/ProfileAvatar.tsxnew file mode 100644index 0000000000..1248882238--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/avatar/ProfileAvatar.tsx@@ -0,0 +1,33 @@+import { stringToColor, stringToShortName } from '$app/utils/avatar';+import { Avatar } from '@mui/material';+import { useAppSelector } from '$app/stores/store';++export const ProfileAvatar = ({+ onClick,+ className,+ width,+ height,+}: {+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;+ width?: number;+ height?: number;+ className?: string;+}) => {+ const { displayName = 'Me', iconUrl } = useAppSelector((state) => state.currentUser);++ return (+ <Avatar+ onClick={onClick}+ className={className}+ sx={{+ bgcolor: iconUrl ? 'transparent' : stringToColor(displayName),+ width,+ height,+ fontSize: iconUrl ? undefined : width ? width / 2.5 : 20,+ color: iconUrl ? undefined : 'white',+ }}+ >+ {iconUrl ? iconUrl : stringToShortName(displayName)}+ </Avatar>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/avatar/WorkplaceAvatar.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/avatar/WorkplaceAvatar.tsxnew file mode 100644index 0000000000..079342b528--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/avatar/WorkplaceAvatar.tsx@@ -0,0 +1,34 @@+import { Avatar } from '@mui/material';+import { stringToColor, stringToShortName } from '$app/utils/avatar';++export const WorkplaceAvatar = ({+ workplaceName,+ icon,+ onClick,+ width,+ height,+ className,+}: {+ workplaceName: string;+ width: number;+ height: number;+ className?: string;+ icon?: string;+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;+}) => {+ return (+ <Avatar+ onClick={onClick}+ className={className}+ variant={'rounded'}+ sx={{+ bgcolor: icon ? 'transparent' : stringToColor(workplaceName),+ width,+ height,+ color: icon ? undefined : 'white',+ }}+ >+ {icon ? icon : stringToShortName(workplaceName)}+ </Avatar>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/avatar/index.ts b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/avatar/index.tsnew file mode 100644index 0000000000..772056737a--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/avatar/index.ts@@ -0,0 +1,2 @@+export * from './WorkplaceAvatar';+export * from './ProfileAvatar';diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/login/LoginButtonGroup.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/login/LoginButtonGroup.tsxnew file mode 100644index 0000000000..7334a94420--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/login/LoginButtonGroup.tsx@@ -0,0 +1,26 @@+import Button from '@mui/material/Button';+import GoogleIcon from '$app/assets/settings/google.png';+import GithubIcon from '$app/assets/settings/github.png';+import DiscordIcon from '$app/assets/settings/discord.png';+import { useTranslation } from 'react-i18next';++export const LoginButtonGroup = () => {+ const { t } = useTranslation();++ return (+ <div className={'flex w-full flex-col items-center gap-4'}>+ <Button className={'w-full rounded-lg border-text-title py-3 text-sm'} color={'inherit'} variant={'outlined'}>+ <img src={GoogleIcon} alt={'Google'} className={'mr-2 h-6 w-6'} />+ {t('button.signInGoogle')}+ </Button>+ <Button className={'w-full rounded-lg border-text-title py-3 text-sm'} color={'inherit'} variant={'outlined'}>+ <img src={GithubIcon} alt={'Github'} className={'mr-2 h-6 w-6'} />+ {t('button.signInGithub')}+ </Button>+ <Button className={'w-full rounded-lg border-text-title py-3 text-sm'} color={'inherit'} variant={'outlined'}>+ <img src={DiscordIcon} alt={'Discord'} className={'mr-2 h-6 w-6'} />+ {t('button.signInDiscord')}+ </Button>+ </div>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/login/index.ts b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/login/index.tsnew file mode 100644index 0000000000..04605317ed--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/login/index.ts@@ -0,0 +1 @@+export * from './LoginButtonGroup';diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/AddSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/AddSvg.tsxdeleted file mode 100644index 495a0151c1..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/AddSvg.tsx+++ /dev/null@@ -1,8 +0,0 @@-export default () => {- return (- <svg width='100%' height='100%' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>- <rect x='11.25' y='6' width='1.5' height='12' rx='0.75' fill='currentColor' />- <rect x='18' y='11.25' width='1.5' height='12' rx='0.75' transform='rotate(90 18 11.25)' fill='currentColor' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/AppflowyLogo.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/AppflowyLogo.tsxdeleted file mode 100644index 0625424c76..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/AppflowyLogo.tsx+++ /dev/null@@ -1,42 +0,0 @@-export const AppflowyLogo = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 41 40' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M39.9564 24.0195C38.8098 30.1683 33.7828 35.5321 28.0061 38.5411C27.3005 38.9336 26.4627 39.1516 25.6689 39.1952H37.9279C39.1185 39.1952 39.9564 38.323 39.9564 37.2328V24.0195Z'- fill='#F7931E'- />- <path- d='M15.4381 12.1576C15.2617 12.2884 15.0853 12.4192 14.9089 12.55C11.9103 14.6432 2.82634 21.3589 0.753788 18.4371C-1.27467 15.6026 0.886079 7.57868 6.08952 3.69755C6.17771 3.61033 6.31 3.56672 6.3982 3.4795C12.0867 -0.48885 16.32 0.078058 18.3926 2.95621C20.3328 5.65992 18.1721 9.93353 15.4381 12.1576Z'- fill='#8427E0'- />- <path- d='M33.8715 36.098C33.7833 36.1852 33.6951 36.2288 33.5628 36.316C27.8743 40.2844 23.641 39.7175 21.5684 36.8393C19.6282 34.1356 21.7889 29.862 24.5229 27.638C24.6993 27.5072 24.8757 27.3763 25.0521 27.2455C28.0507 25.1959 37.1347 18.4366 39.1631 21.3584C41.2357 24.1929 39.119 32.2169 33.8715 36.098Z'- fill='#FFBD00'- />- <path- d='M17.9954 38.8459C15.085 40.8955 6.70658 38.6715 2.87014 33.264C2.78195 33.1768 2.69376 33.046 2.64966 32.9588C-1.09858 27.5078 -0.481224 23.4086 2.38508 21.4462C5.20728 19.4838 9.61698 21.7515 11.8218 24.586C11.91 24.7168 11.9982 24.804 12.0864 24.9349C14.159 27.8566 20.9499 36.8399 17.9954 38.8459Z'- fill='#E3006D'- />- <path- d='M15.4385 12.1576C11.3816 13.9455 2.73857 17.6086 1.45976 14.6432C0.357338 12.1576 2.3858 7.09899 6.08994 3.69755C6.17814 3.61033 6.31043 3.56672 6.39862 3.4795C12.0871 -0.48885 16.3204 0.078058 18.393 2.95621C20.3333 5.65992 18.1725 9.93353 15.4385 12.1576Z'- fill='#9327FF'- />- <path- d='M37.6624 18.3955C34.8402 20.3579 30.4305 18.0903 28.2257 15.2557C28.1375 15.1249 28.0493 15.0377 27.9611 14.9069C25.8444 11.9415 19.0535 2.95819 21.9639 0.952211C24.8743 -1.09738 33.2968 1.12664 37.1333 6.53407C37.2215 6.6649 37.3096 6.75211 37.3978 6.88294C41.102 12.334 40.5287 16.3895 37.6624 18.3955Z'- fill='#00B5FF'- />- <path- d='M37.6628 18.3934C34.8406 20.3557 30.4309 18.0881 28.2261 15.2536C26.4181 11.1108 22.9344 2.95603 25.8448 1.73499C28.4906 0.601179 33.9587 2.86881 37.4423 6.88077C41.1024 12.3318 40.5291 16.3874 37.6628 18.3934Z'- fill='#00C8FF'- />- <path- d='M33.8715 36.0986C33.7833 36.1858 33.6951 36.2294 33.5628 36.3166C27.8743 40.285 23.641 39.7181 21.5684 36.8399C19.6282 34.1362 21.7889 29.8626 24.5229 27.6386C28.5799 25.8506 37.2229 22.1875 38.5017 25.1529C39.6482 27.6386 37.6197 32.6971 33.8715 36.0986Z'- fill='#FFCE00'- />- <path- d='M14.2031 38.061C11.5572 39.1948 6.08922 36.9708 2.64966 32.9588C-1.09858 27.5078 -0.481224 23.4086 2.38508 21.4462C5.20728 19.4838 9.61698 21.7515 11.8218 24.586C13.6298 28.6852 17.1135 36.8399 14.2031 38.061Z'- fill='#FB006D'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/AppflowyLogoDark.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/AppflowyLogoDark.tsxdeleted file mode 100644index f43ce1f495..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/AppflowyLogoDark.tsx+++ /dev/null@@ -1,77 +0,0 @@-export const AppflowyLogoDark = () => {- return (- <svg width='103' height='24' viewBox='0 0 103 24' fill='none' xmlns='http://www.w3.org/2000/svg'>- <g clipPath='url(#clip0_175_6957)'>- <path- d='M34.7324 7.84144H36.892V8.63601C37.4179 8.08166 38.4132 7.63818 39.5212 7.63818C41.8498 7.63818 43.3709 9.4121 43.3709 11.8882C43.3709 14.4197 41.6057 16.3969 38.8827 16.3969C38.1315 16.3969 37.3991 16.2675 36.9108 15.9904V19.9078H34.7512V7.84144H34.7324ZM36.9108 10.5393V13.9208C37.493 14.2904 37.9812 14.4012 38.6949 14.4012C40.1972 14.4012 41.0611 13.3295 41.0611 11.9436C41.0611 10.6132 40.2723 9.65231 38.8451 9.65231C38.1127 9.63384 37.4366 9.96644 36.9108 10.5393Z'- fill='white'- />- <path- d='M29.3802 7.6748C26.6572 7.6748 24.892 9.6335 24.892 12.1835C24.892 14.6596 26.3943 16.4335 28.7417 16.4335C29.8309 16.4335 30.8262 15.99 31.3708 15.4357V16.2302H33.5305V9.22698C31.9154 8.02589 30.1314 7.6748 29.3802 7.6748ZM31.3521 13.5324C30.8262 14.1052 30.1502 14.4378 29.4178 14.4378C27.9906 14.4378 27.2018 13.477 27.2018 12.1465C27.2018 10.7607 28.0657 9.67046 29.568 9.67046C30.2816 9.67046 30.7699 9.78133 31.3521 10.1509V13.5324Z'- fill='white'- />- <path- d='M44.291 7.84144H46.4506V8.63601C46.9765 8.08166 47.9718 7.63818 49.0797 7.63818C51.4084 7.63818 52.9295 9.4121 52.9295 11.8882C52.9295 14.4197 51.1642 16.3969 48.4412 16.3969C47.6901 16.3969 46.9577 16.2675 46.4694 15.9904V19.9078H44.3098V7.84144H44.291ZM46.4694 10.5393V13.9208C47.0516 14.2904 47.5398 14.4012 48.2535 14.4012C49.7558 14.4012 50.6196 13.3295 50.6196 11.9436C50.6196 10.6132 49.8309 9.65231 48.4037 9.65231C47.6713 9.63384 46.9952 9.96644 46.4694 10.5393Z'- fill='white'- />- <path- d='M59.2019 5.43925C58.8826 5.21751 58.3756 4.99577 57.8685 4.99577C56.892 4.99577 56.3849 5.49469 56.3849 6.64034V7.82295H57.9061V9.83708H56.3849V16.1751H54.2065V6.49251C54.2065 4.18273 55.3333 3.00012 57.23 3.00012C58.0939 3.00012 58.8826 3.20338 59.446 3.55447H61.3615V13.0153C61.3615 13.9577 61.6056 14.3643 62.0939 14.3643C62.4507 14.3643 62.7324 14.2164 62.9953 14.0316L63.446 15.6577C62.9577 16.0458 62.2253 16.3599 61.2112 16.3599C59.9155 16.3599 59.2019 15.5838 59.2019 13.8838V5.43925Z'- fill='white'- />- <path- d='M68.0846 7.63818C70.9015 7.63818 72.7043 9.50449 72.7043 12.0175C72.7043 14.5121 70.9015 16.3969 68.0846 16.3969C65.2677 16.3969 63.4648 14.5306 63.4648 12.0175C63.4648 9.50449 65.2864 7.63818 68.0846 7.63818ZM68.0846 14.4012C69.4179 14.4012 70.3944 13.4588 70.3944 12.0175C70.3944 10.6132 69.3991 9.65231 68.0846 9.65231C66.8076 9.65231 65.7935 10.5762 65.7935 12.0175C65.7935 13.4034 66.77 14.4012 68.0846 14.4012Z'- fill='white'- />- <path- d='M83.4274 16.2308H81.4931L79.6903 11.5928C79.5588 11.2786 79.5025 10.9275 79.4086 10.6134C79.3335 10.983 79.2396 11.2971 79.1081 11.6297L77.3053 16.2308H75.4649L72.7043 7.84167H75.0142L76.3663 12.3873C76.4978 12.7938 76.5353 13.108 76.6105 13.496C76.7043 13.1449 76.7607 12.8493 76.9297 12.3873L78.5072 7.84167H80.4227L82.0565 12.3688C82.1879 12.7384 82.2818 13.1265 82.3757 13.5145C82.4508 13.1265 82.5447 12.7199 82.6386 12.3134L83.8781 7.84167H86.0565L83.4274 16.2308Z'- fill='white'- />- <path- d='M90.6573 16.1936C89.4178 19.187 88.6291 19.9077 87.3709 19.9077C86.6009 19.9077 86.0375 19.612 85.5493 19.2609L86.2441 17.6533C86.4695 17.7827 86.7887 17.949 87.1267 17.949C87.6713 17.949 88.0657 17.524 88.4225 16.6555L88.6103 16.212L84.6854 7.85986H87.2958L89.2676 12.424C89.4366 12.8305 89.5493 13.2186 89.6807 13.6251C89.7558 13.237 89.831 12.8305 89.9812 12.4055L91.5023 7.85986H93.9624L90.6573 16.1936Z'- fill='white'- />- <path- d='M19.0141 13.4033C18.5258 16.0088 16.385 18.2816 13.9249 19.5566C13.6244 19.7229 13.2676 19.8153 12.9296 19.8338H18.1502C18.6573 19.8338 19.0141 19.4642 19.0141 19.0022V13.4033Z'- fill='#F7931E'- />- <path- d='M8.57282 8.37731C8.49771 8.43274 8.42259 8.48817 8.34747 8.54361C7.07048 9.43057 3.20193 12.2762 2.3193 11.0382C1.45545 9.83709 2.37564 6.43709 4.5916 4.79252C4.62916 4.75557 4.6855 4.73709 4.72306 4.70013C7.14559 3.01861 8.94841 3.25883 9.83104 4.47839C10.6573 5.62404 9.73714 7.43491 8.57282 8.37731Z'- fill='#8427E0'- />- <path- d='M18.0376 11.0204C16.8357 11.852 14.9578 10.8911 14.0188 9.69C13.9812 9.63456 13.9437 9.59761 13.9061 9.54217C13.0047 8.28565 10.1127 4.47913 11.3521 3.62913C12.5916 2.76065 16.1784 3.70304 17.8122 5.99434C17.8498 6.04978 17.8873 6.08674 17.9249 6.14217C19.5024 8.45195 19.2582 10.1704 18.0376 11.0204Z'- fill='#00B5FF'- />- <path- d='M16.4226 18.5219C16.385 18.5589 16.3475 18.5773 16.2911 18.6143C13.8686 20.2958 12.0658 20.0556 11.1832 18.836C10.3569 17.6904 11.277 15.8795 12.4414 14.9371C12.5165 14.8817 12.5916 14.8263 12.6667 14.7708C13.9437 13.9023 17.8123 11.0382 18.6761 12.2763C19.5587 13.4773 18.6573 16.8773 16.4226 18.5219Z'- fill='#FFBD00'- />- <path- d='M9.66194 19.6861C8.4225 20.5545 4.85443 19.6121 3.22063 17.3208C3.18307 17.2839 3.14551 17.2285 3.12673 17.1915C1.53049 14.8817 1.7934 13.1448 3.01405 12.3132C4.21593 11.4817 6.09387 12.4426 7.03283 13.6437C7.07039 13.6991 7.10795 13.7361 7.14551 13.7915C8.02814 15.0295 10.9202 18.8361 9.66194 19.6861Z'- fill='#E3006D'- />- <path- d='M8.57283 8.37731C6.84513 9.13491 3.16438 10.6871 2.61978 9.43057C2.1503 8.37731 3.01415 6.23383 4.59161 4.79252C4.62917 4.75557 4.68551 4.73709 4.72307 4.70013C7.1456 3.01861 8.94842 3.25883 9.83105 4.47839C10.6573 5.62404 9.73715 7.43491 8.57283 8.37731Z'- fill='#9327FF'- />- <path- d='M18.0375 11.0196C16.8357 11.8511 14.9577 10.8902 14.0188 9.68912C13.2488 7.93368 11.7652 4.47825 13.0047 3.96086C14.1314 3.48042 16.4601 4.44129 17.9436 6.14129C19.5023 8.45107 19.2582 10.1696 18.0375 11.0196Z'- fill='#00C8FF'- />- <path- d='M16.4226 18.5218C16.385 18.5587 16.3475 18.5772 16.2911 18.6142C13.8686 20.2957 12.0658 20.0555 11.1832 18.8359C10.3569 17.6903 11.277 15.8794 12.4414 14.937C14.1691 14.1794 17.8498 12.6272 18.3944 13.8837C18.8827 14.937 18.0188 17.0805 16.4226 18.5218Z'- fill='#F7CF46'- />- <path- d='M8.04692 19.3535C6.92016 19.8339 4.59152 18.8915 3.12673 17.1915C1.53049 14.8817 1.7934 13.1448 3.01405 12.3132C4.21593 11.4817 6.09387 12.4426 7.03283 13.6437C7.80279 15.3806 9.28635 18.8361 8.04692 19.3535Z'- fill='#FB006D'- />- </g>- <defs>- <clipPath id='clip0_175_6957'>- <rect width='92' height='17' fill='white' transform='translate(2 3)' />- </clipPath>- </defs>- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/AppflowyLogoLight.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/AppflowyLogoLight.tsxdeleted file mode 100644index 1c9b3dcbb2..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/AppflowyLogoLight.tsx+++ /dev/null@@ -1,53 +0,0 @@-export const AppflowyLogoLight = () => (- <svg width='103' height='24' viewBox='0 0 103 24' fill='none' xmlns='http://www.w3.org/2000/svg'>- <g clipPath='url(#clip0_159_6088)'>- <path- fillRule='evenodd'- clipRule='evenodd'- d='M59.2019 5.43913C58.8826 5.21739 58.3756 4.99565 57.8685 4.99565C56.892 4.99565 56.3849 5.49457 56.3849 6.64022V7.82283H57.9061V9.83696H56.3849V16.175H54.2065V6.49239C54.2065 4.18261 55.3333 3 57.23 3C58.0939 3 58.8826 3.20326 59.446 3.55435H61.3615V13.0152C61.3615 13.9576 61.6056 14.3641 62.0939 14.3641C62.4507 14.3641 62.7324 14.2163 62.9953 14.0315L63.446 15.6576C62.9577 16.0457 62.2253 16.3598 61.2112 16.3598C59.9155 16.3598 59.2019 15.5837 59.2019 13.8837V5.43913ZM34.7512 7.84144H36.892V8.63601C37.4179 8.08166 38.4132 7.63818 39.5212 7.63818C41.8498 7.63818 43.3709 9.4121 43.3709 11.8882C43.3709 14.4197 41.6057 16.3969 38.8827 16.3969C38.1315 16.3969 37.3991 16.2675 36.9108 15.9904V19.9077H34.7512V7.84144ZM36.9108 10.5393V13.9208C37.493 14.2904 37.9812 14.4012 38.6949 14.4012C40.1972 14.4012 41.0611 13.3295 41.0611 11.9436C41.0611 10.6132 40.2723 9.65231 38.8451 9.65231C38.1127 9.63384 37.4366 9.96644 36.9108 10.5393ZM29.3804 7.6748C26.6573 7.6748 24.8921 9.6335 24.8921 12.1835C24.8921 14.6596 26.3944 16.4335 28.7419 16.4335C29.8311 16.4335 30.8264 15.99 31.371 15.4357V16.2302H33.5306V9.22698C31.9156 8.02589 30.1315 7.6748 29.3804 7.6748ZM31.3522 13.5324C30.8264 14.1052 30.1503 14.4378 29.4179 14.4378C27.9907 14.4378 27.2019 13.477 27.2019 12.1465C27.2019 10.7607 28.0658 9.67046 29.5681 9.67046C30.2818 9.67046 30.77 9.78133 31.3522 10.1509V13.5324ZM46.4506 7.84144H44.3098V19.9077H46.4694V15.9904C46.9577 16.2675 47.6901 16.3969 48.4412 16.3969C51.1642 16.3969 52.9295 14.4197 52.9295 11.8882C52.9295 9.4121 51.4084 7.63818 49.0797 7.63818C47.9718 7.63818 46.9765 8.08166 46.4506 8.63601V7.84144ZM46.4694 13.9208V10.5393C46.9952 9.96644 47.6713 9.63384 48.4037 9.65231C49.8309 9.65231 50.6196 10.6132 50.6196 11.9436C50.6196 13.3295 49.7558 14.4012 48.2535 14.4012C47.5398 14.4012 47.0516 14.2904 46.4694 13.9208ZM72.7043 12.0175C72.7043 9.50449 70.9015 7.63818 68.0846 7.63818C65.2864 7.63818 63.4648 9.50449 63.4648 12.0175C63.4648 14.5306 65.2677 16.3969 68.0846 16.3969C70.9015 16.3969 72.7043 14.5121 72.7043 12.0175ZM70.3944 12.0175C70.3944 13.4588 69.4179 14.4012 68.0846 14.4012C66.77 14.4012 65.7935 13.4034 65.7935 12.0175C65.7935 10.5762 66.8076 9.65231 68.0846 9.65231C69.3991 9.65231 70.3944 10.6132 70.3944 12.0175ZM83.4274 16.2307H81.4931L79.6903 11.5926C79.6057 11.3905 79.5522 11.173 79.4998 10.96C79.4708 10.842 79.4421 10.7253 79.4086 10.6133C79.3335 10.9829 79.2396 11.297 79.1081 11.6296L77.3053 16.2307H75.4649L72.7043 7.84155H75.0142L76.3663 12.3872C76.4663 12.6964 76.512 12.9521 76.5611 13.2276L76.5612 13.228C76.5767 13.3146 76.5925 13.4031 76.6105 13.4959C76.6339 13.4081 76.655 13.3239 76.6762 13.2396C76.7396 12.9866 76.8029 12.7337 76.9297 12.3872L78.5072 7.84155H80.4227L82.0565 12.3687C82.1879 12.7383 82.2818 13.1263 82.3757 13.5144C82.4508 13.1263 82.5447 12.7198 82.6386 12.3133L83.8781 7.84155H86.0565L86.0507 7.85986H87.2959L89.2677 12.424C89.4023 12.7476 89.5011 13.0596 89.6021 13.3784C89.628 13.4601 89.654 13.5422 89.6808 13.6251L89.6916 13.5696C89.7633 13.1984 89.8382 12.8103 89.9813 12.4055L91.5024 7.85986H93.9625L90.6574 16.1936C89.4179 19.187 88.6292 19.9077 87.371 19.9077C86.601 19.9077 86.0377 19.612 85.5494 19.2609L86.2442 17.6533C86.4696 17.7827 86.7888 17.949 87.1269 17.949C87.6715 17.949 88.0658 17.524 88.4226 16.6555L88.6104 16.212L85.5045 9.60269L83.4274 16.2307Z'- fill='black'- />- <path- d='M19.0142 13.4033C18.5259 16.0088 16.3851 18.2816 13.925 19.5566C13.6245 19.7229 13.2677 19.8153 12.9297 19.8338H18.1503C18.6574 19.8338 19.0142 19.4642 19.0142 19.0022V13.4033Z'- fill='#F7931E'- />- <path- d='M8.57282 8.3773C8.49771 8.43274 8.42259 8.48817 8.34747 8.54361C7.07048 9.43057 3.20193 12.2762 2.3193 11.0382C1.45545 9.83709 2.37564 6.43709 4.5916 4.79252C4.62916 4.75557 4.6855 4.73709 4.72306 4.70013C7.14559 3.01861 8.94841 3.25883 9.83104 4.47839C10.6573 5.62404 9.73714 7.43491 8.57282 8.3773Z'- fill='#8427E0'- />- <path- d='M18.0376 11.0204C16.8357 11.852 14.9578 10.8911 14.0188 9.69C13.9812 9.63456 13.9437 9.59761 13.9061 9.54217C13.0047 8.28565 10.1127 4.47913 11.3521 3.62913C12.5916 2.76065 16.1784 3.70304 17.8122 5.99434C17.8498 6.04978 17.8873 6.08674 17.9249 6.14217C19.5024 8.45195 19.2582 10.1704 18.0376 11.0204Z'- fill='#00B5FF'- />- <path- d='M16.4226 18.5219C16.385 18.5589 16.3475 18.5773 16.2911 18.6143C13.8686 20.2958 12.0658 20.0556 11.1832 18.836C10.3569 17.6904 11.277 15.8795 12.4414 14.9371C12.5165 14.8817 12.5916 14.8263 12.6667 14.7708C13.9437 13.9023 17.8123 11.0382 18.6761 12.2763C19.5587 13.4773 18.6573 16.8773 16.4226 18.5219Z'- fill='#FFBD00'- />- <path- d='M9.66206 19.6861C8.42263 20.5545 4.85455 19.6121 3.22075 17.3208C3.18319 17.2839 3.14563 17.2285 3.12685 17.1915C1.53061 14.8817 1.79352 13.1448 3.01418 12.3132C4.21605 11.4817 6.09399 12.4426 7.03296 13.6437C7.07051 13.6991 7.10807 13.7361 7.14563 13.7915C8.02826 15.0295 10.9203 18.8361 9.66206 19.6861Z'- fill='#E3006D'- />- <path- d='M8.57283 8.37731C6.84513 9.13491 3.16438 10.6871 2.61978 9.43057C2.1503 8.37731 3.01415 6.23383 4.59161 4.79252C4.62917 4.75557 4.68551 4.73709 4.72307 4.70013C7.1456 3.01861 8.94842 3.25883 9.83105 4.47839C10.6573 5.62404 9.73715 7.43491 8.57283 8.37731Z'- fill='#9327FF'- />- <path- d='M18.0377 11.0196C16.8358 11.8511 14.9578 10.8902 14.0189 9.68912C13.2489 7.93368 11.7654 4.47825 13.0048 3.96086C14.1316 3.48042 16.4602 4.44129 17.9438 6.14129C19.5024 8.45107 19.2583 10.1696 18.0377 11.0196Z'- fill='#00C8FF'- />- <path- d='M16.4226 18.5218C16.385 18.5587 16.3475 18.5772 16.2911 18.6142C13.8686 20.2957 12.0658 20.0555 11.1832 18.8359C10.3569 17.6903 11.277 15.8794 12.4414 14.937C14.1691 14.1794 17.8498 12.6272 18.3944 13.8837C18.8827 14.937 18.0188 17.0805 16.4226 18.5218Z'- fill='#FFCE00'- />- <path- d='M8.04704 19.3535C6.92028 19.8339 4.59164 18.8915 3.12685 17.1915C1.53061 14.8817 1.79352 13.1448 3.01418 12.3132C4.21605 11.4817 6.09399 12.4426 7.03296 13.6437C7.80291 15.3806 9.28648 18.8361 8.04704 19.3535Z'- fill='#FB006D'- />- </g>- <defs>- <clipPath id='clip0_159_6088'>- <rect width='92' height='17' fill='white' transform='translate(2 3)' />- </clipPath>- </defs>- </svg>-);diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ArrowLeftSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ArrowLeftSvg.tsxdeleted file mode 100644index 9c4d68be75..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ArrowLeftSvg.tsx+++ /dev/null@@ -1,7 +0,0 @@-export const ArrowLeftSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M10 4L6 8L10 12' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ArrowRightSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ArrowRightSvg.tsxdeleted file mode 100644index 8b9501c508..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ArrowRightSvg.tsx+++ /dev/null@@ -1,7 +0,0 @@-export const ArrowRightSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M6 4L10 8L6 12' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/BoardSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/BoardSvg.tsxdeleted file mode 100644index 11c29fae58..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/BoardSvg.tsx+++ /dev/null@@ -1,20 +0,0 @@-export const BoardSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M12.8 2H3.2C2.53726 2 2 2.55964 2 3.25V5.75C2 6.44036 2.53726 7 3.2 7H12.8C13.4627 7 14 6.44036 14 5.75V3.25C14 2.55964 13.4627 2 12.8 2Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M12.8 9H3.2C2.53726 9 2 9.55964 2 10.25V12.75C2 13.4404 2.53726 14 3.2 14H12.8C13.4627 14 14 13.4404 14 12.75V10.25C14 9.55964 13.4627 9 12.8 9Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <circle cx='4.5' cy='4.5' r='0.5' fill='currentColor' />- <circle cx='4.5' cy='11.5' r='0.5' fill='currentColor' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/CheckboxSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/CheckboxSvg.tsxdeleted file mode 100644index 862badd2a2..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/CheckboxSvg.tsx+++ /dev/null@@ -1,13 +0,0 @@-export const CheckboxSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M6.5 8L8.11538 9.5L13.5 4.5' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path- d='M13 8.5V11.8889C13 12.1836 12.8829 12.4662 12.6746 12.6746C12.4662 12.8829 12.1836 13 11.8889 13H4.11111C3.81643 13 3.53381 12.8829 3.32544 12.6746C3.11706 12.4662 3 12.1836 3 11.8889V4.11111C3 3.81643 3.11706 3.53381 3.32544 3.32544C3.53381 3.11706 3.81643 3 4.11111 3H10.2222'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ChecklistTypeSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ChecklistTypeSvg.tsxdeleted file mode 100644index ea4f168737..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ChecklistTypeSvg.tsx+++ /dev/null@@ -1,13 +0,0 @@-export const ChecklistTypeSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M6.5 8L8.11538 9.5L13.5 4.5' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path- d='M13.5 8C13.5 11.0376 11.0376 13.5 8 13.5C4.96243 13.5 2.5 11.0376 2.5 8C2.5 4.96243 4.96243 2.5 8 2.5C8.81896 2.5 9.59612 2.679 10.2945 3'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/CheckmarkSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/CheckmarkSvg.tsxdeleted file mode 100644index 7ab64e7e28..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/CheckmarkSvg.tsx+++ /dev/null@@ -1,7 +0,0 @@-export const CheckmarkSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M1 5.2L2.84615 7L9 1' stroke='#00BCF0' strokeLinecap='round' strokeLinejoin='round' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ClockSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ClockSvg.tsxdeleted file mode 100644index b66f7bfe18..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ClockSvg.tsx+++ /dev/null@@ -1,15 +0,0 @@-export const ClockSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M8 13C10.7614 13 13 10.7614 13 8C13 5.23858 10.7614 3 8 3C5.23858 3 3 5.23858 3 8C3 10.7614 5.23858 13 8 13Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <path d='M8 5V8L10 9' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path d='M11.5 2.5L13.5 4.5' stroke='currentColor' strokeLinecap='round' />- <path d='M4.5 2.5L2.5 4.5' stroke='currentColor' strokeLinecap='round' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/CloseSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/CloseSvg.tsxdeleted file mode 100644index 50e76a68c5..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/CloseSvg.tsx+++ /dev/null@@ -1,16 +0,0 @@-export const CloseSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'>- <rect- x='20.9497'- y='9.63599'- width='2'- height='16'- rx='1'- transform='rotate(45 20.9497 9.63599)'- fill='currentColor'- />- <rect x='22.364' y='20.95' width='2' height='16' rx='1' transform='rotate(135 22.364 20.95)' fill='currentColor' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/CopySvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/CopySvg.tsxdeleted file mode 100644index 9d4eb5bfca..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/CopySvg.tsx+++ /dev/null@@ -1,18 +0,0 @@-export const CopySvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M11.9743 6.33301H7.35889C6.79245 6.33301 6.33325 6.7922 6.33325 7.35865V11.974C6.33325 12.5405 6.79245 12.9997 7.35889 12.9997H11.9743C12.5407 12.9997 12.9999 12.5405 12.9999 11.974V7.35865C12.9999 6.7922 12.5407 6.33301 11.9743 6.33301Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M4.53846 9.66667H4.02564C3.75362 9.66667 3.49275 9.55861 3.3004 9.36626C3.10806 9.17392 3 8.91304 3 8.64103V4.02564C3 3.75362 3.10806 3.49275 3.3004 3.3004C3.49275 3.10806 3.75362 3 4.02564 3H8.64103C8.91304 3 9.17392 3.10806 9.36626 3.3004C9.55861 3.49275 9.66667 3.75362 9.66667 4.02564V4.53846'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DateTypeSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DateTypeSvg.tsxdeleted file mode 100644index 7bc133b2af..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DateTypeSvg.tsx+++ /dev/null@@ -1,15 +0,0 @@-export const DateTypeSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M11.8889 3.5H4.11111C3.49746 3.5 3 3.94772 3 4.5V11.5C3 12.0523 3.49746 12.5 4.11111 12.5H11.8889C12.5025 12.5 13 12.0523 13 11.5V4.5C13 3.94772 12.5025 3.5 11.8889 3.5Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <path d='M10 2.5V4.58181' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path d='M6 2.5V4.58181' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path d='M3 6.5H13' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/Details2Svg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/Details2Svg.tsxdeleted file mode 100644index 47e8cd9a00..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/Details2Svg.tsx+++ /dev/null@@ -1,8 +0,0 @@-export const Details2Svg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <circle cx='8' cy='6' r='1' fill='currentColor' />- <circle cx='8' cy='10' r='1' fill='currentColor' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DocumentSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DocumentSvg.tsxdeleted file mode 100644index 52843553d4..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DocumentSvg.tsx+++ /dev/null@@ -1,18 +0,0 @@-export const DocumentSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M10.5 3H11.5C11.8315 3 12.1495 3.12877 12.3839 3.35798C12.6183 3.58719 12.75 3.89807 12.75 4.22222V12.7778C12.75 13.1019 12.6183 13.4128 12.3839 13.642C12.1495 13.8712 11.8315 14 11.5 14H4.5C4.16848 14 3.85054 13.8712 3.61612 13.642C3.3817 13.4128 3.25 13.1019 3.25 12.7778V4.22222C3.25 3.89807 3.3817 3.58719 3.61612 3.35798C3.85054 3.12877 4.16848 3 4.5 3H5.5'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M9.5 2H6.5C6.22386 2 6 2.22386 6 2.5V3.5C6 3.77614 6.22386 4 6.5 4H9.5C9.77614 4 10 3.77614 10 3.5V2.5C10 2.22386 9.77614 2 9.5 2Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DragElementSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DragElementSvg.tsxdeleted file mode 100644index 9d58ccde0f..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DragElementSvg.tsx+++ /dev/null@@ -1,12 +0,0 @@-export const DragElementSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <rect x='9' y='3' width='2' height='2' rx='0.5' fill='currentColor' />- <rect x='5' y='3' width='2' height='2' rx='0.5' fill='currentColor' />- <rect x='9' y='7' width='2' height='2' rx='0.5' fill='currentColor' />- <rect x='5' y='7' width='2' height='2' rx='0.5' fill='currentColor' />- <rect x='9' y='11' width='2' height='2' rx='0.5' fill='currentColor' />- <rect x='5' y='11' width='2' height='2' rx='0.5' fill='currentColor' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DragSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DragSvg.tsxdeleted file mode 100644index cce8d09199..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DragSvg.tsx+++ /dev/null@@ -1,12 +0,0 @@-export const DragSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <rect x='9' y='3' width='2' height='2' rx='0.5' fill='#333333' />- <rect x='5' y='3' width='2' height='2' rx='0.5' fill='#333333' />- <rect x='9' y='7' width='2' height='2' rx='0.5' fill='#333333' />- <rect x='5' y='7' width='2' height='2' rx='0.5' fill='#333333' />- <rect x='9' y='11' width='2' height='2' rx='0.5' fill='#333333' />- <rect x='5' y='11' width='2' height='2' rx='0.5' fill='#333333' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DropDownShowSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DropDownShowSvg.tsxdeleted file mode 100644index b3956a77d1..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/DropDownShowSvg.tsx+++ /dev/null@@ -1,10 +0,0 @@-export const DropDownShowSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M11.5757 14.5757L8.52426 11.5243C8.14629 11.1463 8.41399 10.5 8.94853 10.5H15.0515C15.586 10.5 15.8537 11.1463 15.4757 11.5243L12.4243 14.5757C12.1899 14.8101 11.8101 14.8101 11.5757 14.5757Z'- fill='currentColor'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EarthSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EarthSvg.tsxdeleted file mode 100644index f2911a940c..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EarthSvg.tsx+++ /dev/null@@ -1,21 +0,0 @@-export const EarthSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z'- stroke='currentColor'- strokeWidth='1.5'- strokeLinecap='round'- strokeLinejoin='round'- />- <path d='M5 12H19' stroke='currentColor' strokeWidth='1.5' strokeLinecap='round' strokeLinejoin='round' />- <path- d='M12.0002 5C13.7511 6.91685 14.7461 9.40442 14.8002 12C14.7461 14.5956 13.7511 17.0832 12.0002 19C10.2493 17.0832 9.25427 14.5956 9.2002 12C9.25427 9.40442 10.2493 6.91685 12.0002 5V5Z'- stroke='currentColor'- strokeWidth='1.5'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EditSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EditSvg.tsxdeleted file mode 100644index 7174c1c373..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EditSvg.tsx+++ /dev/null@@ -1,13 +0,0 @@-export const EditSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M8 13H14' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path- d='M10.8849 3.36289C11.1173 3.13054 11.4324 3 11.761 3C11.9237 3 12.0848 3.03205 12.2351 3.09431C12.3855 3.15658 12.5221 3.24784 12.6371 3.36289C12.7522 3.47794 12.8434 3.61453 12.9057 3.76485C12.968 3.91517 13 4.07629 13 4.23899C13 4.4017 12.968 4.56281 12.9057 4.71314C12.8434 4.86346 12.7522 5.00004 12.6371 5.11509L5.33627 12.4159L3 13L3.58407 10.6637L10.8849 3.36289Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EditorCheckSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EditorCheckSvg.tsxdeleted file mode 100644index c784aa0be6..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EditorCheckSvg.tsx+++ /dev/null@@ -1,13 +0,0 @@-export const EditorCheckSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <rect x='2' y='2' width='12' height='12' rx='4' fill={'var(--fill-default)'} />- <path- d='M6 8L7.61538 9.5L10.5 6.5'- stroke={'var(--content-on-fill)'}- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EditorUncheckSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EditorUncheckSvg.tsxdeleted file mode 100644index 3f62b51eac..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EditorUncheckSvg.tsx+++ /dev/null@@ -1,7 +0,0 @@-export const EditorUncheckSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <rect x='2.5' y='2.5' width='11' height='11' rx='3.5' stroke={'var(--line-border)'} />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EyeClosedSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EyeClosedSvg.tsxdeleted file mode 100644index d4d50668d3..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EyeClosedSvg.tsx+++ /dev/null@@ -1,13 +0,0 @@-export const EyeClosedSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- fillRule='evenodd'- clipRule='evenodd'- d='M7.68372 17.3771C8.88359 18.1747 10.3278 18.75 12.0001 18.75C15.7261 18.75 18.32 15.8941 19.6011 14.0863C20.4933 12.8272 20.4933 11.1728 19.6011 9.91375C19.1009 9.208 18.4007 8.34252 17.5112 7.54957L16.4489 8.61191C17.236 9.30133 17.8836 10.0844 18.3772 10.781C18.9013 11.5205 18.9013 12.4795 18.3772 13.219C17.1411 14.9633 14.9396 17.25 12.0001 17.25C10.794 17.25 9.71218 16.865 8.77028 16.2905L7.68372 17.3771ZM7.55137 15.3881L6.48903 16.4504C5.5995 15.6575 4.8993 14.792 4.39916 14.0863C3.50692 12.8272 3.50692 11.1728 4.39916 9.91375C5.68028 8.10595 8.27417 5.25 12.0001 5.25C13.6724 5.25 15.1167 5.82531 16.3165 6.62294L15.23 7.7095C14.2881 7.13497 13.2062 6.75 12.0001 6.75C9.06064 6.75 6.85914 9.03672 5.62301 10.781C5.09897 11.5205 5.09897 12.4795 5.62301 13.219C6.11667 13.9156 6.76428 14.6987 7.55137 15.3881ZM10.4887 14.572C10.9279 14.8431 11.4439 15 12.0002 15C13.641 15 14.932 13.6349 14.932 12C14.932 11.4625 14.7925 10.9542 14.5468 10.5139L13.3964 11.6644C13.4197 11.7717 13.432 11.884 13.432 12C13.432 12.8503 12.7694 13.5 12.0002 13.5C11.868 13.5 11.739 13.4808 11.616 13.4448L10.4887 14.572ZM10.6039 12.3355L9.45347 13.486C9.20788 13.0458 9.06836 12.5375 9.06836 12C9.06836 10.3651 10.3594 9 12.0002 9C12.5564 9 13.0724 9.15686 13.5115 9.42792L12.3842 10.5552C12.2612 10.5192 12.1323 10.5 12.0002 10.5C11.231 10.5 10.5684 11.1497 10.5684 12C10.5684 12.116 10.5807 12.2282 10.6039 12.3355Z'- fill='currentColor'- />- <path d='M17.5 5L5 17.5' stroke='currentColor' strokeWidth='1.5' strokeLinecap='round' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EyeOpenSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EyeOpenSvg.tsxdeleted file mode 100644index c775d233cc..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/EyeOpenSvg.tsx+++ /dev/null@@ -1,20 +0,0 @@-export const EyeOpenSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M5.01097 13.6526C4.30282 12.6533 4.30282 11.3467 5.01097 10.3474C6.26959 8.57133 8.66728 6 12 6C15.3327 6 17.7304 8.57133 18.989 10.3474C19.6972 11.3467 19.6972 12.6533 18.989 13.6526C17.7304 15.4287 15.3327 18 12 18C8.66728 18 6.26959 15.4287 5.01097 13.6526Z'- stroke='currentColor'- strokeWidth='1.5'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M11.9999 14.25C13.2049 14.25 14.1818 13.2426 14.1818 12C14.1818 10.7574 13.2049 9.75 11.9999 9.75C10.7949 9.75 9.81812 10.7574 9.81812 12C9.81812 13.2426 10.7949 14.25 11.9999 14.25Z'- stroke='currentColor'- strokeWidth='1.5'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/FilterSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/FilterSvg.tsxdeleted file mode 100644index d46600610a..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/FilterSvg.tsx+++ /dev/null@@ -1,12 +0,0 @@-export const FilterSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M12.889 3.80282C13.1395 3.47366 12.9048 3 12.4911 3H3.50889C3.09524 3 2.8605 3.47366 3.11102 3.80282L6.79787 8.64692C6.86412 8.73397 6.9 8.84035 6.9 8.94974V11.4836C6.9 11.6652 6.99845 11.8325 7.15718 11.9207L8.35718 12.5873C8.69044 12.7725 9.1 12.5315 9.1 12.1502V8.94974C9.1 8.84035 9.13588 8.73397 9.20213 8.64692L12.889 3.80282Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/FullView.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/FullView.tsxdeleted file mode 100644index aa79420d5a..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/FullView.tsx+++ /dev/null@@ -1,10 +0,0 @@-export const FullView = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M6 13H3V10' stroke='var(--text-title)' strokeLinecap='round' strokeLinejoin='round' />- <path d='M10 3H13V6' stroke='var(--text-title)' strokeLinecap='round' strokeLinejoin='round' />- <path d='M3 13L7 9' stroke='var(--text-title)' strokeLinecap='round' strokeLinejoin='round' />- <path d='M13 3L9 7' stroke='var(--text-title)' strokeLinecap='round' strokeLinejoin='round' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/GridSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/GridSvg.tsxdeleted file mode 100644index 5fbf0d86d7..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/GridSvg.tsx+++ /dev/null@@ -1,30 +0,0 @@-export const GridSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M6 2H3C2.44772 2 2 2.44772 2 3V6C2 6.55228 2.44772 7 3 7H6C6.55228 7 7 6.55228 7 6V3C7 2.44772 6.55228 2 6 2Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M13 2H10C9.44772 2 9 2.44772 9 3V6C9 6.55228 9.44772 7 10 7H13C13.5523 7 14 6.55228 14 6V3C14 2.44772 13.5523 2 13 2Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M13 9H10C9.44772 9 9 9.44772 9 10V13C9 13.5523 9.44772 14 10 14H13C13.5523 14 14 13.5523 14 13V10C14 9.44772 13.5523 9 13 9Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M6 9H3C2.44772 9 2 9.44772 2 10V13C2 13.5523 2.44772 14 3 14H6C6.55228 14 7 13.5523 7 13V10C7 9.44772 6.55228 9 6 9Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/GroupByFieldSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/GroupByFieldSvg.tsxdeleted file mode 100644index 960e1bad2a..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/GroupByFieldSvg.tsx+++ /dev/null@@ -1,26 +0,0 @@-export const GroupByFieldSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M10 2H13C13.5523 2 14 2.44772 14 3V6'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <path d='M6 2H3C2.44772 2 2 2.44772 2 3V6' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path- d='M6 14H3C2.44772 14 2 13.5523 2 13V10'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M10 14H13C13.5523 14 14 13.5523 14 13V10'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <rect x='6' y='6' width='4' height='4' rx='1' stroke='currentColor' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/GroupBySvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/GroupBySvg.tsxdeleted file mode 100644index 7ac7e37303..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/GroupBySvg.tsx+++ /dev/null@@ -1,31 +0,0 @@-export const GroupBySvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M10 2H13C13.5523 2 14 2.44772 14 3V6'- stroke='var(--text-title)'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M6 2H3C2.44772 2 2 2.44772 2 3V6'- stroke='var(--text-title)'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M6 14H3C2.44772 14 2 13.5523 2 13V10'- stroke='var(--text-title)'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M10 14H13C13.5523 14 14 13.5523 14 13V10'- stroke='var(--text-title)'- strokeLinecap='round'- strokeLinejoin='round'- />- <rect x='6' y='6' width='4' height='4' rx='1' stroke='var(--text-title)' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/HideMenuSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/HideMenuSvg.tsxdeleted file mode 100644index af69b2ab5c..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/HideMenuSvg.tsx+++ /dev/null@@ -1,10 +0,0 @@-export const HideMenuSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M9 9L6 12L9 15' stroke='currentColor' strokeWidth='1.5' strokeLinecap='round' strokeLinejoin='round' />- <rect width='5' height='1.5' rx='0.75' transform='matrix(-1 0 0 1 18 8.25)' fill='currentColor' />- <rect width='7' height='1.5' rx='0.75' transform='matrix(-1 0 0 1 18 11.25)' fill='currentColor' />- <rect width='5' height='1.5' rx='0.75' transform='matrix(-1 0 0 1 18 14.25)' fill='currentColor' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ImageSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ImageSvg.tsxdeleted file mode 100644index 488c170656..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ImageSvg.tsx+++ /dev/null@@ -1,9 +0,0 @@-export const ImageSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <rect x='1.5' y='3' width='13' height='10' rx='1.5' stroke='currentColor' />- <circle cx='5.5' cy='6.5' r='1' stroke='currentColor' />- <path d='M5 13L10.112 8.45603C10.4211 8.18126 10.8674 8.12513 11.235 8.31482L14.5 10' stroke='currentColor' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/InformationSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/InformationSvg.tsxdeleted file mode 100644index 8217fe0f82..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/InformationSvg.tsx+++ /dev/null@@ -1,14 +0,0 @@-export const InformationSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M8 14.0039C11.3137 14.0039 14 11.3176 14 8.00391C14 4.6902 11.3137 2.00391 8 2.00391C4.68629 2.00391 2 4.6902 2 8.00391C2 11.3176 4.68629 14.0039 8 14.0039Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <rect x='7.5' y='7.00391' width='1' height='4' rx='0.5' fill='currentColor' />- <rect x='7.5' y='5.00391' width='1' height='1' rx='0.5' fill='currentColor' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/LogoutSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/LogoutSvg.tsxdeleted file mode 100644index 86e69c08c1..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/LogoutSvg.tsx+++ /dev/null@@ -1,14 +0,0 @@-export const LogoutSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M6 13H4C3.73478 13 3.48043 12.8829 3.29289 12.6746C3.10536 12.4662 3 12.1836 3 11.8889V4.11111C3 3.81643 3.10536 3.53381 3.29289 3.32544C3.48043 3.11706 3.73478 3 4 3H6'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <path d='M10 11L13 8L10 5' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path d='M13 8L7 8' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/MoreSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/MoreSvg.tsxdeleted file mode 100644index 20dd851302..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/MoreSvg.tsx+++ /dev/null@@ -1,10 +0,0 @@-export const MoreSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M9.39568 7.6963L6.91032 5.56599C6.65085 5.34358 6.25 5.52795 6.25 5.86969L6.25 10.1303C6.25 10.4721 6.65085 10.6564 6.91032 10.434L9.39568 8.3037C9.58192 8.14406 9.58192 7.85594 9.39568 7.6963Z'- fill='currentColor'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/MultiSelectTypeSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/MultiSelectTypeSvg.tsxdeleted file mode 100644index ec9c56d868..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/MultiSelectTypeSvg.tsx+++ /dev/null@@ -1,12 +0,0 @@-export const MultiSelectTypeSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M6.5 4L12.5 4' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path d='M6.5 8H12.5' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path d='M6.5 12H12.5' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <circle cx='4' cy='4' r='0.5' fill='currentColor' />- <circle cx='4' cy='8' r='0.5' fill='currentColor' />- <circle cx='4' cy='12' r='0.5' fill='currentColor' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/NumberTypeSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/NumberTypeSvg.tsxdeleted file mode 100644index b41a8704e4..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/NumberTypeSvg.tsx+++ /dev/null@@ -1,10 +0,0 @@-export const NumberTypeSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M2.201 6.4H3.001V12H2.081V7.384L0.953 7.704L0.729 6.92L2.201 6.4ZM3.91156 12V11.1L6.35156 8.61C6.9449 8.01667 7.24156 7.50333 7.24156 7.07C7.24156 6.73 7.13823 6.46667 6.93156 6.28C6.73156 6.08667 6.4749 5.99 6.16156 5.99C5.5749 5.99 5.14156 6.28 4.86156 6.86L3.89156 6.29C4.11156 5.82333 4.42156 5.47 4.82156 5.23C5.22156 4.99 5.6649 4.87 6.15156 4.87C6.7649 4.87 7.29156 5.06333 7.73156 5.45C8.17156 5.83667 8.39156 6.36333 8.39156 7.03C8.39156 7.74333 7.9949 8.50333 7.20156 9.31L5.62156 10.89H8.52156V12H3.91156ZM12.9025 7.032C13.5105 7.176 14.0025 7.46 14.3785 7.884C14.7625 8.3 14.9545 8.824 14.9545 9.456C14.9545 10.296 14.6705 10.956 14.1025 11.436C13.5345 11.916 12.8385 12.156 12.0145 12.156C11.3745 12.156 10.7985 12.008 10.2865 11.712C9.78253 11.416 9.41853 10.984 9.19453 10.416L10.3705 9.732C10.6185 10.452 11.1665 10.812 12.0145 10.812C12.4945 10.812 12.8745 10.692 13.1545 10.452C13.4345 10.204 13.5745 9.872 13.5745 9.456C13.5745 9.04 13.4345 8.712 13.1545 8.472C12.8745 8.232 12.4945 8.112 12.0145 8.112H11.7025L11.1505 7.284L12.9625 4.896H9.44653V3.6H14.6065V4.776L12.9025 7.032Z'- fill='currentColor'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/PropertiesSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/PropertiesSvg.tsxdeleted file mode 100644index cef2527c72..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/PropertiesSvg.tsx+++ /dev/null@@ -1,18 +0,0 @@-export const PropertiesSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M11 2H5C3.89543 2 3 2.89543 3 4V12C3 13.1046 3.89543 14 5 14H11C12.1046 14 13 13.1046 13 12V4C13 2.89543 12.1046 2 11 2Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M11 8H5C3.89543 8 3 8.89543 3 10V12C3 13.1046 3.89543 14 5 14H11C12.1046 14 13 13.1046 13 12V10C13 8.89543 12.1046 8 11 8Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SearchSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SearchSvg.tsxdeleted file mode 100644index 28717c95a0..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SearchSvg.tsx+++ /dev/null@@ -1,18 +0,0 @@-export const SearchSvg = () => {- return (- <svg- xmlns='http://www.w3.org/2000/svg'- width='100%'- height='100%'- viewBox='0 0 24 24'- fill='none'- stroke='currentColor'- strokeWidth='2'- strokeLinecap='round'- strokeLinejoin='round'- >- <circle cx='11' cy='11' r='8'></circle>- <line x1='21' y1='21' x2='16.65' y2='16.65'></line>- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SettingsSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SettingsSvg.tsxdeleted file mode 100644index 84f449bc27..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SettingsSvg.tsx+++ /dev/null@@ -1,12 +0,0 @@-export const SettingsSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M10.5221 3.21932C11.4366 2.6913 12.5634 2.6913 13.4779 3.21932L18.8653 6.32972C19.7799 6.85774 20.3433 7.83356 20.3433 8.88959V15.1104C20.3433 16.1664 19.7799 17.1423 18.8653 17.6703L13.4779 20.7807C12.5634 21.3087 11.4366 21.3087 10.5221 20.7807L5.13468 17.6703C4.22012 17.1423 3.65673 16.1664 3.65673 15.1104V8.88959C3.65673 7.83356 4.22012 6.85774 5.13467 6.32972L10.5221 3.21932Z'- stroke='currentColor'- strokeWidth='1.5'- />- <circle cx='12' cy='12' r='3.75' stroke='currentColor' strokeWidth='1.5' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ShareSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ShareSvg.tsxdeleted file mode 100644index 217a995f62..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ShareSvg.tsx+++ /dev/null@@ -1,18 +0,0 @@-export const ShareSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M7 8.91521C7.21574 9.22582 7.49099 9.48283 7.80707 9.66881C8.12315 9.85479 8.47268 9.96538 8.83194 9.99309C9.1912 10.0208 9.5518 9.96497 9.88926 9.8294C10.2267 9.69383 10.5332 9.48169 10.7878 9.20736L12.2949 7.58431C12.7525 7.07413 13.0056 6.39083 12.9999 5.68156C12.9942 4.9723 12.73 4.29384 12.2643 3.7923C11.7986 3.29075 11.1686 3.00627 10.51 3.0001C9.85142 2.99394 9.21693 3.26659 8.7432 3.75935L7.87913 4.68448'- stroke='#333333'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M9 7.08479C8.78426 6.77418 8.50901 6.51717 8.19293 6.33119C7.87685 6.14521 7.52732 6.03462 7.16806 6.00691C6.8088 5.9792 6.4482 6.03503 6.11074 6.1706C5.77327 6.30617 5.46683 6.51831 5.21218 6.79264L3.7051 8.41569C3.24755 8.92587 2.99437 9.60918 3.00009 10.3184C3.00582 11.0277 3.26998 11.7062 3.73569 12.2077C4.2014 12.7092 4.8314 12.9937 5.48999 12.9999C6.14858 13.0061 6.78307 12.7334 7.2568 12.2407L8.11584 11.3155'- stroke='#333333'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ShowMenuSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ShowMenuSvg.tsxdeleted file mode 100644index 736e9a8b50..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/ShowMenuSvg.tsx+++ /dev/null@@ -1,10 +0,0 @@-export const ShowMenuSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M10 5L13 8L10 11' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <rect x='3' y='5' width='4' height='1' rx='0.5' fill='currentColor' />- <rect x='3' y='7.5' width='6' height='1' rx='0.5' fill='currentColor' />- <rect x='3' y='10' width='4' height='1' rx='0.5' fill='currentColor' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SingleSelectTypeSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SingleSelectTypeSvg.tsxdeleted file mode 100644index 82b847681d..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SingleSelectTypeSvg.tsx+++ /dev/null@@ -1,16 +0,0 @@-export const SingleSelectTypeSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M7.78787 8.78787L6.51213 7.51213C6.32314 7.32314 6.45699 7 6.72426 7H9.27574C9.54301 7 9.67686 7.32314 9.48787 7.51213L8.21213 8.78787C8.09497 8.90503 7.90503 8.90503 7.78787 8.78787Z'- fill='currentColor'- />- <path- d='M8 13C10.7614 13 13 10.7614 13 8C13 5.23858 10.7614 3 8 3C5.23858 3 3 5.23858 3 8C3 10.7614 5.23858 13 8 13Z'- stroke='currentColor'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SkipLeftSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SkipLeftSvg.tsxdeleted file mode 100644index 4e84c77e06..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SkipLeftSvg.tsx+++ /dev/null@@ -1,9 +0,0 @@-export const SkipLeftSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M3 11.7778L3 4' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path d='M9.5 4.5L6 8L9.5 11.5' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path d='M6 8L13 8' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SkipRightSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SkipRightSvg.tsxdeleted file mode 100644index 6bcf2ebe7e..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SkipRightSvg.tsx+++ /dev/null@@ -1,9 +0,0 @@-export const SkipRightSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M13 11.7778L13 4' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path d='M6.5 4.5L10 8L6.5 11.5' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- <path d='M10 8L3 8' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SortAscSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SortAscSvg.tsxdeleted file mode 100644index 7304ef7cbb..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SortAscSvg.tsx+++ /dev/null@@ -1,22 +0,0 @@-export const SortAscSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M11.25 7L17.25 7' stroke='currentColor' strokeWidth='1.5' strokeLinecap='round' strokeLinejoin='round' />- <path d='M11.25 12H18.75' stroke='currentColor' strokeWidth='1.5' strokeLinecap='round' strokeLinejoin='round' />- <path- d='M11.25 17L20.25 17'- stroke='currentColor'- strokeWidth='1.5'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M6.75 6V18L3.75 15'- stroke='currentColor'- strokeWidth='1.5'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SortDescSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SortDescSvg.tsxdeleted file mode 100644index c0d310b6de..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SortDescSvg.tsx+++ /dev/null@@ -1,22 +0,0 @@-export const SortDescSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path d='M11.25 7L20.25 7' stroke='currentColor' strokeWidth='1.5' strokeLinecap='round' strokeLinejoin='round' />- <path d='M11.25 12H18.75' stroke='currentColor' strokeWidth='1.5' strokeLinecap='round' strokeLinejoin='round' />- <path- d='M11.25 17L17.25 17'- stroke='currentColor'- strokeWidth='1.5'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M6.75 6V18L3.75 15'- stroke='currentColor'- strokeWidth='1.5'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SortSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SortSvg.tsxdeleted file mode 100644index 7fb7d9564f..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/SortSvg.tsx+++ /dev/null@@ -1,8 +0,0 @@-export const SortSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <rect x='2.5' y='3' width='4' height='10' rx='1' stroke='currentColor' />- <rect x='9.5' y='7' width='4' height='6' rx='1' stroke='currentColor' />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/TextTypeSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/TextTypeSvg.tsxdeleted file mode 100644index 5ace944b18..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/TextTypeSvg.tsx+++ /dev/null@@ -1,14 +0,0 @@-export const TextTypeSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M7.15625 11.8359L6.43768 9.85414H2.46662L1.74805 11.8359H0.5L3.7903 3H5.11399L8.4043 11.8359H7.15625ZM2.87003 8.75596H6.03427L4.44584 4.40112L2.87003 8.75596Z'- fill='currentColor'- />- <path- d='M14.4032 5.52454H15.5V11.8359H14.4032V10.7504C13.8569 11.5835 13.0627 12 12.0206 12C11.1381 12 10.386 11.6802 9.76403 11.0407C9.14211 10.3927 8.83114 9.60589 8.83114 8.68022C8.83114 7.75456 9.14211 6.97195 9.76403 6.3324C10.386 5.68443 11.1381 5.36045 12.0206 5.36045C13.0627 5.36045 13.8569 5.777 14.4032 6.6101V5.52454ZM12.1593 10.9397C12.798 10.9397 13.3317 10.7251 13.7603 10.2959C14.1889 9.85835 14.4032 9.31978 14.4032 8.68022C14.4032 8.04067 14.1889 7.50631 13.7603 7.07714C13.3317 6.63955 12.798 6.42076 12.1593 6.42076C11.5289 6.42076 10.9995 6.63955 10.5708 7.07714C10.1422 7.50631 9.92791 8.04067 9.92791 8.68022C9.92791 9.31978 10.1422 9.85835 10.5708 10.2959C10.9995 10.7251 11.5289 10.9397 12.1593 10.9397Z'- fill='currentColor'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/TrashSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/TrashSvg.tsxdeleted file mode 100644index cb445e4704..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/TrashSvg.tsx+++ /dev/null@@ -1,34 +0,0 @@-export const TrashSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M4.5 6.59985H6.16667H19.5'- stroke='currentColor'- strokeWidth='1.5'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M8.6665 6.6V4.8C8.6665 4.32261 8.8421 3.86477 9.15466 3.52721C9.46722 3.18964 9.89114 3 10.3332 3H13.6665C14.1085 3 14.5325 3.18964 14.845 3.52721C15.1576 3.86477 15.3332 4.32261 15.3332 4.8V6.6M17.8332 6.6V19.2C17.8332 19.6774 17.6576 20.1352 17.345 20.4728C17.0325 20.8104 16.6085 21 16.1665 21H7.83317C7.39114 21 6.96722 20.8104 6.65466 20.4728C6.3421 20.1352 6.1665 19.6774 6.1665 19.2V6.6H17.8332Z'- stroke='currentColor'- strokeWidth='1.5'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M10.3335 11.0999V16.4999'- stroke='currentColor'- strokeWidth='1.5'- strokeLinecap='round'- strokeLinejoin='round'- />- <path- d='M13.6665 11.0999V16.4999'- stroke='currentColor'- strokeWidth='1.5'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/UrlTypeSvg.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/UrlTypeSvg.tsxdeleted file mode 100644index 0c7a268ec3..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/svg/UrlTypeSvg.tsx+++ /dev/null@@ -1,13 +0,0 @@-export const UrlTypeSvg = () => {- return (- <svg width='100%' height='100%' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'>- <path- d='M13 7.688L8.27223 12.1469C7.69304 12.6931 6.90749 13 6.0884 13C5.26931 13 4.48376 12.6931 3.90457 12.1469C3.32538 11.6006 3 10.8598 3 10.0873C3 9.31474 3.32538 8.57387 3.90457 8.02763L8.63234 3.56875C9.01847 3.20459 9.54216 3 10.0882 3C10.6343 3 11.158 3.20459 11.5441 3.56875C11.9302 3.93291 12.1472 4.42683 12.1472 4.94183C12.1472 5.45684 11.9302 5.95075 11.5441 6.31491L6.8112 10.7738C6.61814 10.9559 6.35629 11.0582 6.08326 11.0582C5.81022 11.0582 5.54838 10.9559 5.35531 10.7738C5.16225 10.5917 5.05379 10.3448 5.05379 10.0873C5.05379 9.82975 5.16225 9.58279 5.35531 9.40071L9.72297 5.28632'- stroke='currentColor'- strokeWidth='0.9989'- strokeLinecap='round'- strokeLinejoin='round'- />- </svg>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/view_title/ViewBanner.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/view_title/ViewBanner.tsxindex 2888c07231..e815597456 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/view_title/ViewBanner.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/view_title/ViewBanner.tsx@@ -19,10 +19,10 @@ function ViewBanner({onUpdateCover?: (cover?: PageCover) => void;}) {return (- <div className={'view-banner flex w-full flex-col'}>+ <div className={'view-banner flex w-full flex-col items-center overflow-hidden'}>{showCover && cover && <ViewCover cover={cover} onUpdateCover={onUpdateCover} />}- <div className={`relative min-h-[65px] ${showCover ? 'px-16' : ''} pt-4`}>+ <div className={`relative min-h-[65px] ${showCover ? 'w-[964px] min-w-0 max-w-full px-16' : ''} pt-4`}><divstyle={{display: icon ? 'flex' : 'none',diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/view_title/cover/ViewCoverActions.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/view_title/cover/ViewCoverActions.tsxindex 97615804fb..fbf8063f44 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/view_title/cover/ViewCoverActions.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/view_title/cover/ViewCoverActions.tsx@@ -10,30 +10,32 @@ function ViewCoverActions(const { t } = useTranslation();return (- <div ref={ref} className={`absolute ${show ? 'flex' : 'opacity-0'} bottom-4 right-10 items-center space-x-2 p-2`}>- <div className={'flex items-center space-x-2'}>- <Button- onClick={onClickChange}- className={'min-w-0 p-1.5'}- size={'small'}- variant={'contained'}- color={'inherit'}- >- {t('document.plugins.cover.changeCover')}- </Button>- <Button- variant={'contained'}- size={'small'}- className={'min-h-0 min-w-0 p-1.5'}- sx={{- '.MuiButton-startIcon': {- marginRight: '0px',- },- }}- onClick={onRemove}- color={'inherit'}- startIcon={<DeleteIcon />}- />+ <div className={'absolute bottom-0 left-1/2 w-[964px] min-w-0 max-w-full -translate-x-1/2 transform'}>+ <div ref={ref} className={`absolute ${show ? 'flex' : 'opacity-0'} bottom-4 right-0 items-center space-x-2 p-2`}>+ <div className={'flex items-center space-x-2'}>+ <Button+ onClick={onClickChange}+ className={'min-w-0 p-1.5'}+ size={'small'}+ variant={'contained'}+ color={'inherit'}+ >+ {t('document.plugins.cover.changeCover')}+ </Button>+ <Button+ variant={'contained'}+ size={'small'}+ className={'min-h-0 min-w-0 p-1.5'}+ sx={{+ '.MuiButton-startIcon': {+ marginRight: '0px',+ },+ }}+ onClick={onRemove}+ color={'inherit'}+ startIcon={<DeleteIcon />}+ />+ </div></div></div>);diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/auth/ProtectedRoutes.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/auth/ProtectedRoutes.tsxindex 341eff871e..0d776bada5 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/auth/ProtectedRoutes.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/auth/ProtectedRoutes.tsx@@ -2,11 +2,11 @@ import { Outlet } from 'react-router-dom';import { useAuth } from './auth.hooks';import Layout from '$app/components/layout/Layout';import { useCallback, useEffect, useState } from 'react';-import { GetStarted } from '$app/components/auth/get_started/GetStarted';-import { AppflowyLogo } from '../_shared/svg/AppflowyLogo';+import { Welcome } from '$app/components/auth/Welcome';+import { ReactComponent as AppflowyLogo } from '$app/assets/logo.svg';export const ProtectedRoutes = () => {- const { currentUser, checkUser } = useAuth();+ const { currentUser, checkUser, subscribeToUser } = useAuth();const [isLoading, setIsLoading] = useState(true);const checkUserStatus = useCallback(async () => {@@ -18,6 +18,12 @@ export const ProtectedRoutes = () => {void checkUserStatus();}, [checkUserStatus]);+ useEffect(() => {+ if (currentUser.isAuthenticated) {+ return subscribeToUser();+ }+ }, [currentUser.isAuthenticated, subscribeToUser]);+if (isLoading) {// It's better to make a fading effect to disappear the loading pagereturn <StartLoading />;@@ -30,7 +36,7 @@ const StartLoading = () => {return (<div className='flex h-screen w-full flex-col items-center justify-center'><div className='h-40 w-40 justify-center'>- <AppflowyLogo />+ <AppflowyLogo className={'h-24 w-24'} /></div></div>);@@ -44,6 +50,6 @@ const SplashScreen = ({ isAuthenticated }: { isAuthenticated: boolean }) => {</Layout>);} else {- return <GetStarted />;+ return <Welcome />;}};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/auth/Welcome.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/auth/Welcome.tsxnew file mode 100644index 0000000000..2dd0401412--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/auth/Welcome.tsx@@ -0,0 +1,57 @@+import { ReactComponent as AppflowyLogo } from '$app/assets/logo.svg';+import Button from '@mui/material/Button';+import { useTranslation } from 'react-i18next';+import { LoginButtonGroup } from '$app/components/_shared/login';+import { useNavigate } from 'react-router-dom';+import { useAuth } from '$app/components/auth/auth.hooks';++export const Welcome = () => {+ const { signInAsAnonymous } = useAuth();+ const { t } = useTranslation();+ const navigate = useNavigate();++ return (+ <>+ <form onSubmit={(e) => e.preventDefault()} method='POST'>+ <div className='relative flex h-screen w-screen flex-col items-center justify-center gap-12 bg-bg-body text-center text-text-title text-text-title'>+ <div className='flex justify-center' id='appflowy'>+ <AppflowyLogo className={'h-16 w-16'} />+ </div>++ <div>+ <span className='text-2xl font-semibold leading-9'>+ {t('welcomeTo')} {t('appName')}+ </span>+ </div>++ <div id='Get-Started' className='flex w-[340px] flex-col gap-4 ' aria-label='Get-Started'>+ <Button+ size={'large'}+ color={'inherit'}+ className={'border-transparent bg-line-divider py-3'}+ variant={'outlined'}+ onClick={async () => {+ try {+ await signInAsAnonymous();+ navigate('/');+ } catch (e) {+ console.error(e);+ }+ }}+ >+ {t('signIn.loginStartWithAnonymous')}+ </Button>+ <div className={'flex w-full items-center justify-center gap-2 text-sm'}>+ <div className={'h-px flex-1 bg-line-divider'} />+ {t('signIn.or')}+ <div className={'h-px flex-1 bg-line-divider'} />+ </div>+ <div className={'w-w-full flex items-center justify-center gap-2 text-sm'}>+ <LoginButtonGroup />+ </div>+ </div>+ </div>+ </form>+ </>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/auth/auth.hooks.ts b/frontend/appflowy_tauri/src/appflowy_app/components/auth/auth.hooks.tsindex b9342fb210..56e44a4765 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/auth/auth.hooks.ts+++ b/frontend/appflowy_tauri/src/appflowy_app/components/auth/auth.hooks.ts@@ -1,29 +1,55 @@import { currentUserActions } from '$app_reducers/current-user/slice';-import { UserProfilePB } from '@/services/backend/events/flowy-user';+import { AuthenticatorPB, UserNotification, UserProfilePB } from '@/services/backend/events/flowy-user';import { UserService } from '$app/application/user/user.service';import { AuthService } from '$app/application/user/auth.service';import { useAppSelector, useAppDispatch } from '$app/stores/store';import { getCurrentWorkspaceSetting } from '$app/application/folder/workspace.service';import { useCallback } from 'react';+import { subscribeNotifications } from '$app/application/notification';+import { nanoid } from 'nanoid';export const useAuth = () => {const dispatch = useAppDispatch();const currentUser = useAppSelector((state) => state.currentUser);+ // Subscribe to user update events+ const subscribeToUser = useCallback(() => {+ const unsubscribePromise = subscribeNotifications({+ [UserNotification.DidUpdateUserProfile]: async (changeset) => {+ dispatch(+ currentUserActions.updateUser({+ email: changeset.email,+ displayName: changeset.name,+ iconUrl: changeset.icon_url,+ })+ );+ },+ });++ return () => {+ void unsubscribePromise.then((fn) => fn());+ };+ }, [dispatch]);++ // Check if the user is authenticatedconst checkUser = useCallback(async () => {const userProfile = await UserService.getUserProfile();if (!userProfile) return;const workspaceSetting = await getCurrentWorkspaceSetting();+ const isLocal = userProfile.authenticator === AuthenticatorPB.Local;+dispatch(currentUserActions.checkUser({id: userProfile.id,token: userProfile.token,email: userProfile.email,displayName: userProfile.name,+ iconUrl: userProfile.icon_url,isAuthenticated: true,workspaceSetting: workspaceSetting,+ isLocal,}));@@ -38,18 +64,16 @@ export const useAuth = () => {// contains the latest visiting page and the current workspace data.const workspaceSetting = await getCurrentWorkspaceSetting();- if (workspaceSetting) {- dispatch(- currentUserActions.updateUser({- id: userProfile.id,- token: userProfile.token,- email: userProfile.email,- displayName: userProfile.name,- isAuthenticated: true,- workspaceSetting: workspaceSetting,- })- );- }+ dispatch(+ currentUserActions.updateUser({+ id: userProfile.id,+ token: userProfile.token,+ email: userProfile.email,+ displayName: userProfile.name,+ isAuthenticated: true,+ workspaceSetting,+ })+ );return userProfile;},@@ -80,5 +104,13 @@ export const useAuth = () => {dispatch(currentUserActions.logout());}, [dispatch]);- return { currentUser, checkUser, register, login, logout };+ const signInAsAnonymous = useCallback(async () => {+ const fakeEmail = nanoid(8) + '@appflowy.io';+ const fakePassword = 'AppFlowy123@';+ const fakeName = 'Me';++ await register(fakeEmail, fakePassword, fakeName);+ }, [register]);++ return { currentUser, checkUser, register, login, logout, subscribeToUser, signInAsAnonymous };};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/auth/get_started/GetStarted.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/auth/get_started/GetStarted.tsxdeleted file mode 100644index 6bb693768a..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/auth/get_started/GetStarted.tsx+++ /dev/null@@ -1,33 +0,0 @@-import { AppflowyLogo } from '../../_shared/svg/AppflowyLogo';-import Button from '@mui/material/Button';-import { useLogin } from '$app/components/auth/get_started/useLogin';-import { useTranslation } from 'react-i18next';--export const GetStarted = () => {- const { onAutoSignInClick } = useLogin();- const { t } = useTranslation();-- return (- <>- <form onSubmit={(e) => e.preventDefault()} method='POST'>- <div className='relative flex h-screen w-screen flex-col items-center justify-center gap-12 bg-bg-body text-center text-text-title'>- <div className='flex h-10 w-10 justify-center' id='appflowy'>- <AppflowyLogo />- </div>-- <div>- <span className='text-2xl font-semibold leading-9'>- {t('signIn.loginTitle').replace('@:appName', 'AppFlowy')}- </span>- </div>-- <div id='Get-Started' className='flex w-full max-w-[340px] flex-col ' aria-label='Get-Started'>- <Button size={'large'} variant={'contained'} onClick={() => onAutoSignInClick()}>- {t('signUp.getStartedText')}- </Button>- </div>- </div>- </form>- </>- );-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/auth/get_started/useLogin.ts b/frontend/appflowy_tauri/src/appflowy_app/components/auth/get_started/useLogin.tsdeleted file mode 100644index 15d607e812..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/auth/get_started/useLogin.ts+++ /dev/null@@ -1,85 +0,0 @@-import { useState } from 'react';-import { currentUserActions } from '$app_reducers/current-user/slice';-import { useAppDispatch } from '$app/stores/store';-import { useNavigate } from 'react-router-dom';-import { useAuth } from '../auth.hooks';-import { nanoid } from 'nanoid';--export const useLogin = () => {- const [email, setEmail] = useState('');- const [password, setPassword] = useState('');- const [showPassword, setShowPassword] = useState(false);- const appDispatch = useAppDispatch();- const navigate = useNavigate();- const { login, register } = useAuth();- const [authError, setAuthError] = useState(false);-- function onTogglePassword() {- setShowPassword(!showPassword);- }-- // reset error- function _setEmail(v: string) {- setAuthError(false);- setEmail(v);- }-- function _setPassword(v: string) {- setAuthError(false);- setPassword(v);- }-- async function onAutoSignInClick() {- try {- const fakeEmail = nanoid(8) + '@appflowy.io';- const fakePassword = 'AppFlowy123@';- const userProfile = await register(fakeEmail, fakePassword, 'Me');- const { id, name, token } = userProfile;-- appDispatch(- currentUserActions.updateUser({- id: id,- displayName: name,- email: email,- token: token,- isAuthenticated: true,- })- );- navigate('/');- } catch (e) {- setAuthError(true);- }- }-- async function onSignInClick() {- try {- const userProfile = await login(email, password);- const { id, name, token } = userProfile;-- appDispatch(- currentUserActions.updateUser({- id: id,- displayName: name,- email: email,- token: token,- isAuthenticated: true,- })- );- navigate('/');- } catch (e) {- setAuthError(true);- }- }-- return {- showPassword,- onTogglePassword,- onSignInClick,- onAutoSignInClick,- email,- setEmail: _setEmail,- password,- setPassword: _setPassword,- authError,- };-};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/date/TimeFormat.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/date/TimeFormat.tsxindex e95ac20c8f..89a9ad1756 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/date/TimeFormat.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/date/TimeFormat.tsx@@ -22,7 +22,7 @@ function TimeFormat({ value, onChange }: Props) {return (<div className={'flex w-full items-center justify-between gap-2'}><div className={'flex-1'}>{title}</div>- {value === option && <SelectCheckSvg />}+ {value === option && <SelectCheckSvg className={'text-content-blue-400'} />}</div>);},diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/number/NumberFormatMenu.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/number/NumberFormatMenu.tsxindex 13571244b3..0f9be6a21a 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/number/NumberFormatMenu.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/number/NumberFormatMenu.tsx@@ -29,7 +29,7 @@ function NumberFormatMenu({return (<><span className={'flex-1'}>{formatText(format)}</span>- {value === format && <SelectCheckSvg />}+ {value === format && <SelectCheckSvg className={'text-content-blue-400'} />}</>);},diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/select/SelectOptionModifyMenu.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/select/SelectOptionModifyMenu.tsxindex 63b5872c2e..6c6cf37aae 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/select/SelectOptionModifyMenu.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/select/SelectOptionModifyMenu.tsx@@ -156,7 +156,7 @@ export const SelectOptionModifyMenu: FC<SelectOptionMenuProps> = ({ fieldId, opt><span className={`mr-2 inline-flex h-4 w-4 rounded-full ${SelectOptionColorMap[color]}`} /><span className='flex-1'>{t(`grid.selectOption.${SelectOptionColorTextMap[color]}`)}</span>- {option.color === color && <SelectCheckSvg />}+ {option.color === color && <SelectCheckSvg className={'text-content-blue-400'} />}</MenuItem>))}</MenuList>diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/select/select_cell_actions/SelectOptionItem.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/select/select_cell_actions/SelectOptionItem.tsxindex 27461932b3..2a855a4085 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/select/select_cell_actions/SelectOptionItem.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/database/components/field_types/select/select_cell_actions/SelectOptionItem.tsx@@ -32,7 +32,7 @@ export const SelectOptionItem: FC<SelectOptionItemProps> = ({ isSelected, fieldI<div className='flex-1'><Tag key={option.id} size='small' color={option.color} label={option.name} /></div>- {isSelected && !hovered && <SelectCheckSvg />}+ {isSelected && !hovered && <SelectCheckSvg className={'text-content-blue-400'} />}{hovered && (<IconButton onClick={handleClick}><DetailsSvg className='text-base' />diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/database/components/filter/select_filter/SelectFilter.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/database/components/filter/select_filter/SelectFilter.tsxindex 3bf0453256..093c1e22b9 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/database/components/filter/select_filter/SelectFilter.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/database/components/filter/select_filter/SelectFilter.tsx@@ -32,7 +32,7 @@ function SelectFilter({ onClose, filter, field, onChange }: Props) {content: (<div className={'flex w-full items-center justify-between px-2'}><Tag size='small' color={option.color} label={option.name} />- {filter.data.optionIds?.includes(option.id) && <SelectCheckSvg />}+ {filter.data.optionIds?.includes(option.id) && <SelectCheckSvg className={'text-content-blue-400'} />}</div>),};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/database/components/property/property_type/PropertyTypeMenu.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/database/components/property/property_type/PropertyTypeMenu.tsxindex 890a4e2a33..e3021249ee 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/database/components/property/property_type/PropertyTypeMenu.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/database/components/property/property_type/PropertyTypeMenu.tsx@@ -39,7 +39,7 @@ export const PropertyTypeMenu: FC<<span className='flex-1 font-medium'><PropertyTypeText type={type} /></span>- {type === field.type && <SelectCheckSvg />}+ {type === field.type && <SelectCheckSvg className={'text-content-blue-400'} />}</>);},diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/editor/components/inline_nodes/inline_formula/FormulaEditPopover.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/editor/components/inline_nodes/inline_formula/FormulaEditPopover.tsxindex 8f85a24d61..c60d7af40e 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/editor/components/inline_nodes/inline_formula/FormulaEditPopover.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/editor/components/inline_nodes/inline_formula/FormulaEditPopover.tsx@@ -71,7 +71,7 @@ function FormulaEditPopover({/><Tooltip placement={'top'} title={t('button.done')}><IconButton className={'h-[20px] w-[20px]'} size={'small'} onClick={() => onDone(text)}>- <SelectCheck />+ <SelectCheck className={'text-content-blue-400'} /></IconButton></Tooltip><Tooltip placement={'top'} title={t('button.clear')}>diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/error/ErrorModal.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/error/ErrorModal.tsxindex 30b9822fa4..6da2ee96d0 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/error/ErrorModal.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/error/ErrorModal.tsx@@ -1,24 +1,22 @@-import { InformationSvg } from '../_shared/svg/InformationSvg';-import { CloseSvg } from '../_shared/svg/CloseSvg';+import { ReactComponent as InformationSvg } from '$app/assets/information.svg';+import { ReactComponent as CloseSvg } from '$app/assets/close.svg';export const ErrorModal = ({ message, onClose }: { message: string; onClose: () => void }) => {return (<div className={'fixed inset-0 z-10 flex items-center justify-center bg-white/30 backdrop-blur-sm'}><divclassName={- 'relative flex flex-col items-center gap-8 rounded-xl border border-shade-5 bg-white px-16 py-8 shadow-md'+ 'border-shade-5 relative flex flex-col items-center gap-8 rounded-xl border bg-white px-16 py-8 shadow-md'}><buttononClick={() => onClose()}className={'absolute right-0 top-0 z-10 px-2 py-2 text-text-caption hover:text-text-title'}>- <i className={'block h-8 w-8'}>- <CloseSvg></CloseSvg>- </i>+ <CloseSvg className={'h-8 w-8'} /></button>- <div className={'h-24 w-24 text-main-alert'}>- <InformationSvg></InformationSvg>+ <div className={'text-main-alert'}>+ <InformationSvg className={'h-24 w-24'} /></div><h1 className={'text-xl'}>Oops.. something went wrong</h1><h2>{message}</h2>diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/Layout.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/layout/Layout.tsxindex 14bc179189..4647eb59a6 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/Layout.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/layout/Layout.tsx@@ -12,10 +12,6 @@ function Layout({ children }: { children: ReactNode }) {if (e.key === 'Backspace' && e.target instanceof HTMLBodyElement) {e.preventDefault();}-- if (e.key === 'Escape') {- e.preventDefault();- }};window.addEventListener('keydown', onKeyDown);diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/layout.scss b/frontend/appflowy_tauri/src/appflowy_app/components/layout/layout.scssindex 5183e4010f..3949673c89 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/layout.scss+++ b/frontend/appflowy_tauri/src/appflowy_app/components/layout/layout.scss@@ -55,4 +55,15 @@&:hover {background-color: rgba(156, 156, 156, 0.20);}+}++.theme-mode-item {+ @apply relative flex h-[72px] w-[88px] cursor-pointer items-end justify-end rounded border hover:shadow;+ background: linear-gradient(150.74deg, rgba(231, 231, 231, 0) 17.95%, #C5C5C5 95.51%);+}++[data-dark-mode="true"] {+ .theme-mode-item {+ background: linear-gradient(150.74deg, rgba(128, 125, 125, 0) 17.95%, #4d4d4d 95.51%);+ }}\ No newline at end of filediff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/side_bar/SideBar.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/layout/side_bar/SideBar.tsxindex 02e8bfb60b..5cdbfb125b 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/side_bar/SideBar.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/layout/side_bar/SideBar.tsx@@ -1,7 +1,7 @@import React, { useEffect, useRef } from 'react';import { useAppDispatch, useAppSelector } from '$app/stores/store';-import { AppflowyLogoDark } from '$app/components/_shared/svg/AppflowyLogoDark';-import { AppflowyLogoLight } from '$app/components/_shared/svg/AppflowyLogoLight';+import { ReactComponent as AppflowyLogoDark } from '$app/assets/dark-logo.svg';+import { ReactComponent as AppflowyLogoLight } from '$app/assets/light-logo.svg';import CollapseMenuButton from '$app/components/layout/collapse_menu_button/CollapseMenuButton';import Resizer from '$app/components/layout/side_bar/Resizer';import UserInfo from '$app/components/layout/side_bar/UserInfo';@@ -50,7 +50,11 @@ function SideBar() {><div className={'flex h-[100vh] flex-col overflow-hidden border-r border-line-divider bg-bg-base'}><div className={'flex h-[64px] justify-between px-4 py-5'}>- {isDark ? <AppflowyLogoDark /> : <AppflowyLogoLight />}+ {isDark ? (+ <AppflowyLogoDark className={'h-6 w-[103px]'} />+ ) : (+ <AppflowyLogoLight className={'h-6 w-[103px]'} />+ )}<CollapseMenuButton /></div><div className={'flex h-[36px] items-center'}>diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/side_bar/UserInfo.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/layout/side_bar/UserInfo.tsxindex b02620e88c..62763c670e 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/side_bar/UserInfo.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/layout/side_bar/UserInfo.tsx@@ -1,11 +1,11 @@import React, { useState } from 'react';import { useAppSelector } from '$app/stores/store';-import { Avatar, IconButton } from '@mui/material';-import PersonOutline from '@mui/icons-material/PersonOutline';-import UserSetting from '../user_setting/UserSetting';+import { IconButton } from '@mui/material';import { ReactComponent as SettingIcon } from '$app/assets/settings.svg';import Tooltip from '@mui/material/Tooltip';import { useTranslation } from 'react-i18next';+import { SettingsDialog } from '$app/components/settings/SettingsDialog';+import { ProfileAvatar } from '$app/components/_shared/avatar';function UserInfo() {const currentUser = useAppSelector((state) => state.currentUser);@@ -16,19 +16,9 @@ function UserInfo() {return (<><div className={'flex w-full cursor-pointer select-none items-center justify-between px-4 text-text-title'}>- <div className={'flex w-full flex-1 items-center gap-1'}>- <Avatar- sx={{- width: 26,- height: 26,- backgroundColor: 'var(--fill-list-active)',- }}- className={'text-xs font-bold text-text-title'}- variant={'circular'}- >- {currentUser.displayName ? currentUser.displayName[0] : <PersonOutline />}- </Avatar>- <span className={'ml-2 flex-1 text-xs'}>{currentUser.displayName}</span>+ <div className={'flex w-full flex-1 items-center gap-2'}>+ <ProfileAvatar width={26} height={26} />+ <span className={'flex-1 text-xs font-semibold'}>{currentUser.displayName}</span></div><Tooltip disableInteractive={true} title={t('settings.menu.open')}>@@ -43,7 +33,7 @@ function UserInfo() {</Tooltip></div>- <UserSetting open={showUserSetting} onClose={() => setShowUserSetting(false)} />+ {showUserSetting && <SettingsDialog open={showUserSetting} onClose={() => setShowUserSetting(false)} />}</>);}diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/top_bar/MoreButton.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/layout/top_bar/MoreButton.tsxindex 1ffae1eb85..d37d1bf060 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/top_bar/MoreButton.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/layout/top_bar/MoreButton.tsx@@ -1,7 +1,7 @@import React, { useCallback } from 'react';import { useTranslation } from 'react-i18next';import { Drawer, IconButton } from '@mui/material';-import { Details2Svg } from '$app/components/_shared/svg/Details2Svg';+import { ReactComponent as Details2Svg } from '$app/assets/details.svg';import Tooltip from '@mui/material/Tooltip';import MoreOptions from '$app/components/layout/top_bar/MoreOptions';import { useMoreOptionsConfig } from '$app/components/layout/top_bar/MoreOptions.hooks';@@ -18,8 +18,8 @@ function MoreButton() {return (<><Tooltip placement={'bottom-end'} title={t('moreAction.moreOptions')}>- <IconButton onClick={() => toggleDrawer(true)} className={'h-8 w-8 text-icon-primary'}>- <Details2Svg />+ <IconButton onClick={() => toggleDrawer(true)} className={'text-icon-primary'}>+ <Details2Svg className={'h-8 w-8'} /></IconButton></Tooltip><Drawer anchor={'right'} open={open} onClose={() => toggleDrawer(false)}>diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/AppearanceSetting.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/AppearanceSetting.tsxdeleted file mode 100644index e28a467526..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/AppearanceSetting.tsx+++ /dev/null@@ -1,96 +0,0 @@-import React, { useCallback, useMemo } from 'react';-import Select from '@mui/material/Select';-import { Theme, ThemeMode, UserSetting } from '$app/stores/reducers/current-user/slice';-import MenuItem from '@mui/material/MenuItem';-import { useTranslation } from 'react-i18next';--function AppearanceSetting({- themeMode = ThemeMode.System,- onChange,-}: {- theme?: Theme;- themeMode?: ThemeMode;- onChange: (setting: UserSetting) => void;-}) {- const { t } = useTranslation();-- const themeModeOptions = useMemo(- () => [- {- value: ThemeMode.Light,- content: t('settings.appearance.themeMode.light'),- },- {- value: ThemeMode.Dark,- content: t('settings.appearance.themeMode.dark'),- },- {- value: ThemeMode.System,- content: t('settings.appearance.themeMode.system'),- },- ],- [t]- );-- const renderSelect = useCallback(- (- items: {- options: { value: ThemeMode | Theme; content: string }[];- label: string;- value: ThemeMode | Theme;- onChange: (newValue: ThemeMode | Theme) => void;- }[]- ) => {- return items.map((item) => {- const { value, options, label, onChange } = item;-- return (- <div key={value} className={'mb-2 flex items-center justify-between text-sm'}>- <div className={'flex-1 text-text-title'}>{label}</div>- <div className={'flex items-center'}>- <Select- sx={{- fontSize: '0.85rem',- }}- variant={'standard'}- value={value}- onChange={(e) => {- onChange(e.target.value as ThemeMode | Theme);- }}- >- {options.map((option) => (- <MenuItem key={option.value} className={'my-1 rounded-none px-2 py-1 text-xs'} value={option.value}>- {option.content}- </MenuItem>- ))}- </Select>- </div>- </div>- );- });- },- []- );-- return (- <div className={'flex flex-col'}>- {renderSelect([- {- options: themeModeOptions,- label: t('settings.appearance.themeMode.label'),- value: themeMode,- onChange: (newValue) => {- onChange({- themeMode: newValue as ThemeMode,- isDark:- newValue === ThemeMode.Dark ||- (newValue === ThemeMode.System && window.matchMedia('(prefers-color-scheme: dark)').matches),- });- },- },- ])}- </div>- );-}--export default AppearanceSetting;diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/LanguageSetting.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/LanguageSetting.tsxdeleted file mode 100644index 81e7d067a4..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/LanguageSetting.tsx+++ /dev/null@@ -1,75 +0,0 @@-import React from 'react';-import { useTranslation } from 'react-i18next';-import Select from '@mui/material/Select';-import { UserSetting } from '$app/stores/reducers/current-user/slice';-import MenuItem from '@mui/material/MenuItem';--const languages = [- {- key: 'ar-SA',- title: 'العربية',- },- { key: 'ca-ES', title: 'Català' },- { key: 'de-DE', title: 'Deutsch' },- { key: 'en', title: 'English' },- { key: 'es-VE', title: 'Español (Venezuela)' },- { key: 'eu-ES', title: 'Español' },- { key: 'fr-FR', title: 'Français' },- { key: 'hu-HU', title: 'Magyar' },- { key: 'id-ID', title: 'Bahasa Indonesia' },- { key: 'it-IT', title: 'Italiano' },- { key: 'ja-JP', title: '日本語' },- { key: 'ko-KR', title: '한국어' },- { key: 'pl-PL', title: 'Polski' },- { key: 'pt-BR', title: 'Português' },- { key: 'pt-PT', title: 'Português' },- { key: 'ru-RU', title: 'Русский' },- { key: 'sv', title: 'Svenska' },- { key: 'th-TH', title: 'ไทย' },- { key: 'tr-TR', title: 'Türkçe' },- { key: 'zh-CN', title: '简体中文' },- { key: 'zh-TW', title: '繁體中文' },-];--function LanguageSetting({- language = 'en',- onChange,-}: {- language?: string;- onChange: (setting: UserSetting) => void;-}) {- const { t, i18n } = useTranslation();-- return (- <div className={'flex flex-col'}>- <div className={'mb-2 flex items-center justify-between text-sm'}>- <div className={'flex-1 text-text-title'}>{t('settings.menu.language')}</div>- <div className={'flex items-center'}>- <Select- sx={{- fontSize: '0.85rem',- }}- variant={'standard'}- value={language}- onChange={(e) => {- const language = e.target.value;-- onChange({- language,- });- void i18n.changeLanguage(language);- }}- >- {languages.map((option) => (- <MenuItem key={option.key} className={'my-1 w-full rounded-none px-2 py-1 text-xs'} value={option.key}>- {option.title}- </MenuItem>- ))}- </Select>- </div>- </div>- </div>- );-}--export default LanguageSetting;diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/Menu.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/Menu.tsxdeleted file mode 100644index 9da3cb8f74..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/Menu.tsx+++ /dev/null@@ -1,51 +0,0 @@-import React, { useMemo } from 'react';-import LanguageIcon from '@mui/icons-material/Language';-import PaletteOutlined from '@mui/icons-material/PaletteOutlined';-import { useTranslation } from 'react-i18next';--export enum MenuItem {- Appearance = 'Appearance',- Language = 'Language',-}--function UserSettingMenu({ selected, onSelect }: { onSelect: (selected: MenuItem) => void; selected: MenuItem }) {- const { t } = useTranslation();-- const options = useMemo(() => {- return [- {- label: t('settings.menu.appearance'),- value: MenuItem.Appearance,- icon: <PaletteOutlined />,- },- {- label: t('settings.menu.language'),- value: MenuItem.Language,- icon: <LanguageIcon />,- },- ];- }, [t]);-- return (- <div className={'h-[300px] w-[200px] border-r border-solid border-r-line-border pr-4 text-xs'}>- {options.map((option) => {- return (- <div- key={option.value}- onClick={() => {- onSelect(option.value);- }}- className={`my-1 flex w-full cursor-pointer items-center justify-start rounded-md p-2 text-xs text-text-title ${- selected === option.value ? 'bg-fill-list-hover' : 'hover:text-content-blue-300'- }`}- >- <div className={'mr-2'}>{option.icon}</div>- <div>{option.label}</div>- </div>- );- })}- </div>- );-}--export default UserSettingMenu;diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/SettingPanel.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/SettingPanel.tsxdeleted file mode 100644index c88fe1f2e3..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/SettingPanel.tsx+++ /dev/null@@ -1,37 +0,0 @@-import React, { useMemo } from 'react';-import { MenuItem } from './Menu';-import AppearanceSetting from './AppearanceSetting';-import LanguageSetting from './LanguageSetting';--import { UserSetting } from '$app/stores/reducers/current-user/slice';--function UserSettingPanel({- selected,- userSettingState = {},- onChange,-}: {- selected: MenuItem;- userSettingState?: UserSetting;- onChange: (setting: Partial<UserSetting>) => void;-}) {- const { theme, themeMode, language } = userSettingState;-- const options = useMemo(() => {- return [- {- value: MenuItem.Appearance,- content: <AppearanceSetting onChange={onChange} theme={theme} themeMode={themeMode} />,- },- {- value: MenuItem.Language,- content: <LanguageSetting onChange={onChange} language={language} />,- },- ];- }, [language, onChange, theme, themeMode]);-- const option = options.find((option) => option.value === selected);-- return <div className={'flex-1 pl-4'}>{option?.content}</div>;-}--export default UserSettingPanel;diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/UserSetting.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/UserSetting.tsxdeleted file mode 100644index 7cfbac4a76..0000000000--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/user_setting/UserSetting.tsx+++ /dev/null@@ -1,64 +0,0 @@-import React, { useCallback, useState } from 'react';-import Dialog from '@mui/material/Dialog';-import DialogContent from '@mui/material/DialogContent';-import DialogTitle from '@mui/material/DialogTitle';-import Slide, { SlideProps } from '@mui/material/Slide';-import UserSettingMenu, { MenuItem } from './Menu';-import UserSettingPanel from './SettingPanel';-import { UserSetting } from '$app/stores/reducers/current-user/slice';-import { useAppDispatch, useAppSelector } from '$app/stores/store';-import { currentUserActions } from '$app_reducers/current-user/slice';-import { useTranslation } from 'react-i18next';-import { UserService } from '$app/application/user/user.service';--const SlideTransition = React.forwardRef((props: SlideProps, ref) => {- return <Slide {...props} direction='up' ref={ref} />;-});--function UserSettings({ open, onClose }: { open: boolean; onClose: () => void }) {- const userSettingState = useAppSelector((state) => state.currentUser.userSetting);- const dispatch = useAppDispatch();- const { t } = useTranslation();- const [selected, setSelected] = useState<MenuItem>(MenuItem.Appearance);- const handleChange = useCallback(- (setting: Partial<UserSetting>) => {- const newSetting = { ...userSettingState, ...setting };-- dispatch(currentUserActions.setUserSetting(newSetting));- const language = newSetting.language || 'en';-- void UserService.setAppearanceSetting({- theme: newSetting.theme,- theme_mode: newSetting.themeMode,- locale: {- language_code: language.split('-')[0],- country_code: language.split('-')[1],- },- });- },- [dispatch, userSettingState]- );-- return (- <Dialog- onMouseDown={(e) => e.stopPropagation()}- open={open}- TransitionComponent={SlideTransition}- keepMounted={false}- onClose={onClose}- >- <DialogTitle className={'text-sm'}>{t('settings.title')}</DialogTitle>- <DialogContent className={'flex w-[540px]'}>- <UserSettingMenu- onSelect={(selected) => {- setSelected(selected);- }}- selected={selected}- />- <UserSettingPanel onChange={handleChange} userSettingState={userSettingState} selected={selected} />- </DialogContent>- </Dialog>- );-}--export default UserSettings;diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/workspace_manager/TrashButton.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/layout/workspace_manager/TrashButton.tsxindex e89af36869..984ed6f67f 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/workspace_manager/TrashButton.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/layout/workspace_manager/TrashButton.tsx@@ -1,5 +1,5 @@import React, { useCallback } from 'react';-import { TrashSvg } from '$app/components/_shared/svg/TrashSvg';+import { ReactComponent as TrashSvg } from '$app/assets/delete.svg';import { useTranslation } from 'react-i18next';import { useLocation, useNavigate } from 'react-router-dom';import { useDrag } from 'src/appflowy_app/components/_shared/drag_block';@@ -34,9 +34,7 @@ function TrashButton() {selected ? 'bg-fill-list-active' : ''} ${isDraggingOver ? 'bg-fill-list-hover' : ''}`}>- <div className='h-5 w-5'>- <TrashSvg />- </div>+ <TrashSvg className='h-5 w-5' /><span>{t('trash.text')}</span></div>);diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/workspace_manager/Workspace.hooks.ts b/frontend/appflowy_tauri/src/appflowy_app/components/layout/workspace_manager/Workspace.hooks.tsindex 7d77b12d69..a754dcdf3b 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/workspace_manager/Workspace.hooks.ts+++ b/frontend/appflowy_tauri/src/appflowy_app/components/layout/workspace_manager/Workspace.hooks.ts@@ -80,6 +80,13 @@ export function useLoadWorkspace(workspace: WorkspaceItem) {useEffect(() => {const unsubscribePromise = subscribeNotifications({+ [FolderNotification.DidUpdateWorkspace]: async (changeset) => {+ dispatch(+ workspaceActions.updateCurrentWorkspace({+ name: changeset.name,+ })+ );+ },[FolderNotification.DidUpdateWorkspaceViews]: async (changeset) => {const res = changeset.items;@@ -90,7 +97,7 @@ export function useLoadWorkspace(workspace: WorkspaceItem) {);return () => void unsubscribePromise.then((unsubscribe) => unsubscribe());- }, [id, onChildPagesChanged]);+ }, [dispatch, id, onChildPagesChanged]);return {openWorkspace,diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/workspace_manager/Workspace.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/layout/workspace_manager/Workspace.tsxindex 0035ba702f..b2f0fbb0ca 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/workspace_manager/Workspace.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/layout/workspace_manager/Workspace.tsx@@ -2,11 +2,11 @@ import React, { useState } from 'react';import { WorkspaceItem } from '$app_reducers/workspace/slice';import NestedViews from '$app/components/layout/workspace_manager/NestedPages';import { useLoadWorkspace, useWorkspaceActions } from '$app/components/layout/workspace_manager/Workspace.hooks';-import Typography from '@mui/material/Typography';import { useTranslation } from 'react-i18next';import { ReactComponent as AddIcon } from '$app/assets/add.svg';import { IconButton } from '@mui/material';import Tooltip from '@mui/material/Tooltip';+import { WorkplaceAvatar } from '$app/components/_shared/avatar';function Workspace({ workspace, opened }: { workspace: WorkspaceItem; opened: boolean }) {useLoadWorkspace(workspace);@@ -42,9 +42,10 @@ function Workspace({ workspace, opened }: { workspace: WorkspaceItem; opened: boclassName={'mt-2 flex h-[22px] w-full cursor-pointer select-none items-center justify-between px-4'}><Tooltip disableInteractive={true} placement={'top-start'} title={t('sideBar.clickToHidePersonal')}>- <Typography className={'rounded px-2 py-1 text-xs font-medium hover:bg-fill-list-active'}>- {t('sideBar.personal')}- </Typography>+ <div className={'flex items-center gap-2 rounded px-2 py-1 text-xs font-medium hover:bg-fill-list-active'}>+ <WorkplaceAvatar workplaceName={workspace.name} width={18} height={18} className={'text-[70%]'} />+ {workspace.name}+ </div></Tooltip>{showAdd && (<Tooltip disableInteractive={true} title={t('sideBar.addAPage')}>diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/Login.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/settings/Login.tsxnew file mode 100644index 0000000000..6daceadb61--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/Login.tsx@@ -0,0 +1,22 @@+import Typography from '@mui/material/Typography';+import { useTranslation } from 'react-i18next';+import Button from '@mui/material/Button';+import { LoginButtonGroup } from '$app/components/_shared/login';++export const Login = ({ onBack }: { onBack?: () => void }) => {+ const { t } = useTranslation();++ return (+ <div className={'flex flex-col items-center justify-center gap-4'}>+ <Typography variant={'h4'} className={'mb-3 font-medium'}>+ {t('button.login')}+ </Typography>+ <div className={'flex w-[70%] flex-col items-center gap-4'}>+ <LoginButtonGroup />+ <Button className={'w-full rounded-lg py-3 text-sm'} onClick={onBack} color={'inherit'} variant={'text'}>+ {t('button.cancel')}+ </Button>+ </div>+ </div>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/Settings.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/settings/Settings.tsxnew file mode 100644index 0000000000..1d9f3c0cd9--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/Settings.tsx@@ -0,0 +1,92 @@+import { useMemo, useState } from 'react';+import { Box, Tab, Tabs } from '@mui/material';+import { useTranslation } from 'react-i18next';+import { MyAccount } from '$app/components/settings/my_account';+import { ReactComponent as AccountIcon } from '$app/assets/settings/account.svg';+import { ReactComponent as WorkplaceIcon } from '$app/assets/settings/workplace.svg';+import { Workplace } from '$app/components/settings/workplace';+import { SettingsRoutes } from '$app/components/settings/workplace/const';++interface TabPanelProps {+ children?: React.ReactNode;+ index: number;+ value: number;+}++function TabPanel(props: TabPanelProps) {+ const { children, value, index, ...other } = props;++ return (+ <div+ role='tabpanel'+ className={'h-full overflow-y-auto overflow-x-hidden'}+ hidden={value !== index}+ id={`vertical-tabpanel-${index}`}+ aria-labelledby={`vertical-tab-${index}`}+ {...other}+ >+ {value === index && <Box sx={{ p: 3 }}>{children}</Box>}+ </div>+ );+}++export const Settings = ({ onForward }: { onForward: (route: SettingsRoutes) => void }) => {+ const { t } = useTranslation();+ const [activeTab, setActiveTab] = useState(0);++ const tabOptions = useMemo(() => {+ return [+ {+ label: t('newSettings.myAccount.title'),+ Icon: AccountIcon,+ Component: MyAccount,+ },+ {+ label: t('newSettings.workplace.name'),+ Icon: WorkplaceIcon,+ Component: Workplace,+ },+ ];+ }, [t]);++ const handleChangeTab = (event: React.SyntheticEvent, newValue: number) => {+ setActiveTab(newValue);+ };++ return (+ <Box sx={{ flexGrow: 1, bgcolor: 'background.paper', display: 'flex', height: 224 }}>+ <Tabs+ orientation='vertical'+ variant='scrollable'+ value={activeTab}+ onChange={handleChangeTab}+ className={'w-[212px] min-w-[212px] bg-bg-base px-2 py-4'}+ sx={{+ '& .MuiTabs-indicator': {+ display: 'none',+ },+ }}+ >+ {tabOptions.map((tab, index) => (+ <Tab+ key={index}+ className={'my-1 min-h-[44px] items-start px-4 text-text-title'}+ label={+ <div className={'flex items-center gap-2'}>+ <tab.Icon className={'h-5 w-5'} />+ {tab.label}+ </div>+ }+ onClick={() => setActiveTab(index)}+ sx={{ '&.Mui-selected': { borderColor: 'transparent', backgroundColor: 'var(--fill-list-active)' } }}+ />+ ))}+ </Tabs>+ {tabOptions.map((tab, index) => (+ <TabPanel key={index} value={activeTab} index={index}>+ <tab.Component onForward={onForward} />+ </TabPanel>+ ))}+ </Box>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/SettingsDialog.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/settings/SettingsDialog.tsxnew file mode 100644index 0000000000..72f2fddb49--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/SettingsDialog.tsx@@ -0,0 +1,93 @@+/**+ * @figmaUrl https://www.figma.com/file/MF5CWlOzBRuGHp45zAXyUH/Appflowy%3A-Desktop-Settings?type=design&node-id=100%3A2119&mode=design&t=4Wb0Zg5NOFO36kOf-1+ */++import Dialog, { DialogProps } from '@mui/material/Dialog';+import { Settings } from '$app/components/settings/Settings';+import { useCallback, useState } from 'react';+import DialogTitle from '@mui/material/DialogTitle';+import { IconButton } from '@mui/material';+import { ReactComponent as CloseIcon } from '$app/assets/close.svg';+import { useTranslation } from 'react-i18next';+import { ReactComponent as UpIcon } from '$app/assets/up.svg';+import { SettingsRoutes } from '$app/components/settings/workplace/const';+import DialogContent from '@mui/material/DialogContent';+import { Login } from '$app/components/settings/Login';+import SwipeableViews from 'react-swipeable-views';++export const SettingsDialog = (props: DialogProps) => {+ const [routes, setRoutes] = useState<SettingsRoutes[]>([]);++ const { t } = useTranslation();+ const handleForward = useCallback((route: SettingsRoutes) => {+ setRoutes((prev) => {+ return [...prev, route];+ });+ }, []);++ const handleBack = useCallback(() => {+ setRoutes((prevState) => {+ return prevState.slice(0, -1);+ });+ }, []);++ const handleClose = () => {+ props?.onClose?.({}, 'backdropClick');+ };++ const currentRoute = routes[routes.length - 1];++ return (+ <Dialog+ {...props}+ PaperProps={{+ style:+ currentRoute === SettingsRoutes.LOGIN+ ? {+ width: '600px',+ height: '461px',+ }+ : {+ width: '90%',+ maxWidth: '729px',+ height: '85%',+ },+ }}+ onKeyDown={(e) => {+ if (e.key === 'Escape') {+ e.preventDefault();+ }+ }}+ scroll={'paper'}+ >+ <SwipeableViews+ slideStyle={{+ overflow: 'hidden',+ }}+ className={'h-full overflow-hidden'}+ axis={'x'}+ index={routes.length === 0 ? 0 : 1}+ >+ <div className={'flex h-full w-full flex-col'} dir={'ltr'} hidden={routes.length > 0}>+ {routes.length === 0 && <Settings onForward={handleForward} />}+ </div>+ <div className={'relative flex h-full w-full flex-col'} dir={'ltr'} hidden={routes.length === 0}>+ {routes.length > 0 && (+ <>+ <DialogTitle className={'flex items-center gap-2'}>+ <UpIcon className={'h-8 w-8 -rotate-90 transform cursor-pointer'} onClick={handleBack} />+ {t('button.back')}+ </DialogTitle>+ <IconButton onClick={handleClose} className={'absolute right-2 top-2'}>+ <CloseIcon className={'h-8 w-8'} />+ </IconButton>+ <DialogContent>+ {currentRoute === SettingsRoutes.LOGIN ? <Login onBack={handleBack} /> : null}+ </DialogContent>+ </>+ )}+ </div>+ </SwipeableViews>+ </Dialog>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/index.ts b/frontend/appflowy_tauri/src/appflowy_app/components/settings/index.tsnew file mode 100644index 0000000000..0f0a2c23f4--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/index.ts@@ -0,0 +1 @@+export * from './my_account';diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/AccountLogin.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/AccountLogin.tsxnew file mode 100644index 0000000000..0178682ca8--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/AccountLogin.tsx@@ -0,0 +1,30 @@+import { useTranslation } from 'react-i18next';+import Typography from '@mui/material/Typography';+import Button from '@mui/material/Button';+import { Divider } from '@mui/material';+import { DeleteAccount } from '$app/components/settings/my_account/DeleteAccount';+import { SettingsRoutes } from '$app/components/settings/workplace/const';++export const AccountLogin = ({ onForward }: { onForward?: (route: SettingsRoutes) => void }) => {+ const { t } = useTranslation();++ return (+ <>+ <div className={'w-full'}>+ <Typography className={'mb-4 font-semibold'} variant={'subtitle1'}>+ {t('newSettings.myAccount.accountLogin')}+ </Typography>+ <Button+ onClick={() => {+ onForward?.(SettingsRoutes.LOGIN);+ }}+ variant={'contained'}+ >+ {t('button.login')}+ </Button>+ <Divider className={'my-4'} />+ <DeleteAccount />+ </div>+ </>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/DeleteAccount.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/DeleteAccount.tsxnew file mode 100644index 0000000000..82a909180e--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/DeleteAccount.tsx@@ -0,0 +1,43 @@+import { useTranslation } from 'react-i18next';+import { useState } from 'react';+import Typography from '@mui/material/Typography';+import Button from '@mui/material/Button';+import { DeleteAccountDialog } from '$app/components/settings/my_account/DeleteAccountDialog';++export const DeleteAccount = () => {+ const { t } = useTranslation();++ const [openDialog, setOpenDialog] = useState(false);++ return (+ <div className={'flex w-full items-end'}>+ <div className={'flex flex-1 flex-col gap-2'}>+ <Typography className={'text-text-title'} variant={'subtitle2'}>+ {t('newSettings.myAccount.deleteAccount.title')}+ </Typography>+ <Typography className={'text-text-caption'} variant={'body2'}>+ {t('newSettings.myAccount.deleteAccount.subtitle')}+ </Typography>+ </div>+ <div className={'flex flex-1 items-center justify-end'}>+ <Button+ onClick={() => {+ setOpenDialog(true);+ }}+ disabled+ size={'small'}+ variant={'outlined'}+ color={'error'}+ >+ {t('newSettings.myAccount.deleteAccount.deleteMyAccount')}+ </Button>+ </div>+ <DeleteAccountDialog+ open={openDialog}+ onClose={() => {+ setOpenDialog(false);+ }}+ />+ </div>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/DeleteAccountDialog.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/DeleteAccountDialog.tsxnew file mode 100644index 0000000000..2f8cc37258--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/DeleteAccountDialog.tsx@@ -0,0 +1,50 @@+import Dialog, { DialogProps } from '@mui/material/Dialog';+import { useTranslation } from 'react-i18next';+import DialogTitle from '@mui/material/DialogTitle';+import { DialogActions, DialogContentText, IconButton } from '@mui/material';+import Button from '@mui/material/Button';+import DialogContent from '@mui/material/DialogContent';+import { ReactComponent as CloseIcon } from '$app/assets/close.svg';++export const DeleteAccountDialog = (props: DialogProps) => {+ const { t } = useTranslation();++ const handleClose = () => {+ props?.onClose?.({}, 'backdropClick');+ };++ const handleOk = () => {+ //123+ };++ return (+ <Dialog+ {...props}+ PaperProps={{+ className: 'py-8 min-w-[300px] max-w-[500px]',+ }}+ keepMounted={false}+ >+ <DialogTitle className={'text-center'}>{t('newSettings.myAccount.deleteAccount.dialogTitle')}</DialogTitle>+ <DialogContent className={'flex flex-col gap-2 px-16 text-center'}>+ <DialogContentText>{t('newSettings.myAccount.deleteAccount.dialogContent1')}</DialogContentText>+ <DialogContentText>{t('newSettings.myAccount.deleteAccount.dialogContent2')}</DialogContentText>+ </DialogContent>+ <DialogActions className={'flex items-center justify-center'}>+ <div className={'flex flex-1 justify-end'}>+ <Button color={'inherit'} variant={'outlined'} onClick={handleClose}>+ {t('button.cancel')}+ </Button>+ </div>+ <div className={'flex flex-1 justify-start'}>+ <Button color={'error'} variant={'contained'} onClick={handleOk}>+ {t('button.deleteAccount')}+ </Button>+ </div>+ </DialogActions>+ <IconButton onClick={handleClose} className={'absolute right-2 top-2'}>+ <CloseIcon />+ </IconButton>+ </Dialog>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/MyAccount.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/MyAccount.tsxnew file mode 100644index 0000000000..b3a315994b--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/MyAccount.tsx@@ -0,0 +1,24 @@+import { useTranslation } from 'react-i18next';+import Typography from '@mui/material/Typography';+import { Profile } from './Profile';+import { AccountLogin } from './AccountLogin';+import { Divider } from '@mui/material';+import { SettingsRoutes } from '$app/components/settings/workplace/const';++export const MyAccount = ({ onForward }: { onForward?: (route: SettingsRoutes) => void }) => {+ const { t } = useTranslation();++ return (+ <div className={'flex flex-col'}>+ <Typography variant={'h5'} className={'mb-3 font-bold'}>+ {t('newSettings.myAccount.title')}+ </Typography>+ <Typography variant={'body2'} className={'mb-3 text-text-caption'}>+ {t('newSettings.myAccount.subtitle')}+ </Typography>+ <Profile />+ <Divider className={'my-3'} />+ <AccountLogin onForward={onForward} />+ </div>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/Profile.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/Profile.tsxnew file mode 100644index 0000000000..2ac672b0e5--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/Profile.tsx@@ -0,0 +1,180 @@+import Typography from '@mui/material/Typography';+import { useTranslation } from 'react-i18next';+import { IconButton, InputAdornment, OutlinedInput } from '@mui/material';+import { useAppSelector } from '$app/stores/store';+import React, { useState } from 'react';+import { ReactComponent as CheckIcon } from '$app/assets/select-check.svg';+import { ReactComponent as CloseIcon } from '$app/assets/close.svg';+import { ReactComponent as EditIcon } from '$app/assets/edit.svg';++import Tooltip from '@mui/material/Tooltip';+import { UserService } from '$app/application/user/user.service';+import { notify } from '$app/components/_shared/notify';+import { ProfileAvatar } from '$app/components/_shared/avatar';+import Popover from '@mui/material/Popover';+import { PopoverCommonProps } from '$app/components/editor/components/tools/popover';+import EmojiPicker from '$app/components/_shared/emoji_picker/EmojiPicker';+import Button from '@mui/material/Button';++export const Profile = () => {+ const { displayName, id } = useAppSelector((state) => state.currentUser);+ const { t } = useTranslation();+ const [isEditing, setIsEditing] = useState(false);+ const [newName, setNewName] = useState(displayName ?? 'Me');+ const [error, setError] = useState<boolean>(false);+ const [emojiPickerAnchor, setEmojiPickerAnchor] = useState<HTMLElement | null>(null);+ const openEmojiPicker = Boolean(emojiPickerAnchor);+ const handleSave = async () => {+ setError(false);+ if (!newName) {+ setError(true);+ return;+ }++ if (newName === displayName) {+ setIsEditing(false);+ return;+ }++ try {+ await UserService.updateUserProfile({+ id,+ name: newName,+ });+ setIsEditing(false);+ } catch {+ setError(true);+ notify.error(t('newSettings.myAccount.updateNameError'));+ }+ };++ const handleEmojiSelect = async (emoji: string) => {+ try {+ await UserService.updateUserProfile({+ id,+ icon_url: emoji,+ });+ } catch {+ notify.error(t('newSettings.myAccount.updateIconError'));+ }+ };++ const handleCancel = () => {+ setNewName(displayName ?? 'Me');+ setIsEditing(false);+ };++ const handleKeyDown = (e: React.KeyboardEvent) => {+ if (e.key === 'Enter') {+ e.stopPropagation();+ e.preventDefault();+ void handleSave();+ }++ if (e.key === 'Escape') {+ e.stopPropagation();+ e.preventDefault();+ handleCancel();+ }+ };++ return (+ <div className={'mt-2'}>+ <Typography className={'mb-2 font-semibold'} variant={'subtitle1'}>+ {t('newSettings.myAccount.profileLabel')}+ </Typography>+ <div className={'flex w-full items-center gap-2'}>+ <Button+ onClick={(e) => {+ setEmojiPickerAnchor(e.currentTarget);+ }}+ variant={'outlined'}+ color={'inherit'}+ className={'h-12 w-12 min-w-[48px] rounded-full'}+ >+ <ProfileAvatar className={'border border-bg-body'} width={46} height={46} />+ </Button>++ <div className={'flex-1'}>+ {isEditing ? (+ <OutlinedInput+ onKeyDown={handleKeyDown}+ error={error}+ size={'small'}+ onChange={(e) => setNewName(e.target.value)}+ spellCheck={false}+ autoFocus={true}+ autoCorrect={'off'}+ autoCapitalize={'off'}+ fullWidth+ endAdornment={+ <InputAdornment position='end'>+ <div className={'flex items-center gap-1'}>+ <Tooltip title={t('button.save')}>+ <IconButton+ color={'primary'}+ disabled={!newName || newName === displayName}+ onClick={handleSave}+ size={'small'}+ >+ <CheckIcon />+ </IconButton>+ </Tooltip>+ <Tooltip title={t('button.cancel')}>+ <IconButton onClick={handleCancel} edge='end' size={'small'}>+ <CloseIcon />+ </IconButton>+ </Tooltip>+ </div>+ </InputAdornment>+ }+ sx={{+ '&.MuiOutlinedInput-root': {+ borderRadius: '8px',+ },+ }}+ placeholder={t('newSettings.myAccount.profileNamePlaceholder')}+ value={newName}+ />+ ) : (+ <Typography className={'font-semibold'} variant={'subtitle2'}>+ {newName}+ <Tooltip title={t('button.edit')} placement={'top'}>+ <IconButton onClick={() => setIsEditing(true)} size={'small'} className={'ml-1'}>+ <EditIcon />+ </IconButton>+ </Tooltip>+ </Typography>+ )}+ </div>+ </div>+ {openEmojiPicker && (+ <Popover+ {...PopoverCommonProps}+ className={'border-none bg-transparent shadow-none'}+ anchorEl={emojiPickerAnchor}+ disableAutoFocus={true}+ open={openEmojiPicker}+ onClose={() => {+ setEmojiPickerAnchor(null);+ }}+ anchorOrigin={{+ vertical: 'bottom',+ horizontal: 'left',+ }}+ transformOrigin={{+ vertical: 'top',+ horizontal: 'left',+ }}+ >+ <EmojiPicker+ onEscape={() => {+ setEmojiPickerAnchor(null);+ }}+ onEmojiSelect={handleEmojiSelect}+ />+ </Popover>+ )}+ </div>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/index.ts b/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/index.tsnew file mode 100644index 0000000000..d923fcefce--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/my_account/index.ts@@ -0,0 +1 @@+export * from './MyAccount';diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/Appearance.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/Appearance.tsxnew file mode 100644index 0000000000..1dc8581dae--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/Appearance.tsx@@ -0,0 +1,20 @@+import { useTranslation } from 'react-i18next';+import { ThemeModeSwitch } from '$app/components/settings/workplace/appearance/ThemeModeSwitch';+import Typography from '@mui/material/Typography';+import { Divider } from '@mui/material';+import { LanguageSetting } from '$app/components/settings/workplace/appearance/LanguageSetting';++export const Appearance = () => {+ const { t } = useTranslation();++ return (+ <>+ <Typography className={'mb-2 font-semibold'} variant={'subtitle1'}>+ {t('newSettings.workplace.appearance.name')}+ </Typography>+ <ThemeModeSwitch />+ <Divider className={'my-3'} />+ <LanguageSetting />+ </>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/Workplace.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/Workplace.tsxnew file mode 100644index 0000000000..8af69eec51--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/Workplace.tsx@@ -0,0 +1,23 @@+import { useTranslation } from 'react-i18next';+import Typography from '@mui/material/Typography';+import { WorkplaceDisplay } from '$app/components/settings/workplace/WorkplaceDisplay';+import { Divider } from '@mui/material';+import { Appearance } from '$app/components/settings/workplace/Appearance';++export const Workplace = () => {+ const { t } = useTranslation();++ return (+ <div className={'flex flex-col'}>+ <Typography variant={'h5'} className={'mb-3 font-bold'}>+ {t('newSettings.workplace.title')}+ </Typography>+ <Typography variant={'body2'} className={'mb-3 text-text-caption'}>+ {t('newSettings.workplace.subtitle')}+ </Typography>+ <WorkplaceDisplay />+ <Divider className={'my-3'} />+ <Appearance />+ </div>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/WorkplaceDisplay.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/WorkplaceDisplay.tsxnew file mode 100644index 0000000000..cbb68e5d56--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/WorkplaceDisplay.tsx@@ -0,0 +1,128 @@+import { useTranslation } from 'react-i18next';+import Typography from '@mui/material/Typography';+import { Divider, OutlinedInput } from '@mui/material';+import React, { useState } from 'react';+import Button from '@mui/material/Button';+import { useAppSelector } from '$app/stores/store';+import { changeWorkspaceIcon, renameWorkspace } from '$app/application/folder/workspace.service';+import { notify } from '$app/components/_shared/notify';+import { WorkplaceAvatar } from '$app/components/_shared/avatar';+import Popover from '@mui/material/Popover';+import { PopoverCommonProps } from '$app/components/editor/components/tools/popover';+import EmojiPicker from '$app/components/_shared/emoji_picker/EmojiPicker';++export const WorkplaceDisplay = () => {+ const { t } = useTranslation();+ const isLocal = useAppSelector((state) => state.currentUser.isLocal);+ const workspace = useAppSelector((state) => state.workspace.currentWorkspace);+ const [name, setName] = useState(workspace?.name ?? '');+ const [emojiPickerAnchor, setEmojiPickerAnchor] = useState<HTMLElement | null>(null);+ const openEmojiPicker = Boolean(emojiPickerAnchor);+ const handleSave = async () => {+ if (!workspace || !name) return;+ try {+ await renameWorkspace(workspace.id, name);+ } catch {+ notify.error(t('newSettings.workplace.renameError'));+ }+ };++ const handleEmojiSelect = async (icon: string) => {+ if (!workspace) return;+ try {+ await changeWorkspaceIcon(workspace.id, icon);+ } catch {+ notify.error(t('newSettings.workplace.updateIconError'));+ }+ };++ const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {+ if (e.key === 'Enter') {+ e.stopPropagation();+ e.preventDefault();+ void handleSave();+ }+ };++ return (+ <div className={'mb-1 mt-2'}>+ <Typography className={'mb-2 font-semibold'} variant={'subtitle1'}>+ {t('newSettings.workplace.workplaceName')}+ </Typography>+ <div className={'flex gap-2'}>+ <div className={'flex-1'}>+ <OutlinedInput+ size={'small'}+ spellCheck={false}+ autoCorrect={'off'}+ autoCapitalize={'off'}+ onKeyDown={handleKeyDown}+ fullWidth+ readOnly={isLocal}+ onChange={(e) => setName(e.target.value)}+ sx={{+ '&.MuiOutlinedInput-root': {+ borderRadius: '8px',+ },+ }}+ placeholder={t('newSettings.workplace.workplaceNamePlaceholder')}+ value={name}+ />+ </div>+ <Button onClick={handleSave} disabled={!name || workspace?.name === name} variant={'contained'}>+ {t('button.save')}+ </Button>+ </div>+ <Divider className={'my-3'} />+ <Typography className={'font-semibold'} variant={'subtitle1'}>+ {t('newSettings.workplace.workplaceIcon')}+ </Typography>+ <Typography variant={'body2'} className={'my-2 text-text-caption'}>+ {t('newSettings.workplace.workplaceIconSubtitle')}+ </Typography>+ <Button+ onClick={(e) => {+ setEmojiPickerAnchor(e.currentTarget);+ }}+ variant={'outlined'}+ color={'inherit'}+ className={'h-16 w-16 rounded-lg p-0'}+ disabled={isLocal}+ >+ <WorkplaceAvatar+ workplaceName={name}+ width={62}+ height={62}+ className={'rounded-lg border border-bg-body p-[2px] hover:opacity-90'}+ />+ </Button>+ {openEmojiPicker && (+ <Popover+ {...PopoverCommonProps}+ className={'border-none bg-transparent shadow-none'}+ anchorEl={emojiPickerAnchor}+ disableAutoFocus={true}+ open={openEmojiPicker}+ onClose={() => {+ setEmojiPickerAnchor(null);+ }}+ anchorOrigin={{+ vertical: 'top',+ horizontal: 'right',+ }}+ transformOrigin={{+ vertical: 'top',+ horizontal: 'left',+ }}+ >+ <EmojiPicker+ onEscape={() => {+ setEmojiPickerAnchor(null);+ }}+ onEmojiSelect={handleEmojiSelect}+ />+ </Popover>+ )}+ </div>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/appearance/LanguageSetting.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/appearance/LanguageSetting.tsxnew file mode 100644index 0000000000..41a42bd011--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/appearance/LanguageSetting.tsx@@ -0,0 +1,115 @@+import Typography from '@mui/material/Typography';+import { useTranslation } from 'react-i18next';+import MenuItem from '@mui/material/MenuItem';+import Select from '@mui/material/Select';+import React, { useCallback } from 'react';+import { useAppDispatch, useAppSelector } from '$app/stores/store';+import { currentUserActions } from '$app_reducers/current-user/slice';+import { UserService } from '$app/application/user/user.service';++const languages = [+ {+ key: 'ar-SA',+ title: 'العربية',+ },+ { key: 'ca-ES', title: 'Català' },+ { key: 'de-DE', title: 'Deutsch' },+ { key: 'en', title: 'English' },+ { key: 'es-VE', title: 'Español (Venezuela)' },+ { key: 'eu-ES', title: 'Español' },+ { key: 'fr-FR', title: 'Français' },+ { key: 'hu-HU', title: 'Magyar' },+ { key: 'id-ID', title: 'Bahasa Indonesia' },+ { key: 'it-IT', title: 'Italiano' },+ { key: 'ja-JP', title: '日本語' },+ { key: 'ko-KR', title: '한국어' },+ { key: 'pl-PL', title: 'Polski' },+ { key: 'pt-BR', title: 'Português' },+ { key: 'pt-PT', title: 'Português' },+ { key: 'ru-RU', title: 'Русский' },+ { key: 'sv', title: 'Svenska' },+ { key: 'th-TH', title: 'ไทย' },+ { key: 'tr-TR', title: 'Türkçe' },+ { key: 'zh-CN', title: '简体中文' },+ { key: 'zh-TW', title: '繁體中文' },+];++export const LanguageSetting = () => {+ const { t, i18n } = useTranslation();+ const userSettingState = useAppSelector((state) => state.currentUser.userSetting);+ const dispatch = useAppDispatch();+ const selectedLanguage = userSettingState.language;++ const [hoverKey, setHoverKey] = React.useState<string | null>(null);++ const handleChange = useCallback(+ (language: string) => {+ const newSetting = { ...userSettingState, language };++ dispatch(currentUserActions.setUserSetting(newSetting));+ const newLanguage = newSetting.language || 'en';++ void UserService.setAppearanceSetting({+ theme: newSetting.theme,+ theme_mode: newSetting.themeMode,+ locale: {+ language_code: newLanguage.split('-')[0],+ country_code: newLanguage.split('-')[1],+ },+ });+ },+ [dispatch, userSettingState]+ );++ const handleKeyDown = useCallback((e: React.KeyboardEvent<HTMLDivElement>) => {+ if (e.key === 'Escape') {+ e.preventDefault();+ }+ }, []);++ return (+ <>+ <Typography className={'mb-2 font-normal'} variant={'subtitle1'}>+ {t('newSettings.workplace.appearance.language')}+ </Typography>++ <Select+ variant={'outlined'}+ size={'small'}+ className={'w-[180px] rounded-xl'}+ value={selectedLanguage}+ onOpen={() => {+ setHoverKey(selectedLanguage ?? null);+ }}+ onChange={(e) => {+ const language = e.target.value;++ handleChange(language);+ void i18n.changeLanguage(language);+ }}+ MenuProps={{+ onKeyDown: handleKeyDown,+ }}+ >+ {languages.map((option) => (+ <MenuItem+ onFocus={() => {+ setHoverKey(option.key);+ }}+ onMouseEnter={(e) => {+ e.currentTarget.focus();+ }}+ key={option.key}+ style={{+ backgroundColor: option.key === hoverKey ? 'var(--fill-list-active)' : undefined,+ }}+ className={'my-1 w-full rounded-none px-2 py-1 text-xs hover:bg-transparent'}+ value={option.key}+ >+ {option.title}+ </MenuItem>+ ))}+ </Select>+ </>+ );+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/appearance/ThemeModeSwitch.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/appearance/ThemeModeSwitch.tsxnew file mode 100644index 0000000000..34fdb8e598--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/appearance/ThemeModeSwitch.tsx@@ -0,0 +1,93 @@+import { useTranslation } from 'react-i18next';+import { useAppDispatch, useAppSelector } from '$app/stores/store';+import { useCallback, useMemo } from 'react';+import { ThemeModePB } from '@/services/backend';+import darkSrc from '$app/assets/settings/dark.png';+import lightSrc from '$app/assets/settings/light.png';+import { currentUserActions, ThemeMode } from '$app_reducers/current-user/slice';+import { UserService } from '$app/application/user/user.service';+import { ReactComponent as CheckCircle } from '$app/assets/settings/check_circle.svg';++export const ThemeModeSwitch = () => {+ const { t } = useTranslation();+ const userSettingState = useAppSelector((state) => state.currentUser.userSetting);+ const dispatch = useAppDispatch();++ const selectedMode = userSettingState.themeMode;+ const themeModes = useMemo(() => {+ return [+ {+ name: t('newSettings.workplace.appearance.themeMode.auto'),+ value: ThemeModePB.System,+ img: (+ <div className={'relative h-[67px] overflow-hidden'}>+ <img className={'h-[67px] w-[71px]'} src={darkSrc} />+ <img className={'absolute left-1/2 top-0'} src={lightSrc} />+ </div>+ ),+ },+ {+ name: t('newSettings.workplace.appearance.themeMode.light'),+ value: ThemeModePB.Light,+ img: <img src={lightSrc} className={'h-[67px] w-[71px]'} />,+ },+ {+ name: t('newSettings.workplace.appearance.themeMode.dark'),+ value: ThemeModePB.Dark,+ img: <img src={darkSrc} className={'h-[67px] w-[71px]'} />,+ },+ ];+ }, [t]);++ const handleChange = useCallback(+ (newValue: ThemeModePB) => {+ const newSetting = {+ ...userSettingState,+ ...{+ themeMode: newValue,+ isDark:+ newValue === ThemeMode.Dark ||+ (newValue === ThemeMode.System && window.matchMedia('(prefers-color-scheme: dark)').matches),+ },+ };++ dispatch(currentUserActions.setUserSetting(newSetting));++ void UserService.setAppearanceSetting({+ theme_mode: newSetting.themeMode,+ });+ },+ [dispatch, userSettingState]+ );++ const renderThemeModeItem = useCallback(+ (option: { name: string; value: ThemeModePB; img: JSX.Element }) => {+ return (+ <div+ key={option.value}+ onClick={() => handleChange(option.value)}+ className={'flex cursor-pointer flex-col items-center gap-2'}+ >+ <div+ style={{+ borderColor: selectedMode === option.value ? 'var(--text-title)' : 'var(--line-border)',+ }}+ className={'theme-mode-item'}+ >+ {option.img}+ <CheckCircle+ className={'absolute left-0.5 top-0.5 h-4 w-4'}+ style={{+ display: selectedMode === option.value ? 'block' : 'none',+ }}+ />+ </div>+ <div className={'text-sm text-text-title'}>{option.name}</div>+ </div>+ );+ },+ [handleChange, selectedMode]+ );++ return <div className={'flex gap-3'}>{themeModes.map((mode) => renderThemeModeItem(mode))}</div>;+};diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/const.ts b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/const.tsnew file mode 100644index 0000000000..075e2744a5--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/const.ts@@ -0,0 +1,3 @@+export enum SettingsRoutes {+ LOGIN = 'login',+}diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/index.ts b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/index.tsnew file mode 100644index 0000000000..a64592ac8b--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/components/settings/workplace/index.ts@@ -0,0 +1 @@+export * from './Workplace';diff --git a/frontend/appflowy_tauri/src/appflowy_app/stores/reducers/current-user/slice.ts b/frontend/appflowy_tauri/src/appflowy_app/stores/reducers/current-user/slice.tsindex 13ad581175..193d77282f 100644--- a/frontend/appflowy_tauri/src/appflowy_app/stores/reducers/current-user/slice.ts+++ b/frontend/appflowy_tauri/src/appflowy_app/stores/reducers/current-user/slice.ts@@ -22,14 +22,17 @@ export interface ICurrentUser {displayName?: string;email?: string;token?: string;+ iconUrl?: string;isAuthenticated: boolean;workspaceSetting?: WorkspaceSettingPB;userSetting: UserSetting;+ isLocal: boolean;}const initialState: ICurrentUser | null = {isAuthenticated: false,userSetting: {},+ isLocal: true,};export const currentUserSlice = createSlice({@@ -42,6 +45,7 @@ export const currentUserSlice = createSlice({...action.payload,};},+updateUser: (state, action: PayloadAction<Partial<ICurrentUser>>) => {return {...state,diff --git a/frontend/appflowy_tauri/src/appflowy_app/stores/reducers/workspace/slice.ts b/frontend/appflowy_tauri/src/appflowy_app/stores/reducers/workspace/slice.tsindex 090382de70..cbda3bb9ae 100644--- a/frontend/appflowy_tauri/src/appflowy_app/stores/reducers/workspace/slice.ts+++ b/frontend/appflowy_tauri/src/appflowy_app/stores/reducers/workspace/slice.ts@@ -28,6 +28,14 @@ export const workspaceSlice = createSlice({) => {return action.payload;},++ updateCurrentWorkspace: (state, action: PayloadAction<Partial<WorkspaceItem>>) => {+ if (!state.currentWorkspace) return;+ state.currentWorkspace = {+ ...state.currentWorkspace,+ ...action.payload,+ };+ },},});diff --git a/frontend/appflowy_tauri/src/appflowy_app/utils/avatar.ts b/frontend/appflowy_tauri/src/appflowy_app/utils/avatar.tsnew file mode 100644index 0000000000..a9a752c579--- /dev/null+++ b/frontend/appflowy_tauri/src/appflowy_app/utils/avatar.ts@@ -0,0 +1,26 @@+export function stringToColor(string: string) {+ let hash = 0;+ let i;++ /* eslint-disable no-bitwise */+ for (i = 0; i < string.length; i += 1) {+ hash = string.charCodeAt(i) + ((hash << 5) - hash);+ }++ let color = '#';++ for (i = 0; i < 3; i += 1) {+ const value = (hash >> (i * 8)) & 0xff;++ color += `00${value.toString(16)}`.slice(-2);+ }+ /* eslint-enable no-bitwise */++ return color;+}++export function stringToShortName(string: string) {+ const [firstName, lastName = ''] = string.split(' ');++ return `${firstName.charAt(0)}${lastName.charAt(0)}`;+}diff --git a/frontend/appflowy_tauri/src/appflowy_app/utils/mui.ts b/frontend/appflowy_tauri/src/appflowy_app/utils/mui.tsindex badd5c60a3..94e2cf94d5 100644--- a/frontend/appflowy_tauri/src/appflowy_app/utils/mui.ts+++ b/frontend/appflowy_tauri/src/appflowy_app/utils/mui.ts@@ -56,7 +56,10 @@ export const getDesignTokens = (isDark: boolean): ThemeOptions => {},outlinedInherit: {color: 'var(--text-title)',- borderColor: 'var(--line-divider)',+ borderColor: 'var(--line-border)',+ '&:hover': {+ boxShadow: 'var(--shadow)',+ },},},},diff --git a/frontend/appflowy_tauri/vite.config.ts b/frontend/appflowy_tauri/vite.config.tsindex a0153b9276..b571cc40de 100644--- a/frontend/appflowy_tauri/vite.config.ts+++ b/frontend/appflowy_tauri/vite.config.ts@@ -33,7 +33,7 @@ export default defineConfig({},}),],- publicDir: '../appflowy_flutter/assets',+// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`// prevent vite from obscuring rust errorsclearScreen: false,diff --git a/frontend/resources/translations/en.json b/frontend/resources/translations/en.jsonindex fb50bf0998..8481650cf8 100644--- a/frontend/resources/translations/en.json+++ b/frontend/resources/translations/en.json@@ -257,7 +257,14 @@"remove": "Remove","dontRemove": "Don't remove","copyLink": "Copy Link",- "align": "Align"+ "align": "Align",+ "login": "Login",+ "logout": "Log out",+ "deleteAccount": "Delete account",+ "back": "Back",+ "signInGoogle": "Sign in with Google",+ "signInGithub": "Sign in with Github",+ "signInDiscord": "Sign in with Discord"},"label": {"welcome": "Welcome!",@@ -1356,5 +1363,47 @@"addField": "Add field","userIcon": "User icon"},- "noLogFiles": "There're no log files"+ "noLogFiles": "There're no log files",+ "newSettings": {+ "myAccount": {+ "title": "My account",+ "subtitle": "Customize your profile, manage account security, open AI keys, or login into your account.",+ "profileLabel": "Account name & Profile image",+ "profileNamePlaceholder": "Enter your name",+ "accountSecurity": "Account security",+ "2FA": "2-Step Authentication",+ "aiKeys": "AI keys",+ "accountLogin": "Account Login",+ "updateNameError": "Failed to update name",+ "updateIconError": "Failed to update icon",+ "deleteAccount": {+ "title": "Delete Account",+ "subtitle": "Permanently delete your account and all of your data.",+ "deleteMyAccount": "Delete my account",+ "dialogTitle": "Delete account",+ "dialogContent1": "Are you sure you want to permanently delete your account?",+ "dialogContent2": "This action cannot be undone, and will remove access from all teamspaces, erasing your entire account, including private workspaces, and removing you from all shared workspaces."+ }+ },+ "workplace": {+ "name": "Workplace",+ "title": "Workplace Settings",+ "subtitle": "Customize your workspace appearance, theme, font, text layout, date, time, and language.",+ "workplaceName": "Workplace name",+ "workplaceNamePlaceholder": "Enter workplace name",+ "workplaceIcon": "Workplace icon",+ "workplaceIconSubtitle": "Upload an image or use an emoji for your workspace. Icon will show in your sidebar and notifications",+ "renameError": "Failed to rename workplace",+ "updateIconError": "Failed to update icon",+ "appearance": {+ "name": "Appearance",+ "themeMode": {+ "auto": "Auto",+ "light": "Light",+ "dark": "Dark"+ },+ "language": "Language"+ }+ }+ }}\ No newline at end of file