diff --git a/frontend/appflowy_tauri/src/appflowy_app/App.tsx b/frontend/appflowy_tauri/src/appflowy_app/App.tsx index 5bd4b3830a..9589cfa2d6 100644 --- a/frontend/appflowy_tauri/src/appflowy_app/App.tsx +++ b/frontend/appflowy_tauri/src/appflowy_app/App.tsx @@ -1,6 +1,6 @@ import { Routes, Route, BrowserRouter } from 'react-router-dom'; -import { TestColors } from './components/TestColors/TestColors'; +import { ColorPalette } from './components/tests/ColorPalette'; import { Provider } from 'react-redux'; import { store } from './stores/store'; import { DocumentPage } from './views/DocumentPage'; @@ -15,6 +15,7 @@ import initializeI18n from './stores/i18n/initializeI18n'; import { TestAPI } from './components/tests/TestAPI'; import { GetStarted } from './components/auth/GetStarted/GetStarted'; import { ErrorBoundary } from 'react-error-boundary'; +import { AllIcons } from '$app/components/tests/AllIcons'; initializeI18n(); @@ -25,7 +26,8 @@ const App = () => { }> - } /> + } /> + } /> } /> } /> } /> diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/NavigationPanel/NavigationPanel.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/layout/NavigationPanel/NavigationPanel.tsx index e3528ca1f0..fc47388757 100644 --- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/NavigationPanel/NavigationPanel.tsx +++ b/frontend/appflowy_tauri/src/appflowy_app/components/layout/NavigationPanel/NavigationPanel.tsx @@ -117,6 +117,7 @@ export const NavigationPanel = ({ {/**/} + {/*Trash Button*/} @@ -158,7 +159,7 @@ export const TestBackendButton = () => { onClick={() => navigate('/page/api-test')} className={'flex w-full items-center rounded-lg px-4 py-2 hover:bg-surface-2'} > - APITest + API Test ); }; @@ -171,7 +172,19 @@ export const DesignSpec = () => { onClick={() => navigate('page/colors')} className={'flex w-full items-center rounded-lg px-4 py-2 hover:bg-surface-2'} > - Design Specs + Color Palette + + ); +}; + +export const AllIcons = () => { + const navigate = useNavigate(); + return ( + ); }; diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/TestColors/TestColors.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/tests/AllIcons.tsx similarity index 74% rename from frontend/appflowy_tauri/src/appflowy_app/components/TestColors/TestColors.tsx rename to frontend/appflowy_tauri/src/appflowy_app/components/tests/AllIcons.tsx index a9b6e3ada5..7cea4374ca 100644 --- a/frontend/appflowy_tauri/src/appflowy_app/components/TestColors/TestColors.tsx +++ b/frontend/appflowy_tauri/src/appflowy_app/components/tests/AllIcons.tsx @@ -1,10 +1,10 @@ import AddSvg from '$app/components/_shared/svg/AddSvg'; -import { ChecklistTypeSvg } from '$app/components/_shared/svg/ChecklistTypeSvg'; -import { CheckmarkSvg } from '$app/components/_shared/svg/CheckmarkSvg'; import { ArrowLeftSvg } from '$app/components/_shared/svg/ArrowLeftSvg'; import { ArrowRightSvg } from '$app/components/_shared/svg/ArrowRightSvg'; import { BoardSvg } from '$app/components/_shared/svg/BoardSvg'; import { CheckboxSvg } from '$app/components/_shared/svg/CheckboxSvg'; +import { ChecklistTypeSvg } from '$app/components/_shared/svg/ChecklistTypeSvg'; +import { CheckmarkSvg } from '$app/components/_shared/svg/CheckmarkSvg'; import { ClockSvg } from '$app/components/_shared/svg/ClockSvg'; import { CloseSvg } from '$app/components/_shared/svg/CloseSvg'; import { CopySvg } from '$app/components/_shared/svg/CopySvg'; @@ -20,6 +20,7 @@ import { EyeClosedSvg } from '$app/components/_shared/svg/EyeClosedSvg'; import { EyeOpenSvg } from '$app/components/_shared/svg/EyeOpenSvg'; import { FilterSvg } from '$app/components/_shared/svg/FilterSvg'; import { GridSvg } from '$app/components/_shared/svg/GridSvg'; +import { GroupByFieldSvg } from '$app/components/_shared/svg/GroupByFieldSvg'; import { HideMenuSvg } from '$app/components/_shared/svg/HideMenuSvg'; import { InformationSvg } from '$app/components/_shared/svg/InformationSvg'; import { LogoutSvg } from '$app/components/_shared/svg/LogoutSvg'; @@ -32,19 +33,17 @@ import { ShowMenuSvg } from '$app/components/_shared/svg/ShowMenuSvg'; import { SingleSelectTypeSvg } from '$app/components/_shared/svg/SingleSelectTypeSvg'; import { SkipLeftSvg } from '$app/components/_shared/svg/SkipLeftSvg'; import { SkipRightSvg } from '$app/components/_shared/svg/SkipRightSvg'; -import { SortSharp } from '@mui/icons-material'; import { SortSvg } from '$app/components/_shared/svg/SortSvg'; import { TextTypeSvg } from '$app/components/_shared/svg/TextTypeSvg'; import { TrashSvg } from '$app/components/_shared/svg/TrashSvg'; import { UrlTypeSvg } from '$app/components/_shared/svg/UrlTypeSvg'; -import { GroupByFieldSvg } from '$app/components/_shared/svg/GroupByFieldSvg'; -export const TestColors = () => { +export const AllIcons = () => { return (
-

Icons

+

Icons

-
+
@@ -164,45 +163,6 @@ export const TestColors = () => {
-

Colors

-

Main

-
-
-
-
-
-
-
-
-
-

Tint

-
-
-
-
-
-
-
-
-
-
-
-

Shades

-
-
-
-
-
-
-
-
-

Surface

-
-
-
-
-
-
); }; diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/tests/ColorPalette.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/tests/ColorPalette.tsx new file mode 100644 index 0000000000..c683898029 --- /dev/null +++ b/frontend/appflowy_tauri/src/appflowy_app/components/tests/ColorPalette.tsx @@ -0,0 +1,45 @@ +export const ColorPalette = () => { + return ( +
+

Colors

+

Main

+
+
+
+
+
+
+
+
+
+

Tint

+
+
+
+
+
+
+
+
+
+
+
+

Shades

+
+
+
+
+
+
+
+
+

Surface

+
+
+
+
+
+
+
+ ); +}; diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/TestFonts/TestFonts.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/tests/TestFonts.tsx similarity index 100% rename from frontend/appflowy_tauri/src/appflowy_app/components/TestFonts/TestFonts.tsx rename to frontend/appflowy_tauri/src/appflowy_app/components/tests/TestFonts.tsx