diff --git a/.cspell.json b/.cspell.json index 7ebafd15d..cc7ff3552 100644 --- a/.cspell.json +++ b/.cspell.json @@ -266,6 +266,7 @@ "stylesheet", "subsquently", "svgs", + "svgr", "Swith", "Syle", "Synk", diff --git a/apps/web/app/[locale]/auth/passcode/component.tsx b/apps/web/app/[locale]/auth/passcode/component.tsx index 5b286ec54..1fe11c245 100644 --- a/apps/web/app/[locale]/auth/passcode/component.tsx +++ b/apps/web/app/[locale]/auth/passcode/component.tsx @@ -5,7 +5,7 @@ import { TAuthenticationPasscode, useAuthenticationPasscode } from '@app/hooks'; import { IClassName } from '@app/interfaces'; import { clsxm } from '@app/utils'; import { AuthCodeInputField, Avatar, BackButton, Button, Card, InputField, SpinnerLoader, Text } from 'lib/components'; -import { CircleIcon, TickCircleIconV2 } from 'lib/components/svgs'; +import { CircleIcon, CheckCircleOutlineIcon } from 'assets/svg'; import { AuthLayout } from 'lib/layout'; import { useTranslations } from 'next-intl'; import Link from 'next/link'; @@ -308,7 +308,7 @@ function WorkSpaceScreen({ form, className }: { form: TAuthenticationPasscode } }} > {selectedWorkspace === index ? ( - + ) : ( )} @@ -345,7 +345,7 @@ function WorkSpaceScreen({ form, className }: { form: TAuthenticationPasscode } }} > {selectedTeam === team.team_id ? ( - + ) : ( )} diff --git a/apps/web/app/[locale]/kanban/page.tsx b/apps/web/app/[locale]/kanban/page.tsx index c211b8374..4c8bafc48 100644 --- a/apps/web/app/[locale]/kanban/page.tsx +++ b/apps/web/app/[locale]/kanban/page.tsx @@ -6,9 +6,6 @@ import { useKanban } from '@app/hooks/features/useKanban'; import KanbanBoardSkeleton from '@components/shared/skeleton/KanbanBoardSkeleton'; import { withAuthentication } from 'lib/app/authenticator'; import { Breadcrumb, Button, InputField } from 'lib/components'; -import { AddIcon, PeopleIcon, SearchNormalIcon, Settings4Icon } from 'lib/components/svgs'; -import { ChevronDownIcon } from '@heroicons/react/20/solid'; - import { KanbanView } from 'lib/features/team-members-kanban-view'; import { MainLayout } from 'lib/layout'; import { useState } from 'react'; @@ -18,8 +15,8 @@ import ImageComponent, { ImageOverlapperProps } from 'lib/components/image-overl import Separator from '@components/ui/separator'; import { clsxm } from '@app/utils'; import HeaderTabs from '@components/pages/main/header-tabs'; -import { Select, SelectContent, SelectItem } from '@components/ui/select'; -import { SelectTrigger } from '@radix-ui/react-select'; +import { AddIcon, SearchNormalIcon, SettingFilterIcon, PeoplesIcon } from 'assets/svg'; +import { Select, SelectContent, SelectItem, SelectTrigger } from '@components/ui/select'; const Kanban = () => { const { data } = useKanban(); @@ -58,7 +55,7 @@ const Kanban = () => {
- +
@@ -78,8 +75,10 @@ const Kanban = () => {
+
@@ -107,7 +106,6 @@ const Kanban = () => {

{t('common.LABEL')}

-
{Array.from({ length: 3 }).map((_, index) => ( @@ -144,7 +141,7 @@ const Kanban = () => { 'h-[2.75rem]' )} > - + {t('common.FILTER')}
@@ -161,7 +158,7 @@ const Kanban = () => { className="p-0 m-0 ml-[0.9rem] min-w-0 absolute right-3" type="submit" > - + } /> diff --git a/apps/web/app/[locale]/page-component.tsx b/apps/web/app/[locale]/page-component.tsx index 8b9b40e64..dd2727d1c 100644 --- a/apps/web/app/[locale]/page-component.tsx +++ b/apps/web/app/[locale]/page-component.tsx @@ -8,7 +8,6 @@ import { clsxm } from '@app/utils'; import NoTeam from '@components/pages/main/no-team'; import { withAuthentication } from 'lib/app/authenticator'; import { Breadcrumb, Card, Container } from 'lib/components'; -import { PeopleIcon } from 'lib/components/svgs'; import { AuthUserTaskInput, TeamInvitations, @@ -37,6 +36,7 @@ import { ChevronDown } from 'lucide-react'; import HeaderTabs from '@components/pages/main/header-tabs'; import { headerTabs } from '@app/stores/header-tabs'; import { usePathname } from 'next/navigation'; +import { PeoplesIcon } from 'assets/svg'; function MainPage() { const t = useTranslations(); @@ -67,7 +67,7 @@ function MainPage() {
- +
diff --git a/apps/web/app/[locale]/profile/[memberId]/page.tsx b/apps/web/app/[locale]/profile/[memberId]/page.tsx index 81d7279f3..2a68f67a5 100644 --- a/apps/web/app/[locale]/profile/[memberId]/page.tsx +++ b/apps/web/app/[locale]/profile/[memberId]/page.tsx @@ -8,7 +8,7 @@ import { clsxm, isValidUrl } from '@app/utils'; import clsx from 'clsx'; import { withAuthentication } from 'lib/app/authenticator'; import { Avatar, Breadcrumb, Container, Text, VerticalSeparator } from 'lib/components'; -import { ArrowLeft } from 'lib/components/svgs'; +import { ArrowLeftIcon } from 'assets/svg'; import { TaskFilter, Timer, TimerStatus, UserProfileTask, getTimerStatusValue, useTaskFilter } from 'lib/features'; import { MainHeader, MainLayout } from 'lib/layout'; import Link from 'next/link'; @@ -74,7 +74,7 @@ const Profile = React.memo(function ProfilePage({ params }: { params: { memberId {/* Breadcrumb */}
- + diff --git a/apps/web/app/[locale]/settings/layout.tsx b/apps/web/app/[locale]/settings/layout.tsx index ee2613cbe..4e03ee4b1 100644 --- a/apps/web/app/[locale]/settings/layout.tsx +++ b/apps/web/app/[locale]/settings/layout.tsx @@ -3,7 +3,7 @@ import { userState } from '@app/stores'; import { fullWidthState } from '@app/stores/fullWidth'; import SettingsPersonalSkeleton from '@components/shared/skeleton/SettingsPersonalSkeleton'; import { Breadcrumb, Container } from 'lib/components'; -import { ArrowLeft } from 'lib/components/svgs'; +import { ArrowLeftIcon } from 'assets/svg'; import { MainLayout } from 'lib/layout'; import { LeftSideSettingMenu } from 'lib/settings'; import { useTranslations } from 'next-intl'; @@ -34,7 +34,7 @@ const SettingsLayout = ({ children }: { children: JSX.Element }) => {
- + diff --git a/apps/web/app/[locale]/task/[id]/page.tsx b/apps/web/app/[locale]/task/[id]/page.tsx index ac2cf1be3..bbde108e6 100644 --- a/apps/web/app/[locale]/task/[id]/page.tsx +++ b/apps/web/app/[locale]/task/[id]/page.tsx @@ -9,7 +9,7 @@ import TaskDetailsAside from '@components/pages/task/task-details-aside'; import TaskTitleBlock from '@components/pages/task/title-block/task-title-block'; import { withAuthentication } from 'lib/app/authenticator'; import { Breadcrumb, Container } from 'lib/components'; -import { ArrowLeft } from 'lib/components/svgs'; +import { ArrowLeftIcon } from 'assets/svg'; import { MainLayout } from 'lib/layout'; import { useRouter, useParams } from 'next/navigation'; import { useEffect } from 'react'; @@ -62,7 +62,7 @@ const TaskDetails = () => { router.replace('/'); }} > - + diff --git a/apps/web/assets/Ellipse.svg b/apps/web/assets/Ellipse.svg deleted file mode 100644 index ce6d6eaff..000000000 --- a/apps/web/assets/Ellipse.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/apps/web/assets/breadcrumb/peoples.svg b/apps/web/assets/breadcrumb/peoples.svg new file mode 100644 index 000000000..0729d6440 --- /dev/null +++ b/apps/web/assets/breadcrumb/peoples.svg @@ -0,0 +1,50 @@ + + + + + + + + diff --git a/apps/web/assets/colored/is-equal.svg b/apps/web/assets/colored/is-equal.svg new file mode 100644 index 000000000..868a3ffbb --- /dev/null +++ b/apps/web/assets/colored/is-equal.svg @@ -0,0 +1,12 @@ + + + diff --git a/apps/web/assets/colored/pause.svg b/apps/web/assets/colored/pause.svg new file mode 100644 index 000000000..611fcc93a --- /dev/null +++ b/apps/web/assets/colored/pause.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/web/assets/colored/stop-circle.svg b/apps/web/assets/colored/stop-circle.svg new file mode 100644 index 000000000..193f2dd5b --- /dev/null +++ b/apps/web/assets/colored/stop-circle.svg @@ -0,0 +1,10 @@ + + + diff --git a/apps/web/assets/colored/trash.svg b/apps/web/assets/colored/trash.svg new file mode 100644 index 000000000..7f4d504dc --- /dev/null +++ b/apps/web/assets/colored/trash.svg @@ -0,0 +1,43 @@ + + + + + + + diff --git a/apps/web/assets/colored/user-online-tracking-timer.svg b/apps/web/assets/colored/user-online-tracking-timer.svg new file mode 100644 index 000000000..48fa9562a --- /dev/null +++ b/apps/web/assets/colored/user-online-tracking-timer.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/web/assets/colored/user-online.svg b/apps/web/assets/colored/user-online.svg new file mode 100644 index 000000000..d6ded017a --- /dev/null +++ b/apps/web/assets/colored/user-online.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/web/assets/common/add.svg b/apps/web/assets/common/add.svg new file mode 100644 index 000000000..ab6de791e --- /dev/null +++ b/apps/web/assets/common/add.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/web/components/ui/svgs/left-arrow-dark.tsx b/apps/web/assets/common/arrows/arrow-left.svg similarity index 62% rename from apps/web/components/ui/svgs/left-arrow-dark.tsx rename to apps/web/assets/common/arrows/arrow-left.svg index e2356a90a..ecce0b6b3 100644 --- a/apps/web/components/ui/svgs/left-arrow-dark.tsx +++ b/apps/web/assets/common/arrows/arrow-left.svg @@ -1,9 +1,14 @@ -export const LeftArrowDark = () => { - return ( - + { /> - ); -}; diff --git a/apps/web/components/ui/svgs/left-arrow.tsx b/apps/web/assets/common/arrows/arrow-right.svg similarity index 59% rename from apps/web/components/ui/svgs/left-arrow.tsx rename to apps/web/assets/common/arrows/arrow-right.svg index 76c223171..8ff2be887 100644 --- a/apps/web/components/ui/svgs/left-arrow.tsx +++ b/apps/web/assets/common/arrows/arrow-right.svg @@ -1,9 +1,15 @@ -export const LeftArrow = () => { - return ( - + { /> - ); -}; diff --git a/apps/web/assets/common/arrows/chevron-down.svg b/apps/web/assets/common/arrows/chevron-down.svg new file mode 100644 index 000000000..c5627a521 --- /dev/null +++ b/apps/web/assets/common/arrows/chevron-down.svg @@ -0,0 +1,19 @@ + + + diff --git a/apps/web/assets/common/arrows/chevron-left.svg b/apps/web/assets/common/arrows/chevron-left.svg new file mode 100644 index 000000000..03a426595 --- /dev/null +++ b/apps/web/assets/common/arrows/chevron-left.svg @@ -0,0 +1,19 @@ + + + diff --git a/apps/web/assets/common/arrows/chevron-right.svg b/apps/web/assets/common/arrows/chevron-right.svg new file mode 100644 index 000000000..bea6d7073 --- /dev/null +++ b/apps/web/assets/common/arrows/chevron-right.svg @@ -0,0 +1,19 @@ + + + diff --git a/apps/web/assets/common/arrows/chevron-up-double.svg b/apps/web/assets/common/arrows/chevron-up-double.svg new file mode 100644 index 000000000..3e57d3af2 --- /dev/null +++ b/apps/web/assets/common/arrows/chevron-up-double.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/web/assets/common/arrows/chevron-up.svg b/apps/web/assets/common/arrows/chevron-up.svg new file mode 100644 index 000000000..4f6ace6e0 --- /dev/null +++ b/apps/web/assets/common/arrows/chevron-up.svg @@ -0,0 +1,17 @@ + + + diff --git a/apps/web/assets/common/arrows/refresh.svg b/apps/web/assets/common/arrows/refresh.svg new file mode 100644 index 000000000..5b6256251 --- /dev/null +++ b/apps/web/assets/common/arrows/refresh.svg @@ -0,0 +1 @@ + diff --git a/apps/web/assets/common/bug.svg b/apps/web/assets/common/bug.svg new file mode 100644 index 000000000..e30e7e8bf --- /dev/null +++ b/apps/web/assets/common/bug.svg @@ -0,0 +1,6 @@ + + + diff --git a/apps/web/assets/common/cross-circle.svg b/apps/web/assets/common/cross-circle.svg new file mode 100644 index 000000000..4997c80f1 --- /dev/null +++ b/apps/web/assets/common/cross-circle.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/apps/web/assets/common/cross.svg b/apps/web/assets/common/cross.svg new file mode 100644 index 000000000..681905398 --- /dev/null +++ b/apps/web/assets/common/cross.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/apps/web/assets/common/expand.svg b/apps/web/assets/common/expand.svg new file mode 100644 index 000000000..d5455d3a6 --- /dev/null +++ b/apps/web/assets/common/expand.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/web/assets/common/globe.svg b/apps/web/assets/common/globe.svg new file mode 100644 index 000000000..29deed241 --- /dev/null +++ b/apps/web/assets/common/globe.svg @@ -0,0 +1,45 @@ + + + + + + + diff --git a/apps/web/assets/common/home.svg b/apps/web/assets/common/home.svg new file mode 100644 index 000000000..8127e2ca0 --- /dev/null +++ b/apps/web/assets/common/home.svg @@ -0,0 +1,23 @@ + + + + diff --git a/apps/web/assets/common/lock.svg b/apps/web/assets/common/lock.svg new file mode 100644 index 000000000..90a7799e4 --- /dev/null +++ b/apps/web/assets/common/lock.svg @@ -0,0 +1,35 @@ + + + + + diff --git a/apps/web/assets/common/note.svg b/apps/web/assets/common/note.svg new file mode 100644 index 000000000..8aa471900 --- /dev/null +++ b/apps/web/assets/common/note.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/apps/web/assets/common/search-normal.svg b/apps/web/assets/common/search-normal.svg new file mode 100644 index 000000000..b52c6d6f0 --- /dev/null +++ b/apps/web/assets/common/search-normal.svg @@ -0,0 +1,16 @@ + + + + diff --git a/apps/web/assets/common/search-status.svg b/apps/web/assets/common/search-status.svg new file mode 100644 index 000000000..f6091f131 --- /dev/null +++ b/apps/web/assets/common/search-status.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/apps/web/assets/common/setting-filter.svg b/apps/web/assets/common/setting-filter.svg new file mode 100644 index 000000000..ab84889bb --- /dev/null +++ b/apps/web/assets/common/setting-filter.svg @@ -0,0 +1,51 @@ + + + + + + + + diff --git a/apps/web/assets/common/setting-gear.svg b/apps/web/assets/common/setting-gear.svg new file mode 100644 index 000000000..a39f85e6a --- /dev/null +++ b/apps/web/assets/common/setting-gear.svg @@ -0,0 +1 @@ + diff --git a/apps/web/assets/common/setting-outline.svg b/apps/web/assets/common/setting-outline.svg new file mode 100644 index 000000000..967dc5a54 --- /dev/null +++ b/apps/web/assets/common/setting-outline.svg @@ -0,0 +1,14 @@ + + + + diff --git a/apps/web/assets/common/tick/circle-outline.svg b/apps/web/assets/common/tick/circle-outline.svg new file mode 100644 index 000000000..b2138a2d1 --- /dev/null +++ b/apps/web/assets/common/tick/circle-outline.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/web/assets/common/tick/circle.svg b/apps/web/assets/common/tick/circle.svg new file mode 100644 index 000000000..fccdf550a --- /dev/null +++ b/apps/web/assets/common/tick/circle.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/web/assets/common/tick/simple.svg b/apps/web/assets/common/tick/simple.svg new file mode 100644 index 000000000..037671873 --- /dev/null +++ b/apps/web/assets/common/tick/simple.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/web/assets/common/tick/square-outline.svg b/apps/web/assets/common/tick/square-outline.svg new file mode 100644 index 000000000..a5d4cef06 --- /dev/null +++ b/apps/web/assets/common/tick/square-outline.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/web/assets/common/tick/square-round.svg b/apps/web/assets/common/tick/square-round.svg new file mode 100644 index 000000000..175a71a3c --- /dev/null +++ b/apps/web/assets/common/tick/square-round.svg @@ -0,0 +1,12 @@ + + + diff --git a/apps/web/assets/common/user-icon-outline.svg b/apps/web/assets/common/user-icon-outline.svg new file mode 100644 index 000000000..8c482ae9e --- /dev/null +++ b/apps/web/assets/common/user-icon-outline.svg @@ -0,0 +1,23 @@ + + + + diff --git a/apps/web/assets/common/user-linear.svg b/apps/web/assets/common/user-linear.svg new file mode 100644 index 000000000..b73e67637 --- /dev/null +++ b/apps/web/assets/common/user-linear.svg @@ -0,0 +1,38 @@ + + + + + + diff --git a/apps/web/assets/common/user-manager.svg b/apps/web/assets/common/user-manager.svg new file mode 100644 index 000000000..f60f23b82 --- /dev/null +++ b/apps/web/assets/common/user-manager.svg @@ -0,0 +1,9 @@ + + + diff --git a/apps/web/assets/dnd/six-square-grid.svg b/apps/web/assets/dnd/six-square-grid.svg new file mode 100644 index 000000000..327dff2ab --- /dev/null +++ b/apps/web/assets/dnd/six-square-grid.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/web/assets/kanban/board.svg b/apps/web/assets/kanban/board.svg new file mode 100644 index 000000000..c4c703ce1 --- /dev/null +++ b/apps/web/assets/kanban/board.svg @@ -0,0 +1,6 @@ + + + diff --git a/apps/web/assets/menu/line-dot-box.svg b/apps/web/assets/menu/line-dot-box.svg new file mode 100644 index 000000000..95f95f594 --- /dev/null +++ b/apps/web/assets/menu/line-dot-box.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/apps/web/assets/menu/square-4-outline.svg b/apps/web/assets/menu/square-4-outline.svg new file mode 100644 index 000000000..10e99aff9 --- /dev/null +++ b/apps/web/assets/menu/square-4-outline.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/apps/web/assets/menu/square-4-stack.svg b/apps/web/assets/menu/square-4-stack.svg new file mode 100644 index 000000000..62a4366b2 --- /dev/null +++ b/apps/web/assets/menu/square-4-stack.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/apps/web/assets/menu/three-circle-outline-horizontal.svg b/apps/web/assets/menu/three-circle-outline-horizontal.svg new file mode 100644 index 000000000..f67673473 --- /dev/null +++ b/apps/web/assets/menu/three-circle-outline-horizontal.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/web/assets/menu/three-circle-outline-vertical.svg b/apps/web/assets/menu/three-circle-outline-vertical.svg new file mode 100644 index 000000000..bae180a78 --- /dev/null +++ b/apps/web/assets/menu/three-circle-outline-vertical.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/apps/web/assets/menu/three-dot-line.svg b/apps/web/assets/menu/three-dot-line.svg new file mode 100644 index 000000000..992237a4e --- /dev/null +++ b/apps/web/assets/menu/three-dot-line.svg @@ -0,0 +1,12 @@ + + + diff --git a/apps/web/assets/menu/three-number-line.svg b/apps/web/assets/menu/three-number-line.svg new file mode 100644 index 000000000..0ae6119b3 --- /dev/null +++ b/apps/web/assets/menu/three-number-line.svg @@ -0,0 +1,13 @@ + + + {' '} + diff --git a/apps/web/assets/svg.ts b/apps/web/assets/svg.ts new file mode 100644 index 000000000..08f99fe5f --- /dev/null +++ b/apps/web/assets/svg.ts @@ -0,0 +1,113 @@ +// breadcrumb +export { default as PeoplesIcon } from './breadcrumb/peoples.svg'; + +// colored +export { default as IsEqualIcon } from './colored/is-equal.svg'; +export { default as PauseIcon } from './colored/pause.svg'; +export { default as TrashIcon } from './colored/trash.svg'; +export { default as UserOnlineTrackingTimerIcon } from './colored/user-online-tracking-timer.svg'; +export { default as UserOnlineIcon } from './colored/user-online.svg'; +export { default as StopCircleIcon } from './colored/stop-circle.svg'; + +// common +export { default as AddIcon } from './common/add.svg'; +export { default as ArrowLeftIcon } from './common/arrows/arrow-left.svg'; +export { default as ArrowRightIcon } from './common/arrows/arrow-right.svg'; +export { default as ChevronDownIcon } from './common/arrows/chevron-down.svg'; +export { default as ChevronLeftIcon } from './common/arrows/chevron-left.svg'; +export { default as ChevronUpDoubleIcon } from './common/arrows/chevron-up-double.svg'; +export { default as ChevronRightIcon } from './common/arrows/chevron-right.svg'; +export { default as ChevronUpIcon } from './common/arrows/chevron-up.svg'; +export { default as RefreshIcon } from './common/arrows/refresh.svg'; +export { default as BugIcon } from './common/bug.svg'; +export { default as CrossCircleIcon } from './common/cross-circle.svg'; +export { default as CrossIcon } from './common/cross.svg'; +export { default as ExpandIcon } from './common/expand.svg'; +export { default as GlobeIcon } from './common/globe.svg'; +export { default as HomeIcon } from './common/home.svg'; // no use +export { default as LockIcon } from './common/lock.svg'; +export { default as NoteIcon } from './common/note.svg'; +export { default as SearchNormalIcon } from './common/search-normal.svg'; +export { default as SearchStatusIcon } from './common/search-status.svg'; +export { default as SettingFilterIcon } from './common/setting-filter.svg'; +export { default as SettingGearIcon } from './common/setting-gear.svg'; +export { default as SettingOutlineIcon } from './common/setting-outline.svg'; + +// checkbox +export { default as CheckCircleOutlineIcon } from './common/tick/circle-outline.svg'; +export { default as CheckCircleTickIcon } from './common/tick/circle.svg'; +export { default as CheckSimpleIcon } from './common/tick/simple.svg'; +export { default as CheckSquareOutlineIcon } from './common/tick/square-outline.svg'; +export { default as CheckSquareRoundIcon } from './common/tick/square-round.svg'; +export { default as UserOutlineIcon } from './common/user-icon-outline.svg'; +export { default as UserLinearIcon } from './common/user-linear.svg'; +export { default as UserManagerIcon } from './common/user-manager.svg'; + +// dnd +export { default as SixSquareGridIcon } from './dnd/six-square-grid.svg'; + +// kanban +export { default as BoardIcon } from './kanban/board.svg'; + +// menu +export { default as LineDotBoxIcon } from './menu/line-dot-box.svg'; // keyboard shortcut icon +export { default as Square4OutlineIcon } from './menu/square-4-outline.svg'; +export { default as Square4StackIcon } from './menu/square-4-stack.svg'; +export { default as ThreeCircleOutlineHorizontalIcon } from './menu/three-circle-outline-horizontal.svg'; +export { default as ThreeCircleOutlineVerticalIcon } from './menu/three-circle-outline-vertical.svg'; +export { default as ThreeDotLineIcon } from './menu/three-dot-line.svg'; +export { default as ThreeNumberLineIcon } from './menu/three-number-line.svg'; + +// text +export { default as BTextIcon } from './text/B-text.svg'; +export { default as ItalicTextIcon } from './text/Italic-text.svg'; +export { default as MTextIcon } from './text/M-text.svg'; +export { default as STextIcon } from './text/S-text.svg'; +export { default as XLTextIcon } from './text/XL-text.svg'; +export { default as XSTextIcon } from './text/XS-text.svg'; +export { default as XXLTextIcon } from './text/XXL-text.svg'; +export { default as AlignCenterIcon } from './text/align-center.svg'; +export { default as AlignFullIcon } from './text/align-full.svg'; +export { default as AlignLeftIcon } from './text/align-left.svg'; +export { default as AlignQuoteIcon } from './text/align-quote.svg'; +export { default as AlignRightIcon } from './text/align-right.svg'; +export { default as CapitalTIcon } from './text/capital-T.svg'; +export { default as CodeIcon } from './text/code.svg'; +export { default as CopyRoundIcon } from './text/copy-round.svg'; +export { default as CopyIcon } from './text/copy.svg'; +export { default as ExternalLinkIcon } from './text/external-link.svg'; +export { default as H1TextIcon } from './text/h1-text.svg'; +export { default as H2TextIcon } from './text/h2-text.svg'; +export { default as LineThroughTextIcon } from './text/line-through-text.svg'; +export { default as LinkRoundIcon } from './text/link-round.svg'; +export { default as UnderlineTextIcon } from './text/underline-text..svg'; +export { default as UnlinkRoundIcon } from './text/unlink-round.svg'; + +// theme +export { default as MoonLightFillIcon } from './theme/moon-light-fill.svg'; +export { default as MoonLightOutlineIcon } from './theme/moon-light-outline.svg'; +export { default as SunFillIcon } from './theme/sun-fill.svg'; +export { default as SunOutlineIcon } from './theme/sun-outline.svg'; + +// timer +export { default as TimerClockIcon } from './timer/clock.svg'; +export { default as TimerPlayIcon } from './timer/play.svg'; +export { default as TimerRecordIcon } from './timer/record.svg'; +export { default as TimerStopIcon } from './timer/stop.svg'; +export { default as TrackingIcon } from './timer/tracking.svg'; + +// unique +export { default as BriefCaseIcon } from './unique/brief-case.svg'; +export { default as BrushSquareIcon } from './unique/brush-square.svg'; +export { default as CircleIcon } from './unique/circle.svg'; +export { default as DevicesIcon } from './unique/devices.svg'; +export { default as EditPenBoxIcon } from './unique/edit-pen-box.svg'; +export { default as EditPenUnderlineIcon } from './unique/edit-pen-underline.svg'; +export { default as LiveShareIcon } from './unique/live-share.svg'; +export { default as LogoutRoundIcon } from './unique/login-round.svg'; +export { default as LoginIcon } from './unique/login.svg'; +export { default as LogoutIcon } from './unique/logout.svg'; +export { default as MailIcon } from './unique/mail.svg'; +export { default as PhoneUpArrowIcon } from './unique/phone-up-arrow.svg'; +export { default as SquareBoxIcon } from './unique/square-box.svg'; +export { default as CubeIcon } from './unique/cube.svg'; diff --git a/apps/web/assets/text/B-text.svg b/apps/web/assets/text/B-text.svg new file mode 100644 index 000000000..40c6bce92 --- /dev/null +++ b/apps/web/assets/text/B-text.svg @@ -0,0 +1,9 @@ + + + diff --git a/apps/web/assets/text/Italic-text.svg b/apps/web/assets/text/Italic-text.svg new file mode 100644 index 000000000..b18c27c15 --- /dev/null +++ b/apps/web/assets/text/Italic-text.svg @@ -0,0 +1,10 @@ + + + diff --git a/apps/web/assets/text/M-text.svg b/apps/web/assets/text/M-text.svg new file mode 100644 index 000000000..9fd593bd0 --- /dev/null +++ b/apps/web/assets/text/M-text.svg @@ -0,0 +1,13 @@ + + + diff --git a/apps/web/assets/text/S-text.svg b/apps/web/assets/text/S-text.svg new file mode 100644 index 000000000..5480b5ef7 --- /dev/null +++ b/apps/web/assets/text/S-text.svg @@ -0,0 +1,13 @@ + + + diff --git a/apps/web/assets/text/XL-text.svg b/apps/web/assets/text/XL-text.svg new file mode 100644 index 000000000..1abcb9aae --- /dev/null +++ b/apps/web/assets/text/XL-text.svg @@ -0,0 +1,13 @@ + + + + diff --git a/apps/web/assets/text/XS-text.svg b/apps/web/assets/text/XS-text.svg new file mode 100644 index 000000000..bb615d780 --- /dev/null +++ b/apps/web/assets/text/XS-text.svg @@ -0,0 +1,16 @@ + + + + diff --git a/apps/web/assets/text/XXL-text.svg b/apps/web/assets/text/XXL-text.svg new file mode 100644 index 000000000..c5bbe6b3b --- /dev/null +++ b/apps/web/assets/text/XXL-text.svg @@ -0,0 +1,18 @@ + + + + + diff --git a/apps/web/assets/text/align-center.svg b/apps/web/assets/text/align-center.svg new file mode 100644 index 000000000..3ea4d36aa --- /dev/null +++ b/apps/web/assets/text/align-center.svg @@ -0,0 +1,11 @@ + + + diff --git a/apps/web/assets/text/align-full.svg b/apps/web/assets/text/align-full.svg new file mode 100644 index 000000000..d21639589 --- /dev/null +++ b/apps/web/assets/text/align-full.svg @@ -0,0 +1,10 @@ + + + diff --git a/apps/web/assets/text/align-left.svg b/apps/web/assets/text/align-left.svg new file mode 100644 index 000000000..638db2f44 --- /dev/null +++ b/apps/web/assets/text/align-left.svg @@ -0,0 +1,10 @@ + + + diff --git a/apps/web/assets/text/align-quote.svg b/apps/web/assets/text/align-quote.svg new file mode 100644 index 000000000..c9e1f48e7 --- /dev/null +++ b/apps/web/assets/text/align-quote.svg @@ -0,0 +1,10 @@ + + + + diff --git a/apps/web/assets/text/align-right.svg b/apps/web/assets/text/align-right.svg new file mode 100644 index 000000000..ffefb9101 --- /dev/null +++ b/apps/web/assets/text/align-right.svg @@ -0,0 +1,10 @@ + + + diff --git a/apps/web/assets/text/capital-T.svg b/apps/web/assets/text/capital-T.svg new file mode 100644 index 000000000..e8499cecb --- /dev/null +++ b/apps/web/assets/text/capital-T.svg @@ -0,0 +1,10 @@ + + + diff --git a/apps/web/assets/text/code.svg b/apps/web/assets/text/code.svg new file mode 100644 index 000000000..7e3a8c325 --- /dev/null +++ b/apps/web/assets/text/code.svg @@ -0,0 +1,9 @@ + + + diff --git a/apps/web/assets/text/copy-round.svg b/apps/web/assets/text/copy-round.svg new file mode 100644 index 000000000..fc9135d39 --- /dev/null +++ b/apps/web/assets/text/copy-round.svg @@ -0,0 +1,20 @@ + + + + diff --git a/apps/web/assets/text/copy.svg b/apps/web/assets/text/copy.svg new file mode 100644 index 000000000..066f53ec7 --- /dev/null +++ b/apps/web/assets/text/copy.svg @@ -0,0 +1,10 @@ + + + diff --git a/apps/web/assets/text/external-link.svg b/apps/web/assets/text/external-link.svg new file mode 100644 index 000000000..b83fa0d76 --- /dev/null +++ b/apps/web/assets/text/external-link.svg @@ -0,0 +1,11 @@ + + + + + + diff --git a/apps/web/assets/text/h1-text.svg b/apps/web/assets/text/h1-text.svg new file mode 100644 index 000000000..5beebc325 --- /dev/null +++ b/apps/web/assets/text/h1-text.svg @@ -0,0 +1,10 @@ + + + diff --git a/apps/web/assets/text/h2-text.svg b/apps/web/assets/text/h2-text.svg new file mode 100644 index 000000000..fe277e42d --- /dev/null +++ b/apps/web/assets/text/h2-text.svg @@ -0,0 +1,9 @@ + + + diff --git a/apps/web/assets/text/line-through-text.svg b/apps/web/assets/text/line-through-text.svg new file mode 100644 index 000000000..b18c27c15 --- /dev/null +++ b/apps/web/assets/text/line-through-text.svg @@ -0,0 +1,10 @@ + + + diff --git a/apps/web/assets/text/link-round.svg b/apps/web/assets/text/link-round.svg new file mode 100644 index 000000000..51266e98c --- /dev/null +++ b/apps/web/assets/text/link-round.svg @@ -0,0 +1,23 @@ + + + + + diff --git a/apps/web/assets/text/underline-text..svg b/apps/web/assets/text/underline-text..svg new file mode 100644 index 000000000..97c89698f --- /dev/null +++ b/apps/web/assets/text/underline-text..svg @@ -0,0 +1,15 @@ + + + + diff --git a/apps/web/assets/text/unlink-round.svg b/apps/web/assets/text/unlink-round.svg new file mode 100644 index 000000000..735da26b4 --- /dev/null +++ b/apps/web/assets/text/unlink-round.svg @@ -0,0 +1 @@ + diff --git a/apps/web/assets/theme/moon-light-fill.svg b/apps/web/assets/theme/moon-light-fill.svg new file mode 100644 index 000000000..95e2c661a --- /dev/null +++ b/apps/web/assets/theme/moon-light-fill.svg @@ -0,0 +1,11 @@ + + + diff --git a/apps/web/assets/theme/moon-light-outline.svg b/apps/web/assets/theme/moon-light-outline.svg new file mode 100644 index 000000000..27e12c551 --- /dev/null +++ b/apps/web/assets/theme/moon-light-outline.svg @@ -0,0 +1,16 @@ + + + + diff --git a/apps/web/assets/theme/sun-fill.svg b/apps/web/assets/theme/sun-fill.svg new file mode 100644 index 000000000..9e6f288c3 --- /dev/null +++ b/apps/web/assets/theme/sun-fill.svg @@ -0,0 +1,18 @@ + + + + diff --git a/apps/web/assets/theme/sun-outline.svg b/apps/web/assets/theme/sun-outline.svg new file mode 100644 index 000000000..f7ea30258 --- /dev/null +++ b/apps/web/assets/theme/sun-outline.svg @@ -0,0 +1,17 @@ + + + + diff --git a/apps/web/assets/timer/clock.svg b/apps/web/assets/timer/clock.svg new file mode 100644 index 000000000..1a9afb40d --- /dev/null +++ b/apps/web/assets/timer/clock.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/web/assets/timer/play.svg b/apps/web/assets/timer/play.svg new file mode 100644 index 000000000..8340554f2 --- /dev/null +++ b/apps/web/assets/timer/play.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/web/assets/timer/record.svg b/apps/web/assets/timer/record.svg new file mode 100644 index 000000000..7a33103aa --- /dev/null +++ b/apps/web/assets/timer/record.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/web/assets/timer/stop.svg b/apps/web/assets/timer/stop.svg new file mode 100644 index 000000000..3930d3f8a --- /dev/null +++ b/apps/web/assets/timer/stop.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/web/assets/timer/tracking.svg b/apps/web/assets/timer/tracking.svg new file mode 100644 index 000000000..c90a1dfb5 --- /dev/null +++ b/apps/web/assets/timer/tracking.svg @@ -0,0 +1,15 @@ + + + diff --git a/apps/web/assets/unique/brief-case.svg b/apps/web/assets/unique/brief-case.svg new file mode 100644 index 000000000..f803ee07a --- /dev/null +++ b/apps/web/assets/unique/brief-case.svg @@ -0,0 +1,49 @@ + + + + + + + diff --git a/apps/web/assets/unique/brush-square.svg b/apps/web/assets/unique/brush-square.svg new file mode 100644 index 000000000..7a1bf3db3 --- /dev/null +++ b/apps/web/assets/unique/brush-square.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + diff --git a/apps/web/assets/unique/circle.svg b/apps/web/assets/unique/circle.svg new file mode 100644 index 000000000..12cc9f4cb --- /dev/null +++ b/apps/web/assets/unique/circle.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/web/assets/unique/cube.svg b/apps/web/assets/unique/cube.svg new file mode 100644 index 000000000..e645bc893 --- /dev/null +++ b/apps/web/assets/unique/cube.svg @@ -0,0 +1,32 @@ + + + + + diff --git a/apps/web/assets/unique/devices.svg b/apps/web/assets/unique/devices.svg new file mode 100644 index 000000000..9e8d407c9 --- /dev/null +++ b/apps/web/assets/unique/devices.svg @@ -0,0 +1,75 @@ + + + + + + + + + + + diff --git a/apps/web/assets/unique/edit-pen-box.svg b/apps/web/assets/unique/edit-pen-box.svg new file mode 100644 index 000000000..6e84261c3 --- /dev/null +++ b/apps/web/assets/unique/edit-pen-box.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/apps/web/assets/unique/edit-pen-underline.svg b/apps/web/assets/unique/edit-pen-underline.svg new file mode 100644 index 000000000..e5266a0ae --- /dev/null +++ b/apps/web/assets/unique/edit-pen-underline.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/apps/web/assets/unique/live-share.svg b/apps/web/assets/unique/live-share.svg new file mode 100644 index 000000000..a74623492 --- /dev/null +++ b/apps/web/assets/unique/live-share.svg @@ -0,0 +1,13 @@ + + + diff --git a/apps/web/assets/unique/login-round.svg b/apps/web/assets/unique/login-round.svg new file mode 100644 index 000000000..f276a592f --- /dev/null +++ b/apps/web/assets/unique/login-round.svg @@ -0,0 +1 @@ + diff --git a/apps/web/assets/unique/login.svg b/apps/web/assets/unique/login.svg new file mode 100644 index 000000000..e6057fd6d --- /dev/null +++ b/apps/web/assets/unique/login.svg @@ -0,0 +1 @@ + diff --git a/apps/web/assets/unique/logout.svg b/apps/web/assets/unique/logout.svg new file mode 100644 index 000000000..9381bf6d1 --- /dev/null +++ b/apps/web/assets/unique/logout.svg @@ -0,0 +1 @@ + diff --git a/apps/web/assets/unique/mail.svg b/apps/web/assets/unique/mail.svg new file mode 100644 index 000000000..56cc4012c --- /dev/null +++ b/apps/web/assets/unique/mail.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/web/assets/unique/phone-up-arrow.svg b/apps/web/assets/unique/phone-up-arrow.svg new file mode 100644 index 000000000..1e02d3e5b --- /dev/null +++ b/apps/web/assets/unique/phone-up-arrow.svg @@ -0,0 +1,16 @@ + + + + diff --git a/apps/web/assets/unique/square-box.svg b/apps/web/assets/unique/square-box.svg new file mode 100644 index 000000000..d512ccbd9 --- /dev/null +++ b/apps/web/assets/unique/square-box.svg @@ -0,0 +1,15 @@ + + + diff --git a/apps/web/components/layout/header/request-to-join-modal.tsx b/apps/web/components/layout/header/request-to-join-modal.tsx index 7f8d91fa5..e8a4b8566 100644 --- a/apps/web/components/layout/header/request-to-join-modal.tsx +++ b/apps/web/components/layout/header/request-to-join-modal.tsx @@ -4,10 +4,10 @@ import { useAuthenticationPasscode, useOrganizationTeams, useRequestToJoinTeam } import { IRequestToJoinCreate } from '@app/interfaces'; import { clsxm } from '@app/utils'; import { AuthCodeInputField, Button, Card, InputField, Modal, SpinnerLoader, Text } from 'lib/components'; -import { ArrowLeft } from 'lib/components/svgs'; import { useCallback, useState } from 'react'; import { PositionDropDown } from './position-dropdown'; import { useTranslations } from 'next-intl'; +import { ArrowLeftIcon } from 'assets/svg'; export const RequestToJoinModal = ({ open, closeModal }: { open: boolean; closeModal: () => void }) => { const [currentTab, setCurrentTab] = useState<'ALREADY_MEMBER' | 'BECOME_MEMBER'>('ALREADY_MEMBER'); @@ -123,7 +123,7 @@ const AlreadyMember = ({ closeModal }: { closeModal: any }) => {
-

{t('common.BACK')}

+

{t('common.BACK')}

diff --git a/apps/web/components/pages/task/IssueCard.tsx b/apps/web/components/pages/task/IssueCard.tsx index 45860df41..e279be65e 100644 --- a/apps/web/components/pages/task/IssueCard.tsx +++ b/apps/web/components/pages/task/IssueCard.tsx @@ -5,11 +5,12 @@ import { createTaskLinkedIsssueAPI } from '@app/services/client/api'; import { detailedTaskState } from '@app/stores'; import { clsxm } from '@app/utils'; import { Card, Modal, SpinnerLoader, Text } from 'lib/components'; -import { ChevronDownIcon, ChevronUpIcon, PlusIcon } from 'lib/components/svgs'; +import { ChevronDownIcon, ChevronUpIcon } from 'assets/svg'; import { TaskInput, TaskLinkedIssue } from 'lib/features'; import { useCallback, useMemo, useState } from 'react'; import { useRecoilValue } from 'recoil'; import { useTranslations } from 'next-intl'; +import { AddIcon } from 'assets/svg'; export const RelatedIssueCard = () => { const t = useTranslations(); @@ -54,7 +55,7 @@ export const RelatedIssueCard = () => {
- +
@@ -71,9 +72,9 @@ export const RelatedIssueCard = () => {
diff --git a/apps/web/components/pages/task/description-block/editor-components/BlockButton.tsx b/apps/web/components/pages/task/description-block/editor-components/BlockButton.tsx index a8e942bd7..ee64faceb 100644 --- a/apps/web/components/pages/task/description-block/editor-components/BlockButton.tsx +++ b/apps/web/components/pages/task/description-block/editor-components/BlockButton.tsx @@ -5,7 +5,7 @@ import { useSlate } from 'slate-react'; interface IMarkButtonProps { format: string; - icon: React.ComponentType; + icon: any; isBlockActive: (editor: any, format: any, blockType?: string) => boolean; className?: string; } @@ -37,7 +37,7 @@ const BlockButton = ({ format, icon: Icon, isBlockActive, className }: IMarkButt TextEditorService.toggleBlock(editor, format, isBlockActive, LIST_TYPES, TEXT_ALIGN_TYPES); }} > - + ); }; diff --git a/apps/web/components/pages/task/description-block/editor-components/CheckListElement.tsx b/apps/web/components/pages/task/description-block/editor-components/CheckListElement.tsx index 8f45d5804..8795cd856 100644 --- a/apps/web/components/pages/task/description-block/editor-components/CheckListElement.tsx +++ b/apps/web/components/pages/task/description-block/editor-components/CheckListElement.tsx @@ -1,8 +1,7 @@ import { Transforms, Element as SlateElement } from 'slate'; import { ReactEditor, useReadOnly, useSlateStatic } from 'slate-react'; -import { CheckBoxIcon, UncheckedBoxIcon } from 'lib/components/svgs'; import { useRef } from 'react'; - +import { SquareBoxIcon as UncheckedBoxIcon, CheckSquareRoundIcon as CheckBoxIcon } from 'assets/svg'; const CheckListElement = ({ attributes, children, element }: any) => { const editor = useSlateStatic(); const readOnly = useReadOnly(); @@ -50,11 +49,11 @@ const CheckListElement = ({ attributes, children, element }: any) => { /> {checked ? ( ) : ( )} diff --git a/apps/web/components/pages/task/description-block/editor-components/LinkElement.tsx b/apps/web/components/pages/task/description-block/editor-components/LinkElement.tsx index 0e5b0e581..3bc09d970 100644 --- a/apps/web/components/pages/task/description-block/editor-components/LinkElement.tsx +++ b/apps/web/components/pages/task/description-block/editor-components/LinkElement.tsx @@ -1,8 +1,8 @@ import { useSelected, useFocused, useSlateStatic } from 'slate-react'; -import { ExternalLinkIcon, UnlinkIcon } from 'lib/components/svgs'; import { removeLink } from '../editor-components/TextEditorService'; import { useEffect, useRef, useState } from 'react'; +import { ExternalLinkIcon, UnlinkRoundIcon } from 'assets/svg'; const LinkElement = ({ attributes, element, children }: any) => { const editor = useSlateStatic(); @@ -48,7 +48,7 @@ const LinkElement = ({ attributes, element, children }: any) => { contentEditable="false" > )} diff --git a/apps/web/components/pages/task/description-block/editor-components/MarkButton.tsx b/apps/web/components/pages/task/description-block/editor-components/MarkButton.tsx index fd5710c21..10fdf8f47 100644 --- a/apps/web/components/pages/task/description-block/editor-components/MarkButton.tsx +++ b/apps/web/components/pages/task/description-block/editor-components/MarkButton.tsx @@ -5,7 +5,7 @@ import { useSlate } from 'slate-react'; interface IMarkButtonProps { format: string; - icon: React.ComponentType; + icon: any; isMarkActive: (editor: any, format: string) => boolean; } @@ -23,7 +23,7 @@ const MarkButton = ({ format, icon: Icon, isMarkActive }: IMarkButtonProps) => { TextEditorService.toggleMark(editor, format, isMarkActive); }} > - + ); }; diff --git a/apps/web/components/pages/task/description-block/editor-toolbar.tsx b/apps/web/components/pages/task/description-block/editor-toolbar.tsx index 0c608817c..b21aa931a 100644 --- a/apps/web/components/pages/task/description-block/editor-toolbar.tsx +++ b/apps/web/components/pages/task/description-block/editor-toolbar.tsx @@ -2,33 +2,31 @@ import React, { useCallback, useEffect, useRef, useState } from 'react'; import BlockButton from './editor-components/BlockButton'; import MarkButton from './editor-components/MarkButton'; import { insertLink } from './editor-components/TextEditorService'; - import { Popover, PopoverContent, PopoverTrigger } from '@components/ui/popover'; import { Button, InputField } from 'lib/components'; +import { Element, Node } from 'slate'; +import { useSlateStatic } from 'slate-react'; +import { useTranslations } from 'next-intl'; import { + AlignQuoteIcon, + CodeIcon as CodeBlockIcon, + ExternalLinkIcon, + LinkRoundIcon, AlignCenterIcon, - AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, - ArrowDown, - BoldIcon, - CheckBoxIcon, - CodeBlockIcon, - CopyIconRounded, - ExternalLinkIcon, - HeaderOneIcon, - HeaderTwoIcon, - ItalicIcon, - LinkIcon, - OrderedListIcon, - QuoteBlockIcon, - UnderlineIcon, - UnorderedListIcon -} from 'lib/components/svgs'; -import { Element, Node } from 'slate'; -import { useSlateStatic } from 'slate-react'; -import { useTranslations } from 'next-intl'; - + H1TextIcon as HeaderOneIcon, + H2TextIcon as HeaderTwoIcon, + ThreeNumberLineIcon as OrderedListIcon, + ThreeDotLineIcon as UnorderedListIcon, + UnderlineTextIcon as UnderlineIcon, + ItalicTextIcon as ItalicIcon, + BTextIcon as BoldIcon, + CheckSquareRoundIcon as CheckBoxIcon, + CopyRoundIcon as CopyIconRounded, + AlignFullIcon, + ChevronDownIcon +} from 'assets/svg'; interface IToolbarProps { isMarkActive?: (editor: any, format: string) => boolean; isBlockActive?: (editor: any, format: any, blockType?: string) => boolean; @@ -167,7 +165,6 @@ const Toolbar = ({ isMarkActive, isBlockActive }: IToolbarProps) => {

{t('pages.taskDetails.DESCRIPTION')}

- { icon={UnderlineIcon} isMarkActive={isMarkActive as (editor: any, format: string) => boolean} /> - boolean} /> - { /> boolean} /> { icon={UnorderedListIcon} isBlockActive={isBlockActive as (editor: any, format: any, blockType?: string | undefined) => boolean} /> - { boolean} />
@@ -251,7 +245,7 @@ const Toolbar = ({ isMarkActive, isBlockActive }: IToolbarProps) => { > More - + {/* {showDropdown && ( @@ -298,10 +292,9 @@ const Toolbar = ({ isMarkActive, isBlockActive }: IToolbarProps) => { {/* */} - - + { ref={inputRef} /> - - {showLinkPopup && ( + {showLinkPopup && ( // this block of code is not working because onclick function is commented out
{ top: linkPopupPosition.top + 3 }} > - + setLink(e.target.value)} - value={link} + value={'new'} ref={inputRef} />
)} @@ -355,7 +347,7 @@ const Toolbar = ({ isMarkActive, isBlockActive }: IToolbarProps) => {
)} - {/* */} + {/* */}
); }; diff --git a/apps/web/components/pages/task/details-section/blocks/task-estimations-info.tsx b/apps/web/components/pages/task/details-section/blocks/task-estimations-info.tsx index 60a17cec9..9d9e2c580 100644 --- a/apps/web/components/pages/task/details-section/blocks/task-estimations-info.tsx +++ b/apps/web/components/pages/task/details-section/blocks/task-estimations-info.tsx @@ -1,6 +1,6 @@ import { detailedTaskState } from '@app/stores'; import { Disclosure } from '@headlessui/react'; -import { ChevronDownIcon, ChevronUpIcon } from 'lib/components/svgs'; +import { ChevronDownIcon, ChevronUpIcon } from 'assets/svg'; import { TaskEstimate } from 'lib/features'; import { useRecoilState } from 'recoil'; import ProfileInfoWithTime from '../components/profile-info-with-time'; @@ -33,9 +33,9 @@ const TaskEstimationsInfo = () => { /> {!open ? ( - + ) : ( - + )} diff --git a/apps/web/components/pages/task/details-section/blocks/task-main-info.tsx b/apps/web/components/pages/task/details-section/blocks/task-main-info.tsx index f1fc71362..84de7e04c 100644 --- a/apps/web/components/pages/task/details-section/blocks/task-main-info.tsx +++ b/apps/web/components/pages/task/details-section/blocks/task-main-info.tsx @@ -5,7 +5,7 @@ import { ITeamTask, OT_Member } from '@app/interfaces'; import { detailedTaskState } from '@app/stores'; import { clsxm } from '@app/utils'; import { Popover, Transition } from '@headlessui/react'; -import { TrashIcon } from 'lib/components/svgs'; +import { TrashIcon } from 'assets/svg'; import { ActiveTaskIssuesDropdown } from 'lib/features'; import { Fragment, forwardRef, useCallback, useEffect, useMemo, useState } from 'react'; import { useRecoilState } from 'recoil'; @@ -297,7 +297,7 @@ const ManageMembersPopover = (memberList: OT_Member[], task: ITeamTask | null) = names={member.employee?.fullName} /> - +
))} {unassignedMembers.map((member, index) => ( diff --git a/apps/web/components/pages/task/details-section/blocks/task-progress.tsx b/apps/web/components/pages/task/details-section/blocks/task-progress.tsx index ef2a1bc81..3281e335e 100644 --- a/apps/web/components/pages/task/details-section/blocks/task-progress.tsx +++ b/apps/web/components/pages/task/details-section/blocks/task-progress.tsx @@ -8,7 +8,7 @@ import ProfileInfoWithTime from '../components/profile-info-with-time'; import { useAuthenticateUser, useOrganizationTeams } from '@app/hooks'; import { secondsToTime } from '@app/helpers'; import { ITasksTimesheet, ITime, OT_Member } from '@app/interfaces'; -import { ChevronDownIcon, ChevronUpIcon } from 'lib/components/svgs'; +import { ChevronDownIcon, ChevronUpIcon } from 'assets/svg'; import { useTranslations } from 'next-intl'; const TaskProgress = () => { @@ -137,9 +137,9 @@ const TaskProgress = () => {
{!open ? ( - + ) : ( - + )} ) : ( diff --git a/apps/web/components/pages/task/details-section/blocks/task-publicity.tsx b/apps/web/components/pages/task/details-section/blocks/task-publicity.tsx index f51cd3eaf..6911e6316 100644 --- a/apps/web/components/pages/task/details-section/blocks/task-publicity.tsx +++ b/apps/web/components/pages/task/details-section/blocks/task-publicity.tsx @@ -1,11 +1,11 @@ import { useTeamTasks } from '@app/hooks'; import { detailedTaskState } from '@app/stores'; import { clsxm } from '@app/utils'; -import { GlobIcon, LockIcon } from 'lib/components/svgs'; import { debounce } from 'lodash'; import { useCallback, useEffect, useState } from 'react'; import { useRecoilState } from 'recoil'; import { useTranslations } from 'next-intl'; +import { GlobeIcon,LockIcon } from 'assets/svg'; const TaskPublicity = () => { const [task] = useRecoilState(detailedTaskState); @@ -39,7 +39,7 @@ const TaskPublicity = () => { {isTaskPublic ? ( <>
- +

{t('common.PUBLIC_TASK')}

{ ) : ( <>
- +

{t('common.PRIVATE_TASK')}

{
- + ,
{`#${task?.rootEpic?.number} ${task?.rootEpic?.title}`}
diff --git a/apps/web/components/pages/task/title-block/task-title-block.tsx b/apps/web/components/pages/task/title-block/task-title-block.tsx index fdeb189ff..5628b8024 100644 --- a/apps/web/components/pages/task/title-block/task-title-block.tsx +++ b/apps/web/components/pages/task/title-block/task-title-block.tsx @@ -4,15 +4,17 @@ import { detailedTaskState } from '@app/stores'; import { HoverCard, HoverCardContent, HoverCardTrigger } from '@components/ui/hover-card'; import { useToast } from '@components/ui/use-toast'; import { Button, Tooltip } from 'lib/components'; -import { CloseAlternateIcon, CopyIconRounded, TickIcon } from 'lib/components/svgs'; import { ActiveTaskIssuesDropdown } from 'lib/features'; import Image from 'next/image'; +import { CheckSimpleIcon, CopyRoundIcon } from 'assets/svg'; + import Link from 'next/link'; import { ChangeEvent, useCallback, useEffect, useRef, useState } from 'react'; import { useRecoilState } from 'recoil'; import CreateParentTask from '../ParentTask'; import TitleLoader from './title-loader'; import { useTranslations } from 'next-intl'; +import { XMarkIcon } from '@heroicons/react/20/solid'; const TaskTitleBlock = () => { const { updateTitle, updateLoading } = useTeamTasks(); @@ -131,14 +133,14 @@ const TaskTitleBlock = () => { onClick={() => saveTitle(title)} className="border-2 dark:border-[#464242] rounded-md" > - +
) : ( @@ -225,7 +227,7 @@ const TaskTitleBlock = () => { className="flex gap-1 items-center text-[#B1AEBC] text-[0.5rem] 3xl:text-xs 3xl:py-2" onClick={copyTaskNumber} > - + {t('pages.settingsTeam.COPY_NUMBER')}
diff --git a/apps/web/components/shared/collaborate/index.tsx b/apps/web/components/shared/collaborate/index.tsx index 4ba995aab..8c4e08ee7 100644 --- a/apps/web/components/shared/collaborate/index.tsx +++ b/apps/web/components/shared/collaborate/index.tsx @@ -15,12 +15,12 @@ import { import { useJitsu } from '@jitsu/jitsu-react'; import { Avatar } from 'lib/components'; import { Button } from 'lib/components/button'; -import { BrushSquareLinearIcon, CallOutGoingLinearIcon, Profile2UserLinearIcon } from 'lib/components/svgs'; import { Check } from 'lucide-react'; import { useCallback, useMemo } from 'react'; import stc from 'string-to-color'; import { JitsuAnalytics } from '../../../lib/components/services/jitsu-analytics'; import { useTranslations } from 'next-intl'; +import { BrushSquareIcon, PhoneUpArrowIcon, UserLinearIcon } from 'assets/svg'; const Collaborate = () => { const { onMeetClick, onBoardClick, collaborativeMembers, setCollaborativeMembers } = useCollaborative(); @@ -77,7 +77,7 @@ const Collaborate = () => { 'disabled:bg-primary-light disabled:opacity-40' )} > - + {t('common.COLLABORATE')} @@ -188,7 +188,7 @@ const Collaborate = () => {

)} -
+
@@ -208,7 +208,7 @@ const Collaborate = () => { }} className={clsxm('rounded-xl flex min-w-0 w-28 h-12', 'gap-1 items-center')} > - + {t('common.BOARD')}
diff --git a/apps/web/components/shared/invite/invite-modal.tsx b/apps/web/components/shared/invite/invite-modal.tsx index 16948bc4a..09b601351 100644 --- a/apps/web/components/shared/invite/invite-modal.tsx +++ b/apps/web/components/shared/invite/invite-modal.tsx @@ -5,7 +5,7 @@ import { Dialog, Transition } from '@headlessui/react'; import { AxiosError } from 'axios'; import React, { useState } from 'react'; import { IInvite, IInviteProps } from '../../../app/interfaces/hooks'; -import UserIcon from '../../ui/svgs/user-icon'; +import { UserOutlineIcon } from 'assets/svg'; import { useTranslations } from 'next-intl'; const initalValues: IInvite = { @@ -70,7 +70,7 @@ const InviteModal = ({ isOpen, Fragment, closeModal }: IInviteProps) => { >
- +
{t('pages.invite.HEADING_TITLE')} diff --git a/apps/web/components/shared/skeleton/InviteTeamCardSkeleton.tsx b/apps/web/components/shared/skeleton/InviteTeamCardSkeleton.tsx index fcc03192a..dae862220 100644 --- a/apps/web/components/shared/skeleton/InviteTeamCardSkeleton.tsx +++ b/apps/web/components/shared/skeleton/InviteTeamCardSkeleton.tsx @@ -1,12 +1,12 @@ +import { SixSquareGridIcon } from 'assets/svg'; import Skeleton from './Skeleton'; import { Card, VerticalSeparator } from 'lib/components'; -import { DraggerIcon } from 'lib/components/svgs'; const InviteUserTeamCardSkeleton = () => { return (
- +
diff --git a/apps/web/components/shared/skeleton/TaskCardSkeleton.tsx b/apps/web/components/shared/skeleton/TaskCardSkeleton.tsx index 05d72d83b..3ed5b9ef4 100644 --- a/apps/web/components/shared/skeleton/TaskCardSkeleton.tsx +++ b/apps/web/components/shared/skeleton/TaskCardSkeleton.tsx @@ -1,6 +1,6 @@ import Skeleton from 'react-loading-skeleton'; import { Card, VerticalSeparator } from 'lib/components'; -import { DraggerIcon } from 'lib/components/svgs'; +import { SixSquareGridIcon } from 'assets/svg'; const TaskCardSkeleton = () => { return ( @@ -9,7 +9,7 @@ const TaskCardSkeleton = () => { className="relative flex items-center justify-between py-8 my-4 border border-[#F0F0F0] dark:border-0" >
- +
diff --git a/apps/web/components/shared/skeleton/UserTeamCardSkeleton.tsx b/apps/web/components/shared/skeleton/UserTeamCardSkeleton.tsx index fefd842d3..f54161db1 100644 --- a/apps/web/components/shared/skeleton/UserTeamCardSkeleton.tsx +++ b/apps/web/components/shared/skeleton/UserTeamCardSkeleton.tsx @@ -1,12 +1,12 @@ import { clsxm } from '@app/utils'; +import { SixSquareGridIcon } from 'assets/svg'; import { Card, VerticalSeparator } from 'lib/components'; -import { DraggerIcon } from 'lib/components/svgs'; const UserTeamCardSkeletonCard = () => { return (
- +
diff --git a/apps/web/components/ui/svgs/add.tsx b/apps/web/components/ui/svgs/add.tsx deleted file mode 100644 index fc53989b1..000000000 --- a/apps/web/components/ui/svgs/add.tsx +++ /dev/null @@ -1,9 +0,0 @@ -export default function AddIcon() { - return ( - <> - - - - - ); -} diff --git a/apps/web/components/ui/svgs/app-logo.tsx b/apps/web/components/ui/svgs/app-logo.tsx deleted file mode 100644 index 9c72574c0..000000000 --- a/apps/web/components/ui/svgs/app-logo.tsx +++ /dev/null @@ -1,68 +0,0 @@ -import Link from 'next/link'; - -export default function AppLogo() { - return ( - - - - - - - - - - - - - - - - - - - - ); -} diff --git a/apps/web/components/ui/svgs/bug.tsx b/apps/web/components/ui/svgs/bug.tsx deleted file mode 100644 index 0bc0bfbe9..000000000 --- a/apps/web/components/ui/svgs/bug.tsx +++ /dev/null @@ -1,18 +0,0 @@ -export default function BugIcon({ - width = 12, - height = 12, - fill = 'white' -}: { - width?: number; - height?: number; - fill?: string; -}) { - return ( - - - - ); -} diff --git a/apps/web/components/ui/svgs/lock-icon.tsx b/apps/web/components/ui/svgs/lock-icon.tsx deleted file mode 100644 index 0623a161b..000000000 --- a/apps/web/components/ui/svgs/lock-icon.tsx +++ /dev/null @@ -1,35 +0,0 @@ -export default function LockIcon() { - return ( - - - - - - - - - ); -} diff --git a/apps/web/components/ui/svgs/right-arrow.tsx b/apps/web/components/ui/svgs/right-arrow.tsx deleted file mode 100644 index c69788d26..000000000 --- a/apps/web/components/ui/svgs/right-arrow.tsx +++ /dev/null @@ -1,14 +0,0 @@ -export const RightArrow = () => { - return ( - - - - ); -}; diff --git a/apps/web/components/ui/svgs/rocket.tsx b/apps/web/components/ui/svgs/rocket.tsx deleted file mode 100644 index b96b5884b..000000000 --- a/apps/web/components/ui/svgs/rocket.tsx +++ /dev/null @@ -1,29 +0,0 @@ -export const RocketIcon = ({ - width, - height, - fill = '#8C7AE4', - className -}: { - width: number; - height: number; - fill?: string; - className?: string; -}) => { - return ( - - - - ); -}; diff --git a/apps/web/components/ui/svgs/sad-cry.tsx b/apps/web/components/ui/svgs/sad-cry.tsx index 0db4a8f91..8a133f9d7 100644 --- a/apps/web/components/ui/svgs/sad-cry.tsx +++ b/apps/web/components/ui/svgs/sad-cry.tsx @@ -11,17 +11,5 @@ const SadCry = ({ width, height, fill = '#8C7AE4' }: { width: number; height: nu ); }; -export const LockIcon = ({ width, height, fill = '#8C7AE4' }: { width: number; height: number; fill?: string }) => { - return ( - <> - - - - - ); -}; export default SadCry; diff --git a/apps/web/components/ui/svgs/setting-icon-dark.tsx b/apps/web/components/ui/svgs/setting-icon-dark.tsx deleted file mode 100644 index bcc428006..000000000 --- a/apps/web/components/ui/svgs/setting-icon-dark.tsx +++ /dev/null @@ -1,22 +0,0 @@ -export const SettingIconDark = () => { - return ( - - - - - ); -}; diff --git a/apps/web/components/ui/svgs/setting-icon.tsx b/apps/web/components/ui/svgs/setting-icon.tsx deleted file mode 100644 index eb7e0ccaf..000000000 --- a/apps/web/components/ui/svgs/setting-icon.tsx +++ /dev/null @@ -1,29 +0,0 @@ -export const SettingIcon = () => { - return ( - - - - - ); -}; diff --git a/apps/web/components/ui/svgs/slash-icon-dark.tsx b/apps/web/components/ui/svgs/slash-icon-dark.tsx deleted file mode 100644 index f8a615107..000000000 --- a/apps/web/components/ui/svgs/slash-icon-dark.tsx +++ /dev/null @@ -1,7 +0,0 @@ -export const SlashIconDark = () => { - return ( - - - - ); -}; diff --git a/apps/web/components/ui/svgs/slash-icon.tsx b/apps/web/components/ui/svgs/slash-icon.tsx deleted file mode 100644 index 7b48d9626..000000000 --- a/apps/web/components/ui/svgs/slash-icon.tsx +++ /dev/null @@ -1,7 +0,0 @@ -export const SlashIcon = () => { - return ( - - - - ); -}; diff --git a/apps/web/components/ui/svgs/user-icon.tsx b/apps/web/components/ui/svgs/user-icon.tsx deleted file mode 100644 index dde6512fa..000000000 --- a/apps/web/components/ui/svgs/user-icon.tsx +++ /dev/null @@ -1,54 +0,0 @@ -export default function UserIcon() { - return ( - - - - - - - - - - - - - - - ); -} diff --git a/apps/web/components/ui/svgs/vertical-three-dot.tsx b/apps/web/components/ui/svgs/vertical-three-dot.tsx deleted file mode 100644 index e9486b13a..000000000 --- a/apps/web/components/ui/svgs/vertical-three-dot.tsx +++ /dev/null @@ -1,23 +0,0 @@ -export default function VerticalThreeDot() { - return ( - <> - - - - - - - ); -} diff --git a/apps/web/components/ui/svgs/vertificalline.tsx b/apps/web/components/ui/svgs/vertificalline.tsx deleted file mode 100644 index aa5dc0e82..000000000 --- a/apps/web/components/ui/svgs/vertificalline.tsx +++ /dev/null @@ -1,9 +0,0 @@ -export default function VerticalLine() { - return ( - <> - - - - - ); -} diff --git a/apps/web/lib/components/Kanban.tsx b/apps/web/lib/components/Kanban.tsx index 1fb2f6a27..aa8f24c4a 100644 --- a/apps/web/lib/components/Kanban.tsx +++ b/apps/web/lib/components/Kanban.tsx @@ -15,10 +15,10 @@ import Item from './kanban-card'; import { ITeamTask } from '@app/interfaces'; import { TaskStatus } from '@app/constants'; import { useKanban } from '@app/hooks/features/useKanban'; -import { AddIcon } from './svgs'; import { Popover, PopoverContent, PopoverTrigger } from '@components/ui/popover'; import { Button } from '@components/ui/button'; import { useTranslations } from 'next-intl'; +import { AddIcon } from 'assets/svg'; const grid = 8; @@ -361,7 +361,7 @@ const KanbanDraggable = ({ content={items} />
diff --git a/apps/web/lib/components/breadcrumb.tsx b/apps/web/lib/components/breadcrumb.tsx index b8e7efb92..9e5a5b401 100644 --- a/apps/web/lib/components/breadcrumb.tsx +++ b/apps/web/lib/components/breadcrumb.tsx @@ -1,8 +1,8 @@ import { clsxm } from '@app/utils'; import Link from 'next/link'; import React from 'react'; -import { SimpleArrowRight } from './svgs'; import Skeleton from 'react-loading-skeleton'; +import { ChevronRightIcon } from 'assets/svg'; type Props = { paths: (string | { title: string; href: string })[]; @@ -18,7 +18,7 @@ export function Breadcrumb({ paths, className }: Props) { {i !== 0 && (
  • - +
  • )}
  • diff --git a/apps/web/lib/components/button.tsx b/apps/web/lib/components/button.tsx index 97dc52f2f..1b06a7920 100644 --- a/apps/web/lib/components/button.tsx +++ b/apps/web/lib/components/button.tsx @@ -1,8 +1,8 @@ import { clsxm } from '@app/utils'; import { PropsWithChildren } from 'react'; import { SpinnerLoader } from './loader'; -import { ArrowLeft } from './svgs'; import { useTranslations } from 'next-intl'; +import { ArrowLeftIcon } from 'assets/svg'; type Props = { variant?: @@ -95,7 +95,7 @@ export function BackButton({ onClick, className }: { onClick?: () => void; class const t = useTranslations(); return ( - +
  • )} diff --git a/apps/web/lib/components/emoji-picker.tsx b/apps/web/lib/components/emoji-picker.tsx index 2b4acf0e6..b92d8a5eb 100644 --- a/apps/web/lib/components/emoji-picker.tsx +++ b/apps/web/lib/components/emoji-picker.tsx @@ -4,7 +4,7 @@ import { getEmojiDataFromNative } from 'emoji-mart'; import { useTheme } from 'next-themes'; import { Popover, Transition } from '@headlessui/react'; import { Fragment, useCallback, useEffect, useRef, useState } from 'react'; -import { Edit2Icon, TrashIcon } from './svgs'; +import { EditPenUnderlineIcon, TrashIcon } from 'assets/svg' import { init } from 'emoji-mart'; // init has to be called on page load to load the emojis, otherwise it won't show it in Picker @@ -90,7 +90,7 @@ export const EmojiPicker = ({ setDisabled(!disabled); }} > - +
    )} diff --git a/apps/web/lib/components/keyboard-shortcuts.tsx b/apps/web/lib/components/keyboard-shortcuts.tsx index 45a0ab392..599178c5f 100644 --- a/apps/web/lib/components/keyboard-shortcuts.tsx +++ b/apps/web/lib/components/keyboard-shortcuts.tsx @@ -3,9 +3,9 @@ import { HostKeys, HostKeysMapping, useDetectOS, useHotkeys, useModal } from '@a import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '@components/ui/dialog'; import { useCallback } from 'react'; import { Button } from './button'; -import { KeyboardLinearIcon } from './svgs'; import { Tooltip } from './tooltip'; import { useTranslations } from 'next-intl'; +import { LineDotBoxIcon } from 'assets/svg'; export function KeyboardShortcuts() { const t = useTranslations(); @@ -28,7 +28,7 @@ export function KeyboardShortcuts() { <> diff --git a/apps/web/lib/components/svgs/icons.tsx b/apps/web/lib/components/svgs/icons.tsx deleted file mode 100644 index 395347d2e..000000000 --- a/apps/web/lib/components/svgs/icons.tsx +++ /dev/null @@ -1,2739 +0,0 @@ -import { IClassName } from '@app/interfaces'; -import { clsxm } from '@app/utils'; - -// ============================= BoxIcon ===========================// - -export function BoxIcon({ className }: IClassName) { - return ( - - - - - - ); -} - -// ============================= BoxIcon ===========================// - -export function SettingsOutlineIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= MoonIcon ===========================// - -export function MoonIcon({ className }: { className?: string; pathClassName?: string }) { - return ( - - - - ); -} - -export function MoonDarkIcon({ className }: IClassName) { - return ( - - - - ); -} - -// ============================= PeopleIcon ===========================// - -export function PeopleIcon({ className }: IClassName) { - return ( - - - - - - - - - ); -} - -// ============================= PeopleIconFilled ===========================// - -export function PeopleIconFilled({ className }: IClassName) { - return ( - - - - - - - - - ); -} - -// ============================= UserIcon ===========================// - -export function UserIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= UserIconFilled ===========================// - -export function UserIconFilled({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= TrashIcon ===========================// - -export function TrashIcon({ className }: IClassName) { - return ( - - - - - - - - ); -} - -// ============================= SunIcon ===========================// - -export function SunIcon({ className }: IClassName) { - return ( - - - - - ); -} - -export function SunDarkIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= BriefcaseIcon ===========================// - -export function BriefcaseIcon({ className }: IClassName) { - return ( - - - - - - - - ); -} - -// ============================= ArrowLeft ===========================// - -export function ArrowLeft({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= ArrowRight ===========================// - -export function ArrowRight({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= ArrowDown ===========================// - -export function ArrowDown({ className }: IClassName) { - return ( - - - - ); -} - -export function SimpleArrowRight({ className }: IClassName) { - return ( - - - - ); -} -// ============================= StopIcon ===========================// - -export function StopIcon({ className }: IClassName) { - return ( - - - - ); -} - -// ============================= DevicesIcon ===========================// - -export function DevicesIcon({ className }: IClassName) { - return ( - - - - - - - - - - - - ); -} - -// ============================= Timer Stop ===============================// - -export function TimerStopIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= Timer Play ===============================// - -export function TimerPlayIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= User Online Icon ===============================// - -export function UserOnlineIcon({ className }: IClassName) { - return ( - - - - - ); -} -// ============================= User Online & Tracking Time Icon ===============================// - -export function UserOnlineAndTrackingTimeIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= Logout Icons ============================= // - -export function LogoutIcon({ className }: IClassName) { - return ( - - - - ); -} -export function LogoutIcon2({ className }: IClassName) { - return ( - - - - - - ); -} - -// ============================= Tick Circle Icon ============================= // - -export function TickCircleIcon({ className }: IClassName) { - return ( - - - - - ); -} -export function TickCircleIconV2({ className }: IClassName) { - return ( - - - - ); -} - -export function TickSaveIcon({ className }: IClassName) { - return ( - - - - - ); -} -export function TickSquareIcon({ className }: IClassName) { - return ( - - - - ); -} -export function TickIcon({ className }: IClassName) { - return ( - - - - ); -} - -// ============================= Timer Icon ============================= // - -export function TimerIcon({ className }: IClassName) { - return ( - - - - ); -} - -// ============================= Login Icon ============================= // - -export function LoginIcon({ className }: IClassName) { - return ( - - - - - - ); -} - -// ============================= Search Status Icon ============================= // - -export function SearchStatusIcon({ className }: IClassName) { - return ( - - - - - - - ); -} - -// ============================= Search Normal Icon ============================= // - -export function SearchNormalIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= Clock Icon ============================= // - -export function ClockIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= Close Circle Icon ============================= // - -export function CloseCircleIcon({ className }: IClassName) { - return ( - - - - - - ); -} - -// ============================= Circle Icon ============================= // - -export function CircleIcon({ className }: IClassName) { - return ( - - - - ); -} - -// ============================= Close Icon ============================= // - -export function CloseIcon({ className }: IClassName) { - return ( - - - - - ); -} -export function CloseAlternateIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= Check Icon ============================= // - -export const CheckIcon = ({ className }: IClassName) => ( - - - -); - -// ============================= Mail Icon ============================= // - -export function MailIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= Edit Icon ============================= // - -export function EditIcon({ className }: IClassName) { - return ( - - - - - - ); -} - -// ============================= Edit2 Icon ============================= // - -export function Edit2Icon({ className }: IClassName) { - return ( - - - - - - ); -} - -// ============================= Edit Icon ============================= // - -export function DraggerIcon({ className }: IClassName) { - return ( - - - - ); -} - -// ============================= More Icon ============================= // - -export function MoreIcon({ className }: IClassName) { - return ( - - - - - - ); -} - -// ============================= Pause Icon ============================= // - -export function PauseIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= Stop Circle Icon ============================= // - -export function StopCircleIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function NotWorkingIcon({ className }: IClassName) { - return ( - - ); -} - -export function OnlineIcon({ className }: IClassName) { - return ( - - ); -} - -// ============================= Settings 4 Icon ============================= // - -export function Settings4Icon({ className }: IClassName) { - return ( - - - - - - - - - ); -} - -// ============================= Record Icon ============================= // - -export function RecordIcon({ className }: IClassName) { - return ( - - - - ); -} - -// ============================= Bug Report Icon ============================= // - -export function BugReportIcon({ className }: IClassName) { - return ( - - - - ); -} - -// ============================= Task Square Icon ============================= // - -export function TaskSquareIcon({ className }: IClassName) { - return ( - - - - - - - - ); -} - -// ============================= Note Icon ============================= // - -export function NoteIcon({ className }: IClassName) { - return ( - - - - - - - ); -} - -// ============================= Category Icon ============================= // - -export function CategoryIcon({ className }: IClassName) { - return ( - - - - - - - ); -} - -// ============================= Refresh Icon ============================= // - -export function RefreshIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= Highest Icon ============================= // -export function HighestIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= High Icon ============================= // -export function HighIcon({ className }: IClassName) { - return ( - - - - ); -} - -// ============================= Medium Icon ============================= // -export function MediumIcon({ className }: IClassName) { - return ( - - - - ); -} - -// ============================= Low Icon ============================= // -export function LowIcon({ className }: IClassName) { - return ( - - - - ); -} - -// ============================= Low Icon ============================= // -export function LowestIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= Xlarge Icon ============================= // - -export function XlargeIcon({ className }: IClassName) { - return ( - - - - - - ); -} - -// ============================= Large Icon ============================= // - -export function LargeIcon({ className }: IClassName) { - return ( - - - - - ); -} - -// ============================= MediumSize Icon ============================= // -export function MediumSizeIcon({ className }: IClassName) { - return ( - - - - ); -} - -// ============================= SmallSize Icon ============================= // -export function SmallSizeIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function TinySizeIcon({ className }: IClassName) { - return ( - - - - - ); -} - -export function BoldIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function ItalicIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function UnderlineIcon({ className }: IClassName) { - return ( - - - - - ); -} -export function StrikethroughIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function AlignRightIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function AlignLeftIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function AlignCenterIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function AlignJustifyIcon({ className }: IClassName) { - return ( - - - - ); -} -export function HeaderOneIcon({ className }: IClassName) { - return ( - - - - ); -} -export function HeaderTwoIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function NormalTextIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function CopyIcon({ className }: IClassName) { - return ( - - - - ); -} -export function CopyIconRounded({ className }: IClassName) { - return ( - - - - - ); -} - -export function CheckBoxIcon({ className }: IClassName) { - return ( - - - - ); -} -export function UncheckedBoxIcon({ className }: IClassName) { - return ( - - - - ); -} -export function UnorderedListIcon({ className }: IClassName) { - return ( - - - - ); -} -export function OrderedListIcon({ className }: IClassName) { - return ( - - - {' '} - - ); -} - -export function MoreIcon2({ className }: IClassName) { - return ( - - - - - - ); -} - -export function LinkIcon({ className }: IClassName) { - return ( - - - - - - ); -} -export function ExternalLinkIcon({ className }: IClassName) { - return ( - - - {' '} - {' '} - - - ); -} -export function UnlinkIcon({ className }: IClassName) { - return ( - - - - - - - - - ); -} - -export function CodeBlockIcon({ className }: IClassName) { - return ( - - {' '} - - ); -} - -export function QuoteBlockIcon({ className }: IClassName) { - return ( - - {' '} - {' '} - - ); -} - -export function AddIcon({ - className, - width = 14, - height = 14 -}: IClassName<{ - width?: number; - height?: number; -}>) { - return ( - - - - - ); -} -export function PlusIcon({ className }: IClassName) { - return ( - - - - - ); -} - -export function DocumentUploadIcon({ className }: IClassName) { - return ( - - - - - - - ); -} - -export const MenuIcon = ({ className }: IClassName) => ( - - - -); - -export const SettingSimpleGearIcon = ({ className }: IClassName) => ( - - - - -); - -export function HomeIcon({ className }: IClassName) { - return ( - - - - - ); -} - -export function LockIcon({ className }: IClassName) { - return ( - - - - - - ); -} - -export function GlobIcon({ className }: IClassName) { - return ( - - - - - - - - ); -} - -export function ChevronUpIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function ChevronDownIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function UserManagerIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function LiveShareIcon({ className }: IClassName) { - return ( - - - - ); -} - -export function BrushSquareLinearIcon({ className }: IClassName) { - return ( - - - - - - - - - - - - - - ); -} - -export function CallOutGoingLinearIcon({ className }: IClassName) { - return ( - - - - - ); -} - -export function Profile2UserLinearIcon({ className }: IClassName) { - return ( - - - - - - - ); -} - -export function KeyboardLinearIcon({ className }: IClassName) { - return ( - - - - - - - - ); -} diff --git a/apps/web/lib/components/svgs/index.ts b/apps/web/lib/components/svgs/index.ts index 7c99c22cf..9d948dc95 100644 --- a/apps/web/lib/components/svgs/index.ts +++ b/apps/web/lib/components/svgs/index.ts @@ -1,3 +1,2 @@ export * from './app-logo'; -export * from './icons'; export * from './ever-teams-logo'; diff --git a/apps/web/lib/components/toggler.tsx b/apps/web/lib/components/toggler.tsx index 04e904c12..f5665af62 100644 --- a/apps/web/lib/components/toggler.tsx +++ b/apps/web/lib/components/toggler.tsx @@ -3,7 +3,14 @@ import { clsxm } from '@app/utils'; import { Switch } from '@headlessui/react'; import { useTheme } from 'next-themes'; import React, { PropsWithChildren } from 'react'; -import { BoxIcon, MoonDarkIcon, MoonIcon, StopIcon, SunDarkIcon, SunIcon } from './svgs'; +import { + MoonLightFillIcon as MoonDarkIcon, + MoonLightOutlineIcon as MoonIcon, + SunFillIcon as SunIcon, + SunOutlineIcon as SunDarkIcon, + CubeIcon as BoxIcon, + TimerStopIcon +} from 'assets/svg'; import { Text } from './typography'; import { Cross2Icon, LightningBoltIcon, UpdateIcon } from '@radix-ui/react-icons'; import { useRecoilState } from 'recoil'; @@ -64,12 +71,12 @@ export function ThemeToggler({ className }: IClassName) { return ( setTheme('light')} onClickTwo={() => setTheme('dark')}> <> - - + + <> - - + + ); @@ -78,8 +85,8 @@ export function ThemeToggler({ className }: IClassName) { export function TreeModeToggler({ className }: IClassName) { return ( - - + + ); } diff --git a/apps/web/lib/features/activity/components/screenshot-item.tsx b/apps/web/lib/features/activity/components/screenshot-item.tsx index 6c69cb488..265bb2859 100644 --- a/apps/web/lib/features/activity/components/screenshot-item.tsx +++ b/apps/web/lib/features/activity/components/screenshot-item.tsx @@ -3,7 +3,7 @@ import { useTimeSlots } from '@app/hooks/features/useTimeSlot'; import { IScreenShootItem } from '@app/interfaces/IScreenshoot'; import { clsxm } from '@app/utils'; import { Button, Modal, ProgressBar } from 'lib/components'; -import { TrashIcon } from 'lib/components/svgs'; +import { TrashIcon } from 'assets/svg'; import { useTranslations } from 'next-intl'; import Image from 'next/image'; import React from 'react'; @@ -39,7 +39,7 @@ const ScreenshotItem = ({ className="rounded-full bg-red-200 top-1 right-1 absolute w-8 h-8 flex justify-center items-center text-center cursor-pointer" onClick={() => openModal()} > - +
    {selectedRole ? selectedRole.name : t('pages.permissions.SELECT_ROLES')} - + - + + - +
    diff --git a/apps/web/lib/features/task/activity/user-task-activity.tsx b/apps/web/lib/features/task/activity/user-task-activity.tsx index f572b9a01..cf6218665 100644 --- a/apps/web/lib/features/task/activity/user-task-activity.tsx +++ b/apps/web/lib/features/task/activity/user-task-activity.tsx @@ -3,7 +3,7 @@ import { clsxm } from '@app/utils'; import { Tab } from '@headlessui/react'; import { ActivityFilters } from '@app/constants'; import { ITaskTimesheet } from '@app/interfaces'; -import { ChevronDownIcon, ChevronUpIcon } from 'lib/components/svgs'; +import { ChevronDownIcon, ChevronUpIcon } from 'assets/svg'; import { Tooltip } from 'lib/components'; import ScreenshotItem from 'lib/features/activity/components/screenshot-item'; @@ -21,9 +21,9 @@ export const UserTaskActivity = ({ timesheet }: { timesheet: ITaskTimesheet }) =
    diff --git a/apps/web/lib/features/task/task-activity.tsx b/apps/web/lib/features/task/task-activity.tsx index 15128abda..7579e41d8 100644 --- a/apps/web/lib/features/task/task-activity.tsx +++ b/apps/web/lib/features/task/task-activity.tsx @@ -8,7 +8,7 @@ import { useTaskTimeSheets } from '@app/hooks/features/useTaskActivity'; import { groupByTime } from '@app/helpers/array-data'; import { clsxm } from '@app/utils'; -import { ChevronDownIcon, ChevronUpIcon } from 'lib/components/svgs'; +import { ChevronDownIcon, ChevronUpIcon } from 'assets/svg'; export function TaskActivity({ task }: { task: ITeamTask }) { const { getTaskTimesheets, taskTimesheets } = useTaskTimeSheets(task?.id); @@ -32,10 +32,10 @@ export function TaskActivity({ task }: { task: ITeamTask }) {
    diff --git a/apps/web/lib/features/task/task-assign-button.tsx b/apps/web/lib/features/task/task-assign-button.tsx index 39d9046e9..95a5dc7de 100644 --- a/apps/web/lib/features/task/task-assign-button.tsx +++ b/apps/web/lib/features/task/task-assign-button.tsx @@ -1,7 +1,7 @@ import { IClassName } from '@app/interfaces'; import { clsxm } from '@app/utils'; import { Button } from 'lib/components'; -import { ArrowRight } from 'lib/components/svgs'; +import { ArrowRightIcon } from 'assets/svg'; import { MouseEventHandler } from 'react'; type Props = { @@ -22,7 +22,7 @@ export function TaskAssignButton({ onClick, disabled, className }: Props) { className )} > - + ); } diff --git a/apps/web/lib/features/task/task-card.tsx b/apps/web/lib/features/task/task-card.tsx index 0443edf8c..2ee7c1650 100644 --- a/apps/web/lib/features/task/task-card.tsx +++ b/apps/web/lib/features/task/task-card.tsx @@ -23,7 +23,6 @@ import { Text, VerticalSeparator } from 'lib/components'; -import { DraggerIcon, MoreIcon } from 'lib/components/svgs'; import Link from 'next/link'; import { useRouter } from 'next/navigation'; import { useCallback, useState } from 'react'; @@ -37,6 +36,7 @@ import { TaskAvatars } from './task-item'; import { ActiveTaskStatusDropdown } from './task-status'; import { TaskTimes } from './task-times'; import { useTranslations } from 'next-intl'; +import { SixSquareGridIcon, ThreeCircleOutlineVerticalIcon } from 'assets/svg'; type Props = { active?: boolean; @@ -115,7 +115,7 @@ export function TaskCard(props: Props) { )} >
    - +
    @@ -435,7 +435,7 @@ function TaskCardMenu({ return ( - {!loading && } + {!loading && } {loading && } diff --git a/apps/web/lib/features/task/task-default-status.tsx b/apps/web/lib/features/task/task-default-status.tsx index 5afc0d7e7..42ed76228 100644 --- a/apps/web/lib/features/task/task-default-status.tsx +++ b/apps/web/lib/features/task/task-default-status.tsx @@ -1,36 +1,35 @@ import { ITaskLabel, ITaskPriority, ITaskSize, ITaskStatus } from '@app/interfaces'; import { ClockIcon } from '@heroicons/react/20/solid'; import { - LoginIcon, - TimerIcon, - SearchStatusIcon, - TickCircleIcon, - CloseCircleIcon, + XXLTextIcon as XlargeIcon, + XLTextIcon as LargeIcon, + XSTextIcon as TinySizeIcon, + STextIcon as SmallSizeIcon, + MTextIcon as MediumSizeIcon, + ChevronUpDoubleIcon, + ChevronUpIcon, + IsEqualIcon, + ChevronDownIcon, + CheckCircleTickIcon as TickCircleIcon, CircleIcon, - HighestIcon, - HighIcon, - LowestIcon, - LowIcon, - MediumIcon, - LargeIcon, - MediumSizeIcon, - SmallSizeIcon, - TinySizeIcon, - XlargeIcon -} from 'lib/components/svgs'; + CrossCircleIcon as CloseCircleIcon, + SearchStatusIcon, + TrackingIcon as TimerIcon, + LoginIcon +} from 'assets/svg'; import { TStatus } from './task-status'; export const taskStatus: TStatus = { todo: { - icon: , + icon: , bgColor: '#D6E4F9' }, 'in-progress': { - icon: , + icon: , bgColor: '#ECE8FC' }, 'in review': { - icon: , + icon: , bgColor: ' #F3D8B0' }, ready: { @@ -38,19 +37,19 @@ export const taskStatus: TStatus = { bgColor: '#F5F1CB' }, completed: { - icon: , + icon: , bgColor: '#D4EFDF' }, blocked: { - icon: , + icon: , bgColor: '#F5B8B8' }, backlog: { - icon: , + icon: , bgColor: '#F2F2F2' }, closed: { - icon: , + icon: , bgColor: '#eaeaea' }, open: {} @@ -58,27 +57,27 @@ export const taskStatus: TStatus = { export const taskPriorities: TStatus = { Highest: { - icon: , + icon: , bgColor: 'transparent', bordered: true }, High: { - icon: , + icon: , bgColor: 'transparent', bordered: true }, Medium: { - icon: , + icon: , bgColor: 'transparent', bordered: true }, Low: { - icon: , + icon: , bgColor: 'transparent', bordered: true }, Lowest: { - icon: , + icon: , bgColor: 'transparent', bordered: true } @@ -86,27 +85,27 @@ export const taskPriorities: TStatus = { export const taskSizes: TStatus = { 'X-Large': { - icon: , + icon: , bgColor: 'transparent', bordered: true }, Large: { - icon: , + icon: , bgColor: 'transparent', bordered: true }, Medium: { - icon: , + icon: , bgColor: 'transparent', bordered: true }, Small: { - icon: , + icon: , bgColor: 'transparent', bordered: true }, Tiny: { - icon: , + icon: , bgColor: 'transparent', bordered: true } diff --git a/apps/web/lib/features/task/task-filters.tsx b/apps/web/lib/features/task/task-filters.tsx index 64d9d3378..fac9f2172 100644 --- a/apps/web/lib/features/task/task-filters.tsx +++ b/apps/web/lib/features/task/task-filters.tsx @@ -6,12 +6,13 @@ import { IClassName, ITeamTask } from '@app/interfaces'; import { clsxm } from '@app/utils'; import { Transition } from '@headlessui/react'; import { Button, InputField, Tooltip, VerticalSeparator } from 'lib/components'; -import { SearchNormalIcon, Settings4Icon } from 'lib/components/svgs'; +import { SearchNormalIcon } from 'assets/svg'; import intersection from 'lodash/intersection'; import { useCallback, useEffect, useMemo, useState } from 'react'; import { TaskUnOrAssignPopover } from './task-assign-popover'; import { TaskLabelsDropdown, TaskPropertiesDropdown, TaskSizesDropdown, TaskStatusDropdown } from './task-status'; import { useTranslations } from 'next-intl'; +import { SettingFilterIcon } from 'assets/svg'; type ITab = 'worked' | 'assigned' | 'unassigned'; type ITabs = { @@ -245,7 +246,7 @@ function InputFilters({ hook, profile }: Props) { > @@ -262,7 +263,7 @@ function InputFilters({ hook, profile }: Props) { )} onClick={() => hook.toggleFilterType('status')} > - + {t('common.FILTER')} diff --git a/apps/web/lib/features/task/task-input.tsx b/apps/web/lib/features/task/task-input.tsx index dedab1012..9e8cac2be 100644 --- a/apps/web/lib/features/task/task-input.tsx +++ b/apps/web/lib/features/task/task-input.tsx @@ -18,7 +18,7 @@ import { clsxm } from '@app/utils'; import { Popover, Transition } from '@headlessui/react'; import { PlusIcon } from '@heroicons/react/20/solid'; import { Button, Card, Divider, InputField, OutlineBadge, SpinnerLoader, Tooltip } from 'lib/components'; -import { TickCircleIcon } from 'lib/components/svgs'; +import { CheckCircleTickIcon as TickCircleIcon } from 'assets/svg'; import { MutableRefObject, PropsWithChildren, useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { useRecoilValue } from 'recoil'; import { ActiveTaskIssuesDropdown, TaskIssuesDropdown } from './task-issue'; @@ -559,7 +559,7 @@ function TaskCard({ className="py-2 text-xs cursor-pointer input-border" onClick={() => datas.setFilter && datas.setFilter('closed')} > - + = { Bug: { - icon: , + icon: , name: 'Bug', bgColor: '#923535' }, Task: { - icon: , + icon: , name: 'Task', bgColor: '#5483BA' }, Story: { - icon: , + icon: , name: 'Story', bgColor: '#66BB97' }, Epic: { - icon: , + icon: , name: 'Custom', bgColor: '#8154BA' } diff --git a/apps/web/lib/features/task/task-item.tsx b/apps/web/lib/features/task/task-item.tsx index 027b95e5d..a0f735665 100644 --- a/apps/web/lib/features/task/task-item.tsx +++ b/apps/web/lib/features/task/task-item.tsx @@ -4,7 +4,7 @@ import { IClassName, ITaskStatus, ITeamTask } from '@app/interfaces'; import { clsxm, isValidUrl } from '@app/utils'; import clsx from 'clsx'; import { Avatar, ConfirmDropdown, SpinnerLoader, Tooltip } from 'lib/components'; -import { CloseIcon, RefreshIcon } from 'lib/components/svgs'; +import { CrossIcon, RefreshIcon } from 'assets/svg'; import Link from 'next/link'; import { useCallback } from 'react'; import stc from 'string-to-color'; @@ -88,7 +88,7 @@ export function TaskItem({ task, selected, onClick, className }: Props) { {task?.status !== 'closed' && ( handleChange('closed')} confirmText={'Confirm'}> - {updateLoading ? : } + {updateLoading ? : } )} @@ -105,7 +105,7 @@ export function TaskItem({ task, selected, onClick, className }: Props) { className="min-w-10" > )} diff --git a/apps/web/lib/features/task/task-labels.tsx b/apps/web/lib/features/task/task-labels.tsx index 53e6903a2..594b4fa0c 100644 --- a/apps/web/lib/features/task/task-labels.tsx +++ b/apps/web/lib/features/task/task-labels.tsx @@ -3,11 +3,11 @@ import { useModal, useSyncRef, useTaskLabels, useTeamTasks } from '@app/hooks'; import { ITeamTask, Nullable } from '@app/interfaces'; import { Button, Card, Modal } from 'lib/components'; -import { PlusIcon } from 'lib/components/svgs'; import { TaskLabelForm } from 'lib/settings'; import { TaskLabelsDropdown, taskUpdateQueue } from './task-status'; import { debounce, isEqual } from 'lodash'; import { useCallback, useMemo, useRef } from 'react'; +import { AddIcon } from 'assets/svg'; type Props = { task: Nullable; @@ -69,7 +69,7 @@ export function TaskLabels({ task, className, forDetails, taskStatusClassName, o variant="outline" onClick={modal.openModal} > - + diff --git a/apps/web/lib/features/task/task-status.tsx b/apps/web/lib/features/task/task-status.tsx index 68f993973..1277ea673 100644 --- a/apps/web/lib/features/task/task-status.tsx +++ b/apps/web/lib/features/task/task-status.tsx @@ -28,10 +28,10 @@ import { } from '@app/hooks'; import Image from 'next/legacy/image'; import capitalize from 'lodash/capitalize'; -import { CategoryIcon, CircleIcon } from 'lib/components/svgs'; import { XMarkIcon } from '@heroicons/react/24/outline'; import { readableColor } from 'polished'; import { useTheme } from 'next-themes'; +import { Square4OutlineIcon, CircleIcon } from 'assets/svg'; export type TStatusItem = { id?: string; @@ -433,7 +433,7 @@ export function EpicPropertiesDropdown({ value: task.id, icon: (
    - + ,
    ) }; @@ -896,7 +896,7 @@ export function StatusDropdown({ bgColor: undefined, icon: ( - + ), name: defaultItem @@ -1137,7 +1137,7 @@ export function MultipleStatusDropdown({ bgColor: undefined, icon: ( - + ), name: defaultItem diff --git a/apps/web/lib/features/team/invite/user-invite-card.tsx b/apps/web/lib/features/team/invite/user-invite-card.tsx index 1beedf6ee..738a19b14 100644 --- a/apps/web/lib/features/team/invite/user-invite-card.tsx +++ b/apps/web/lib/features/team/invite/user-invite-card.tsx @@ -2,6 +2,7 @@ import { useTeamInvitations } from '@app/hooks'; import { IClassName, IInvitation } from '@app/interfaces'; import { clsxm } from '@app/utils'; import { Popover, Transition } from '@headlessui/react'; +import { SixSquareGridIcon, ThreeCircleOutlineVerticalIcon } from 'assets/svg'; import { Avatar, Button, @@ -13,9 +14,9 @@ import { Tooltip, VerticalSeparator } from 'lib/components'; -import { DraggerIcon, MailIcon, MoreIcon } from 'lib/components/svgs'; import { TimerStatus } from 'lib/features/timer/timer-status'; import { useTranslations } from 'next-intl'; +import { MailIcon } from 'assets/svg'; type Props = IClassName & { invitation: IInvitation }; @@ -32,7 +33,7 @@ export function InvitedCard({ invitation, className }: Props) { )} >
    - +
    {/* User info */} @@ -57,7 +58,7 @@ export function InvitedCard({ invitation, className }: Props) { {invitation.fullName} - {' '} + {' '} {invitation.email} @@ -106,7 +107,7 @@ export function InvitedCard({ invitation, className }: Props) { {invitation.fullName} - {' '} + {' '} {invitation.email}
    @@ -150,7 +151,7 @@ export function RemoveUserInviteMenu({ invitation }: Props) { {!loading && ( - + )} {loading && } @@ -222,7 +223,7 @@ export function InviteUserTeamCard({ )} >
    - +
    {/* Show user name, email and image */} diff --git a/apps/web/lib/features/team/team-invitations.tsx b/apps/web/lib/features/team/team-invitations.tsx index 1e6dbe49c..520e2875a 100644 --- a/apps/web/lib/features/team/team-invitations.tsx +++ b/apps/web/lib/features/team/team-invitations.tsx @@ -4,7 +4,8 @@ import { useModal, useTeamInvitations } from '@app/hooks'; import { MyInvitationActionEnum } from '@app/interfaces'; import { clsxm } from '@app/utils'; import { Button, Card, Modal, Text } from 'lib/components'; -import { CloseCircleIcon, CloseIcon, TickCircleIcon } from 'lib/components/svgs'; +import { CrossCircleIcon as CloseCircleIcon } from 'assets/svg'; +import { CrossIcon, CheckCircleTickIcon as TickCircleIcon } from 'assets/svg'; import cloneDeep from 'lodash/cloneDeep'; import { useTranslations } from 'next-intl'; import { useCallback, useEffect, useState } from 'react'; @@ -85,7 +86,7 @@ export function TeamInvitations() { handleOpenModal(invitation.id, MyInvitationActionEnum.ACCEPTED); }} > - + {t('common.ACCEPT')}
    @@ -105,7 +106,7 @@ export function TeamInvitations() { handleCloseInvitation(invitation.id); }} > - + ))} diff --git a/apps/web/lib/features/team/team-item.tsx b/apps/web/lib/features/team/team-item.tsx index 61f5a288b..98373b8da 100644 --- a/apps/web/lib/features/team/team-item.tsx +++ b/apps/web/lib/features/team/team-item.tsx @@ -3,7 +3,7 @@ import { imgTitle } from '@app/helpers'; import { IOrganizationTeamList } from '@app/interfaces'; import { clsxm, isValidUrl } from '@app/utils'; import { Avatar, DropdownItem, Tooltip } from 'lib/components'; -import { SettingsOutlineIcon } from 'lib/components/svgs'; +import { SettingOutlineIcon } from 'assets/svg'; import { useTheme } from 'next-themes'; import Link from 'next/link'; import { readableColor } from 'polished'; @@ -40,7 +40,7 @@ export function mapTeamItems(teams: IOrganizationTeamList[], onChangeActiveTeam: }} href="/settings/team" > - +
    diff --git a/apps/web/lib/features/team/user-team-block/user-team-block-header.tsx b/apps/web/lib/features/team/user-team-block/user-team-block-header.tsx index d59b1c7c4..13b912613 100644 --- a/apps/web/lib/features/team/user-team-block/user-team-block-header.tsx +++ b/apps/web/lib/features/team/user-team-block/user-team-block-header.tsx @@ -3,14 +3,8 @@ import { useOrganizationTeams, useAuthenticateUser, useModal, useUserProfilePage import { clsxm } from '@app/utils'; import { InviteFormModal } from '../invite/invite-form-modal'; import { taskBlockFilterState } from '@app/stores/task-filter'; -import { - PauseIcon, - SearchNormalIcon, - TimerPlayIcon, - StopCircleIcon, - NotWorkingIcon, - OnlineIcon -} from 'lib/components/svgs'; +import { SearchNormalIcon, TimerPlayIcon } from 'assets/svg'; +import { CheckCircleTickIcon, CrossCircleIcon, StopCircleIcon, PauseIcon } from 'assets/svg'; import { Button, VerticalSeparator } from 'lib/components'; import { useTaskFilter, TaskNameFilter } from 'lib/features'; import { useRecoilState } from 'recoil'; @@ -62,9 +56,8 @@ export function UserTeamBlockHeader() { >

    All members

    @@ -84,7 +77,7 @@ export function UserTeamBlockHeader() { )} onClick={() => setActiveFilter('idle')} > -

    Paused

    @@ -156,7 +149,7 @@ export function UserTeamBlockHeader() { )} onClick={() => setActiveFilter('online')} > - diff --git a/apps/web/lib/features/team/user-team-block/user-team-card-menu.tsx b/apps/web/lib/features/team/user-team-block/user-team-card-menu.tsx index 616f6b881..98564efe1 100644 --- a/apps/web/lib/features/team/user-team-block/user-team-card-menu.tsx +++ b/apps/web/lib/features/team/user-team-block/user-team-card-menu.tsx @@ -4,10 +4,10 @@ import { IClassName, ITeamTask } from '@app/interfaces'; import { clsxm } from '@app/utils'; import { Popover, Transition } from '@headlessui/react'; import { Card, ConfirmDropdown, SpinnerLoader, Text } from 'lib/components'; -import { MoreIcon } from 'lib/components/svgs'; import { TaskUnOrAssignPopover } from 'lib/features/task/task-assign-popover'; import { useCallback } from 'react'; import { useTranslations } from 'next-intl'; +import { ThreeCircleOutlineVerticalIcon } from 'assets/svg'; type Props = IClassName & { memberInfo: I_TeamMemberCardHook; @@ -91,7 +91,7 @@ function DropdownMenu({ edition, memberInfo }: Props) { menu.length === 0 && ['opacity-50 hidden'] )} > - + )} {loading && } diff --git a/apps/web/lib/features/team/user-team-card/index.tsx b/apps/web/lib/features/team/user-team-card/index.tsx index aeeddd508..7c2fe52ad 100644 --- a/apps/web/lib/features/team/user-team-card/index.tsx +++ b/apps/web/lib/features/team/user-team-card/index.tsx @@ -6,7 +6,6 @@ import { IClassName, IOrganizationTeamList, OT_Member } from '@app/interfaces'; import { timerSecondsState } from '@app/stores'; import { clsxm } from '@app/utils'; import { Card, HorizontalSeparator, InputField, Text, VerticalSeparator } from 'lib/components'; -import { DraggerIcon } from 'lib/components/svgs'; import { TaskTimes, TodayWorkedTime } from 'lib/features'; import { useTranslations } from 'next-intl'; import { useRecoilValue, useSetRecoilState } from 'recoil'; @@ -18,6 +17,7 @@ import React from 'react'; import UserTeamActivity from './user-team-card-activity'; import { CollapseUpIcon, ExpandIcon } from '@components/ui/svgs/expand'; import { activityTypeState } from '@app/stores/activity-type'; +import { SixSquareGridIcon } from 'assets/svg'; type IUserTeamCard = { active?: boolean; @@ -124,7 +124,7 @@ export function UserTeamCard({ >
    - +
    {/* Show user name, email and image */} diff --git a/apps/web/lib/features/team/user-team-card/task-estimate.tsx b/apps/web/lib/features/team/user-team-card/task-estimate.tsx index 826a3a40e..e1c9b2359 100644 --- a/apps/web/lib/features/team/user-team-card/task-estimate.tsx +++ b/apps/web/lib/features/team/user-team-card/task-estimate.tsx @@ -5,7 +5,7 @@ import { I_TMCardTaskEditHook, I_TeamMemberCardHook } from '@app/hooks'; import { IClassName } from '@app/interfaces'; import { clsxm } from '@app/utils'; import { Text } from 'lib/components'; -import { EditIcon, TickSaveIcon } from 'lib/components/svgs'; +import { EditPenBoxIcon, CheckCircleTickIcon as TickSaveIcon } from 'assets/svg'; import { TaskEstimate, TaskProgressBar } from 'lib/features'; import { useRef } from 'react'; import { useTranslations } from 'next-intl'; @@ -90,7 +90,7 @@ function TaskEstimateInput({ memberInfo, edition }: Omit task && edition.setEstimateEditMode(true)} > - - + )} @@ -97,7 +97,7 @@ export function UserInfo({ className, memberInfo, publicTeam = false }: Props) { enabled={`${memberUser?.email || ''} `.trim().length > CHARACTER_LIMIT_TO_SHOW} > - {' '} + {memberUser?.email} diff --git a/apps/web/lib/features/team/user-team-card/user-team-card-menu.tsx b/apps/web/lib/features/team/user-team-card/user-team-card-menu.tsx index 616f6b881..98564efe1 100644 --- a/apps/web/lib/features/team/user-team-card/user-team-card-menu.tsx +++ b/apps/web/lib/features/team/user-team-card/user-team-card-menu.tsx @@ -4,10 +4,10 @@ import { IClassName, ITeamTask } from '@app/interfaces'; import { clsxm } from '@app/utils'; import { Popover, Transition } from '@headlessui/react'; import { Card, ConfirmDropdown, SpinnerLoader, Text } from 'lib/components'; -import { MoreIcon } from 'lib/components/svgs'; import { TaskUnOrAssignPopover } from 'lib/features/task/task-assign-popover'; import { useCallback } from 'react'; import { useTranslations } from 'next-intl'; +import { ThreeCircleOutlineVerticalIcon } from 'assets/svg'; type Props = IClassName & { memberInfo: I_TeamMemberCardHook; @@ -91,7 +91,7 @@ function DropdownMenu({ edition, memberInfo }: Props) { menu.length === 0 && ['opacity-50 hidden'] )} > - + )} {loading && } diff --git a/apps/web/lib/features/timer/timer-button.tsx b/apps/web/lib/features/timer/timer-button.tsx index da334353a..133bf4a63 100644 --- a/apps/web/lib/features/timer/timer-button.tsx +++ b/apps/web/lib/features/timer/timer-button.tsx @@ -2,7 +2,7 @@ import { IClassName } from '@app/interfaces'; import { clsxm } from '@app/utils'; import { Button } from 'lib/components'; -import { TimerPlayIcon, TimerStopIcon } from 'lib/components/svgs'; +import { TimerPlayIcon, TimerStopIcon } from 'assets/svg'; import { MouseEventHandler } from 'react'; type Props = { @@ -30,7 +30,7 @@ export function TimerButton({ onClick, running, disabled, className }: Props) { {running ? ( ) : ( - + )} ); diff --git a/apps/web/lib/features/timer/timer-status.tsx b/apps/web/lib/features/timer/timer-status.tsx index 39a22da21..258af4023 100644 --- a/apps/web/lib/features/timer/timer-status.tsx +++ b/apps/web/lib/features/timer/timer-status.tsx @@ -2,7 +2,7 @@ import { IClassName, ITimerStatus, ITimerStatusEnum, OT_Member } from '@app/interfaces'; import { clsxm } from '@app/utils'; import { Tooltip } from 'lib/components'; -import { PauseIcon, StopCircleIcon, TimerPlayIcon, UserOnlineAndTrackingTimeIcon } from 'lib/components/svgs'; +import { StopCircleIcon, PauseIcon, TimerPlayIcon } from 'assets/svg'; import { capitalize } from 'lodash'; import moment from 'moment'; @@ -35,16 +35,14 @@ export function TimerStatus({ status, className, showIcon = true, tooltipClassNa )} > {status === 'running' && showIcon && } - {status === 'pause' && showIcon && } - {status === 'idle' && showIcon && } + {status === 'pause' && showIcon && } + {status === 'idle' && showIcon && } {/* For now until we have realtime we will saw UserOnlineAndTrackingTimeIcon insted of UserOnlineIcon*/} - {status === 'online' && showIcon && ( - - )} + {status === 'online' && showIcon && } {/* */} - {status === 'suspended' && showIcon && } + {status === 'suspended' && showIcon && }
    ); diff --git a/apps/web/lib/features/user-nav-menu.tsx b/apps/web/lib/features/user-nav-menu.tsx index efb8aee6b..a81c69259 100644 --- a/apps/web/lib/features/user-nav-menu.tsx +++ b/apps/web/lib/features/user-nav-menu.tsx @@ -8,14 +8,9 @@ import { clsxm, isValidUrl } from '@app/utils'; import { Popover, Transition } from '@headlessui/react'; import { ChevronDownIcon } from '@heroicons/react/20/solid'; import { Avatar, Card, Divider, Text, ThemeToggler, Tooltip } from 'lib/components'; -import { - BriefcaseIcon, - DevicesIcon, - LogoutIcon2, - MoonIcon, - PeopleIcon, - SettingsOutlineIcon -} from 'lib/components/svgs'; + +import { DevicesIcon, LogoutRoundIcon, MoonLightOutlineIcon as MoonIcon, PeoplesIcon } from 'assets/svg'; +import { BriefCaseIcon, SettingOutlineIcon } from 'assets/svg'; import ThemesPopup from 'lib/components/themes-popup'; import { useTheme } from 'next-themes'; import Link from 'next/link'; @@ -98,7 +93,7 @@ export function UserNavAvatar() { leaveFrom="transform scale-100 opacity-100" leaveTo="transform scale-95 opacity-0" > - + @@ -226,13 +221,13 @@ function UserNavMenu() { href={`/profile/${user?.id}`} className="flex items-center space-x-3 font-normal text-center" > - {t('common.MY_TASKS')} + {t('common.MY_TASKS')} {/* Team menu */}
  • - {' '} + {' '} {t('common.MY_TEAM')}
  • @@ -240,7 +235,7 @@ function UserNavMenu() {
  • - {t('common.SETTINGS')} + {t('common.SETTINGS')}
  • @@ -288,7 +283,7 @@ function UserNavMenu() { className="flex space-x-3 items-center font-normal mb-3 text-[#DE437B]" onClick={logOut} > - {t('common.LOGOUT')} + {t('common.LOGOUT')} diff --git a/apps/web/lib/settings/danger-zone-personal.tsx b/apps/web/lib/settings/danger-zone-personal.tsx index d5a8a5b36..8618f7227 100644 --- a/apps/web/lib/settings/danger-zone-personal.tsx +++ b/apps/web/lib/settings/danger-zone-personal.tsx @@ -4,7 +4,6 @@ import { Button, Text } from 'lib/components'; import Image from 'next/image'; import { useCallback, useState } from 'react'; import { useTranslations } from 'next-intl'; -import dangerZoneImage from '../../public/assets/svg/danger-zones.svg'; import { RemoveModal } from './remove-modal'; type RemoveModalType = 'REMOVE' | 'DELETE' | 'DELETE_ALL' | string; type ActionFunction = () => void; @@ -48,7 +47,7 @@ export const DangerZone = () => {
    - Danger zone + Danger zone
    diff --git a/apps/web/lib/settings/integration-setting.tsx b/apps/web/lib/settings/integration-setting.tsx index f1436337b..647bdbc83 100644 --- a/apps/web/lib/settings/integration-setting.tsx +++ b/apps/web/lib/settings/integration-setting.tsx @@ -6,7 +6,7 @@ import { useGitHubIntegration, useIntegrationTenant, useIntegrationTypes, useOrg import { ChangeEvent, useCallback, useEffect, useMemo, useState } from 'react'; import { GITHUB_APP_NAME } from '@app/constants'; import { useOrganizationProjects } from '@app/hooks'; -import { TrashIcon } from 'lib/components/svgs'; +import { TrashIcon } from 'assets/svg'; import { Button, InputField } from 'lib/components'; import { getActiveProjectIdCookie } from '@app/helpers'; import { Switch } from '@headlessui/react'; @@ -307,7 +307,7 @@ export const IntegrationSetting = () => { {selectedRepo && ( )}
    diff --git a/apps/web/lib/settings/invitation-setting.tsx b/apps/web/lib/settings/invitation-setting.tsx index ee1637420..0d517acee 100644 --- a/apps/web/lib/settings/invitation-setting.tsx +++ b/apps/web/lib/settings/invitation-setting.tsx @@ -1,6 +1,6 @@ import { useAuthenticateUser, useModal, useRequestToJoinTeam, useTeamInvitations } from '@app/hooks'; import { Button, InputField, NoData } from 'lib/components'; -import { SearchNormalIcon } from 'lib/components/svgs'; +import { SearchNormalIcon } from 'assets/svg'; import { InviteFormModal } from 'lib/features/team/invite/invite-form-modal'; import { ChangeEvent, useEffect, useState } from 'react'; import { useTranslations } from 'next-intl'; @@ -73,7 +73,7 @@ export const InvitationSetting = () => { {t('pages.settingsTeam.INVITATION_EXPIRATION')} - +
    diff --git a/apps/web/lib/settings/invitation-table-status.tsx b/apps/web/lib/settings/invitation-table-status.tsx index 5059ee6ba..e541d8026 100644 --- a/apps/web/lib/settings/invitation-table-status.tsx +++ b/apps/web/lib/settings/invitation-table-status.tsx @@ -1,4 +1,5 @@ -import { CheckIcon, CloseIcon } from 'lib/components/svgs'; +import { CheckIcon } from '@heroicons/react/20/solid'; +import { CrossIcon } from 'assets/svg'; import { useTranslations } from 'next-intl'; interface isProps { status: string | undefined; @@ -50,7 +51,7 @@ export const InvitationTableStatus = ({ status, acceptJoinRequest, rejectJoinReq className="bg-[#EE6C4D] w-10 h-7 rounded-lg flex items-center justify-center cursor-pointer" onClick={rejectJoinRequest} > - +
    ); diff --git a/apps/web/lib/settings/left-side-setting-menu.tsx b/apps/web/lib/settings/left-side-setting-menu.tsx index 8f20759c0..a4e6c1c07 100644 --- a/apps/web/lib/settings/left-side-setting-menu.tsx +++ b/apps/web/lib/settings/left-side-setting-menu.tsx @@ -4,7 +4,7 @@ import { userState } from '@app/stores'; import { scrollToElement } from '@app/utils'; import { Text } from 'lib/components'; import { SidebarAccordian } from 'lib/components/sidebar-accordian'; -import { PeopleIcon, PeopleIconFilled, UserIcon, UserIconFilled } from 'lib/components/svgs'; +import { PeoplesIcon, UserOutlineIcon } from 'assets/svg'; import { useParams, usePathname } from 'next/navigation'; import { useCallback, useEffect, useMemo, useState } from 'react'; import { useTranslations } from 'next-intl'; @@ -72,9 +72,12 @@ export const LeftSideSettingMenu = ({ className }: { className?: string }) => { title={ <> {activePage === '/settings/personal' ? ( - + ) : ( - + )} {t('common.PERSONAL')} @@ -117,9 +120,9 @@ export const LeftSideSettingMenu = ({ className }: { className?: string }) => { title={ <> {activePage === '/settings/team' ? ( - + ) : ( - + )} {t('common.TEAM')} diff --git a/apps/web/lib/settings/list-card.tsx b/apps/web/lib/settings/list-card.tsx index 5e7b9f993..3811cba1d 100644 --- a/apps/web/lib/settings/list-card.tsx +++ b/apps/web/lib/settings/list-card.tsx @@ -1,4 +1,4 @@ -import { Edit2Icon, TrashIcon } from 'lib/components/svgs'; +import { EditPenUnderlineIcon, TrashIcon } from 'assets/svg'; import { Button, Text, Tooltip } from 'lib/components'; import Image from 'next/image'; import { CHARACTER_LIMIT_TO_SHOW } from '@app/constants'; @@ -65,10 +65,10 @@ export const StatusesListCard = ({
    diff --git a/apps/web/lib/settings/member-setting.tsx b/apps/web/lib/settings/member-setting.tsx index 0397c1d6f..8f8fe8427 100644 --- a/apps/web/lib/settings/member-setting.tsx +++ b/apps/web/lib/settings/member-setting.tsx @@ -1,6 +1,6 @@ import { useAuthenticateUser, useModal, useOrganizationTeams } from '@app/hooks'; import { Button, InputField, NoData, Text } from 'lib/components'; -import { SearchNormalIcon } from 'lib/components/svgs'; +import { SearchNormalIcon } from 'assets/svg'; import { InviteFormModal } from 'lib/features/team/invite/invite-form-modal'; import { ChangeEvent, useState } from 'react'; import { useTranslations } from 'next-intl'; diff --git a/apps/web/lib/settings/table-action-popover.tsx b/apps/web/lib/settings/table-action-popover.tsx index b8469a196..037af0b19 100644 --- a/apps/web/lib/settings/table-action-popover.tsx +++ b/apps/web/lib/settings/table-action-popover.tsx @@ -2,11 +2,11 @@ import { useAuthenticateUser, useModal, useTMCardTaskEdit, useTeamMemberCard } f import { useRoles } from '@app/hooks/features/useRoles'; import { OT_Member } from '@app/interfaces'; import { Popover, Transition } from '@headlessui/react'; -import { MenuIcon } from 'lib/components/svgs'; import { useDropdownAction } from 'lib/features/team/user-team-card/user-team-card-menu'; import { Fragment, useEffect } from 'react'; import { useTranslations } from 'next-intl'; import { ConfirmationModal } from './confirmation-modal'; +import { ThreeCircleOutlineHorizontalIcon } from 'assets/svg'; type Props = { member: OT_Member; @@ -93,7 +93,7 @@ export const TableActionPopover = ({ member, handleEdit }: Props) => {
    - + { const [user] = useRecoilState(userState); @@ -184,7 +184,7 @@ export const TeamSettingForm = () => { disabled={!isTeamManager} onClick={() => setDisabled(false)} > - + ) : ( ) ) : ( diff --git a/apps/web/lib/settings/team-size-popover.tsx b/apps/web/lib/settings/team-size-popover.tsx index dfe730b36..4a9f78036 100644 --- a/apps/web/lib/settings/team-size-popover.tsx +++ b/apps/web/lib/settings/team-size-popover.tsx @@ -1,8 +1,8 @@ import { Popover, Transition } from '@headlessui/react'; import { Button } from 'lib/components'; -import { Edit2Icon } from 'lib/components/svgs'; import { Fragment, useCallback, useEffect, useRef, useState } from 'react'; import { useTranslations } from 'next-intl'; +import { EditPenUnderlineIcon } from 'assets/svg'; const sizeOption = [ { @@ -114,7 +114,7 @@ const TeamSize = ({ setDisabled(!disabled); }} > - + )}
    diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 500f9f03e..227ec92c7 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -43,6 +43,31 @@ const nextConfig = { config.resolve.alias['app'] = path.join(__dirname, 'app'); config.resolve.alias['components'] = path.join(__dirname, 'components'); config.resolve.alias['lib'] = path.join(__dirname, 'lib'); + + const fileLoaderRule = config.module.rules.find((rule) => rule.test?.test?.('.svg')); + + config.module.rules.push( + { + ...fileLoaderRule, + type: 'javascript/auto', + test: /\.svg$/i, + resourceQuery: /url/ // *.svg?url + }, + { + test: /\.svg$/i, + type: 'javascript/auto', + issuer: fileLoaderRule.issuer, + resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] }, // exclude if *.svg?url + use: [ + { + loader: '@svgr/webpack', + options: { + dimensions: false + } + } + ] + } + ); return config; }, images: { diff --git a/apps/web/package.json b/apps/web/package.json index 6c819b4bc..8ee767488 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -112,6 +112,7 @@ "@types/react-beautiful-dnd": "^13.1.6", "@types/react-dom": "18.0.6", "@types/react-google-recaptcha": "^2.1.5", + "@svgr/webpack": "^8.1.0", "eslint": "^8.28.0", "eslint-plugin-unused-imports": "^3.0.0", "eslint-config-next": "^14.0.4", diff --git a/apps/web/public/assets/backbutton/Edit.svg b/apps/web/public/assets/backbutton/Edit.svg deleted file mode 100644 index fa02ab12f..000000000 --- a/apps/web/public/assets/backbutton/Edit.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/apps/web/public/assets/backbutton/left-arrow.png b/apps/web/public/assets/backbutton/left-arrow.png deleted file mode 100644 index 932ac0633..000000000 Binary files a/apps/web/public/assets/backbutton/left-arrow.png and /dev/null differ diff --git a/apps/web/public/assets/png/ruslan.png b/apps/web/public/assets/png/ruslan.png deleted file mode 100644 index 59dd43578..000000000 Binary files a/apps/web/public/assets/png/ruslan.png and /dev/null differ diff --git a/apps/web/public/assets/profiles/Profile.png b/apps/web/public/assets/profiles/Profile.png deleted file mode 100644 index fd1d50c77..000000000 Binary files a/apps/web/public/assets/profiles/Profile.png and /dev/null differ diff --git a/apps/web/public/assets/profiles/kevin.png b/apps/web/public/assets/profiles/kevin.png deleted file mode 100644 index 374ee471e..000000000 Binary files a/apps/web/public/assets/profiles/kevin.png and /dev/null differ diff --git a/apps/web/public/assets/profiles/mukesh.png b/apps/web/public/assets/profiles/mukesh.png deleted file mode 100644 index 1e155161c..000000000 Binary files a/apps/web/public/assets/profiles/mukesh.png and /dev/null differ diff --git a/apps/web/public/assets/profiles/roska.png b/apps/web/public/assets/profiles/roska.png deleted file mode 100644 index ad3c491da..000000000 Binary files a/apps/web/public/assets/profiles/roska.png and /dev/null differ diff --git a/apps/web/public/assets/profiles/ruslan.png b/apps/web/public/assets/profiles/ruslan.png deleted file mode 100644 index 2d5a44737..000000000 Binary files a/apps/web/public/assets/profiles/ruslan.png and /dev/null differ diff --git a/apps/web/public/assets/socials/gitlab.svg b/apps/web/public/assets/socials/gitlab.svg deleted file mode 100644 index 4d7d40e7d..000000000 --- a/apps/web/public/assets/socials/gitlab.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/web/public/assets/svg/in-review.svg b/apps/web/public/assets/svg/in-review.svg deleted file mode 100644 index 884955355..000000000 --- a/apps/web/public/assets/svg/in-review.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/apps/web/public/assets/svg/link.svg b/apps/web/public/assets/svg/link.svg deleted file mode 100644 index d741ce285..000000000 --- a/apps/web/public/assets/svg/link.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/apps/web/public/assets/svg/lock.svg b/apps/web/public/assets/svg/lock.svg deleted file mode 100644 index ef35c9680..000000000 --- a/apps/web/public/assets/svg/lock.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/apps/web/public/assets/svg/more2.svg b/apps/web/public/assets/svg/more2.svg deleted file mode 100644 index ad2f42709..000000000 --- a/apps/web/public/assets/svg/more2.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/apps/web/public/assets/svg/no-status.svg b/apps/web/public/assets/svg/no-status.svg deleted file mode 100644 index 2a3634d21..000000000 --- a/apps/web/public/assets/svg/no-status.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/apps/web/public/assets/svg/open-issue.svg b/apps/web/public/assets/svg/open-issue.svg deleted file mode 100644 index e69de29bb..000000000 diff --git a/apps/web/public/assets/svg/ph_text-bolder-bold.svg b/apps/web/public/assets/svg/ph_text-bolder-bold.svg deleted file mode 100644 index 64171444a..000000000 --- a/apps/web/public/assets/svg/ph_text-bolder-bold.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/apps/web/public/assets/svg/printer.svg b/apps/web/public/assets/svg/printer.svg deleted file mode 100644 index 908994b4a..000000000 --- a/apps/web/public/assets/svg/printer.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/apps/web/public/assets/svg/profile-icon-dark.svg b/apps/web/public/assets/svg/profile-icon-dark.svg deleted file mode 100644 index 8d6525528..000000000 --- a/apps/web/public/assets/svg/profile-icon-dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/apps/web/public/assets/svg/public.svg b/apps/web/public/assets/svg/public.svg deleted file mode 100644 index 6e6ed1923..000000000 --- a/apps/web/public/assets/svg/public.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/apps/web/public/assets/svg/ri_font-size-2.svg b/apps/web/public/assets/svg/ri_font-size-2.svg deleted file mode 100644 index 0d89dd236..000000000 --- a/apps/web/public/assets/svg/ri_font-size-2.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - diff --git a/apps/web/public/assets/svg/ri_italic.svg b/apps/web/public/assets/svg/ri_italic.svg deleted file mode 100644 index c227d6733..000000000 --- a/apps/web/public/assets/svg/ri_italic.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/apps/web/public/assets/svg/settings-icon-dark.svg b/apps/web/public/assets/svg/settings-icon-dark.svg deleted file mode 100644 index 7425f61ac..000000000 --- a/apps/web/public/assets/svg/settings-icon-dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/apps/web/public/assets/svg/teams-icon-dark.svg b/apps/web/public/assets/svg/teams-icon-dark.svg deleted file mode 100644 index d54d87b88..000000000 --- a/apps/web/public/assets/svg/teams-icon-dark.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/apps/web/public/assets/svg/tick-square.svg b/apps/web/public/assets/svg/tick-square.svg deleted file mode 100644 index b1f8c1cea..000000000 --- a/apps/web/public/assets/svg/tick-square.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/apps/web/public/assets/svg/tick.svg b/apps/web/public/assets/svg/tick.svg deleted file mode 100644 index 47294e48b..000000000 --- a/apps/web/public/assets/svg/tick.svg +++ /dev/null @@ -1,65 +0,0 @@ - - diff --git a/yarn.lock b/yarn.lock index 1670fad27..db436f401 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6206,7 +6206,7 @@ deepmerge "^4.3.1" svgo "^3.0.2" -"@svgr/webpack@^8.0.1": +"@svgr/webpack@^8.0.1", "@svgr/webpack@^8.1.0": version "8.1.0" resolved "https://registry.yarnpkg.com/@svgr/webpack/-/webpack-8.1.0.tgz#16f1b5346f102f89fda6ec7338b96a701d8be0c2" integrity sha512-LnhVjMWyMQV9ZmeEy26maJk+8HTIbd59cH4F2MJ439k9DqejRisfFNGAPvRYlKETuh9LrImlS8aKsBgKjMA8WA==