index
int64
0
0
repo_id
stringlengths
16
181
file_path
stringlengths
28
270
content
stringlengths
1
11.6M
__index_level_0__
int64
0
10k
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql/team/updateTeamMemberRole.ts
import gql from 'graphql-tag'; export const UPDATE_TEAM_MEMBER_ROLE_MUTATION = gql` mutation updateTeamMemberRole($teamID: UUID!, $userID: UUID!, $roleCode: RoleCode!) { updateTeamMemberRole(input: { teamID: $teamID, userID: $userID, roleCode: $roleCode }) { member { id role { code name } } teamID } } `; export default UPDATE_TEAM_MEMBER_ROLE_MUTATION;
9,900
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql/user/createUser.ts
import gql from 'graphql-tag'; export const CREATE_USER_MUTATION = gql` mutation createUserAccount( $username: String! $roleCode: String! $email: String! $fullName: String! $initials: String! $password: String! ) { createUserAccount( input: { roleCode: $roleCode username: $username email: $email fullName: $fullName initials: $initials password: $password } ) { id email fullName initials username bio profileIcon { url initials bgColor } role { code name } owned { teams { id name } projects { id name } } member { teams { id name } projects { id name } } } } `; export default CREATE_USER_MUTATION;
9,901
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql/user/deleteInvitedUser.ts
import gql from 'graphql-tag'; export const DELETE_INVITED_USER_MUTATION = gql` mutation deleteInvitedUserAccount($invitedUserID: UUID!) { deleteInvitedUserAccount(input: { invitedUserID: $invitedUserID }) { invitedUser { id } } } `; export default DELETE_INVITED_USER_MUTATION;
9,902
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql/user/deleteUser.ts
import gql from 'graphql-tag'; export const DELETE_USER_MUTATION = gql` mutation deleteUserAccount($userID: UUID!, $newOwnerID: UUID) { deleteUserAccount(input: { userID: $userID, newOwnerID: $newOwnerID }) { ok userAccount { id } } } `; export default DELETE_USER_MUTATION;
9,903
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql/user/updateUserInfo.ts
import gql from 'graphql-tag'; export const UPDATE_USER_INFO_MUTATION = gql` mutation updateUserInfo($name: String!, $initials: String!, $email: String!, $bio: String!) { updateUserInfo(input: { name: $name, initials: $initials, email: $email, bio: $bio }) { user { id email fullName bio profileIcon { initials } } } } `; export default UPDATE_USER_INFO_MUTATION;
9,904
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql/user/updateUserPassword.ts
import gql from 'graphql-tag'; export const UPDATE_USER_PASSWORD_MUTATION = gql` mutation updateUserPassword($userID: UUID!, $password: String!) { updateUserPassword(input: { userID: $userID, password: $password }) { ok } } `; export default UPDATE_USER_PASSWORD_MUTATION;
9,905
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/graphql/user/updateUserRole.ts
import gql from 'graphql-tag'; export const UPDATE_USER_ROLE_MUTATION = gql` mutation updateUserRole($userID: UUID!, $roleCode: RoleCode!) { updateUserRole(input: { userID: $userID, roleCode: $roleCode }) { user { id role { code name } } } } `; export default UPDATE_USER_ROLE_MUTATION;
9,906
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/hooks/memoize.ts
import { useRef } from 'react'; import { isEqual } from 'lodash'; const useDeepCompareMemoize = (value: any) => { const valueRef = useRef(); if (!isEqual(value, valueRef.current)) { valueRef.current = value; } return valueRef.current; }; export default useDeepCompareMemoize;
9,907
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/hooks/onEscapeKeyDown.ts
import { useEffect } from 'react'; import KeyCodes from 'shared/constants/keyCodes'; const useOnEscapeKeyDown = (isListening: boolean, onEscapeKeyDown: () => void) => { useEffect(() => { const handleKeyDown = (event: any) => { if (event.keyCode === KeyCodes.ESCAPE) { onEscapeKeyDown(); } }; if (isListening) { document.addEventListener('keydown', handleKeyDown); } return () => { document.removeEventListener('keydown', handleKeyDown); }; }, [isListening, onEscapeKeyDown]); }; export default useOnEscapeKeyDown;
9,908
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/hooks/onOutsideClick.ts
import { useEffect, useRef } from 'react'; const useOnOutsideClick = ( $ignoredElementRefs: any, isListening: boolean, onOutsideClick: () => void, $listeningElementRef: any, ) => { const $mouseDownTargetRef = useRef(); const $ignoredElementRefsMemoized = [$ignoredElementRefs].flat(); useEffect(() => { const handleMouseDown = (event: any) => { $mouseDownTargetRef.current = event.target; }; const handleMouseUp = (event: any) => { if (typeof $ignoredElementRefsMemoized !== 'undefined') { const isAnyIgnoredElementAncestorOfTarget = $ignoredElementRefsMemoized.some(($elementRef: any) => { if ($elementRef && $elementRef.current) { return ( $elementRef.current.contains($mouseDownTargetRef.current) || $elementRef.current.contains(event.target) ); } return false; }); if (event.button === 0 && !isAnyIgnoredElementAncestorOfTarget) { onOutsideClick(); } } }; const $listeningElement = ($listeningElementRef || {}).current || document; if (isListening) { $listeningElement.addEventListener('mousedown', handleMouseDown); $listeningElement.addEventListener('mouseup', handleMouseUp); } return () => { $listeningElement.removeEventListener('mousedown', handleMouseDown); $listeningElement.removeEventListener('mouseup', handleMouseUp); }; }, [$ignoredElementRefsMemoized, $listeningElementRef, isListening, onOutsideClick]); }; export default useOnOutsideClick;
9,909
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/hooks/useStateWithLocalStorage.ts
import React, { Dispatch, SetStateAction, useEffect, useState } from 'react'; // A wrapper for "JSON.parse()"" to support "undefined" value function parseJSON<T>(value: string | null): T | undefined { try { return value === 'undefined' ? undefined : JSON.parse(value ?? ''); } catch (error) { return undefined; } } const useStateWithLocalStorage = (localStorageKey: string): [string, React.Dispatch<React.SetStateAction<string>>] => { const [value, setValue] = React.useState<string>(localStorage.getItem(localStorageKey) || ''); React.useEffect(() => { localStorage.setItem(localStorageKey, value); }, [value]); return [value, setValue]; }; export default useStateWithLocalStorage; type SetValue<T> = Dispatch<SetStateAction<T>>; function useLocalStorage<T>(key: string, initialValue: T): [T, SetValue<T>] { // Get from local storage then // parse stored json or return initialValue const readValue = (): T => { // Prevent build error "window is undefined" but keep keep working if (typeof window === 'undefined') { return initialValue; } try { const item = window.localStorage.getItem(key); return item ? (parseJSON(item) as T) : initialValue; } catch (error) { console.warn(`Error reading localStorage key “${key}”:`, error); return initialValue; } }; // State to store our value // Pass initial state function to useState so logic is only executed once const [storedValue, setStoredValue] = useState<T>(readValue); // Return a wrapped version of useState's setter function that ... // ... persists the new value to localStorage. const setValue: SetValue<T> = (value) => { // Prevent build error "window is undefined" but keeps working if (typeof window === 'undefined') { console.warn(`Tried setting localStorage key “${key}” even though environment is not a client`); } try { // Allow value to be a function so we have the same API as useState const newValue = value instanceof Function ? value(storedValue) : value; // Save to local storage window.localStorage.setItem(key, JSON.stringify(newValue)); // Save state setStoredValue(newValue); // We dispatch a custom event so every useLocalStorage hook are notified window.dispatchEvent(new Event('local-storage')); } catch (error) { console.warn(`Error setting localStorage key “${key}”:`, error); } }; useEffect(() => { setStoredValue(readValue()); }, []); useEffect(() => { const handleStorageChange = () => { setStoredValue(readValue()); }; // this only works for other documents, not the current one window.addEventListener('storage', handleStorageChange); // this is a custom event, triggered in writeValueToLocalStorage window.addEventListener('local-storage', handleStorageChange); return () => { window.removeEventListener('storage', handleStorageChange); window.removeEventListener('local-storage', handleStorageChange); }; }, []); return [storedValue, setValue]; } export { useLocalStorage };
9,910
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/hooks/useStickyState.ts
import React from 'react'; function useStickyState<T>(defaultValue: any, key: string): [T, React.Dispatch<React.SetStateAction<T>>] { const [value, setValue] = React.useState<T>(() => { const stickyValue = window.localStorage.getItem(key); return stickyValue !== null ? JSON.parse(stickyValue) : defaultValue; }); React.useEffect(() => { window.localStorage.setItem(key, JSON.stringify(value)); }, [key, value]); return [value, setValue]; } export default useStickyState;
9,911
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/hooks/useWindowSize.ts
import { useLayoutEffect, useState } from 'react'; export default function useWindowSize() { const [size, setSize] = useState([0, 0]); useLayoutEffect(() => { function updateSize() { setSize([window.innerWidth, window.innerHeight]); } window.addEventListener('resize', updateSize); updateSize(); return () => window.removeEventListener('resize', updateSize); }, []); return size; }
9,912
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/AccountPlus.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const AccountPlus: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 640 512"> <path d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z" /> </Icon> ); }; export default AccountPlus;
9,913
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/AngleDown.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; export const AngleDown: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z" /> </Icon> ); }; type Props = { width?: number | string; height?: number | string; color?: string; }; const AngleDownOld = ({ width, height, color }: Props) => { return ( <svg width={width} height={height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"> <path fill={color} d="M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z" /> </svg> ); }; AngleDownOld.defaultProps = { width: 24, height: 16, color: '#000', }; export default AngleDownOld;
9,914
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/AngleLeft.tsx
import React from 'react'; type Props = { size: number | string; color: string; }; const AngleLeft = ({ size, color }: Props) => { return ( <svg width={size} height={size} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512"> <path fill={color} d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z" /> </svg> ); }; export default AngleLeft;
9,915
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/ArrowDown.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const ArrowDown: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 448 512"> <path d="M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z" /> </Icon> ); }; export default ArrowDown;
9,916
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/ArrowLeft.tsx
import React from 'react'; type Props = { width: number | string; height: number | string; color: string; }; const ArrowLeft = ({ width, height, color }: Props) => { return ( <svg width={width} height={height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"> <path fill={color} d="M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z" /> </svg> ); }; export default ArrowLeft;
9,917
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/At.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const At: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z" /> </Icon> ); }; export default At;
9,918
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/BarChart.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const BarChart: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z" /> </Icon> ); }; export default BarChart;
9,919
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Bell.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Bell: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 448 512"> <path d="M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z" /> </Icon> ); }; export default Bell;
9,920
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Bin.tsx
import React from 'react'; type Props = { size: number | string; color: string; }; const Bin = ({ size, color }: Props) => { return ( <svg fill={color} xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 16 16"> <path d="M2 5v10c0 0.55 0.45 1 1 1h9c0.55 0 1-0.45 1-1v-10h-11zM5 14h-1v-7h1v7zM7 14h-1v-7h1v7zM9 14h-1v-7h1v7zM11 14h-1v-7h1v7z" /> <path d="M13.25 2h-3.25v-1.25c0-0.412-0.338-0.75-0.75-0.75h-3.5c-0.412 0-0.75 0.338-0.75 0.75v1.25h-3.25c-0.413 0-0.75 0.337-0.75 0.75v1.25h13v-1.25c0-0.413-0.338-0.75-0.75-0.75zM9 2h-3v-0.987h3v0.987z" /> </svg> ); }; export default Bin;
9,921
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Bolt.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Bolt: React.FC<IconProps> = ({ width = '16px', height = '16px' }) => { return ( <Icon width={width} height={height} viewBox="0 0 320 512"> <path d="M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z" /> </Icon> ); }; export default Bolt;
9,922
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Briefcase.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Briefcase: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z" /> </Icon> ); }; export default Briefcase;
9,923
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Bubble.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Bubble: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 576 512"> <path d="M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z" /> </Icon> ); }; export default Bubble;
9,924
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Calendar.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Calender: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 448 512"> <path d="M400 64h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V160h352v298c0 3.3-2.7 6-6 6z" /> </Icon> ); }; export default Calender;
9,925
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/CaretDown.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const CaretDown: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 320 512"> <path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" /> </Icon> ); }; export default CaretDown;
9,926
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/CaretRight.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const CaretRight: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 192 512"> <path d="M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z" /> </Icon> ); }; export default CaretRight;
9,927
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/CheckCircle.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const CheckCircle: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z" /> </Icon> ); }; export default CheckCircle;
9,928
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/CheckCircleOutline.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const CheckCircleOutline: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z" /> </Icon> ); }; export default CheckCircleOutline;
9,929
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/CheckSquare.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const CheckSquare: React.FC<IconProps> = ({ width = '16px', height = '16px', onClick, className }) => { return ( <Icon width={width} onClick={onClick} height={height} className={className} viewBox="0 0 448 512"> <path d="M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z" /> </Icon> ); }; export default CheckSquare;
9,930
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/CheckSquareOutline.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const CheckSquareOutline: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 448 512"> <path d="M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z" /> </Icon> ); }; export default CheckSquareOutline;
9,931
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Checkmark.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Checkmark: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" /> </Icon> ); }; export default Checkmark;
9,932
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/ChevronRight.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const ChevronRight: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" /> </Icon> ); }; export default ChevronRight;
9,933
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Circle.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Circle: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z" /> </Icon> ); }; export default Circle;
9,934
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/CircleSolid.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const CircleSolid: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" /> </Icon> ); }; export default CircleSolid;
9,935
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Clock.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Clock: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z" /> </Icon> ); }; export default Clock;
9,936
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Clone.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Clone: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z" /> </Icon> ); }; export default Clone;
9,937
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Cog.tsx
import React from 'react'; type Props = { size: number | string; color: string; }; const Cog = ({ size, color }: Props) => { return ( <svg width={size} height={size} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <path fill={color} d="M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z" /> </svg> ); }; export default Cog;
9,938
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Cogs.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Cogs: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 640 512"> <path d="M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z" /> </Icon> ); }; export default Cogs;
9,939
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Cross.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Cross: React.FC<IconProps> = ({ width = '16px', height = '16px', className, onClick }) => { return ( <Icon width={width} height={height} onClick={onClick} className={className} viewBox="0 0 352 512"> <path d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" /> </Icon> ); }; export default Cross;
9,940
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Crown.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Crown: React.FC<IconProps> = ({ width = '16px', height = '16px', onClick, className }) => { return ( <Icon width={width} onClick={onClick} height={height} className={className} viewBox="0 0 640 512"> <path d="M528 448H112c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h416c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm64-320c-26.5 0-48 21.5-48 48 0 7.1 1.6 13.7 4.4 19.8L476 239.2c-15.4 9.2-35.3 4-44.2-11.6L350.3 85C361 76.2 368 63 368 48c0-26.5-21.5-48-48-48s-48 21.5-48 48c0 15 7 28.2 17.7 37l-81.5 142.6c-8.9 15.6-28.9 20.8-44.2 11.6l-72.3-43.4c2.7-6 4.4-12.7 4.4-19.8 0-26.5-21.5-48-48-48S0 149.5 0 176s21.5 48 48 48c2.6 0 5.2-.4 7.7-.8L128 416h384l72.3-192.8c2.5.4 5.1.8 7.7.8 26.5 0 48-21.5 48-48s-21.5-48-48-48z" /> </Icon> ); }; export default Crown;
9,941
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Dot.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Dot: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 18 18"> <circle cx="9" cy="9" r="3.5" /> </Icon> ); }; export default Dot;
9,942
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/DotCircle.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const DotCircle: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z" /> </Icon> ); }; export default DotCircle;
9,943
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/DoubleChevronUp.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const DoubleChevronUp: React.FC<IconProps> = ({ width = '16px', height = '16px', onClick, className }) => { return ( <Icon width={width} onClick={onClick} height={height} className={className} viewBox="0 0 448 512"> <path d="M240.97 39.176L435.315 233.52c9.373 9.373 9.373 24.57 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 136.147 69.254 290.168c-9.379 9.335-24.544 9.317-33.9-.04l-22.668-22.667c-9.373-9.373-9.373-24.569 0-33.94L207.03 39.176c9.372-9.373 24.568-9.373 33.94 0z" /> <path d="M240.97 221.87l194.344 194.344c9.373 9.373 9.373 24.569 0 33.94l-22.667 22.668c-9.357 9.357-24.522 9.375-33.901.04L224 318.842 69.255 472.862c-9.38 9.336-24.544 9.318-33.901-.04l-22.667-22.666c-9.374-9.373-9.374-24.57 0-33.941L207.03 221.872c9.372-9.373 24.568-9.373 33.94-.001z" /> </Icon> ); }; export default DoubleChevronUp;
9,944
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Ellipsis.tsx
import React from 'react'; type Props = { size: number | string; color: string; vertical: boolean; }; const Ellipsis = ({ size, color, vertical }: Props) => { if (vertical) { return ( <svg fill={color} xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 192 512"> <path d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z" /> </svg> ); } return ( <svg fill={color} xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 512 512"> <path d="M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z" /> </svg> ); }; export default Ellipsis;
9,945
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Exit.tsx
import React from 'react'; type Props = { size: number | string; color: string; }; const Exit = ({ size, color }: Props) => { return ( <svg fill={color} xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 16 16"> <path d="M12 10v-2h-5v-2h5v-2l3 3zM11 9v4h-5v3l-6-3v-13h11v5h-1v-4h-8l4 2v9h4v-3z" /> </svg> ); }; export default Exit;
9,946
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Eye.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Eye: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 576 512"> <path d="M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z" /> </Icon> ); }; export default Eye;
9,947
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/EyeSlash.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const EyeSlash: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 640 512"> <path d="M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z" /> </Icon> ); }; export default EyeSlash;
9,948
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Filter.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Filter: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z" /> </Icon> ); }; export default Filter;
9,949
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Home.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Checkmark: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 576 512"> <path d="M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z" /> </Icon> ); }; export default Checkmark;
9,950
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Icon.tsx
import React from 'react'; import styled from 'styled-components/macro'; export type IconProps = { width: number | string; height: number | string; className?: string; onClick?: () => void; }; type Props = { width: number | string; height: number | string; viewBox: string; className?: string; onClick?: () => void; }; const Svg = styled.svg` fill: ${props => props.theme.colors.text.primary}; stroke: ${props => props.theme.colors.text.primary}; `; const Icon: React.FC<Props> = ({ width, height, viewBox, className, onClick, children }) => { return ( <Svg onClick={e => { if (onClick) { onClick(); } }} className={className} width={width} height={height} xmlns="http://www.w3.org/2000/svg" viewBox={viewBox} > {children} </Svg> ); }; export default Icon;
9,951
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/List.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const List: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z" /> </Icon> ); }; export default List;
9,952
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/ListUnordered.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const ListUnordered: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M48 48a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm448 16H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z" /> </Icon> ); }; export default ListUnordered;
9,953
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Lock.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Lock: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 448 512"> <path d="M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" /> </Icon> ); }; export default Lock;
9,954
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Paperclip.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Paperclip: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 448 512"> <path d="M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z" /> </Icon> ); }; export default Paperclip;
9,955
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Pencil.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Sort: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z" /> </Icon> ); }; export default Sort;
9,956
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Plus.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Plus: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 448 512"> <path d="M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" /> </Icon> ); }; export default Plus;
9,957
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Question.tsx
import React from 'react'; type Props = { size: number | string; color: string; }; const Question = ({ size, color }: Props) => { return ( <svg fill={color} xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 16 16"> <path d="M7 11h2v2h-2zM11 4c0.552 0 1 0.448 1 1v3l-3 2h-2v-1l3-2v-1h-5v-2h6zM8 1.5c-1.736 0-3.369 0.676-4.596 1.904s-1.904 2.86-1.904 4.596c0 1.736 0.676 3.369 1.904 4.596s2.86 1.904 4.596 1.904c1.736 0 3.369-0.676 4.596-1.904s1.904-2.86 1.904-4.596c0-1.736-0.676-3.369-1.904-4.596s-2.86-1.904-4.596-1.904zM8 0v0c4.418 0 8 3.582 8 8s-3.582 8-8 8c-4.418 0-8-3.582-8-8s3.582-8 8-8z" /> </svg> ); }; export default Question;
9,958
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Share.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Share: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M503.691 189.836L327.687 37.851C312.281 24.546 288 35.347 288 56.015v80.053C127.371 137.907 0 170.1 0 322.326c0 61.441 39.581 122.309 83.333 154.132 13.653 9.931 33.111-2.533 28.077-18.631C66.066 312.814 132.917 274.316 288 272.085V360c0 20.7 24.3 31.453 39.687 18.164l176.004-152c11.071-9.562 11.086-26.753 0-36.328z" /> </Icon> ); }; export default Share;
9,959
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Smile.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Smile: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 496 512"> <path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z" /> </Icon> ); }; export default Smile;
9,960
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Sort.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Sort: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 320 512"> <path d="M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z" /> </Icon> ); }; export default Sort;
9,961
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Square.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Square: React.FC<IconProps> = ({ width = '16px', height = '16px', className, onClick }) => { return ( <Icon onClick={onClick} width={width} height={height} className={className} viewBox="0 0 448 512"> <path d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z" /> </Icon> ); }; export default Square;
9,962
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Stack.tsx
import React from 'react'; type Props = { size: number | string; color: string; }; const Stack = ({ size, color }: Props) => { return ( <svg xmlns="http://www.w3.org/2000/svg" fill={color} width={size} height={size} viewBox="0 0 16 16"> <path d="M16 5l-8-4-8 4 8 4 8-4zM8 2.328l5.345 2.672-5.345 2.672-5.345-2.672 5.345-2.672zM14.398 7.199l1.602 0.801-8 4-8-4 1.602-0.801 6.398 3.199zM14.398 10.199l1.602 0.801-8 4-8-4 1.602-0.801 6.398 3.199z" /> </svg> ); }; export default Stack;
9,963
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Star.tsx
import React from 'react'; type Props = { width: number | string; height: number | string; color: string; filled: boolean; }; const Star = ({ width, height, color, filled }: Props) => { return ( <svg width={width} height={height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"> {filled ? ( <path fill={color} d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z" /> ) : ( <path fill={color} d="M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z" /> )} </svg> ); }; export default Star;
9,964
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Tags.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Tags: React.FC<IconProps> = ({ width = '16px', height = '16px' }) => { return ( <Icon width={width} height={height} viewBox="0 0 640 512"> <path d="M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z" /> </Icon> ); }; export default Tags;
9,965
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Task.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Task: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 512 512"> <path d="M139.61 35.5a12 12 0 0 0-17 0L58.93 98.81l-22.7-22.12a12 12 0 0 0-17 0L3.53 92.41a12 12 0 0 0 0 17l47.59 47.4a12.78 12.78 0 0 0 17.61 0l15.59-15.62L156.52 69a12.09 12.09 0 0 0 .09-17zm0 159.19a12 12 0 0 0-17 0l-63.68 63.72-22.7-22.1a12 12 0 0 0-17 0L3.53 252a12 12 0 0 0 0 17L51 316.5a12.77 12.77 0 0 0 17.6 0l15.7-15.69 72.2-72.22a12 12 0 0 0 .09-16.9zM64 368c-26.49 0-48.59 21.5-48.59 48S37.53 464 64 464a48 48 0 0 0 0-96zm432 16H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z" /> </Icon> ); }; export default Task;
9,966
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Taskcafe.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; type TaskcafeProps = { innerColor?: string; outerColor?: string; } & IconProps; const Taskcafe: React.FC<TaskcafeProps> = ({ innerColor = '#262c49', outerColor = '#7367f0', width = '16px', height = '16px', className, }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 800 800"> <path d="M371.147 371.04c-59.092 0-106.995 47.903-106.995 106.995 0 59.092 47.903 106.995 106.995 106.995 59.092 0 106.995-47.903 106.995-106.995 0-59.092-47.903-106.996-106.995-106.996zm0 20.708c47.687 0 86.287 38.592 86.287 86.287 0 47.687-38.592 86.286-86.287 86.286-47.687 0-86.286-38.592-86.286-86.286 0-47.688 38.592-86.287 86.286-86.287m60.489 56.201l-9.723-9.8a5.177 5.177 0 00-7.321-.03l-60.984 60.494-25.796-26.006a5.177 5.177 0 00-7.322-.03l-9.802 9.723a5.177 5.177 0 00-.029 7.322l39.166 39.483a5.177 5.177 0 007.321.03l74.46-73.864a5.178 5.178 0 00.03-7.321z" fill={outerColor} /> <path d="M264.69 682.877H467.7c56.038 0 101.504-45.465 101.504-101.504h33.835c74.648 0 135.34-60.692 135.34-135.34s-60.692-135.34-135.34-135.34H188.562a25.315 25.315 0 00-25.376 25.377v245.303c0 56.039 45.465 101.504 101.504 101.504zM603.04 378.364c37.324 0 67.67 30.345 67.67 67.67 0 37.323-30.346 67.669-67.67 67.669h-33.835v-135.34zm50.435 406.018H112.75c-50.329 0-64.497-67.67-38.064-67.67h616.746c26.434 0 12.477 67.67-37.958 67.67z" fill={outerColor} /> <g fill="none" stroke={outerColor} strokeWidth="3.392"> <path d="M286.302 276.2c-12.491-12.65-24.51-24.821-23.906-35.239.604-10.417 14.068-18.838 26.772-30.358 12.705-11.52 24.65-26.139 14.907-39.935-9.743-13.797-41.175-26.772-40.697-42.89.478-16.119 32.868-35.378 37.236-52.814 4.369-17.435-19.286-33.048-42.944-48.662M374.624 276.2c-12.492-12.65-24.51-24.821-23.907-35.239.604-10.417 14.068-18.838 26.773-30.358 12.704-11.52 24.65-26.139 14.906-39.935-9.742-13.797-41.174-26.772-40.696-42.89.478-16.119 32.867-35.378 37.236-52.814 4.368-17.435-19.287-33.048-42.944-48.662M462.945 276.2c-12.491-12.65-24.51-24.821-23.906-35.239.604-10.417 14.068-18.838 26.772-30.358 12.705-11.52 24.65-26.139 14.907-39.935-9.743-13.797-41.175-26.772-40.697-42.89.478-16.119 32.868-35.378 37.236-52.814 4.369-17.436-19.286-33.048-42.944-48.662" strokeWidth="28.00374144" /> </g> <path d="M371.147 363.194c-73.749 0-133.534 59.785-133.534 133.534 0 73.75 59.785 133.535 133.534 133.535 73.75 0 133.535-59.786 133.535-133.535s-59.786-133.534-133.535-133.534zm0 25.845c59.516 0 107.69 48.165 107.69 107.69 0 59.515-48.165 107.688-107.69 107.688-59.515 0-107.689-48.164-107.689-107.689 0-59.515 48.165-107.689 107.69-107.689m75.492 70.142l-12.135-12.232a6.462 6.462 0 00-9.138-.039l-76.11 75.498-32.194-32.456a6.463 6.463 0 00-9.138-.038l-12.233 12.134a6.451 6.451 0 00-.025 9.138l48.88 49.277a6.462 6.462 0 009.138.038l92.93-92.183a6.452 6.452 0 00.024-9.138z" fill={innerColor} /> </Icon> ); }; export default Taskcafe;
9,967
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/ToggleOn.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const ToggleOn: React.FC<IconProps> = ({ width = '16px', height = '16px' }) => { return ( <Icon width={width} height={height} viewBox="0 0 576 512"> <path d="M384 64H192C86 64 0 150 0 256s86 192 192 192h192c106 0 192-86 192-192S490 64 384 64zm0 320c-70.8 0-128-57.3-128-128 0-70.8 57.3-128 128-128 70.8 0 128 57.3 128 128 0 70.8-57.3 128-128 128z" /> </Icon> ); }; export default ToggleOn;
9,968
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Trash.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const Trash: React.FC<IconProps> = ({ width = '16px', height = '16px', className }) => { return ( <Icon width={width} height={height} className={className} viewBox="0 0 448 512"> <path d="M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z" /> </Icon> ); }; export default Trash;
9,969
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/User.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const User: React.FC<IconProps> = ({ width = '16px', height = '16px', className, onClick }) => { return ( <Icon onClick={onClick} width={width} height={height} className={className} viewBox="0 0 448 512"> <path d="M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6 38.8-86.4 86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4 86.4V464zM224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z" /> </Icon> ); }; export default User;
9,970
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/UserCircle.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const UserCircle: React.FC<IconProps> = ({ width = '16px', height = '16px', className, onClick }) => { return ( <Icon onClick={onClick} width={width} height={height} className={className} viewBox="0 0 496 512"> <path d="M248 104c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96zm0 144c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm0-240C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-49.7 0-95.1-18.3-130.1-48.4 14.9-23 40.4-38.6 69.6-39.5 20.8 6.4 40.6 9.6 60.5 9.6s39.7-3.1 60.5-9.6c29.2 1 54.7 16.5 69.6 39.5-35 30.1-80.4 48.4-130.1 48.4zm162.7-84.1c-24.4-31.4-62.1-51.9-105.1-51.9-10.2 0-26 9.6-57.6 9.6-31.5 0-47.4-9.6-57.6-9.6-42.9 0-80.6 20.5-105.1 51.9C61.9 339.2 48 299.2 48 256c0-110.3 89.7-200 200-200s200 89.7 200 200c0 43.2-13.9 83.2-37.3 115.9z" /> </Icon> ); }; export default UserCircle;
9,971
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/UserPlus.tsx
import React from 'react'; import Icon, { IconProps } from './Icon'; const UserPlus: React.FC<IconProps> = ({ width = '16px', height = '16px', onClick, className }) => { return ( <Icon width={width} onClick={onClick} height={height} className={className} viewBox="0 0 640 512"> <path d="M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z" /> </Icon> ); }; export default UserPlus;
9,972
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/Users.tsx
import React from 'react'; type Props = { size: number | string; color: string; }; const Users = ({ size, color }: Props) => { return ( <svg fill={color} xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 16 16"> <path d="M12 12.041v-0.825c1.102-0.621 2-2.168 2-3.716 0-2.485 0-4.5-3-4.5s-3 2.015-3 4.5c0 1.548 0.898 3.095 2 3.716v0.825c-3.392 0.277-6 1.944-6 3.959h14c0-2.015-2.608-3.682-6-3.959z" /> <path d="M5.112 12.427c0.864-0.565 1.939-0.994 3.122-1.256-0.235-0.278-0.449-0.588-0.633-0.922-0.475-0.863-0.726-1.813-0.726-2.748 0-1.344 0-2.614 0.478-3.653 0.464-1.008 1.299-1.633 2.488-1.867-0.264-1.195-0.968-1.98-2.841-1.98-3 0-3 2.015-3 4.5 0 1.548 0.898 3.095 2 3.716v0.825c-3.392 0.277-6 1.944-6 3.959h4.359c0.227-0.202 0.478-0.393 0.753-0.573z" /> </svg> ); }; export default Users;
9,973
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/icons/index.ts
import Cross from './Cross'; import Cog from './Cog'; import Cogs from './Cogs'; import Circle from './Circle'; import CircleSolid from './CircleSolid'; import UserCircle from './UserCircle'; import Bubble from './Bubble'; import ArrowDown from './ArrowDown'; import CheckCircleOutline from './CheckCircleOutline'; import Briefcase from './Briefcase'; import ListUnordered from './ListUnordered'; import ChevronRight from './ChevronRight'; import Dot from './Dot'; import CaretDown from './CaretDown'; import Eye from './Eye'; import EyeSlash from './EyeSlash'; import CaretRight from './CaretRight'; import List from './List'; import At from './At'; import Task from './Task'; import DotCircle from './DotCircle'; import Smile from './Smile'; import Paperclip from './Paperclip'; import Calendar from './Calendar'; import Clone from './Clone'; import Sort from './Sort'; import Filter from './Filter'; import DoubleChevronUp from './DoubleChevronUp'; import Share from './Share'; import Crown from './Crown'; import BarChart from './BarChart'; import UserPlus from './UserPlus'; import Trash from './Trash'; import CheckCircle from './CheckCircle'; import Clock from './Clock'; import AccountPlus from './AccountPlus'; import CheckSquare from './CheckSquare'; import ArrowLeft from './ArrowLeft'; import CheckSquareOutline from './CheckSquareOutline'; import Square from './Square'; import Bolt from './Bolt'; import Plus from './Plus'; import Bell from './Bell'; import AngleLeft from './AngleLeft'; import AngleDown from './AngleDown'; import Bin from './Bin'; import Pencil from './Pencil'; import Checkmark from './Checkmark'; import User from './User'; import Users from './Users'; import Lock from './Lock'; import Taskcafe from './Taskcafe'; import Home from './Home'; import Stack from './Stack'; import Question from './Question'; import Exit from './Exit'; import Ellipsis from './Ellipsis'; import ToggleOn from './ToggleOn'; import Tags from './Tags'; import Star from './Star'; export { Star, AngleDown, Cross, Cog, Bolt, Plus, Bell, AngleLeft, Tags, Ellipsis, Bin, Exit, Pencil, Stack, Question, Home, Taskcafe, Checkmark, User, Trash, Users, Lock, ArrowLeft, CheckCircle, AccountPlus, Clock, CheckSquareOutline, CheckSquare, BarChart, Square, Filter, Sort, At, Smile, DoubleChevronUp, UserPlus, Crown, ToggleOn, Calendar, Clone, Paperclip, Share, Eye, ListUnordered, EyeSlash, List, CaretDown, Dot, ArrowDown, CaretRight, CheckCircleOutline, Briefcase, DotCircle, ChevronRight, Circle, CircleSolid, Bubble, UserCircle, Cogs, };
9,974
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/undraw/AccessAccount.tsx
import React from 'react'; type Props = { width: number; height: number; }; const AccessAccount = ({ width, height }: Props) => { return ( <svg id="a9a7ffe7-bffb-40a8-a3c8-a3664a9c484c" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width={width} height={height} viewBox="0 0 796 711.7711" > <title>access_account</title> <path d="M299.079,648.56106l-8.89026-35.06486a455.3229,455.3229,0,0,0-48.30717-17.33113L240.759,612.46113l-4.55175-17.95328C215.84943,588.69462,202,586.134,202,586.134s18.70738,71.13842,57.94476,125.52465l45.72014,8.031-35.51871,5.12114a184.211,184.211,0,0,0,15.888,16.83723c57.07929,52.9818,120.65488,77.29013,142.00008,54.29413s-7.623-84.58813-64.70233-137.56993c-17.69515-16.42488-39.924-29.6057-62.175-39.97928Z" transform="translate(-202 -94.11445)" fill="#e6e6e6" /> <path d="M383.63224,610.48142l10.51462-34.61248a455.32041,455.32041,0,0,0-32.39463-39.80627l-9.3844,13.36992L357.7514,531.711c-14.42234-15.49938-24.95448-24.85018-24.95448-24.85018s-20.75719,70.56756-15.28054,137.40647L352.50363,674.775l-33.05275-13.97575a184.2128,184.2128,0,0,0,4.89768,22.626c21.47608,74.85917,63.33463,128.5305,93.49375,119.87826s37.19806-76.3516,15.722-151.21077c-6.6578-23.20708-18.87351-45.98058-32.55921-66.36238Z" transform="translate(-202 -94.11445)" fill="#e6e6e6" /> <path d="M884.17981,752.05584l6.61544-7.14478a122.56157,122.56157,0,0,0-3.1639-13.4473l-3.84424,2.134,3.38713-3.65813c-1.66992-5.44865-3.12076-8.95111-3.12076-8.95111s-13.32284,14.64664-19.85509,31.47479l4.88491,11.50059-6.36018-7.27012a49.58586,49.58586,0,0,0-1.47426,6.05443c-3.60112,20.65124.22421,38.56849,8.54414,40.0193s17.98384-14.1142,21.585-34.76544a65.28076,65.28076,0,0,0-.08151-19.8969Z" transform="translate(-202 -94.11445)" fill="#e6e6e6" /> <path d="M982.04942,766.18571l9.35626-2.69673a122.55844,122.55844,0,0,0,4.24249-13.14691l-4.39392-.16027,4.79042-1.38071C997.43156,743.27362,998,739.52541,998,739.52541s-18.97582,5.65159-33.26621,16.68071l-1.763,12.37-1.68666-9.51114a49.58626,49.58626,0,0,0-4.39158,4.42083c-13.75737,15.817-19.74417,33.13225-13.37186,38.67479s22.69062-2.78652,36.448-18.60348a65.281,65.281,0,0,0,10.215-17.07476Z" transform="translate(-202 -94.11445)" fill="#e6e6e6" /> <path d="M720.49687,142.406V754.56957a48.30136,48.30136,0,0,1-48.29157,48.29169H434.31173A48.30567,48.30567,0,0,1,386,754.56957V142.406a48.30564,48.30564,0,0,1,48.31173-48.29157H463.1698a22.96636,22.96636,0,0,0,21.246,31.61713h135.6313A22.96611,22.96611,0,0,0,641.293,94.11445H672.2053A48.30134,48.30134,0,0,1,720.49687,142.406Z" transform="translate(-202 -94.11445)" fill="#3f3d56" /> <path d="M519.72822,347.655a23.87666,23.87666,0,0,1,11.9461-20.68789,23.89222,23.89222,0,1,0,0,41.37573A23.87652,23.87652,0,0,1,519.72822,347.655Z" transform="translate(-202 -94.11445)" fill="#fff" /> <path d="M549.76412,347.655a23.87668,23.87668,0,0,1,11.94609-20.68789,23.89222,23.89222,0,1,0,0,41.37573A23.87653,23.87653,0,0,1,549.76412,347.655Z" transform="translate(-202 -94.11445)" fill="#fff" /> <circle cx="377.11738" cy="253.54057" r="23.89219" fill="#6c63ff" /> <rect x="244.57422" y="409.90405" width="213.56445" height="2" fill="#fff" /> <circle cx="251.31877" cy="390.67147" r="6.74414" fill="#6c63ff" /> <rect x="244.57422" y="477.34545" width="213.56445" height="2" fill="#fff" /> <circle cx="251.31877" cy="458.1129" r="6.74414" fill="#6c63ff" /> <path d="M619.0459,422.27875H479.79883a5.00588,5.00588,0,0,1-5-5V278.03168a5.00589,5.00589,0,0,1,5-5H619.0459a5.00589,5.00589,0,0,1,5,5V417.27875A5.00589,5.00589,0,0,1,619.0459,422.27875ZM479.79883,275.03168a3.00328,3.00328,0,0,0-3,3V417.27875a3.00328,3.00328,0,0,0,3,3H619.0459a3.00328,3.00328,0,0,0,3-3V278.03168a3.00328,3.00328,0,0,0-3-3Z" transform="translate(-202 -94.11445)" fill="#fff" /> <rect x="382.82955" y="522.18225" width="75.30959" height="31.47267" rx="4" fill="#6c63ff" /> <rect x="0.79492" y="707.76733" width="795.20508" height="2" fill="#3f3d56" /> <path d="M846.52086,419.196s-2.76836,17.533,0,20.30134-17.533,25.838-17.533,25.838l-16.61018-23.06969s7.38231-11.99624,4.61394-22.14691Z" transform="translate(-202 -94.11445)" fill="#ffb8b8" /> <polygon points="583.621 457.039 571.62 585.306 576.23 684.967 598.377 678.508 599.304 588.998 625.145 511.485 640.829 595.459 638.98 680.355 666.664 681.279 668.513 587.155 671.756 455.695 583.621 457.039" fill="#2f2e41" /> <path d="M841.90692,771.70088v20.30133S837.293,806.76682,852.05759,805.844s13.84181-7.3823,13.84181-7.3823l-5.53672-24.91527Z" transform="translate(-202 -94.11445)" fill="#2f2e41" /> <path d="M799.45869,771.70088v20.30133s4.61393,14.76461-10.15067,13.84182-13.84182-7.3823-13.84182-7.3823l5.53673-24.91527Z" transform="translate(-202 -94.11445)" fill="#2f2e41" /> <circle cx="628.83347" cy="314.00805" r="21.22412" fill="#ffb8b8" /> <path d="M829.91068,455.18468l1.84558-9.22788h4.61394l8.9225-12.83445,7.68768,7.29772,1.84557,43.371H804.99541l4.61394-46.13939,6.71934-4.52936s-1.18261,15.60281,11.73642,15.60281Z" transform="translate(-202 -94.11445)" fill="#575a89" /> <path d="M810.53214,445.034s7.64172,9.67444,19.04686,8.98977,22.47859-9.91256,22.47859-9.91256L867.745,564.07363s-17.533,1.84558-23.06969-7.3823l-42.44824-.92279.92279-111.65732Z" transform="translate(-202 -94.11445)" fill="#d0cde1" /> <path d="M816.762,431.5308l-40.373,19.96273,10.15067,57.21284s3.69115,21.22412,0,29.52921-7.38231,63.67235-7.38231,63.67235,41.52545,4.61394,35.98873-60.904S816.762,431.5308,816.762,431.5308Z" transform="translate(-202 -94.11445)" fill="#2f2e41" /> <path d="M792.07638,569.61036l5.53673,5.53673s16.61018,28.60642,23.99248,18.45575-12.919-27.68363-12.919-27.68363l-9.22787-7.3823Z" transform="translate(-202 -94.11445)" fill="#ffb8b8" /> <path d="M845.31375,431.5308l39.9642,19.96273-13.84182,68.28629s.92279,22.14691,5.53673,34.14315,2.76836,47.06217,2.76836,47.06217-5.53673,21.22412-17.533-31.37478S845.31375,431.5308,845.31375,431.5308Z" transform="translate(-202 -94.11445)" fill="#2f2e41" /> <path d="M876.05007,536.39H867.745s-27.68363-3.69115-25.83806,7.3823,27.68364,8.30509,27.68364,8.30509l10.15066-.92278Z" transform="translate(-202 -94.11445)" fill="#ffb8b8" /> <path d="M781.92572,448.72516l-6.45952,2.76837s-6.45951,13.84181-7.3823,18.45575S756.08766,529.93049,758.856,536.39s30.452,40.60266,30.452,40.60266l15.68739-16.61018L781.92572,529.0077l6.45951-39.67988Z" transform="translate(-202 -94.11445)" fill="#2f2e41" /> <path d="M871.43613,449.648l12.20966,1.03029,2.55495.81529s25.838,70.13187,20.30133,81.20532-29.52921,31.37478-29.52921,31.37478l-6.45952-28.60642,11.99624-11.07345-11.99624-36.91151Z" transform="translate(-202 -94.11445)" fill="#2f2e41" /> <path d="M848.79006,391.757s5.55251-10.41917-6.663-11.36636c0,0-11.105-6.63038-19.989.94719,0,0-7.77351-1.89439-9.99452,3.78879,0,0-1.1105-2.84159,2.221-4.736,0,0-7.77352-1.8944-7.77352,7.57757,0,0-3.3315,9.472,0,17.99674s4.442,9.472,4.442,9.472-5.47461-17.87294,7.85141-18.82013,28.2399-9.12218,29.3504,1.297,3.33151,13.26075,3.33151,13.26075S861.56084,396.01938,848.79006,391.757Z" transform="translate(-202 -94.11445)" fill="#2f2e41" /> </svg> ); }; export default AccessAccount;
9,975
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/undraw/Empty.tsx
import React from 'react'; type Props = { width: number; height: number; className?: string; }; const Empty: React.FC<Props> = ({ width, height, className }) => { return ( <svg className={className} width={width} height={height} viewBox="0 0 1009.54 789.93"> <defs> <linearGradient id="a" x1="318.22" y1="488.45" x2="630.35" y2="488.45" gradientUnits="userSpaceOnUse"> <stop offset="0" stopColor="gray" stopOpacity=".25" /> <stop offset=".54" stopColor="gray" stopOpacity=".12" /> <stop offset="1" stopColor="gray" stopOpacity=".1" /> </linearGradient> </defs> <ellipse cx="354.13" cy="741.27" rx="176.1" ry="33.36" fill="#7367f0" opacity=".1" /> <path d="M586.55 111.4c-64.72-2.24-126.36-23.14-185.22-46S284.17 17.22 221 5.11c-40.63-7.79-87.1-8.9-119.83 12.86-31.51 21-41.69 57.15-47.16 90.72-4.12 25.26-6.54 51.85 4.74 75.5 7.84 16.42 21.74 30.22 31.36 45.95 33.47 54.72 9.81 122.2-26.45 175.63-17 25.06-36.75 49-49.88 75.65s-19.2 57.29-7.71 84.55c11.38 27 38.51 47.24 67.9 61.49 59.69 28.95 130 37.23 198.61 41.93 151.83 10.38 304.46 5.89 456.69 1.38 56.34-1.66 112.92-3.35 168.34-12.06 30.78-4.84 62.55-12.52 84.9-31.06 28.36-23.53 35.39-63.37 16.38-92.87-31.88-49.5-120-61.79-142.31-114.9-12.26-29.24.33-61.8 18.16-88.91 38.24-58.17 102.33-109.2 105.7-175.68 2.32-45.66-28.49-91.39-76.13-113-49.93-22.65-119.18-19.8-156 17.69-37.95 38.56-104.61 53.41-161.76 51.42z" fill="#7367f0" opacity=".1" /> <path d="M630.35 416.77l-30.63-20.65 15.45-23-80.9-6.45-29.07 22.48-36.39-20.4-30.35 3.65-.36-8a225.78 225.78 0 00-2.51-24.9c.13-2.5.22-5.37.21-8.49 0-13.15-1.78-30.58-9.6-42.2l1.8-16.18-14.6-17.25a110.37 110.37 0 018-13.46c.5-.72 1-1.42 1.54-2.1 18.95-1.37 33.9-16.95 33.9-36 0-.88 0-1.76-.1-2.63 0-.35-.07-.71-.11-1.06 1.85 1 3.72 2 5.59 3 .35.5.75 1 1.19 1.59l.09.11.56.69.18.21c.2.24.41.47.62.71l.14.16c.53.59 1.09 1.19 1.69 1.78a1.8 1.8 0 01.2.19l.75.7.21.19c.64.57 1.32 1.12 2 1.64l.22.16.86.59.28.18c.33.2.67.41 1 .6l.12.07c.39.21.79.41 1.19.6l.2.08q.51.22 1 .42l.31.11c.35.12.69.23 1.05.33l.22.06c.44.11.88.2 1.33.27h.05a10.88 10.88 0 001.28.13h.29a11 11 0 001.15 0h.25a11.85 11.85 0 001.43-.17 15.78 15.78 0 006.3-2.26 5.5 5.5 0 001.28-1.19c2-2.62-.2-5.49-.2-5.49-.78-1.86-5.84-3.17-5.84-3.17s-16-6.68-16-12-4-32.92-45.29-39.23c0 0-26.86-1.51-34.41 12.87l-.16 1.68c-2.22 1.39-4.06 4.18-6.25 5a10.21 10.21 0 00-2.71 1v-.19a2.58 2.58 0 00-.61.79 8 8 0 00-.83 3 11.3 11.3 0 01-1.31 3.63 8.07 8.07 0 01-.6.92l-.17.27a7.3 7.3 0 003.4-.55 16.93 16.93 0 01-1 4 3.32 3.32 0 003.08-1.84v-.08l.13-.18a8.44 8.44 0 00.62-1.45l-.11.12c.2-.65.38-1.31.6-1.95a3.06 3.06 0 01.49-1 2.42 2.42 0 012.07-.69l-.41 8.67h.18a11.83 11.83 0 01-.88 1.82c-1.42 2.3-4 3.87-4.95 6.39a9.4 9.4 0 00-.46 3.78c0 .75.09 1.51.15 2.26v-.06c.14 2 .18 3.9-.9 5.51-.74 1.1-1.93 1.93-2.34 3.18a3.1 3.1 0 00-.15 1.08 12.13 12.13 0 00.68 3.21.14.14 0 000-.06 4.88 4.88 0 01.17 2.36c-.45 2-2.88 3.67-2.76 5.58a2.15 2.15 0 00.11.74 4.05 4.05 0 002.26 2 8.8 8.8 0 005.08 1.12 6.68 6.68 0 001.9-.65c-.7 1.61-1.42 3.2-2.15 4.71-.11.24-.23.48-.35.72 0 0-6.18-4.13-9.69 4.29a18.68 18.68 0 00-2.17 5.64 13.42 13.42 0 01-.74 2.32 14.93 14.93 0 01-6.68 6c-7.16 3.28-36.08 39.35-36.59 48.69a54.49 54.49 0 01-1.84 10.78 64.15 64.15 0 00-1.72 25.49 48.77 48.77 0 001.77 8.13c3.07 9.33 5.12 26.74 5.12 26.74l3.32 30.22a86 86 0 00.54 12.49c-3.39 3.87-17 20-11.8 24.39 4 3.46 11 2.89 14.93 2.18-3.31 8.19-8.52 22.43-9.21 32.21-1 14.47 1.71 33.64 6 41s18.59 26.24 18.59 26.24-.67 25.9 4.44 35.31 7.17 28.93 7.17 28.93 4.77 16.48 2.38 22.54 4.43 11.1-2.73 15.13-16.32 94.86-16.32 94.86-3.69 59.53 0 62.56a3.75 3.75 0 00.63.37v20s-2.56 4.2 7.85 5.05c7.13.57 27.34 1.86 39.33 2.61l9.29.58s22 4.38 31.72 0 26.95-4.28 24.39-15.85a32.92 32.92 0 00-1.36-4.63c-2.81-7.18-7.58-8-16.37-10-.51-.11-1-.21-1.45-.29-9.26-1.61-12.3 2.7-17.49-2.91-4.51-4.85-18.87-10.28-23.76-12 .12-.36.27-.71.39-1.08a7.32 7.32 0 01-3.71-1.81l13.25.84 7.89.49s18.7 3.73 27 0 22.9-3.63 20.72-13.46a28.21 28.21 0 00-1.15-3.94c-2.39-6.1-6.45-6.77-13.92-8.46-.43-.09-.83-.18-1.23-.25-7.87-1.37-10.45 2.29-14.86-2.47-3.78-4.06-15.71-8.61-20-10.16 0-2.22-3-5.38-4.89-8.55-2.22-3.7 1.88-16.65 1.88-16.65l2.34-53.73a10.38 10.38 0 012.8-.8s10.58-10.1 8.19-20.86a69.13 69.13 0 01-.76-9.83c3.48-3.23 8.27-8 9.63-10.94 2.22-4.79 0-28 0-28v-88.75l17.7 1.79 16.06 1.65 4.89.5 16.06 1.62 36.91 3.73 33.26-6.3 14.39-2.72 29.59-5.6v-72.4zM386.74 176.86l-2.06-.22c.68.03 1.4.16 2.06.22z" transform="translate(-95.23 -55.03)" fill="url(#a)" /> <path d="M463.33 408.75c-10 14.31-45.95 6.73-45.95 6.73l-27.86-26.07-3.75-3.53 6.29-13.36s2 .55 5.43 1.53c18.01 5.23 74.28 22.67 65.84 34.7z" fill="#efb7b9" /> <path d="M397.47 374.05c-1.23 4.28-4.6 10.69-7.95 15.36l-3.75-3.53 6.29-13.36s2.02.55 5.41 1.53z" opacity=".1" /> <path d="M301.92 223.39s-25.68 11.39-24.42 39.36a461.14 461.14 0 005.88 53.76s-5.25 42.09 16.61 52.94 42.09 19.77 42.09 19.77 34.2 3.68 38.45 5.2 17.53-21.72 15.08-25.34-33.84-11.21-37.84-17.25-13.25-9.77-13.25-9.77-9.55-5.78-10.2-11 1.87-9.11 2.51-11.4 2.26-24.4 2.26-24.4 10.78-78.7-37.17-71.87z" fill="#dce6f2" /> <path d="M318.87 315.36s-35.23 5.9-31.82 18.23c0 0 12.79-13.31 31.82-18.23zM319.14 320.35s-19.37 15.81-15.58 16.62 15.58-16.62 15.58-16.62zM328.45 325.86s-5.19 10.63-2 9.91 2-9.91 2-9.91z" opacity=".1" /> <path d="M398.77 375.18l-2.14-.61c.61-2 .78-3.62.28-4.37-2.45-3.62-33.82-11.2-37.81-17.25s-13.25-9.77-13.25-9.77-9.55-5.78-10.2-11 1.87-9.11 2.51-11.4 2.26-24.41 2.26-24.41 10.75-78.69-37.2-71.86c0 0-25.68 11.4-24.43 39.37a459.85 459.85 0 005.89 53.76s-5.25 42.09 16.61 52.94 42.09 19.77 42.09 19.77 34.19 3.67 38.45 5.2c1.61.58 4.52-2.41 7.37-6.52l1.62 1.51 27.86 26.06s35.95 7.59 45.95-6.72c8.45-12.04-47.81-29.48-65.86-34.7z" opacity=".1" /> <path d="M287.14 118.41a8.5 8.5 0 00-2.77 1.07c-1 .83-1 2.25-1.25 3.49a11.48 11.48 0 01-2 4.78 7.19 7.19 0 003.33-.55 17.14 17.14 0 01-1 4 3.24 3.24 0 003-1.83 19.26 19.26 0 001.25-3.51 2.89 2.89 0 01.48-1c.92-1.09 2.63-.6 4.05-.46a6.65 6.65 0 006.08-2.92c1.51-2.29 1.6-8.15-2-8.77-3.76-.62-6.1 4.56-9.17 5.7z" fill="#965d7b" /> <g opacity=".1"> <path d="M284.27 120.71c.09-.49.15-1 .26-1.49-.95.83-1 2.24-1.25 3.49a11 11 0 01-.59 2.11 11.46 11.46 0 001.58-4.11zM284.59 128.97a16.63 16.63 0 001-4 7.16 7.16 0 01-3.17.55 11.57 11.57 0 01-1.15 2 7.12 7.12 0 003.32-.54 16.63 16.63 0 01-1 4 3.25 3.25 0 003-1.83 7.46 7.46 0 00.6-1.43 3 3 0 01-2.6 1.25zM293.37 122.17c-1.42-.14-3.14-.63-4.06.46a3.09 3.09 0 00-.48 1c-.09.26-.17.53-.24.8.95-.75 2.49-.35 3.78-.22a6.68 6.68 0 006.08-2.92 5.54 5.54 0 00.67-1.57 6.66 6.66 0 01-5.75 2.45z" /> </g> <path fill="#dce6f2" d="M317.24 201l15.25 18.34-1.99 18.51L312.07 209l5.17-8z" /> <path opacity=".1" d="M332.48 219.34l-1.87 17.41-.12 1.1-16.63-26.04-1.79-2.81.52-.81 4.64-7.19 1.03 1.24 14.22 17.1z" /> <path d="M340.4 176.17c-5.16 1.48-10.09 6.56-14.38 12.73a108.65 108.65 0 00-7.76 13.34c-1.41 2.82-2.65 5.53-3.68 7.89l-.72 1.68c-1.74 4.11-2.71 6.86-2.71 6.86s-39.5-29.7-33.25-31.7c2.1-.67 4.86-5.17 7.59-10.84l.34-.72c1.73-3.64 3.43-7.7 4.94-11.52 3.09-7.85 5.38-14.67 5.38-14.67s60 22.45 44.25 26.95z" fill="#efb7b9" /> <path d="M364.03 147.55s9.12 16.5 21.37 14.25 7.21-8.86 7.21-8.86z" fill="#444053" /> <path d="M346.36 718.7c-8.08 3.69-26.35 0-26.35 0l-7.7-.48c-10-.64-26.74-1.72-32.66-2.2-8.64-.71-6.52-4.25-6.52-4.25v-21.39l41.92-10.62s16.57 5.67 21.11 10.62c4.31 4.72 6.83 1.09 14.52 2.45.38.07.78.15 1.2.25 7.3 1.67 11.26 2.33 13.6 8.38a28.1 28.1 0 011.13 3.9c2.16 9.74-12.18 9.67-20.25 13.34z" fill="#a36468" /> <path d="M365.48 701.46a31.34 31.34 0 01-4.72 2.42c-5.5 2.51-10.73 5.57-16.29 7.94s-11.55 4.06-17.57 3.61c-3.15-.23-6.37-1-9.38-.1a21.66 21.66 0 00-5.21 2.89c-10-.64-26.74-1.72-32.66-2.2-8.64-.71-6.52-4.25-6.52-4.25v-2.5c.31 0 .66-.09 1.06-.12a18.88 18.88 0 016.1.91c4.34 1.18 8.66 2.34 13 3.5a10.27 10.27 0 015-6.38 15.94 15.94 0 018.06-1.85c6.73.09 13.1 3.28 19.82 3.6a10.92 10.92 0 005.49-.92c.92-.46 1.73-1.13 2.63-1.64a19.2 19.2 0 014.53-1.53 99.76 99.76 0 0012.95-4.18c1.2-.47 2.6-1.32 2.44-2.6-.21-1.7-2.88-1.9-3.58-3.46a2 2 0 01.08-1.77c.38.07.78.15 1.2.25 7.27 1.67 11.23 2.33 13.57 8.38z" opacity=".1" /> <path d="M337.82 765.5c-9.5 4.34-31 0-31 0l-9.05-.53c-11.72-.75-31.46-2-38.43-2.59-10.17-.84-7.67-5-7.67-5v-25.21l49.33-12.5s19.5 6.67 24.84 12.5c5.07 5.55 8 1.28 17.09 2.88.45.08.92.18 1.41.29 8.59 2 13.25 2.75 16 9.87a32.1 32.1 0 011.33 4.59c2.48 11.46-14.35 11.37-23.85 15.7z" fill="#a36468" /> <path d="M360.32 745.21a37.23 37.23 0 01-5.55 2.85c-6.47 2.95-12.63 6.55-19.17 9.34s-13.59 4.77-20.68 4.25c-3.7-.27-7.49-1.2-11-.12a25.5 25.5 0 00-6.15 3.44c-11.72-.75-31.46-2-38.43-2.59-10.17-.84-7.67-5-7.67-5v-2.94a12.5 12.5 0 011.25-.14 21.94 21.94 0 017.18 1.07l15.29 4.12a12.1 12.1 0 015.93-7.51 18.66 18.66 0 019.49-2.18c7.92.11 15.41 3.86 23.32 4.24a12.91 12.91 0 006.44-1.07c1.09-.55 2-1.34 3.1-1.93a21.75 21.75 0 015.33-1.8 119.69 119.69 0 0015.16-4.92c1.41-.56 3.06-1.56 2.87-3.06-.25-2-3.39-2.24-4.22-4.08a2.41 2.41 0 01.1-2.08c.45.08.92.18 1.41.29 8.59 1.92 13.25 2.7 16 9.82z" opacity=".1" /> <path d="M316.32 592.51l-2.67 62.83s-4 12.83-1.83 16.5 5.83 7.33 4.5 9.5-17.33 25.63-22.5 16.63-10.27-48-10.27-48l4.77-48.17zM327.9 435.97l7.42 9.92v86.28s2.17 23 0 27.75-13.17 14.25-13.17 14.25l-9.25-47.5 2-50.25z" fill="#444053" /> <path d="M316.32 592.51l-2.67 62.83s-4 12.83-1.83 16.5 5.83 7.33 4.5 9.5-17.33 25.63-22.5 16.63-10.27-48-10.27-48l4.77-48.17zM327.9 435.97l7.42 9.92v86.28s2.17 23 0 27.75-13.17 14.25-13.17 14.25l-9.25-47.5 2-50.25z" opacity=".1" /> <path d="M335.32 399.17v46.67l-8.33 36.33s-2.67 87.67-.34 98.33-8 20.67-8 20.67-6 .67-6 5.33-10 18-10 18l.33 26s4.34 48.67-2.33 58 2.33 10.67 2.33 10.67c-8.33 27.33-48.33 21-51.94 18s0-62 0-62 8.94-90 15.94-94 .34-9 2.67-15-2.33-22.33-2.33-22.33-2-19.34-7-28.67-4.34-35-4.34-35-14-18.67-18.16-26-6.84-26.33-5.84-40.67c.68-9.69 5.77-23.8 9-31.92 1.55-3.89 2.67-6.41 2.67-6.41l.95.25 54.62 14.3z" fill="#444053" /> <path d="M340.4 176.17c-5.16 1.48-10.09 6.56-14.38 12.73h-1.12a35.72 35.72 0 01-31-17.93 35.18 35.18 0 01-3.14-7.15c3.09-7.85 5.38-14.67 5.38-14.67s60.01 22.52 44.26 27.02z" opacity=".1" /> <path d="M360.65 151.17a35.75 35.75 0 11-66.88-17.52 34.93 34.93 0 013.78-5.46 36.18 36.18 0 018.22-7.22 35.75 35.75 0 0154.83 27.58c.02.88.05 1.75.05 2.62z" fill="#efb7b9" /> <path d="M330.61 236.75l-.12 1.1-16.63-26c-1.74 4.11-2.71 6.86-2.71 6.86s-39.5-29.74-33.25-31.74c2.1-.67 4.86-5.17 7.59-10.84l.34-.72c2.9 8.64 19.75 25.91 26.76 32.83.81.8 1.48 1.46 2 1.94l1.07 1 .56.56c2.55 2.63 13.31 14.23 14.39 25.01z" opacity=".1" /> <path d="M343.04 324.97l-1.82 58.57-.32 10.43s-21.56-2-41.68-4.2c-16.2-1.77-31.47-3.68-33.82-4.8-3-1.41-9.43-2.5-14.5-3.19-3.92-.53-7-.81-7-.81s-1.15.34-2.92.66c-3.86.7-10.64 1.27-14.59-2.16-5.05-4.39 8.22-20.34 11.53-24.17l.73-.83-1.25-11.55-3.25-29.95s-2-17.25-5-26.5a48.88 48.88 0 01-1.73-8.05 64.48 64.48 0 011.68-25.26 55.08 55.08 0 001.8-10.69c.5-9.25 28.75-45 35.75-48.25a14.84 14.84 0 007.16-7.14 13.64 13.64 0 001.09-3.11c3-13 10.59-7.84 10.59-7.84 1.83 10.17 30.16 37.09 30.16 37.09l.56.56c2.81 2.88 15.33 16.4 14.44 27.94a33.87 33.87 0 001.89 12.64 213.75 213.75 0 019.85 56z" fill="#dce6f2" /> <path d="M302.9 255.42s-7 17-12.25 19.75 14.75 5.8 12.25-19.75zM308.15 287.17s-16 2-16 5 16-5 16-5zM324.9 306.67s-23.25 49.5-29.75 51 29.75-51 29.75-51zM315.21 215.73l-19.23 8.36-23.21-35.06a13.64 13.64 0 001.09-3.11c3-13 10.59-7.84 10.59-7.84 1.83 10.17 30.16 37.09 30.16 37.09z" opacity=".1" /> <path d="M316.21 213.73l-19.23 8.36-23.21-35.06a13.64 13.64 0 001.09-3.11c3-13 10.59-7.84 10.59-7.84 1.83 10.17 30.16 37.09 30.16 37.09z" fill="#dce6f2" /> <path d="M340.9 393.97s-21.56-2-41.68-4.2l36.1 9.45v11c-1.58 1.43-2.95 2.17-3.84 1.79-4.16-1.75-38.11-7.25-38.11-7.25s-19.72-10-41-22a16.43 16.43 0 01-1.5-.94 23.64 23.64 0 01-6.3-6.31c-3.93-5.69-5.85-13-6.68-20.17a87.22 87.22 0 01-.52-12.38 101.51 101.51 0 011.28-13.99 460.08 460.08 0 01-3-54c.25-28 26.5-38 26.5-38 48.25-4.25 33.29 73.75 33.29 73.75s-2.79 22-3.55 24.25-3.49 6-3.12 11.25 9.59 11.53 9.59 11.53 9 4.22 12.71 10.47c2.7 4.61 20.24 10.86 30.15 15.32zM357.06 128.97a11.32 11.32 0 01-1 4.78 29.55 29.55 0 01-1.78 3.56 16.4 16.4 0 01-4.38 5.44c-2.31 1.65-5.23 2.11-8 2.78s-5.65 1.74-7.23 4.1a14.34 14.34 0 00-1.69 4.9 10.54 10.54 0 01-2 4.74 3.93 3.93 0 01-4.68 1.12 4.73 4.73 0 01-1.81-2.33c-1.14-2.57-1.43-5.42-1.89-8.19s-1.11-5.62-2.81-7.85-4.71-3.7-7.38-2.83a7.11 7.11 0 00-4 3.88 22.24 22.24 0 00-1.51 5.52q-1.86 10.18-4.39 20.24a1.86 1.86 0 01-.33.76 1.44 1.44 0 01-1 .42c-2.24.3-4.39-1.27-6.65-1.1a3.82 3.82 0 00-.69.11 35.73 35.73 0 013.61-40.8l.18-.05a10.78 10.78 0 004-2.52 42.22 42.22 0 004-4.63l.8-1a45.61 45.61 0 017.8-7.41 8 8 0 012.66-1.44 7.88 7.88 0 012.52-.08 63.57 63.57 0 0010.41.39 66.79 66.79 0 017.31-.74c6.33.18 11.73 4.65 15.73 9.55 2.15 2.51 4.07 5.4 4.2 8.68z" opacity=".1" /> <path d="M289.1 134.6c-1.39 2.28-3.9 3.83-4.84 6.33-1.38 3.63.95 8.15-1.19 11.39-.71 1.09-1.88 1.9-2.28 3.15-.68 2.11 1.18 4.36.7 6.53s-3.34 4-2.58 6.12a4 4 0 002.2 2 8.6 8.6 0 005 1.11c2.73-.45 4.76-3.13 7.53-3.33 2.25-.16 4.4 1.4 6.64 1.11a1.5 1.5 0 001-.43 1.73 1.73 0 00.33-.76q2.52-10.05 4.4-20.24a21.8 21.8 0 011.5-5.52 7.17 7.17 0 014-3.88c2.67-.86 5.67.6 7.38 2.83s2.36 5.08 2.82 7.85.75 5.62 1.88 8.19a4.78 4.78 0 001.82 2.34c1.5.87 3.52.18 4.67-1.12a10.43 10.43 0 002-4.75 14.28 14.28 0 011.69-4.89c1.58-2.36 4.47-3.43 7.23-4.1s5.67-1.14 8-2.79a16.46 16.46 0 004.38-5.43c1.48-2.58 2.86-5.38 2.74-8.35-.13-3.24-2.05-6.13-4.1-8.65-4-4.9-9.41-9.37-15.74-9.54a62.2 62.2 0 00-7.31.74 62.57 62.57 0 01-10.41-.4 8.18 8.18 0 00-2.52.09 7.54 7.54 0 00-2.65 1.44 45.63 45.63 0 00-7.81 7.4 57.31 57.31 0 01-4.82 5.6 10.85 10.85 0 01-4 2.53c-1 .28-2 .08-2.95.39-2.95.93-3.34 4.78-4.71 7.04z" fill="#965d7b" /> <path d="M385.4 161.79c-8 1.47-14.63-5-18.3-9.72a39.22 39.22 0 01-3.07-4.52l27.46 5.18 1.11.21s5.05 6.61-7.2 8.85z" opacity=".1" /> <g opacity=".1"> <path d="M281.49 159.14a8.33 8.33 0 00-.58-3.84c0 .1-.09.2-.12.3-.43 1.34.15 2.73.52 4.12a3 3 0 00.18-.58zM283.87 142.77a22.22 22.22 0 00.08 4.15 22.28 22.28 0 00-.08-4.15zM353.32 133.42a16.4 16.4 0 01-4.38 5.44c-2.31 1.65-5.22 2.11-8 2.78s-5.65 1.74-7.23 4.1a14.41 14.41 0 00-1.69 4.9 10.47 10.47 0 01-2 4.75c-1.15 1.3-3.17 2-4.67 1.12a4.78 4.78 0 01-1.82-2.34c-1.13-2.57-1.43-5.41-1.88-8.19s-1.12-5.62-2.82-7.85-4.71-3.7-7.38-2.83a7.14 7.14 0 00-4 3.88 21.8 21.8 0 00-1.5 5.52q-1.87 10.19-4.4 20.24a1.73 1.73 0 01-.33.76 1.5 1.5 0 01-1 .43c-2.24.29-4.39-1.27-6.64-1.11-2.77.2-4.8 2.88-7.53 3.32a8.45 8.45 0 01-5-1.11 5.35 5.35 0 01-1.83-1.3 2.7 2.7 0 00-.37 2.33 3.9 3.9 0 002.2 2 8.45 8.45 0 005 1.11c2.73-.44 4.76-3.12 7.53-3.32 2.25-.16 4.4 1.4 6.64 1.11a1.5 1.5 0 001-.43 1.73 1.73 0 00.33-.76q2.52-10 4.4-20.24a21.8 21.8 0 011.5-5.52 7.14 7.14 0 014-3.88c2.67-.87 5.67.6 7.38 2.83s2.36 5.08 2.82 7.85.75 5.62 1.88 8.19a4.78 4.78 0 001.82 2.34c1.5.87 3.52.18 4.67-1.12a10.47 10.47 0 002-4.75 14.41 14.41 0 011.69-4.9c1.58-2.36 4.47-3.42 7.23-4.1s5.67-1.13 8-2.78a16.4 16.4 0 004.38-5.44c1.48-2.57 2.86-5.37 2.74-8.34a10.74 10.74 0 00-.12-1.14 19.65 19.65 0 01-2.62 6.45z" /> </g> <path d="M356.1 133.72a35.33 35.33 0 014.45 14.85c-8.91-5-17.29-10.49-21.52-12.4-7.37-3.33-34.93-2.83-45.29-2.52a34.93 34.93 0 013.78-5.46 36.18 36.18 0 018.25-7.22 35.77 35.77 0 0150.38 12.73zM387.9 157.55c-4.81 1.48-12.66-1.38-20.8-5.48a39.22 39.22 0 01-3.07-4.52l27.46 5.18c1.82 1.24 2.28 3.01-3.59 4.82z" opacity=".1" /> <path d="M327.03 99.05s-26.25-1.5-33.63 12.75l-1.19 12.63-2-.22-.4 8.59s40.12-1.75 49.25 2.37 37.5 24.88 48.87 21.38-1-6.75-1-6.75-15.65-6.63-15.65-11.83-3.88-32.67-44.25-38.92z" fill="#444053" /> <path d="M276.4 567.25s16.75 16.25 24 15c0 0-20.5-1.75-24-15zM272.9 574.78s1.5 8.36 5.5 7.54-5.5-7.54-5.5-7.54zM299.15 714.5s-23.78 18.5-19.77 19 19.77-19 19.77-19z" opacity=".1" /> <path fill="#7367f0" d="M330.96 347.33l77-12.53v72.9l-73.16-3.83-3.84-56.54z" /> <path opacity=".05" d="M330.96 347.33l77-12.53v72.9l-73.16-3.83-3.84-56.54z" /> <path fill="#7367f0" d="M407.96 334.8l92.34 6.91-5.11 63.44-87.23 2.55v-72.9z" /> <path opacity=".1" d="M407.96 334.8l92.34 6.91-5.11 63.44-87.23 2.55v-72.9z" /> <path fill="#7367f0" d="M436.35 312.55l-28.39 22.25 92.34 6.91 15.09-22.77-79.04-6.39zM303.08 323.03l69.32-8.44 35.56 20.21-77 12.53-27.88-24.3zM424.84 353.73v99.67l-36.07-3.7-15.69-1.6-4.78-.5-15.68-1.61-21.66-2.22v-96.44l76.99 5.24 16.89 1.16z" /> <path fill="#7367f0" d="M500.3 341.71v97.2l-28.91 5.55-14.06 2.7-32.49 6.24v-99.67l75.46-12.02z" /> <path opacity=".05" d="M500.3 341.71v97.2l-28.91 5.55-14.06 2.7-32.49 6.24v-99.67l75.46-12.02z" /> <path fill="#7367f0" d="M303.08 368.31l27.88-20.98 93.88 6.4-13.82 23.28-107.94-8.7z" /> <path fill="#fff" opacity=".1" d="M303.08 368.31l27.88-20.98 93.88 6.4-13.82 23.28-107.94-8.7z" /> <path fill="#7367f0" d="M500.3 341.71l-75.46 12.02 24.56 22 80.83-13.56-29.93-20.46z" /> <path fill="#fff" opacity=".1" d="M500.3 341.71l-75.46 12.02 24.56 22 80.83-13.56-29.93-20.46zM471.39 444.46l-14.06 2.7v-20.77l13.17-3.32.89 21.39zM388.77 435.96v13.74l-15.69-1.6v-12.14h15.69zM368.3 440.29v7.31l-15.68-1.61v-5.7h15.68z" /> <path d="M415.4 428.67c-10.75 13.75-46.25 4.25-46.25 4.25l-26.38-27.52-3.58-3.73 7-13s2 .66 5.34 1.82c17.68 6.18 72.92 26.61 63.87 38.18z" opacity=".1" /> <path d="M414.4 426.67c-10.75 13.75-46.25 4.25-46.25 4.25l-26.38-27.52-3.58-3.73 7-13s2 .66 5.34 1.82c17.68 6.18 72.92 26.61 63.87 38.18z" fill="#efb7b9" /> <path d="M350.49 388.49c-1.46 4.2-5.17 10.42-8.76 14.91l-3.58-3.73 7-13s2.01.66 5.34 1.82z" opacity=".1" /> <path d="M263.15 232.97s-26.25 10-26.5 38a460.08 460.08 0 003 54s-7.5 41.75 13.75 53.75 41 22 41 22 33.95 5.5 38.12 7.25 18.66-20.75 16.41-24.5-33.16-13-36.83-19.25-12.71-10.46-12.71-10.46-9.22-6.29-9.59-11.54 2.35-9 3.12-11.25 3.56-24.25 3.56-24.25 14.92-78.05-33.33-73.75z" fill="#dce6f2" /> <path d="M275.15 325.67s-35.5 4-32.75 16.5c0 0 13.49-12.61 32.75-16.5zM275.15 330.67S255 345.42 258.7 346.42s16.45-15.75 16.45-15.75zM284.15 336.67s-5.75 10.34-2.5 9.8 2.5-9.8 2.5-9.8z" opacity=".1" /> <path d="M653.77 112.39s-38-2.29-33.56 24.37c0 0-.89 4.71 3.38 6.85 0 0 .07-2 3.9-1.31a17.51 17.51 0 004.13.2 8.57 8.57 0 005.06-2.09s10.69-4.41 14.85-21.89c0 0 3.08-3.82 3-4.8l-6.42 2.75s2.19 4.63.46 8.48c0 0-.2-8.31-1.44-8.12-.25 0-3.33 1.61-3.33 1.61s3.77 8.06.92 13.93c0 0 1.08-9.94-2.1-13.35l-4.52 2.64s4.41 8.33 1.42 15.13c0 0 .77-10.43-2.37-14.49l-4.1 3.19s4.15 8.22 1.62 13.86c0 0-.33-12.14-2.51-13.06 0 0-3.58 3.16-4.12 4.46 0 0 2.83 6 1.07 9.11 0 0-1.08-8.09-2-8.13 0 0-3.57 5.36-3.94 9a19.46 19.46 0 013.07-9.54 10.71 10.71 0 00-5.46 2.83s.55-3.79 6.34-4.12c0 0 3-4.07 3.74-4.32 0 0-5.76-.48-9.25 1.07 0 0 3.07-3.57 10.31-2l4-3.3s-7.58-1-10.8.11c0 0 3.7-3.16 11.89-.86l4.4-2.63s-6.46-1.4-10.31-.89c0 0 4.06-2.19 11.6.18l3.15-1.41s-4.74-.93-6.12-1.08-1.46-.53-1.46-.53a16.36 16.36 0 018.89 1s6.75-2.43 6.61-2.85z" fill="#7367f0" /> <path d="M769.23 245.73s-38-2.29-33.56 24.37c0 0-.89 4.71 3.38 6.85 0 0 .07-2 3.91-1.31a17.51 17.51 0 004.13.2 8.56 8.56 0 005-2.08s10.7-4.42 14.86-21.9c0 0 3.07-3.81 2.95-4.79l-6.42 2.74s2.19 4.63.47 8.48c0 0-.21-8.31-1.44-8.12-.25 0-3.34 1.61-3.34 1.61s3.78 8.07.93 13.93c0 0 1.08-9.94-2.11-13.35l-4.47 2.61s4.41 8.33 1.42 15.13c0 0 .77-10.43-2.37-14.49l-4.09 3.2s4.14 8.21 1.62 13.85c0 0-.33-12.14-2.51-13.06 0 0-3.58 3.16-4.13 4.46 0 0 2.84 6 1.08 9.11 0 0-1.08-8.09-2-8.13 0 0-3.57 5.36-3.94 9a19.52 19.52 0 013.08-9.54 10.76 10.76 0 00-5.47 2.83s.56-3.79 6.35-4.12c0 0 2.95-4.07 3.74-4.32 0 0-5.76-.48-9.25 1.07 0 0 3.07-3.57 10.3-1.95l4-3.3s-7.59-1-10.8.11c0 0 3.7-3.16 11.89-.86l4.4-2.63s-6.47-1.39-10.32-.89c0 0 4.07-2.19 11.61.18l3.15-1.41s-4.74-.93-6.13-1.08-1.46-.53-1.46-.53a16.39 16.39 0 018.9 1s6.76-2.45 6.64-2.87zM538.38 222.06s8.75-37.09-18.29-37.22c0 0-4.49-1.68-7.32 2.16 0 0 1.93.41.62 4.07a17.8 17.8 0 00-.9 4 8.59 8.59 0 001.19 5.33s2.53 11.3 19 18.38c0 0 3.24 3.68 4.22 3.72l-1.6-6.79s-4.94 1.37-8.44-1c0 0 8.23 1.21 8.24 0 0-.25-1-3.56-1-3.56s-8.59 2.34-13.89-1.47c0 0 9.61 2.76 13.52.21l-1.8-4.92s-9 2.93-15.16-1.18c0 0 10.15 2.54 14.69.14l-2.45-4.58s-8.8 2.68-13.93-.77c0 0 12 1.74 13.3-.24 0 0-2.5-4.07-3.69-4.83 0 0-6.36 1.78-9.16-.49 0 0 8.15.31 8.34-.55 0 0-4.67-4.43-8.23-5.43a19.6 19.6 0 018.89 4.66 10.79 10.79 0 00-1.86-5.87s3.64 1.2 3 7c0 0 3.5 3.6 3.61 4.42 0 0 1.45-5.59.52-9.3 0 0 3 3.64.17 10.49l2.56 4.55s2.32-7.3 1.73-10.66c0 0 2.49 4.18-1.18 11.86l1.85 4.79s2.47-6.14 2.63-10c0 0 1.47 4.38-2.16 11.41l.86 3.34s1.72-4.51 2.1-5.85.77-1.35.77-1.35a16.38 16.38 0 01-2.49 8.6s1.31 6.98 1.74 6.93zM455.16 234.7s-30.52-22.83-41.43 1.9c0 0-3.33 3.45-.94 7.58 0 0 1.14-1.61 4 1.06a17.51 17.51 0 003.34 2.44 8.58 8.58 0 005.37 1s11.36 2.19 24.44-10.12c0 0 4.67-1.5 5.11-2.38l-6.89-1.21s-.72 5.07-4.27 7.34c0 0 4.39-7.06 3.25-7.57-.23-.11-3.67-.5-3.67-.5s-1.28 8.82-6.88 12.15c0 0 6.37-7.71 5.58-12.31l-5.23-.28s-.89 9.39-7.13 13.43c0 0 6.37-8.29 6-13.41l-5.18.42s-1.05 9.13-6.26 12.45c0 0 6.39-10.32 5.08-12.28 0 0-4.73.67-5.9 1.45 0 0-.91 6.54-4.11 8.2 0 0 3.55-7.35 2.83-7.86 0 0-5.93 2.51-8.26 5.37a19.53 19.53 0 017.82-6.28 10.77 10.77 0 00-6.12-.64s2.54-2.86 7.56.05c0 0 4.7-1.77 5.5-1.55 0 0-4.55-3.57-8.32-4.19 0 0 4.54-1.3 9.69 4l5.19-.53s-5.77-5-9.08-5.84c0 0 4.83-.61 10.4 5.81l5.12.23s-4.63-4.72-8.12-6.42c0 0 4.59.4 9.59 6.53l3.41.55s-3.45-3.38-4.53-4.26-.93-1.25-.93-1.25a16.43 16.43 0 016.89 5.72s6.95 1.61 7.08 1.2zM556.77 22.59s-30.52-22.84-41.43 1.9c0 0-3.33 3.45-.94 7.58 0 0 1.14-1.61 4 1.06a17.79 17.79 0 003.35 2.43 8.57 8.57 0 005.37 1s11.36 2.19 24.44-10.13c0 0 4.67-1.49 5.1-2.38l-6.89-1.19s-.71 5.07-4.27 7.34c0 0 4.4-7.06 3.26-7.57-.23-.11-3.67-.5-3.67-.5s-1.32 8.84-6.92 12.15c0 0 6.36-7.71 5.58-12.31l-5.23-.28s-.9 9.39-7.13 13.42c0 0 6.37-8.29 6-13.41l-5.17.42s-1.06 9.14-6.27 12.46c0 0 6.4-10.32 5.09-12.28 0 0-4.73.67-5.9 1.45 0 0-.91 6.54-4.11 8.2 0 0 3.55-7.35 2.83-7.87 0 0-5.93 2.52-8.26 5.38a19.44 19.44 0 017.82-6.28 10.7 10.7 0 00-6.13-.64s2.55-2.86 7.57.05c0 0 4.7-1.78 5.5-1.55 0 0-4.55-3.57-8.32-4.2 0 0 4.53-1.29 9.68 4l5.19-.53s-5.76-5-9.08-5.85c0 0 4.83-.6 10.41 5.82l5.12.22s-4.63-4.72-8.13-6.41c0 0 4.6.4 9.6 6.53l3.4.55s-3.46-3.34-4.54-4.2-.93-1.24-.93-1.24a16.4 16.4 0 016.89 5.72s6.95 1.52 7.12 1.14zM673.39 51.52s-12.2-36.11-35.21-21.92c0 0-4.7 1-5.07 5.71 0 0 1.85-.68 2.67 3.12a18 18 0 001.37 3.91 8.66 8.66 0 003.84 3.89s8.12 8.25 25.88 5.52c0 0 4.69 1.42 5.55.93l-5-4.91s-3.46 3.77-7.68 3.62c0 0 7.63-3.32 7-4.39-.13-.21-2.74-2.48-2.74-2.48s-6.06 6.53-12.56 6.1c0 0 9.61-2.74 11.57-7l-4.14-3.19s-6.06 7.22-13.49 7c0 0 10-3.21 12.53-7.65l-4.5-2.59s-6 6.93-12.22 6.71c0 0 11.12-4.87 11.15-7.23 0 0-4.27-2.13-5.68-2.15 0 0-4.46 4.87-8 4.43 0 0 7.08-4.05 6.78-4.88 0 0-6.3-1.29-9.85-.25a19.49 19.49 0 0110-.75 10.79 10.79 0 00-4.69-4s3.72-.91 6.21 4.33c0 0 4.88 1.21 5.4 1.84 0 0-1.72-5.51-4.47-8.17 0 0 4.47 1.51 5.69 8.82l4.58 2.5s-1.89-7.41-4.17-10c0 0 4.33 2.24 5.27 10.69l4.1 3.09s-1.14-6.52-3.06-9.9c0 0 3.56 2.94 4.2 10.83l2.49 2.38s-.92-4.74-1.3-6.08-.07-1.43-.07-1.43a16.49 16.49 0 012.43 8.62s4.84 5.19 5.19 4.93zM593.77 53.3s-37.9-4.22-34.77 22.67c0 0-1.13 4.66 3 7 0 0 .17-2 4-1.1a18.4 18.4 0 004.12.41 8.6 8.6 0 005.15-1.83s10.91-3.87 16-21.12c0 0 3.26-3.65 3.19-4.64l-6.55 2.42s2 4.73 0 8.49c0 0 .21-8.31-1-8.18-.25 0-3.41 1.44-3.41 1.44s3.36 8.25.22 14c0 0 1.58-9.88-1.43-13.44l-4.65 2.4s4 8.55.65 15.19c0 0 1.3-10.38-1.63-14.59l-4.25 3s3.72 8.41.91 13.92c0 0 .29-12.14-1.84-13.17 0 0-3.74 3-4.35 4.24 0 0 2.53 6.1.62 9.15 0 0-.67-8.13-1.55-8.21 0 0-3.84 5.17-4.4 8.82a19.47 19.47 0 013.56-9.38 10.76 10.76 0 00-5.6 2.55s.74-3.75 6.54-3.79c0 0 3.15-3.91 4-4.12 0 0-5.73-.77-9.3.6 0 0 3.25-3.42 10.39-1.43l4.21-3.09s-7.61-1.54-10.83-.54c0 0 3.86-3 11.92-.25l4.53-2.41s-6.39-1.72-10.26-1.41c0 0 4.17-2 11.58.77l3.22-1.25s-4.69-1.17-6.07-1.39-1.43-.6-1.43-.6a16.45 16.45 0 018.84 1.44s6.74-2.15 6.67-2.57zM925.37 347.47s-37.88-4.22-34.75 22.64c0 0-1.13 4.66 3 7 0 0 .17-2 4-1.11a17.3 17.3 0 004.12.41 8.53 8.53 0 005.15-1.83s10.91-3.87 15.95-21.11c0 0 3.26-3.66 3.19-4.64l-6.55 2.41s2 4.74 0 8.5c0 0 .21-8.32-1-8.18-.25 0-3.41 1.43-3.41 1.43s3.36 8.25.22 14c0 0 1.58-9.87-1.43-13.44l-4.65 2.41s4 8.55.66 15.19c0 0 1.29-10.38-1.64-14.6l-4.25 3s3.72 8.41.91 13.91c0 0 .29-12.14-1.84-13.16 0 0-3.73 3-4.35 4.24 0 0 2.54 6.1.62 9.15 0 0-.67-8.13-1.55-8.21 0 0-3.84 5.17-4.4 8.82a19.47 19.47 0 013.56-9.38 10.67 10.67 0 00-5.6 2.55s.74-3.76 6.54-3.8c0 0 3.16-3.91 4-4.11 0 0-5.73-.78-9.3.59 0 0 3.25-3.41 10.4-1.42l4.2-3.09s-7.52-1.42-10.79-.44c0 0 3.86-3 11.92-.26l4.53-2.4s-6.39-1.72-10.26-1.41c0 0 4.17-2 11.58.77l3.22-1.26s-4.69-1.17-6.07-1.38-1.43-.6-1.43-.6a16.39 16.39 0 018.84 1.43s6.76-2.19 6.66-2.62zM983.28 382.85s-37.88-4.21-34.75 22.64c0 0-1.12 4.66 3 7 0 0 .17-2 4-1.1a17.65 17.65 0 004.11.4 8.64 8.64 0 005.13-1.82s10.9-3.87 15.94-21.12c0 0 3.27-3.65 3.19-4.64l-6.55 2.41s2 4.74 0 8.5c0 0 .21-8.31-1-8.18-.25 0-3.41 1.43-3.41 1.43s3.36 8.25.22 14c0 0 1.58-9.87-1.43-13.43l-4.65 2.4s4 8.55.66 15.19c0 0 1.29-10.38-1.64-14.59l-4.25 3s3.72 8.41.92 13.92c0 0 .28-12.15-1.85-13.17 0 0-3.73 3-4.35 4.24 0 0 2.54 6.1.62 9.15 0 0-.67-8.13-1.55-8.21 0 0-3.84 5.17-4.39 8.82a19.52 19.52 0 013.55-9.38 10.76 10.76 0 00-5.6 2.55s.75-3.76 6.55-3.79c0 0 3.15-3.91 4-4.12 0 0-5.73-.77-9.3.6 0 0 3.25-3.42 10.4-1.43l4.2-3.09s-7.52-1.42-10.79-.44c0 0 3.86-3 11.92-.25l4.53-2.41s-6.39-1.72-10.26-1.41c0 0 4.17-2 11.58.77l3.22-1.25s-4.69-1.17-6.06-1.39-1.44-.6-1.44-.6a16.45 16.45 0 018.84 1.44s6.79-2.21 6.69-2.64zM854.71 84.84s-30.52-22.83-41.43 1.9c0 0-3.33 3.45-.94 7.58 0 0 1.14-1.61 4 1.06a17.51 17.51 0 003.34 2.44 8.59 8.59 0 005.37 1s11.36 2.19 24.45-10.12c0 0 4.66-1.5 5.1-2.38l-6.87-1.24s-.72 5.07-4.27 7.34c0 0 4.39-7.06 3.25-7.57-.23-.11-3.66-.5-3.66-.5s-1.29 8.82-6.89 12.15c0 0 6.37-7.71 5.58-12.31l-5.23-.28s-.89 9.39-7.13 13.43c0 0 6.38-8.29 6-13.41l-5.18.42s-1 9.13-6.26 12.45c0 0 6.4-10.32 5.08-12.28 0 0-4.73.67-5.9 1.45 0 0-.9 6.54-4.1 8.2 0 0 3.54-7.35 2.82-7.86 0 0-5.93 2.51-8.26 5.37a19.53 19.53 0 017.82-6.28 10.77 10.77 0 00-6.12-.64s2.55-2.86 7.57.05c0 0 4.69-1.77 5.49-1.55 0 0-4.55-3.57-8.32-4.19 0 0 4.54-1.3 9.69 4l5.19-.53s-5.76-5-9.08-5.84c0 0 4.83-.61 10.4 5.81l5.13.23s-4.64-4.72-8.13-6.42c0 0 4.6.4 9.59 6.53l3.41.55s-3.45-3.38-4.53-4.26-.92-1.17-.92-1.17a16.44 16.44 0 016.88 5.72s6.93 1.56 7.06 1.15zM878.29 249.66s-10.52-36.63-34.18-23.48c0 0-4.74.73-5.33 5.47 0 0 1.88-.59 2.53 3.24a17.73 17.73 0 001.2 4 8.59 8.59 0 003.66 4.08s7.74 8.6 25.6 6.68c0 0 4.62 1.62 5.5 1.18l-4.73-5.14s-3.63 3.62-7.83 3.28c0 0 7.76-3 7.16-4.07-.12-.22-2.62-2.61-2.62-2.61s-6.34 6.26-12.82 5.53c0 0 9.73-2.3 11.87-6.44l-4-3.38s-6.38 6.94-13.79 6.4c0 0 10.08-2.77 12.86-7.08l-4.38-2.79s-6.35 6.65-12.51 6.15c0 0 11.33-4.37 11.47-6.72 0 0-4.18-2.32-5.59-2.4 0 0-4.67 4.66-8.22 4.06 0 0 7.26-3.73 7-4.57 0 0-6.24-1.57-9.83-.7a19.51 19.51 0 0110-.29 10.73 10.73 0 00-4.5-4.2s3.76-.75 6 4.6c0 0 4.81 1.42 5.31 2.08 0 0-1.47-5.59-4.1-8.36 0 0 4.4 1.7 5.29 9.06l4.46 2.71s-1.56-7.5-3.72-10.14c0 0 4.22 2.43 4.79 10.91l4 3.27s-.85-6.56-2.61-10c0 0 3.43 3.1 3.71 11l2.38 2.5s-.7-4.78-1-6.14 0-1.55 0-1.55a16.39 16.39 0 012.05 8.72s4.56 5.38 4.92 5.14zM643.87 332.2s-20.43-32.18-39.4-12.92c0 0-4.34 2-3.58 6.75 0 0 1.65-1.1 3.35 2.4a17.12 17.12 0 002.26 3.46 8.54 8.54 0 004.65 2.88s9.85 6.08 26.45-.8c0 0 4.89.26 5.61-.41l-6-3.6s-2.47 4.5-6.6 5.35c0 0 6.62-5 5.73-5.92-.17-.18-3.25-1.76-3.25-1.76s-4.33 7.78-10.75 8.91c0 0 8.69-4.95 9.59-9.53l-4.79-2.11s-4.17 8.45-11.43 10c0 0 8.9-5.49 10.35-10.41l-5-1.44s-4.22 8.17-10.27 9.42c0 0 9.64-7.38 9.11-9.68 0 0-4.66-1.05-6-.73 0 0-3.17 5.79-6.75 6.21 0 0 5.92-5.62 5.43-6.36 0 0-6.43.25-9.63 2.1a19.46 19.46 0 019.54-3.1 10.73 10.73 0 00-5.49-2.77s3.39-1.77 7 2.73c0 0 5 0 5.69.5 0 0-3-5-6.29-6.87 0 0 4.7.4 7.62 7.21l5.05 1.34s-3.61-6.75-6.42-8.68c0 0 4.73 1.14 7.66 9.13l4.72 2s-2.66-6.05-5.33-8.88c0 0 4.16 2 6.65 9.51l3 1.73s-2-4.39-2.71-5.6-.43-1.49-.43-1.49a16.4 16.4 0 014.41 7.79s5.98 3.98 6.25 3.64z" fill="#7367f0" opacity=".1" /> <path d="M778.14 167.78s-19.43-32.79-39-14.13c0 0-4.4 1.9-3.78 6.64 0 0 1.67-1.06 3.27 2.49a17.28 17.28 0 002.15 3.54 8.49 8.49 0 004.56 3s9.65 6.38 26.46 0c0 0 4.88.41 5.62-.24l-5.87-3.78s-2.6 4.41-6.76 5.14c0 0 6.77-4.83 5.92-5.74-.18-.19-3.2-1.87-3.2-1.87s-4.57 7.65-11 8.58c0 0 8.84-4.68 9.87-9.22l-4.72-2.22s-4.43 8.33-11.74 9.66c0 0 9.07-5.21 10.67-10.08l-4.94-1.6s-4.48 8-10.56 9.1c0 0 9.86-7.08 9.4-9.39 0 0-4.62-1.2-6-.92 0 0-3.35 5.69-6.94 6 0 0 6.09-5.42 5.63-6.18 0 0-6.44.05-9.69 1.8a19.52 19.52 0 019.63-2.8 10.75 10.75 0 00-5.41-2.94s3.45-1.67 7 2.94c0 0 5 .17 5.67.68 0 0-2.83-5-6.07-7.06 0 0 4.68.54 7.39 7.44l5 1.5s-3.39-6.86-6.15-8.88c0 0 4.7 1.29 7.38 9.36l4.65 2.17s-2.47-6.13-5-9c0 0 4.09 2.13 6.36 9.71l2.93 1.82s-1.88-4.45-2.54-5.68-.38-1.5-.38-1.5a16.43 16.43 0 014.17 7.92s5.73 4.07 6.02 3.74zM655.21 236.73s1-38.1-25.47-32.73c0 0-4.74-.73-6.74 3.61 0 0 2 0 1.44 3.85a17.56 17.56 0 00-.06 4.14 8.55 8.55 0 002.25 5s4.77 10.54 22.38 14.12c0 0 3.91 2.95 4.89 2.79l-3-6.32s-4.55 2.34-8.46.75c0 0 8.3-.49 8.07-1.71 0-.25-1.72-3.29-1.72-3.29s-7.94 4.05-13.89 1.39c0 0 10 .75 13.27-2.54l-2.79-4.43s-8.18 4.68-15.08 1.92c0 0 10.45.42 14.41-2.85l-3.33-4s-8.07 4.42-13.79 2.08c0 0 12.12-.73 13-2.94 0 0-3.28-3.47-4.6-4 0 0-5.86 3-9.06 1.38 0 0 8-1.34 8.05-2.23 0 0-5.47-3.39-9.16-3.64a19.47 19.47 0 019.65 2.76 10.75 10.75 0 00-3-5.37s3.81.43 4.33 6.2c0 0 4.17 2.82 4.44 3.6 0 0 .29-5.77-1.38-9.21 0 0 3.68 2.95 2.3 10.23l3.43 3.94s.78-7.62-.47-10.79c0 0 3.28 3.59 1.26 11.85l2.77 4.31s1.18-6.51.55-10.34c0 0 2.32 4 .2 11.61l1.52 3.1s.77-4.77.87-6.16.48-1.48.48-1.48a16.42 16.42 0 01-.69 8.93s2.69 6.6 3.13 6.47z" fill="#7367f0" /> <ellipse cx="698.97" cy="716.3" rx="26.93" ry="4.55" fill="#7367f0" opacity=".1" /> <ellipse cx="600.8" cy="785.38" rx="26.93" ry="4.55" fill="#7367f0" opacity=".1" /> <ellipse cx="93.14" cy="749.99" rx="26.93" ry="4.55" fill="#7367f0" opacity=".1" /> <ellipse cx="805.06" cy="780.83" rx="26.93" ry="4.55" fill="#7367f0" opacity=".1" /> <ellipse cx="833.1" cy="723.1" rx="40.21" ry="6.8" fill="#7367f0" /> <path d="M849.77 711.97a11.61 11.61 0 003.83-5.78c.5-2.3-.48-5.05-2.67-5.89-2.46-.94-5.09.76-7.09 2.48s-4.27 3.69-6.88 3.33a10.5 10.5 0 003.24-9.81 4.11 4.11 0 00-.9-2c-1.37-1.46-3.84-.83-5.48.32-5.2 3.66-6.65 10.72-6.68 17.08-.52-2.29-.08-4.68-.09-7s-.66-5-2.65-6.22a7.91 7.91 0 00-4-1c-2.34-.08-4.95.15-6.54 1.86-2 2.12-1.47 5.69.25 8s4.35 3.8 6.77 5.42a15.13 15.13 0 014.84 4.61 4.7 4.7 0 01.35.82h14.66a40.44 40.44 0 009.04-6.22z" fill="#7367f0" /> <path d="M75.06 728.84s15.35-.47 20-3.77 23.63-7.23 24.78-1.94 23.08 26.29 5.74 26.43-40.29-2.7-44.91-5.52-5.61-15.2-5.61-15.2z" fill="#a8a8a8" /> <path d="M125.87 747.72c-17.34.14-40.29-2.7-44.91-5.52-3.52-2.14-4.92-9.83-5.39-13.38h-.51s1 12.39 5.59 15.2 27.57 5.66 44.91 5.52c5 0 6.73-1.82 6.64-4.46-.7 1.61-2.61 2.61-6.33 2.64z" opacity=".2" /> </svg> ); }; export default Empty;
9,976
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/undraw/NoData.tsx
import React from 'react'; type Props = { width: number; height: number; }; const AccessAccount = ({ width, height }: Props) => { return ( <svg data-name="Layer 1" width={width} height={height} viewBox="0 0 820.16 780.81"> <defs> <linearGradient id="a" x1="539.63" y1="734.6" x2="539.63" y2="151.19" gradientTransform="translate(-3.62 1.57)" gradientUnits="userSpaceOnUse" > <stop offset="0" stopColor="gray" stopOpacity=".25" /> <stop offset=".54" stopColor="gray" stopOpacity=".12" /> <stop offset="1" stopColor="gray" stopOpacity=".1" /> </linearGradient> <linearGradient id="b" x1="540.17" y1="180.2" x2="540.17" y2="130.75" gradientTransform="translate(-63.92 7.85)" /> <linearGradient id="c" x1="540.17" y1="140.86" x2="540.17" y2="82.43" gradientTransform="rotate(-12.11 545.066 460.65)" /> <linearGradient id="d" x1="476.4" y1="710.53" x2="476.4" y2="127.12" /> <linearGradient id="e" x1="476.94" y1="156.13" x2="476.94" y2="106.68" /> <linearGradient id="f" x1="666.86" y1="176.39" x2="666.86" y2="117.95" /> </defs> <path fill="#e0e0e0" d="M69.12 135.49l427.295-91.682L623.09 634.19l-427.295 91.682z" /> <path transform="rotate(-12.11 160.03 1309.797)" fill="url(#a)" d="M324.89 152.76h422.25v583.41H324.89z" opacity=".5" /> <path fill="#fafafa" d="M84.639 146.993L486.98 60.665l119.69 557.824-402.344 86.328z" /> <path transform="rotate(-12.11 100.28 1028.707)" fill="url(#b)" d="M374.18 138.6h204.14v49.45H374.18z" /> <path d="M460.93 91.9c-15.41 3.31-25.16 18.78-21.77 34.55s18.62 25.89 34 22.58 25.16-18.78 21.77-34.55-18.59-25.89-34-22.58zm9.67 45.1a16.86 16.86 0 1112.56-20 16.66 16.66 0 01-12.56 20z" transform="translate(-189.92 -59.59)" fill="url(#c)" /> <path fill="#6c63ff" d="M183.007 98.422L378.4 56.498l9.917 46.218-195.393 41.924z" /> <path d="M271.01 32.31a27.93 27.93 0 1033.17 21.45 27.93 27.93 0 00-33.17-21.45zm9.24 43.1a16.12 16.12 0 1112.38-19.14 16.12 16.12 0 01-12.38 19.14z" fill="#6c63ff" /> <path fill="#e0e0e0" d="M257.89 116.91h437.02v603.82H257.89z" /> <path fill="url(#d)" d="M265.28 127.12h422.25v583.41H265.28z" opacity=".5" /> <path fill="#fff" d="M270.65 131.42h411.5v570.52h-411.5z" /> <path fill="url(#e)" d="M374.87 106.68h204.14v49.45H374.87z" /> <path d="M666.86 118c-15.76 0-28.54 13.08-28.54 29.22s12.78 29.22 28.54 29.22 28.54-13.08 28.54-29.22S682.62 118 666.86 118zm0 46.08a16.86 16.86 0 1116.46-16.86A16.66 16.66 0 01666.86 164z" transform="translate(-189.92 -59.59)" fill="url(#f)" /> <path fill="#6c63ff" d="M377.02 104.56h199.84v47.27H377.02z" /> <path d="M476.94 58.41a27.93 27.93 0 1027.93 27.93 27.93 27.93 0 00-27.93-27.93zm0 44.05a16.12 16.12 0 1116.14-16.16 16.12 16.12 0 01-16.14 16.11z" fill="#6c63ff" /> <g opacity=".5" fill="#47e6b1"> <path d="M15.27 737.05h3.76v21.33h-3.76z" /> <path d="M27.82 745.84v3.76H6.49v-3.76z" /> </g> <g opacity=".5" fill="#47e6b1"> <path d="M451.49 0h3.76v21.33h-3.76z" /> <path d="M464.04 8.78v3.76h-21.33V8.78z" /> </g> <path d="M771.08 772.56a4.61 4.61 0 01-2.57-5.57 2.22 2.22 0 00.1-.51 2.31 2.31 0 00-4.15-1.53 2.22 2.22 0 00-.26.45 4.61 4.61 0 01-5.57 2.57 2.22 2.22 0 00-.51-.1 2.31 2.31 0 00-1.53 4.15 2.22 2.22 0 00.45.26 4.61 4.61 0 012.57 5.57 2.22 2.22 0 00-.1.51 2.31 2.31 0 004.15 1.53 2.22 2.22 0 00.26-.45 4.61 4.61 0 015.57-2.57 2.22 2.22 0 00.51.1 2.31 2.31 0 001.53-4.15 2.22 2.22 0 00-.45-.26z" fill="#4d8af0" opacity=".5" /> <path d="M136.67 567.5a4.61 4.61 0 01-2.57-5.57 2.22 2.22 0 00.1-.51 2.31 2.31 0 00-4.15-1.53 2.22 2.22 0 00-.26.45 4.61 4.61 0 01-5.57 2.57 2.22 2.22 0 00-.51-.1 2.31 2.31 0 00-1.53 4.15 2.22 2.22 0 00.45.26 4.61 4.61 0 012.57 5.57 2.22 2.22 0 00-.1.51 2.31 2.31 0 004.15 1.53 2.22 2.22 0 00.26-.45 4.61 4.61 0 015.57-2.57 2.22 2.22 0 00.51.1 2.31 2.31 0 001.53-4.15 2.22 2.22 0 00-.45-.26zM665.08 68.18a4.61 4.61 0 01-2.57-5.57 2.22 2.22 0 00.1-.51 2.31 2.31 0 00-4.15-1.53 2.22 2.22 0 00-.26.45 4.61 4.61 0 01-5.57 2.57 2.22 2.22 0 00-.51-.1 2.31 2.31 0 00-1.53 4.15 2.22 2.22 0 00.45.26 4.61 4.61 0 012.57 5.57 2.22 2.22 0 00-.1.51 2.31 2.31 0 004.15 1.53 2.22 2.22 0 00.26-.45 4.61 4.61 0 015.57-2.57 2.22 2.22 0 00.51.1 2.31 2.31 0 001.53-4.15 2.22 2.22 0 00-.45-.26z" fill="#fdd835" opacity=".5" /> <circle cx="812.64" cy="314.47" r="7.53" fill="#f55f44" opacity=".5" /> <circle cx="230.73" cy="746.65" r="7.53" fill="#f55f44" opacity=".5" /> <circle cx="735.31" cy="477.23" r="7.53" fill="#f55f44" opacity=".5" /> <circle cx="87.14" cy="96.35" r="7.53" fill="#4d8af0" opacity=".5" /> <circle cx="7.53" cy="301.76" r="7.53" fill="#47e6b1" opacity=".5" /> </svg> ); }; export default AccessAccount;
9,977
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/utils/boundingRect.ts
export const convertDivElementRefToBounds = ($ref: React.RefObject<HTMLDivElement>) => { if ($ref && $ref.current) { const bounds = $ref.current.getBoundingClientRect(); return { size: { width: bounds.width, height: bounds.height, }, position: { left: bounds.left, right: bounds.right, top: bounds.top, bottom: bounds.bottom, }, }; } return null; }; export default convertDivElementRefToBounds;
9,978
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/utils/cache.ts
import { DataProxy } from '@apollo/client'; import { DocumentNode } from 'graphql'; type UpdateCacheFn<T> = (cache: T) => T; export function updateApolloCache<T>( client: DataProxy, document: DocumentNode, update: UpdateCacheFn<T>, variables?: any, ) { let queryArgs: DataProxy.Query<any, any>; if (variables) { queryArgs = { query: document, variables, }; } else { queryArgs = { query: document, }; } const cache: T | null = client.readQuery(queryArgs); if (cache) { const newCache = update(cache); client.writeQuery({ ...queryArgs, data: newCache, }); } } export default updateApolloCache;
9,979
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/utils/draggables.ts
import { DraggableLocation } from 'react-beautiful-dnd'; export const moveItemWithinArray = (arr: Array<DraggableElement>, item: DraggableElement, newIndex: number) => { const arrClone = [...arr]; const oldIndex = arrClone.findIndex(i => i.id === item.id); arrClone.splice(newIndex, 0, arrClone.splice(oldIndex, 1)[0]); return arrClone; }; export const insertItemIntoArray = (arr: Array<DraggableElement>, item: DraggableElement, index: number) => { const arrClone = [...arr]; arrClone.splice(index, 0, item); return arrClone; }; export const updateArrayItemById = (arr: Array<DraggableElement>, itemId: string, fields: any) => { const arrClone = [...arr]; const item = arrClone.find(({ id }) => id === itemId); if (item) { const itemIndex = arrClone.indexOf(item); arrClone.splice(itemIndex, 1, { ...item, ...fields }); } return arrClone; }; export const getNewDraggablePosition = (afterDropDraggables: Array<DraggableElement>, draggableIndex: number) => { const prevDraggable = afterDropDraggables[draggableIndex - 1]; const nextDraggable = afterDropDraggables[draggableIndex + 1]; if (!prevDraggable && !nextDraggable) { return 65535; } if (!prevDraggable) { return nextDraggable.position / 2.0; } if (!nextDraggable) { return prevDraggable.position * 2.0; } const newPos = (prevDraggable.position + nextDraggable.position) / 2.0; return newPos; }; export const getSortedDraggables = (draggables: Array<DraggableElement>) => { return draggables.sort((a: any, b: any) => a.position - b.position); }; export const isPositionChanged = (source: DraggableLocation, destination: DraggableLocation) => { if (!destination) return false; const isSameList = destination.droppableId === source.droppableId; const isSamePosition = destination.index === source.index; return !isSameList || !isSamePosition; }; export const getAfterDropDraggableList = ( beforeDropDraggables: Array<DraggableElement>, droppedDraggable: DraggableElement, isList: boolean, isSameList: boolean, destination: DraggableLocation, ) => { if (isList) { return moveItemWithinArray(beforeDropDraggables, droppedDraggable, destination.index); } return isSameList ? moveItemWithinArray(beforeDropDraggables, droppedDraggable, destination.index) : insertItemIntoArray(beforeDropDraggables, droppedDraggable, destination.index); };
9,980
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/utils/editorTheme.ts
import theme from 'App/ThemeStyles'; const colors = { almostBlack: 'rgb(38, 44, 73)', lightBlack: 'rgb(16, 22, 58)', bgPrimary: 'rgb(16, 22, 58)', almostWhite: 'rgb(194, 198, 220)', white: '#FFF', white10: 'rgb(194, 198, 220)', black: '#000', black10: 'rgba(0, 0, 0, 0.1)', primary: 'rgb(115, 103, 240)', greyLight: '#F4F7FA', grey: '#E8EBED', greyMid: '#C5CCD3', greyDark: '#DAE1E9', }; export const base = { ...colors, fontFamily: 'Open Sans', fontFamilyMono: "'SFMono-Regular',Consolas,'Liberation Mono', Menlo, Courier,monospace", fontWeight: 400, zIndex: 1000000, link: colors.primary, placeholder: '#B1BECC', textSecondary: '#fff', textLight: colors.white, textHighlight: '#b3e7ff', textHighlightForeground: colors.white, selected: colors.primary, codeComment: '#6a737d', codePunctuation: '#5e6687', codeNumber: '#d73a49', codeProperty: '#c08b30', codeTag: '#3d8fd1', codeString: '#032f62', codeSelector: '#6679cc', codeAttr: '#c76b29', codeEntity: '#22a2c9', codeKeyword: '#d73a49', codeFunction: '#6f42c1', codeStatement: '#22a2c9', codePlaceholder: '#3d8fd1', codeInserted: '#202746', codeImportant: '#c94922', blockToolbarBackground: colors.bgPrimary, blockToolbarTrigger: colors.primary, blockToolbarTriggerIcon: colors.white, blockToolbarItem: colors.white, blockToolbarText: colors.white, blockToolbarHoverBackground: colors.primary, blockToolbarDivider: colors.almostWhite, blockToolbarIcon: undefined, blockToolbarIconSelected: colors.white, blockToolbarTextSelected: colors.white, blockToolbarSelectedBackground: colors.greyMid, noticeInfoBackground: '#F5BE31', noticeInfoText: colors.almostBlack, noticeTipBackground: '#9E5CF7', noticeTipText: colors.white, noticeWarningBackground: '#FF5C80', noticeWarningText: colors.white, }; export const BASE_TWO = { ...colors, fontFamily: "-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen, Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif", fontFamilyMono: "'SFMono-Regular',Consolas,'Liberation Mono', Menlo, Courier,monospace", fontWeight: 400, zIndex: 1000000, link: colors.primary, placeholder: '#B1BECC', textSecondary: '#fff', textLight: colors.white, textHighlight: '#b3e7ff', textHighlightForeground: colors.white, selected: colors.primary, codeComment: '#6a737d', codePunctuation: '#5e6687', codeNumber: '#d73a49', codeProperty: '#c08b30', codeTag: '#3d8fd1', codeString: '#032f62', codeSelector: '#6679cc', codeAttr: '#c76b29', codeEntity: '#22a2c9', codeKeyword: '#d73a49', codeFunction: '#6f42c1', codeStatement: '#22a2c9', codePlaceholder: '#3d8fd1', codeInserted: '#202746', codeImportant: '#c94922', blockToolbarBackground: colors.bgPrimary, blockToolbarTrigger: colors.white, blockToolbarTriggerIcon: colors.white, blockToolbarItem: colors.white, blockToolbarText: colors.white, blockToolbarHoverBackground: colors.primary, blockToolbarDivider: colors.almostWhite, blockToolbarIcon: undefined, blockToolbarIconSelected: colors.black, blockToolbarTextSelected: colors.black, noticeInfoBackground: '#F5BE31', noticeInfoText: colors.almostBlack, noticeTipBackground: '#9E5CF7', noticeTipText: colors.white, noticeWarningBackground: '#FF5C80', noticeWarningText: colors.white, }; export const dark = { ...base, background: colors.almostBlack, text: colors.almostWhite, code: colors.almostWhite, cursor: colors.white, divider: '#4E5C6E', placeholder: '#52657A', toolbarBackground: colors.bgPrimary, toolbarHoverBackground: colors.primary, toolbarInput: colors.almostWhite, toolbarItem: colors.white, tableDivider: colors.lightBlack, tableSelected: colors.primary, tableSelectedBackground: '#002333', quote: colors.greyDark, codeBackground: colors.black, codeBorder: colors.lightBlack, codeString: '#3d8fd1', horizontalRule: colors.lightBlack, imageErrorBackground: 'rgba(0, 0, 0, 0.5)', scrollbarBackground: colors.black, scrollbarThumb: colors.lightBlack, }; export default dark;
9,981
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/utils/email.ts
const RFC2822_EMAIL = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/; export default function isValidEmail(target: string) { return RFC2822_EMAIL.test(target); }
9,982
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/utils/localStorage.ts
const localStorage = { NOTIFICATIONS_FILTER: 'notifications_filter', CARD_LABEL_VARIANT_STORAGE_KEY: 'card_label_variant', }; export default localStorage;
9,983
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/utils/noop.ts
export default function NOOP() {} // eslint-disable-line @typescript-eslint/no-empty-function
9,984
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/utils/polling.ts
function resolve(interval: number) { if (process.env.REACT_APP_ENABLE_POLLING === 'true') return interval; return 0; } const polling = { PROJECTS: resolve(3000), PROJECT: resolve(3000), MEMBERS: resolve(3000), TEAM_PROJECTS: resolve(3000), TASK_DETAILS: resolve(3000), UNREAD_NOTIFICATIONS: resolve(30000), }; export default polling;
9,985
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/utils/sorting.ts
import dayjs from 'dayjs'; export enum TaskSortingType { NONE, COMPLETE, DUE_DATE, MEMBERS, LABELS, TASK_TITLE, } export enum TaskSortingDirection { ASC, DESC, } export type TaskSorting = { type: TaskSortingType; direction: TaskSortingDirection; }; export function sortString(a: string, b: string) { if (a < b) { return -1; } if (a > b) { return 1; } return 0; } export function sortTasks(a: Task, b: Task, taskSorting: TaskSorting) { if (taskSorting.type === TaskSortingType.TASK_TITLE) { if (a.name < b.name) { return -1; } if (a.name > b.name) { return 1; } return 0; } if (taskSorting.type === TaskSortingType.DUE_DATE) { if (a.dueDate && !b.dueDate) { return -1; } if (b.dueDate && !a.dueDate) { return 1; } return dayjs(a.dueDate.at).diff(dayjs(b.dueDate.at)); } if (taskSorting.type === TaskSortingType.COMPLETE) { if (a.complete && !b.complete) { return -1; } if (b.complete && !a.complete) { return 1; } return 0; } if (taskSorting.type === TaskSortingType.LABELS) { // sorts non-empty labels by name, then by empty label color name let aLabels = []; let bLabels = []; let aLabelsEmpty = []; let bLabelsEmpty = []; if (a.labels) { for (const aLabel of a.labels) { if (aLabel.projectLabel.name && aLabel.projectLabel.name !== '') { aLabels.push(aLabel.projectLabel.name); } else { aLabelsEmpty.push(aLabel.projectLabel.labelColor.name); } } } if (b.labels) { for (const bLabel of b.labels) { if (bLabel.projectLabel.name && bLabel.projectLabel.name !== '') { bLabels.push(bLabel.projectLabel.name); } else { bLabelsEmpty.push(bLabel.projectLabel.labelColor.name); } } } aLabels = aLabels.sort((aLabel, bLabel) => sortString(aLabel, bLabel)); bLabels = bLabels.sort((aLabel, bLabel) => sortString(aLabel, bLabel)); aLabelsEmpty = aLabelsEmpty.sort((aLabel, bLabel) => sortString(aLabel, bLabel)); bLabelsEmpty = bLabelsEmpty.sort((aLabel, bLabel) => sortString(aLabel, bLabel)); if (aLabelsEmpty.length !== 0 || bLabelsEmpty.length !== 0) { if (aLabelsEmpty.length > bLabelsEmpty.length) { if (bLabels.length !== 0) { return 1; } return -1; } } if (aLabels.length < bLabels.length) { return 1; } if (aLabels.length > bLabels.length) { return -1; } return 0; } if (taskSorting.type === TaskSortingType.MEMBERS) { let aMembers = []; let bMembers = []; if (a.assigned) { for (const aMember of a.assigned) { if (aMember.fullName) { aMembers.push(aMember.fullName); } } } if (b.assigned) { for (const bMember of b.assigned) { if (bMember.fullName) { bMembers.push(bMember.fullName); } } } aMembers = aMembers.sort((aMember, bMember) => sortString(aMember, bMember)); bMembers = bMembers.sort((aMember, bMember) => sortString(aMember, bMember)); if (aMembers.length < bMembers.length) { return 1; } if (aMembers.length > bMembers.length) { return -1; } return 0; } return 0; }
9,986
0
petrpan-code/JordanKnott/taskcafe/frontend/src/shared
petrpan-code/JordanKnott/taskcafe/frontend/src/shared/utils/styles.ts
import { css } from 'styled-components'; import Color from 'color'; export const color = { primary: '#0052cc', // Blue success: '#0B875B', // green danger: '#E13C3C', // red warning: '#F89C1C', // orange secondary: '#F4F5F7', // light grey textDarkest: '#172b4d', textDark: '#42526E', textMedium: '#5E6C84', textLight: '#8993a4', textLink: '#0052cc', backgroundDarkPrimary: '#0747A6', backgroundMedium: '#dfe1e6', backgroundLight: '#ebecf0', backgroundLightest: '#F4F5F7', backgroundLightPrimary: '#D2E5FE', backgroundLightSuccess: '#E4FCEF', borderLightest: '#dfe1e6', borderLight: '#C1C7D0', borderInputFocus: '#4c9aff', }; export const font = { regular: 'font-family: "Open Sans", Roboto, sans-serif; font-weight: normal;', size: (size: number) => `font-size: ${size}px;`, bold: 'font-family: "Open Sans", Roboto, sans-serif; font-weight: normal;', medium: 'font-family: "Open Sans", Roboto, sans-serif; font-weight: normal;', }; export const mixin = { darken: (colorValue: string, amount: number) => Color(colorValue) .darken(amount) .string(), lighten: (colorValue: string, amount: number) => Color(colorValue) .lighten(amount) .string(), rgba: (colorValue: string, opacity: number) => Color(colorValue) .alpha(opacity) .string(), boxShadowCard: css` box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 2px 0px; `, boxShadowMedium: css` box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1); `, boxShadowDropdown: css` box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.31) 0px 0px 1px; `, truncateText: css` overflow: hidden; white-space: nowrap; text-overflow: ellipsis; `, clickable: css` cursor: pointer; user-select: none; `, hardwareAccelerate: css` transform: translateZ(0); `, cover: css` position: absolute; top: 0; right: 0; bottom: 0; left: 0; `, link: (colorValue = color.textLink) => css` cursor: pointer; color: ${colorValue}; ${font.medium} &:hover, &:visited, &:active { color: ${colorValue}; } &:hover { text-decoration: underline; } `, placeholderColor: (colorValue: string) => css` ::-webkit-input-placeholder { color: ${colorValue} !important; opacity: 1 !important; } :-moz-placeholder { color: ${colorValue} !important; opacity: 1 !important; } ::-moz-placeholder { color: ${colorValue} !important; opacity: 1 !important; } :-ms-input-placeholder { color: ${colorValue} !important; opacity: 1 !important; } `, };
9,987
0
petrpan-code/JordanKnott/taskcafe/internal
petrpan-code/JordanKnott/taskcafe/internal/commands/commands.go
package commands import ( "fmt" "net/http" "strings" "github.com/jordanknott/taskcafe/internal/config" "github.com/jordanknott/taskcafe/internal/utils" "github.com/spf13/cobra" "github.com/spf13/viper" ) const mainDescription = `Taskcafé is an open soure project management system written in Golang & React.` func VersionTemplate() string { info := utils.Version() return fmt.Sprintf(`Version: %s Commit: %s Built: %s`, info.Version, info.CommitHash, info.BuildDate+"\n") } var cfgFile string var rootCmd = &cobra.Command{ Use: "taskcafe", Long: mainDescription, Version: VersionTemplate(), } var migration http.FileSystem func init() { cobra.OnInitialize(initConfig) rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file path") migration = http.Dir("./migrations") } func initConfig() { if cfgFile != "" { // Use config file from the flag. viper.SetConfigFile(cfgFile) } else { // Search config in home directory with name ".cobra" (without extension). viper.AddConfigPath("./conf") viper.AddConfigPath(".") viper.AddConfigPath("/etc/taskcafe") viper.SetConfigName("taskcafe") } viper.SetEnvPrefix("TASKCAFE") viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) viper.AutomaticEnv() config.InitDefaults() err := viper.ReadInConfig() if err == nil { return } if _, ok := err.(viper.ConfigFileNotFoundError); !ok { panic(err) } } // Execute the root cobra command func Execute() { rootCmd.SetVersionTemplate(VersionTemplate()) rootCmd.AddCommand(newJobCmd(), newTokenCmd(), newWebCmd(), newMigrateCmd(), newWorkerCmd(), newResetPasswordCmd(), newSeedCmd()) rootCmd.Execute() }
9,988
0
petrpan-code/JordanKnott/taskcafe/internal
petrpan-code/JordanKnott/taskcafe/internal/commands/commands_prod.go
// +build prod package commands import ( "github.com/jordanknott/taskcafe/internal/migrations" ) func init() { migration = migrations.Migrations }
9,989
0
petrpan-code/JordanKnott/taskcafe/internal
petrpan-code/JordanKnott/taskcafe/internal/commands/job.go
package commands import ( "time" "github.com/spf13/cobra" "github.com/RichardKnop/machinery/v1" mTasks "github.com/RichardKnop/machinery/v1/tasks" queueLog "github.com/RichardKnop/machinery/v1/log" "github.com/jmoiron/sqlx" "github.com/jordanknott/taskcafe/internal/config" "github.com/jordanknott/taskcafe/internal/jobs" log "github.com/sirupsen/logrus" ) func newJobCmd() *cobra.Command { cc := &cobra.Command{ Use: "job", Short: "Run a task manually", Long: "Run a task manually", RunE: func(cmd *cobra.Command, args []string) error { Formatter := new(log.TextFormatter) Formatter.TimestampFormat = "02-01-2006 15:04:05" Formatter.FullTimestamp = true log.SetFormatter(Formatter) log.SetLevel(log.InfoLevel) appConfig, err := config.GetAppConfig() if err != nil { log.Panic(err) } db, err := sqlx.Connect("postgres", config.GetDatabaseConfig().GetDatabaseConnectionUri()) if err != nil { log.Panic(err) } db.SetMaxOpenConns(25) db.SetMaxIdleConns(25) db.SetConnMaxLifetime(5 * time.Minute) defer db.Close() log.Info("starting task queue server instance") jobConfig := appConfig.Job.GetJobConfig() server, err := machinery.NewServer(&jobConfig) if err != nil { // do something with the error } queueLog.Set(&jobs.MachineryLogger{}) signature := &mTasks.Signature{ Name: "scheduleDueDateNotifications", } server.SendTask(signature) return nil }, } return cc }
9,990
0
petrpan-code/JordanKnott/taskcafe/internal
petrpan-code/JordanKnott/taskcafe/internal/commands/migrate.go
package commands import ( "fmt" "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/golang-migrate/migrate/v4" "github.com/golang-migrate/migrate/v4/database/postgres" "github.com/golang-migrate/migrate/v4/source/httpfs" "github.com/jmoiron/sqlx" log "github.com/sirupsen/logrus" ) // MigrateLog is a logger for go migrate type MigrateLog struct { verbose bool } // Printf logs to logrus func (l *MigrateLog) Printf(format string, v ...interface{}) { log.Printf("%s", v) } // Verbose shows if verbose print enabled func (l *MigrateLog) Verbose() bool { return l.verbose } func newMigrateCmd() *cobra.Command { c := &cobra.Command{ Use: "migrate", Short: "Run the database schema migrations", Long: "Run the database schema migrations", RunE: func(cmd *cobra.Command, args []string) error { connection := fmt.Sprintf("user=%s password=%s host=%s dbname=%s port=%s sslmode=disable", viper.GetString("database.user"), viper.GetString("database.password"), viper.GetString("database.host"), viper.GetString("database.name"), viper.GetString("database.port"), ) db, err := sqlx.Connect("postgres", connection) if err != nil { return err } defer db.Close() driver, err := postgres.WithInstance(db.DB, &postgres.Config{}) if err != nil { return err } src, err := httpfs.New(migration, "./") if err != nil { return err } m, err := migrate.NewWithInstance("httpfs", src, "postgres", driver) if err != nil { return err } logger := &MigrateLog{} m.Log = logger err = m.Up() if err != nil && err != migrate.ErrNoChange { return err } return nil }, } return c }
9,991
0
petrpan-code/JordanKnott/taskcafe/internal
petrpan-code/JordanKnott/taskcafe/internal/commands/reset_password.go
package commands import ( "context" "fmt" "time" "github.com/jmoiron/sqlx" "github.com/jordanknott/taskcafe/internal/db" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" "github.com/spf13/viper" "golang.org/x/crypto/bcrypt" ) func newResetPasswordCmd() *cobra.Command { return &cobra.Command{ Use: "reset-password <username> <password>", Short: "Resets password of the specified user", Long: "If the user forgets its password you can reset it with this command.", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { connection := fmt.Sprintf("user=%s password=%s host=%s dbname=%s sslmode=disable", viper.GetString("database.user"), viper.GetString("database.password"), viper.GetString("database.host"), viper.GetString("database.name"), ) var database *sqlx.DB var err error var retryDuration time.Duration maxRetryNumber := 4 for i := 0; i < maxRetryNumber; i++ { database, err = sqlx.Connect("postgres", connection) if err == nil { break } retryDuration = time.Duration(i*2) * time.Second log.WithFields(log.Fields{"retryNumber": i, "retryDuration": retryDuration}).WithError(err).Error("issue connecting to database, retrying") if i != maxRetryNumber-1 { time.Sleep(retryDuration) } } database.SetMaxOpenConns(25) database.SetMaxIdleConns(25) database.SetConnMaxLifetime(5 * time.Minute) repo := *db.NewRepository(database) username := args[0] password := args[1] user, err := repo.GetUserAccountByUsername(context.TODO(), username) if err != nil { fmt.Println("There is no user with that username. :/") return nil } hashedPwd, err := bcrypt.GenerateFromPassword([]byte(password), 14) if _, err := repo.SetUserPassword(context.TODO(), db.SetUserPasswordParams{UserID: user.UserID, PasswordHash: string(hashedPwd)}); err != nil { return err } fmt.Println("Updated user \"" + username + "\" password.") defer database.Close() return nil }, } }
9,992
0
petrpan-code/JordanKnott/taskcafe/internal
petrpan-code/JordanKnott/taskcafe/internal/commands/seed.go
package commands import ( "context" "fmt" "time" "github.com/brianvoe/gofakeit/v5" "github.com/manifoldco/promptui" "github.com/jordanknott/taskcafe/internal/db" "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/jmoiron/sqlx" log "github.com/sirupsen/logrus" ) var ( teams int projects int taskGroups int tasks int ) func newSeedCmd() *cobra.Command { cc := &cobra.Command{ Use: "seed", Short: "Seeds the database with random data for testing", Long: "Seeds the database with random data for testing. CAN NOT BE UNDONE.", RunE: func(cmd *cobra.Command, args []string) error { Formatter := new(log.TextFormatter) Formatter.TimestampFormat = "02-01-2006 15:04:05" Formatter.FullTimestamp = true log.SetFormatter(Formatter) log.SetLevel(log.InfoLevel) connection := fmt.Sprintf("user=%s password=%s host=%s dbname=%s port=%s sslmode=disable", viper.GetString("database.user"), viper.GetString("database.password"), viper.GetString("database.host"), viper.GetString("database.name"), viper.GetString("database.port"), ) var dbConnection *sqlx.DB var err error var retryDuration time.Duration maxRetryNumber := 4 for i := 0; i < maxRetryNumber; i++ { dbConnection, err = sqlx.Connect("postgres", connection) if err == nil { break } retryDuration = time.Duration(i*2) * time.Second log.WithFields(log.Fields{"retryNumber": i, "retryDuration": retryDuration}).WithError(err).Error("issue connecting to database, retrying") if i != maxRetryNumber-1 { time.Sleep(retryDuration) } } if err != nil { return err } dbConnection.SetMaxOpenConns(25) dbConnection.SetMaxIdleConns(25) dbConnection.SetConnMaxLifetime(5 * time.Minute) defer dbConnection.Close() if viper.GetBool("migrate") { log.Info("running auto schema migrations") if err = runMigration(dbConnection); err != nil { return err } } prompt := promptui.Prompt{ Label: "Seed database", IsConfirm: true, } _, err = prompt.Run() if err != nil { return err } ctx := context.Background() repository := db.NewRepository(dbConnection) now := time.Now().UTC() organizations, err := repository.GetAllOrganizations(ctx) organizationId := organizations[0].OrganizationID for teamIdx := 0; teamIdx <= teams; teamIdx++ { teamName := gofakeit.Company() team, err := repository.CreateTeam(ctx, db.CreateTeamParams{ Name: teamName, CreatedAt: now, OrganizationID: organizationId, }) if err != nil { return err } for projectIdx := 0; projectIdx <= projects; projectIdx++ { projectName := gofakeit.Dessert() project, err := repository.CreateTeamProject(ctx, db.CreateTeamProjectParams{ TeamID: team.TeamID, Name: projectName, CreatedAt: now, }) if err != nil { return err } for taskGroupIdx := 0; taskGroupIdx <= taskGroups; taskGroupIdx++ { taskGroupName := gofakeit.LoremIpsumSentence(8) taskGroup, err := repository.CreateTaskGroup(ctx, db.CreateTaskGroupParams{ Name: taskGroupName, ProjectID: project.ProjectID, CreatedAt: now, Position: float64(65535 * (taskGroupIdx + 1)), }) if err != nil { return err } for taskIdx := 0; taskIdx <= tasks; taskIdx++ { taskName := gofakeit.Sentence(8) task, err := repository.CreateTask(ctx, db.CreateTaskParams{ Name: taskName, TaskGroupID: taskGroup.TaskGroupID, CreatedAt: now, Position: float64(65535 * (taskIdx + 1)), }) if err != nil { return err } fmt.Printf("Creating %d / %d / %d / %d - %d\n", teamIdx, projectIdx, taskGroupIdx, taskIdx, task.TaskID) } } } } return nil }, } cc.Flags().Bool("migrate", false, "if true, auto run's schema migrations before starting the web server") cc.Flags().IntVar(&teams, "teams", 5, "number of teams to generate") cc.Flags().IntVar(&projects, "projects", 10, "number of projects to create per team (personal projects are included)") cc.Flags().IntVar(&taskGroups, "task_groups", 5, "number of task groups to generate per project") cc.Flags().IntVar(&tasks, "tasks", 25, "number of tasks to generate per task group") viper.SetDefault("migrate", false) return cc }
9,993
0
petrpan-code/JordanKnott/taskcafe/internal
petrpan-code/JordanKnott/taskcafe/internal/commands/token.go
package commands import ( "context" "fmt" "time" "github.com/jordanknott/taskcafe/internal/config" "github.com/jordanknott/taskcafe/internal/db" "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/jmoiron/sqlx" log "github.com/sirupsen/logrus" ) func newTokenCmd() *cobra.Command { cc := &cobra.Command{ Use: "token [username]", Short: "Creates an access token for a user", Long: "Creates an access token for a user", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { Formatter := new(log.TextFormatter) Formatter.TimestampFormat = "02-01-2006 15:04:05" Formatter.FullTimestamp = true log.SetFormatter(Formatter) log.SetLevel(log.InfoLevel) appConfig, err := config.GetAppConfig() if err != nil { return err } var dbConnection *sqlx.DB var retryDuration time.Duration maxRetryNumber := 4 for i := 0; i < maxRetryNumber; i++ { dbConnection, err = sqlx.Connect("postgres", appConfig.Database.GetDatabaseConnectionUri()) if err == nil { break } retryDuration = time.Duration(i*2) * time.Second log.WithFields(log.Fields{"retryNumber": i, "retryDuration": retryDuration}).WithError(err).Error("issue connecting to database, retrying") if i != maxRetryNumber-1 { time.Sleep(retryDuration) } } if err != nil { return err } dbConnection.SetMaxOpenConns(25) dbConnection.SetMaxIdleConns(25) dbConnection.SetConnMaxLifetime(5 * time.Minute) defer dbConnection.Close() if viper.GetBool("migrate") { log.Info("running auto schema migrations") if err = runMigration(dbConnection); err != nil { return err } } ctx := context.Background() repository := db.NewRepository(dbConnection) user, err := repository.GetUserAccountByUsername(ctx, args[0]) if err != nil { return err } token, err := repository.CreateAuthToken(ctx, db.CreateAuthTokenParams{ UserID: user.UserID, CreatedAt: time.Now(), ExpiresAt: time.Now().Add(time.Hour * 24 * 7), }) if err != nil { return err } fmt.Printf("Created token: %s\n", token.TokenID.String()) return nil }, } cc.Flags().Bool("migrate", false, "if true, auto run's schema migrations before starting the web server") cc.Flags().IntVar(&teams, "teams", 5, "number of teams to generate") cc.Flags().IntVar(&projects, "projects", 10, "number of projects to create per team (personal projects are included)") cc.Flags().IntVar(&taskGroups, "task_groups", 5, "number of task groups to generate per project") cc.Flags().IntVar(&tasks, "tasks", 25, "number of tasks to generate per task group") viper.SetDefault("migrate", false) return cc }
9,994
0
petrpan-code/JordanKnott/taskcafe/internal
petrpan-code/JordanKnott/taskcafe/internal/commands/web.go
package commands import ( "net/http" "time" "github.com/RichardKnop/machinery/v1" mTasks "github.com/RichardKnop/machinery/v1/tasks" "github.com/golang-migrate/migrate/v4" "github.com/golang-migrate/migrate/v4/database/postgres" "github.com/golang-migrate/migrate/v4/source/httpfs" "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/jmoiron/sqlx" "github.com/jordanknott/taskcafe/internal/config" "github.com/jordanknott/taskcafe/internal/route" log "github.com/sirupsen/logrus" ) var autoMigrate bool func newWebCmd() *cobra.Command { cc := &cobra.Command{ Use: "web", Short: "Run the web server", Long: "Run the web & api server", RunE: func(cmd *cobra.Command, args []string) error { Formatter := new(log.TextFormatter) Formatter.TimestampFormat = "02-01-2006 15:04:05" Formatter.FullTimestamp = true log.SetFormatter(Formatter) log.SetLevel(log.InfoLevel) appConfig, err := config.GetAppConfig() if err != nil { return err } redisClient, err := appConfig.MessageQueue.GetMessageQueueClient() if err != nil { return err } defer redisClient.Close() connection := appConfig.Database.GetDatabaseConnectionUri() var db *sqlx.DB var retryDuration time.Duration maxRetryNumber := 4 for i := 0; i < maxRetryNumber; i++ { db, err = sqlx.Connect("postgres", connection) if err == nil { break } retryDuration = time.Duration(i*2) * time.Second log.WithFields(log.Fields{"retryNumber": i, "retryDuration": retryDuration}).WithError(err).Error("issue connecting to database, retrying") if i != maxRetryNumber-1 { time.Sleep(retryDuration) } } if err != nil { return err } db.SetMaxOpenConns(25) db.SetMaxIdleConns(25) db.SetConnMaxLifetime(5 * time.Minute) defer db.Close() if viper.GetBool("migrate") { log.Info("running auto schema migrations") if err = runMigration(db); err != nil { return err } } var server *machinery.Server jobConfig := appConfig.Job.GetJobConfig() server, err = machinery.NewServer(&jobConfig) if err != nil { return err } signature := &mTasks.Signature{ Name: "scheduleDueDateNotifications", } server.SendTask(signature) r, _ := route.NewRouter(db, redisClient, server, appConfig) log.WithFields(log.Fields{"url": viper.GetString("server.hostname")}).Info("starting server") return http.ListenAndServe(viper.GetString("server.hostname"), r) }, } cc.Flags().Bool("migrate", false, "if true, auto run's schema migrations before starting the web server") viper.BindPFlag("migrate", cc.Flags().Lookup("migrate")) viper.SetDefault("migrate", false) return cc } func runMigration(db *sqlx.DB) error { driver, err := postgres.WithInstance(db.DB, &postgres.Config{}) if err != nil { return err } src, err := httpfs.New(migration, "./") if err != nil { return err } m, err := migrate.NewWithInstance("httpfs", src, "postgres", driver) if err != nil { return err } logger := &MigrateLog{} m.Log = logger err = m.Up() if err != nil && err != migrate.ErrNoChange { return err } return nil }
9,995
0
petrpan-code/JordanKnott/taskcafe/internal
petrpan-code/JordanKnott/taskcafe/internal/commands/worker.go
package commands import ( "time" "github.com/spf13/cobra" "github.com/RichardKnop/machinery/v1" queueLog "github.com/RichardKnop/machinery/v1/log" "github.com/jmoiron/sqlx" "github.com/jordanknott/taskcafe/internal/config" repo "github.com/jordanknott/taskcafe/internal/db" "github.com/jordanknott/taskcafe/internal/jobs" log "github.com/sirupsen/logrus" ) func newWorkerCmd() *cobra.Command { cc := &cobra.Command{ Use: "worker", Short: "Run the task queue worker", Long: "Run the task queue worker", RunE: func(cmd *cobra.Command, args []string) error { Formatter := new(log.TextFormatter) Formatter.TimestampFormat = "02-01-2006 15:04:05" Formatter.FullTimestamp = true log.SetFormatter(Formatter) log.SetLevel(log.InfoLevel) appConfig, err := config.GetAppConfig() if err != nil { log.Panic(err) } db, err := sqlx.Connect("postgres", config.GetDatabaseConfig().GetDatabaseConnectionUri()) if err != nil { log.Panic(err) } db.SetMaxOpenConns(25) db.SetMaxIdleConns(25) db.SetConnMaxLifetime(5 * time.Minute) defer db.Close() log.Info("starting task queue server instance") jobConfig := appConfig.Job.GetJobConfig() server, err := machinery.NewServer(&jobConfig) if err != nil { // do something with the error } queueLog.Set(&jobs.MachineryLogger{}) repo := *repo.NewRepository(db) redisClient, err := appConfig.MessageQueue.GetMessageQueueClient() if err != nil { return err } jobs.RegisterTasks(server, repo, appConfig, redisClient) worker := server.NewWorker("taskcafe_worker", 10) log.Info("starting task queue worker") err = worker.Launch() if err != nil { log.WithError(err).Error("error while launching ") return err } return nil }, } return cc }
9,996
0
petrpan-code/JordanKnott/taskcafe/internal
petrpan-code/JordanKnott/taskcafe/internal/config/config.go
package config import ( "context" "errors" "fmt" "strings" "time" "github.com/go-redis/redis/v8" mConfig "github.com/RichardKnop/machinery/v1/config" "github.com/google/uuid" log "github.com/sirupsen/logrus" "github.com/spf13/viper" ) const ( ServerHostname = "server.hostname" DatabaseHost = "database.host" DatabaseName = "database.name" DatabaseUser = "database.user" DatabasePassword = "database.password" DatabasePort = "database.port" DatabaseSslMode = "database.sslmode" SecurityTokenExpiration = "security.token_expiration" SecuritySecret = "security.secret" JobEnabled = "job.enabled" JobBroker = "job.broker" JobStore = "job.store" JobQueueName = "job.queue_name" MessageQueue = "message.queue" SmtpFrom = "smtp.from" SmtpHost = "smtp.host" SmtpPort = "smtp.port" SmtpUsername = "smtp.username" SmtpPassword = "smtp.password" SmtpSkipVerify = "false" ) var defaults = map[string]interface{}{ ServerHostname: "0.0.0.0:3333", DatabaseHost: "127.0.0.1", DatabaseName: "taskcafe", DatabaseUser: "taskcafe", DatabasePassword: "taskcafe_test", DatabasePort: "5432", DatabaseSslMode: "disable", SecurityTokenExpiration: "15m", SecuritySecret: "", MessageQueue: "localhost:6379", JobEnabled: false, JobBroker: "redis://localhost:6379", JobStore: "redis://localhost:6379", JobQueueName: "taskcafe_tasks", SmtpFrom: "[email protected]", SmtpHost: "localhost", SmtpPort: "587", SmtpUsername: "", SmtpPassword: "", SmtpSkipVerify: false, } func InitDefaults() { for key, value := range defaults { viper.SetDefault(key, value) } } type AppConfig struct { Email EmailConfig Security SecurityConfig Database DatabaseConfig Job JobConfig MessageQueue MessageQueueConfig } type MessageQueueConfig struct { URI string } type JobConfig struct { Enabled bool Broker string QueueName string Store string } func GetJobConfig() JobConfig { return JobConfig{ Enabled: viper.GetBool(JobEnabled), Broker: viper.GetString(JobBroker), QueueName: viper.GetString(JobQueueName), Store: viper.GetString(JobStore), } } func (cfg *JobConfig) GetJobConfig() mConfig.Config { return mConfig.Config{ Broker: cfg.Broker, DefaultQueue: cfg.QueueName, ResultBackend: cfg.Store, /* AMQP: &mConfig.AMQPConfig{ Exchange: "machinery_exchange", ExchangeType: "direct", BindingKey: "machinery_task", } */ } } type EmailConfig struct { Host string Port int From string Username string Password string SiteURL string InsecureSkipVerify bool } type DatabaseConfig struct { Host string Port string Name string Username string Password string SslMode string } func (cfg DatabaseConfig) GetDatabaseConnectionUri() string { connection := fmt.Sprintf("user=%s password=%s host=%s dbname=%s port=%s sslmode=%s", cfg.Username, cfg.Password, cfg.Host, cfg.Name, cfg.Port, cfg.SslMode, ) return connection } type SecurityConfig struct { AccessTokenExpiration time.Duration Secret []byte } func GetAppConfig() (AppConfig, error) { secret := viper.GetString(SecuritySecret) if strings.TrimSpace(secret) == "" { log.Warn("server.secret is not set, generating a random secret") secret = uuid.New().String() } securityCfg, err := GetSecurityConfig(viper.GetString(SecurityTokenExpiration), []byte(secret)) if err != nil { return AppConfig{}, err } jobCfg := GetJobConfig() databaseCfg := GetDatabaseConfig() emailCfg := GetEmailConfig() messageCfg := MessageQueueConfig{URI: viper.GetString("message.queue")} return AppConfig{ Email: emailCfg, Security: securityCfg, Database: databaseCfg, Job: jobCfg, MessageQueue: messageCfg, }, err } func GetSecurityConfig(accessTokenExp string, secret []byte) (SecurityConfig, error) { exp, err := time.ParseDuration(accessTokenExp) if err != nil { log.WithError(err).Error("issue parsing duration") return SecurityConfig{}, err } return SecurityConfig{AccessTokenExpiration: exp, Secret: secret}, nil } func (c MessageQueueConfig) GetMessageQueueClient() (*redis.Client, error) { client := redis.NewClient(&redis.Options{ Addr: c.URI, }) _, err := client.Ping(context.Background()).Result() if !errors.Is(err, nil) { return nil, err } return client, nil } func GetEmailConfig() EmailConfig { return EmailConfig{ From: viper.GetString(SmtpFrom), Host: viper.GetString(SmtpHost), Port: viper.GetInt(SmtpPort), Username: viper.GetString(SmtpUsername), Password: viper.GetString(SmtpPassword), InsecureSkipVerify: viper.GetBool(SmtpSkipVerify), } } func GetDatabaseConfig() DatabaseConfig { return DatabaseConfig{ Username: viper.GetString(DatabaseUser), Password: viper.GetString(DatabasePassword), Port: viper.GetString(DatabasePort), SslMode: viper.GetString(DatabaseSslMode), Name: viper.GetString(DatabaseName), Host: viper.GetString(DatabaseHost), } }
9,997
0
petrpan-code/JordanKnott/taskcafe/internal
petrpan-code/JordanKnott/taskcafe/internal/db/db.go
// Code generated by sqlc. DO NOT EDIT. package db import ( "context" "database/sql" ) type DBTX interface { ExecContext(context.Context, string, ...interface{}) (sql.Result, error) PrepareContext(context.Context, string) (*sql.Stmt, error) QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error) QueryRowContext(context.Context, string, ...interface{}) *sql.Row } func New(db DBTX) *Queries { return &Queries{db: db} } type Queries struct { db DBTX } func (q *Queries) WithTx(tx *sql.Tx) *Queries { return &Queries{ db: tx, } }
9,998
0
petrpan-code/JordanKnott/taskcafe/internal
petrpan-code/JordanKnott/taskcafe/internal/db/label_color.sql.go
// Code generated by sqlc. DO NOT EDIT. // source: label_color.sql package db import ( "context" "github.com/google/uuid" ) const createLabelColor = `-- name: CreateLabelColor :one INSERT INTO label_color (name, color_hex, position) VALUES ($1, $2, $3) RETURNING label_color_id, color_hex, position, name ` type CreateLabelColorParams struct { Name string `json:"name"` ColorHex string `json:"color_hex"` Position float64 `json:"position"` } func (q *Queries) CreateLabelColor(ctx context.Context, arg CreateLabelColorParams) (LabelColor, error) { row := q.db.QueryRowContext(ctx, createLabelColor, arg.Name, arg.ColorHex, arg.Position) var i LabelColor err := row.Scan( &i.LabelColorID, &i.ColorHex, &i.Position, &i.Name, ) return i, err } const getLabelColorByID = `-- name: GetLabelColorByID :one SELECT label_color_id, color_hex, position, name FROM label_color WHERE label_color_id = $1 ` func (q *Queries) GetLabelColorByID(ctx context.Context, labelColorID uuid.UUID) (LabelColor, error) { row := q.db.QueryRowContext(ctx, getLabelColorByID, labelColorID) var i LabelColor err := row.Scan( &i.LabelColorID, &i.ColorHex, &i.Position, &i.Name, ) return i, err } const getLabelColors = `-- name: GetLabelColors :many SELECT label_color_id, color_hex, position, name FROM label_color ` func (q *Queries) GetLabelColors(ctx context.Context) ([]LabelColor, error) { rows, err := q.db.QueryContext(ctx, getLabelColors) if err != nil { return nil, err } defer rows.Close() var items []LabelColor for rows.Next() { var i LabelColor if err := rows.Scan( &i.LabelColorID, &i.ColorHex, &i.Position, &i.Name, ); err != nil { return nil, err } items = append(items, i) } if err := rows.Close(); err != nil { return nil, err } if err := rows.Err(); err != nil { return nil, err } return items, nil }
9,999