├── .editorconfig ├── .env.example ├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .huskyrc.json ├── .lintstagedrc.json ├── .storybook ├── main.js ├── manager.js ├── preview-head.html ├── preview.js ├── theme.js └── tsconfig.json ├── CONTRIBUTING.md ├── README.md ├── commitlint.config.js ├── docs ├── features │ ├── copying-dashboard-url.gif │ ├── loading-availability.gif │ ├── marking-notifications-as-read.gif │ ├── notifications-pagination.gif │ └── profile.gif ├── logo.svg ├── signin.gif └── storybook.gif ├── package.json ├── public ├── favicon.ico ├── index.html └── robots.txt ├── src ├── @types │ └── styled.d.ts ├── App.tsx ├── assets │ ├── icons │ │ ├── arrow-left.svg │ │ └── arrow-right.svg │ ├── images │ │ ├── barber-background.png │ │ ├── logo.svg │ │ └── room-background.png │ └── lotties │ │ ├── calendar.json │ │ ├── closed.json │ │ └── loading.json ├── components │ ├── Appointment │ │ ├── Date │ │ │ ├── index.tsx │ │ │ ├── styles.ts │ │ │ └── types.ts │ │ ├── index.tsx │ │ ├── styles.ts │ │ └── types.ts │ ├── Avatar │ │ ├── index.tsx │ │ ├── styles.ts │ │ └── types.ts │ ├── Button │ │ ├── index.tsx │ │ └── styles.ts │ ├── Calendar │ │ ├── index.tsx │ │ ├── styles.ts │ │ └── types.ts │ ├── DashboardSection │ │ ├── index.tsx │ │ ├── styles.ts │ │ └── types.ts │ ├── Header │ │ ├── index.tsx │ │ └── styles.ts │ ├── Image │ │ ├── index.tsx │ │ └── types.ts │ ├── Input │ │ ├── ShowPasswordInput │ │ │ ├── index.tsx │ │ │ └── styles.ts │ │ ├── index.tsx │ │ ├── styles.ts │ │ └── types.ts │ ├── Loading │ │ └── index.tsx │ ├── Modals │ │ └── AppointmentDetailsModal │ │ │ ├── index.tsx │ │ │ ├── styles.ts │ │ │ └── types.ts │ ├── Notifications │ │ ├── index.tsx │ │ ├── styles.ts │ │ └── types.ts │ ├── ToastMessage │ │ ├── index.tsx │ │ └── styles.tsx │ └── Tooltip │ │ ├── index.tsx │ │ └── styles.ts ├── constants │ ├── appointments.ts │ ├── authentication.ts │ ├── confirmations.ts │ ├── dateFormats.ts │ ├── localStorage.ts │ ├── routesPaths.ts │ └── toastMessages.ts ├── contexts │ ├── auth │ │ ├── AuthContext.ts │ │ ├── AuthProvider.tsx │ │ └── types.ts │ ├── index.tsx │ ├── modal │ │ ├── ModalContainer.tsx │ │ ├── ModalContext.ts │ │ └── types.ts │ ├── reactQuery │ │ └── index.tsx │ ├── styles.tsx │ └── toasts │ │ ├── ToastsContext.ts │ │ ├── ToastsProvider.tsx │ │ └── types.ts ├── hooks │ ├── auth │ │ ├── useResetPassword │ │ │ ├── index.ts │ │ │ └── types.ts │ │ ├── useSendRecoverPasswordRequest │ │ │ ├── index.ts │ │ │ └── types.ts │ │ ├── useSignIn │ │ │ ├── index.ts │ │ │ └── types.ts │ │ └── useSignUp │ │ │ ├── index.ts │ │ │ └── types.ts │ ├── useAppointments │ │ ├── index.ts │ │ └── types.ts │ ├── useFilter │ │ ├── filters.ts │ │ ├── index.ts │ │ └── types.ts │ ├── useLoadingDelay │ │ └── index.tsx │ ├── useNotifications │ │ ├── index.ts │ │ └── types.ts │ ├── useProviderMonthAvailability │ │ ├── index.ts │ │ └── types.ts │ ├── useShare │ │ ├── index.ts │ │ └── types.ts │ ├── useUserImage │ │ └── index.tsx │ └── user │ │ ├── useUpdateUserAvatar │ │ ├── index.tsx │ │ └── types.ts │ │ └── useUpdateUserProfile │ │ ├── index.tsx │ │ └── types.ts ├── index.tsx ├── layouts │ ├── App │ │ ├── index.tsx │ │ └── styles.ts │ └── Auth │ │ ├── index.tsx │ │ ├── styles.ts │ │ └── types.ts ├── pages │ ├── Dashboard │ │ ├── DashboardContainer.tsx │ │ ├── DashboardContent.tsx │ │ ├── styles.ts │ │ └── types.ts │ ├── ForgotPassword │ │ ├── index.tsx │ │ └── schema.ts │ ├── NotFound │ │ ├── index.tsx │ │ └── styles.ts │ ├── Profile │ │ ├── index.tsx │ │ ├── schema.ts │ │ └── styles.ts │ ├── RequestPasswordResetSuccess │ │ ├── index.tsx │ │ └── styles.ts │ ├── ResetPassword │ │ ├── index.tsx │ │ └── schema.ts │ ├── SignIn │ │ ├── index.tsx │ │ └── schema.ts │ └── SignUp │ │ ├── index.tsx │ │ └── schema.ts ├── react-app-env.d.ts ├── routes │ ├── CustomRoute.tsx │ ├── appRoutes.ts │ └── index.tsx ├── settings │ ├── api.ts │ ├── lottie.ts │ └── yup │ │ └── index.ts ├── shared │ ├── tests │ │ └── oldPasswordTest.ts │ └── types │ │ ├── apiSchema.ts │ │ ├── mutations.ts │ │ └── toasts.ts ├── stories │ ├── 1-Button.stories.tsx │ ├── 2-Input.stories.tsx │ ├── 3-Tooltip.stories.tsx │ ├── 4-Toasts.stories.tsx │ ├── 5-Appointment.stories.tsx │ └── styles.ts ├── styles │ ├── animations.ts │ ├── components │ │ ├── AuthAnimationContainer.tsx │ │ ├── RippleButton.tsx │ │ └── ToastsContainer.tsx │ ├── global.ts │ └── theme │ │ ├── colors.ts │ │ └── index.ts ├── translations │ ├── dateFns.ts │ ├── en │ │ └── common.json │ ├── i18n.ts │ └── pt │ │ └── common.json └── utils │ ├── getExpiryConfirmationTimestamp.ts │ ├── getIsBusinessOpen.ts │ ├── getUserImagePlaceholder.ts │ ├── getValidationErrors.ts │ ├── months.ts │ ├── performSchemaValidation.ts │ └── providerMonthAvailability.ts ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | REACT_APP_API_URL= 2 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | /*.js 4 | react-app-env.d.ts 5 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/.gitignore -------------------------------------------------------------------------------- /.huskyrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/.huskyrc.json -------------------------------------------------------------------------------- /.lintstagedrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/.lintstagedrc.json -------------------------------------------------------------------------------- /.storybook/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/.storybook/main.js -------------------------------------------------------------------------------- /.storybook/manager.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/.storybook/manager.js -------------------------------------------------------------------------------- /.storybook/preview-head.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/.storybook/preview-head.html -------------------------------------------------------------------------------- /.storybook/preview.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/.storybook/preview.js -------------------------------------------------------------------------------- /.storybook/theme.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/.storybook/theme.js -------------------------------------------------------------------------------- /.storybook/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/.storybook/tsconfig.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/README.md -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { extends: ['@commitlint/config-conventional'] }; 2 | -------------------------------------------------------------------------------- /docs/features/copying-dashboard-url.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/docs/features/copying-dashboard-url.gif -------------------------------------------------------------------------------- /docs/features/loading-availability.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/docs/features/loading-availability.gif -------------------------------------------------------------------------------- /docs/features/marking-notifications-as-read.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/docs/features/marking-notifications-as-read.gif -------------------------------------------------------------------------------- /docs/features/notifications-pagination.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/docs/features/notifications-pagination.gif -------------------------------------------------------------------------------- /docs/features/profile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/docs/features/profile.gif -------------------------------------------------------------------------------- /docs/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/docs/logo.svg -------------------------------------------------------------------------------- /docs/signin.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/docs/signin.gif -------------------------------------------------------------------------------- /docs/storybook.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/docs/storybook.gif -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/package.json -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/public/index.html -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/public/robots.txt -------------------------------------------------------------------------------- /src/@types/styled.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/@types/styled.d.ts -------------------------------------------------------------------------------- /src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/App.tsx -------------------------------------------------------------------------------- /src/assets/icons/arrow-left.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/assets/icons/arrow-left.svg -------------------------------------------------------------------------------- /src/assets/icons/arrow-right.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/assets/icons/arrow-right.svg -------------------------------------------------------------------------------- /src/assets/images/barber-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/assets/images/barber-background.png -------------------------------------------------------------------------------- /src/assets/images/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/assets/images/logo.svg -------------------------------------------------------------------------------- /src/assets/images/room-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/assets/images/room-background.png -------------------------------------------------------------------------------- /src/assets/lotties/calendar.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/assets/lotties/calendar.json -------------------------------------------------------------------------------- /src/assets/lotties/closed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/assets/lotties/closed.json -------------------------------------------------------------------------------- /src/assets/lotties/loading.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/assets/lotties/loading.json -------------------------------------------------------------------------------- /src/components/Appointment/Date/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Appointment/Date/index.tsx -------------------------------------------------------------------------------- /src/components/Appointment/Date/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Appointment/Date/styles.ts -------------------------------------------------------------------------------- /src/components/Appointment/Date/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Appointment/Date/types.ts -------------------------------------------------------------------------------- /src/components/Appointment/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Appointment/index.tsx -------------------------------------------------------------------------------- /src/components/Appointment/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Appointment/styles.ts -------------------------------------------------------------------------------- /src/components/Appointment/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Appointment/types.ts -------------------------------------------------------------------------------- /src/components/Avatar/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Avatar/index.tsx -------------------------------------------------------------------------------- /src/components/Avatar/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Avatar/styles.ts -------------------------------------------------------------------------------- /src/components/Avatar/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Avatar/types.ts -------------------------------------------------------------------------------- /src/components/Button/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Button/index.tsx -------------------------------------------------------------------------------- /src/components/Button/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Button/styles.ts -------------------------------------------------------------------------------- /src/components/Calendar/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Calendar/index.tsx -------------------------------------------------------------------------------- /src/components/Calendar/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Calendar/styles.ts -------------------------------------------------------------------------------- /src/components/Calendar/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Calendar/types.ts -------------------------------------------------------------------------------- /src/components/DashboardSection/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/DashboardSection/index.tsx -------------------------------------------------------------------------------- /src/components/DashboardSection/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/DashboardSection/styles.ts -------------------------------------------------------------------------------- /src/components/DashboardSection/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/DashboardSection/types.ts -------------------------------------------------------------------------------- /src/components/Header/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Header/index.tsx -------------------------------------------------------------------------------- /src/components/Header/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Header/styles.ts -------------------------------------------------------------------------------- /src/components/Image/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Image/index.tsx -------------------------------------------------------------------------------- /src/components/Image/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Image/types.ts -------------------------------------------------------------------------------- /src/components/Input/ShowPasswordInput/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Input/ShowPasswordInput/index.tsx -------------------------------------------------------------------------------- /src/components/Input/ShowPasswordInput/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Input/ShowPasswordInput/styles.ts -------------------------------------------------------------------------------- /src/components/Input/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Input/index.tsx -------------------------------------------------------------------------------- /src/components/Input/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Input/styles.ts -------------------------------------------------------------------------------- /src/components/Input/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Input/types.ts -------------------------------------------------------------------------------- /src/components/Loading/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Loading/index.tsx -------------------------------------------------------------------------------- /src/components/Modals/AppointmentDetailsModal/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Modals/AppointmentDetailsModal/index.tsx -------------------------------------------------------------------------------- /src/components/Modals/AppointmentDetailsModal/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Modals/AppointmentDetailsModal/styles.ts -------------------------------------------------------------------------------- /src/components/Modals/AppointmentDetailsModal/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Modals/AppointmentDetailsModal/types.ts -------------------------------------------------------------------------------- /src/components/Notifications/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Notifications/index.tsx -------------------------------------------------------------------------------- /src/components/Notifications/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Notifications/styles.ts -------------------------------------------------------------------------------- /src/components/Notifications/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Notifications/types.ts -------------------------------------------------------------------------------- /src/components/ToastMessage/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/ToastMessage/index.tsx -------------------------------------------------------------------------------- /src/components/ToastMessage/styles.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/ToastMessage/styles.tsx -------------------------------------------------------------------------------- /src/components/Tooltip/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Tooltip/index.tsx -------------------------------------------------------------------------------- /src/components/Tooltip/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/components/Tooltip/styles.ts -------------------------------------------------------------------------------- /src/constants/appointments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/constants/appointments.ts -------------------------------------------------------------------------------- /src/constants/authentication.ts: -------------------------------------------------------------------------------- 1 | export const PASSWORD_MIN_LENGTH = 5; 2 | -------------------------------------------------------------------------------- /src/constants/confirmations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/constants/confirmations.ts -------------------------------------------------------------------------------- /src/constants/dateFormats.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/constants/dateFormats.ts -------------------------------------------------------------------------------- /src/constants/localStorage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/constants/localStorage.ts -------------------------------------------------------------------------------- /src/constants/routesPaths.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/constants/routesPaths.ts -------------------------------------------------------------------------------- /src/constants/toastMessages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/constants/toastMessages.ts -------------------------------------------------------------------------------- /src/contexts/auth/AuthContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/contexts/auth/AuthContext.ts -------------------------------------------------------------------------------- /src/contexts/auth/AuthProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/contexts/auth/AuthProvider.tsx -------------------------------------------------------------------------------- /src/contexts/auth/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/contexts/auth/types.ts -------------------------------------------------------------------------------- /src/contexts/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/contexts/index.tsx -------------------------------------------------------------------------------- /src/contexts/modal/ModalContainer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/contexts/modal/ModalContainer.tsx -------------------------------------------------------------------------------- /src/contexts/modal/ModalContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/contexts/modal/ModalContext.ts -------------------------------------------------------------------------------- /src/contexts/modal/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/contexts/modal/types.ts -------------------------------------------------------------------------------- /src/contexts/reactQuery/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/contexts/reactQuery/index.tsx -------------------------------------------------------------------------------- /src/contexts/styles.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/contexts/styles.tsx -------------------------------------------------------------------------------- /src/contexts/toasts/ToastsContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/contexts/toasts/ToastsContext.ts -------------------------------------------------------------------------------- /src/contexts/toasts/ToastsProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/contexts/toasts/ToastsProvider.tsx -------------------------------------------------------------------------------- /src/contexts/toasts/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/contexts/toasts/types.ts -------------------------------------------------------------------------------- /src/hooks/auth/useResetPassword/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/auth/useResetPassword/index.ts -------------------------------------------------------------------------------- /src/hooks/auth/useResetPassword/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/auth/useResetPassword/types.ts -------------------------------------------------------------------------------- /src/hooks/auth/useSendRecoverPasswordRequest/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/auth/useSendRecoverPasswordRequest/index.ts -------------------------------------------------------------------------------- /src/hooks/auth/useSendRecoverPasswordRequest/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/auth/useSendRecoverPasswordRequest/types.ts -------------------------------------------------------------------------------- /src/hooks/auth/useSignIn/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/auth/useSignIn/index.ts -------------------------------------------------------------------------------- /src/hooks/auth/useSignIn/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/auth/useSignIn/types.ts -------------------------------------------------------------------------------- /src/hooks/auth/useSignUp/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/auth/useSignUp/index.ts -------------------------------------------------------------------------------- /src/hooks/auth/useSignUp/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/auth/useSignUp/types.ts -------------------------------------------------------------------------------- /src/hooks/useAppointments/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/useAppointments/index.ts -------------------------------------------------------------------------------- /src/hooks/useAppointments/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/useAppointments/types.ts -------------------------------------------------------------------------------- /src/hooks/useFilter/filters.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/useFilter/filters.ts -------------------------------------------------------------------------------- /src/hooks/useFilter/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/useFilter/index.ts -------------------------------------------------------------------------------- /src/hooks/useFilter/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/useFilter/types.ts -------------------------------------------------------------------------------- /src/hooks/useLoadingDelay/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/useLoadingDelay/index.tsx -------------------------------------------------------------------------------- /src/hooks/useNotifications/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/useNotifications/index.ts -------------------------------------------------------------------------------- /src/hooks/useNotifications/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/useNotifications/types.ts -------------------------------------------------------------------------------- /src/hooks/useProviderMonthAvailability/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/useProviderMonthAvailability/index.ts -------------------------------------------------------------------------------- /src/hooks/useProviderMonthAvailability/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/useProviderMonthAvailability/types.ts -------------------------------------------------------------------------------- /src/hooks/useShare/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/useShare/index.ts -------------------------------------------------------------------------------- /src/hooks/useShare/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/useShare/types.ts -------------------------------------------------------------------------------- /src/hooks/useUserImage/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/useUserImage/index.tsx -------------------------------------------------------------------------------- /src/hooks/user/useUpdateUserAvatar/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/user/useUpdateUserAvatar/index.tsx -------------------------------------------------------------------------------- /src/hooks/user/useUpdateUserAvatar/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/user/useUpdateUserAvatar/types.ts -------------------------------------------------------------------------------- /src/hooks/user/useUpdateUserProfile/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/user/useUpdateUserProfile/index.tsx -------------------------------------------------------------------------------- /src/hooks/user/useUpdateUserProfile/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/hooks/user/useUpdateUserProfile/types.ts -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/index.tsx -------------------------------------------------------------------------------- /src/layouts/App/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/layouts/App/index.tsx -------------------------------------------------------------------------------- /src/layouts/App/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/layouts/App/styles.ts -------------------------------------------------------------------------------- /src/layouts/Auth/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/layouts/Auth/index.tsx -------------------------------------------------------------------------------- /src/layouts/Auth/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/layouts/Auth/styles.ts -------------------------------------------------------------------------------- /src/layouts/Auth/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/layouts/Auth/types.ts -------------------------------------------------------------------------------- /src/pages/Dashboard/DashboardContainer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/Dashboard/DashboardContainer.tsx -------------------------------------------------------------------------------- /src/pages/Dashboard/DashboardContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/Dashboard/DashboardContent.tsx -------------------------------------------------------------------------------- /src/pages/Dashboard/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/Dashboard/styles.ts -------------------------------------------------------------------------------- /src/pages/Dashboard/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/Dashboard/types.ts -------------------------------------------------------------------------------- /src/pages/ForgotPassword/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/ForgotPassword/index.tsx -------------------------------------------------------------------------------- /src/pages/ForgotPassword/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/ForgotPassword/schema.ts -------------------------------------------------------------------------------- /src/pages/NotFound/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/NotFound/index.tsx -------------------------------------------------------------------------------- /src/pages/NotFound/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/NotFound/styles.ts -------------------------------------------------------------------------------- /src/pages/Profile/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/Profile/index.tsx -------------------------------------------------------------------------------- /src/pages/Profile/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/Profile/schema.ts -------------------------------------------------------------------------------- /src/pages/Profile/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/Profile/styles.ts -------------------------------------------------------------------------------- /src/pages/RequestPasswordResetSuccess/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/RequestPasswordResetSuccess/index.tsx -------------------------------------------------------------------------------- /src/pages/RequestPasswordResetSuccess/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/RequestPasswordResetSuccess/styles.ts -------------------------------------------------------------------------------- /src/pages/ResetPassword/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/ResetPassword/index.tsx -------------------------------------------------------------------------------- /src/pages/ResetPassword/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/ResetPassword/schema.ts -------------------------------------------------------------------------------- /src/pages/SignIn/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/SignIn/index.tsx -------------------------------------------------------------------------------- /src/pages/SignIn/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/SignIn/schema.ts -------------------------------------------------------------------------------- /src/pages/SignUp/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/SignUp/index.tsx -------------------------------------------------------------------------------- /src/pages/SignUp/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/pages/SignUp/schema.ts -------------------------------------------------------------------------------- /src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /src/routes/CustomRoute.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/routes/CustomRoute.tsx -------------------------------------------------------------------------------- /src/routes/appRoutes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/routes/appRoutes.ts -------------------------------------------------------------------------------- /src/routes/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/routes/index.tsx -------------------------------------------------------------------------------- /src/settings/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/settings/api.ts -------------------------------------------------------------------------------- /src/settings/lottie.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/settings/lottie.ts -------------------------------------------------------------------------------- /src/settings/yup/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/settings/yup/index.ts -------------------------------------------------------------------------------- /src/shared/tests/oldPasswordTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/shared/tests/oldPasswordTest.ts -------------------------------------------------------------------------------- /src/shared/types/apiSchema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/shared/types/apiSchema.ts -------------------------------------------------------------------------------- /src/shared/types/mutations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/shared/types/mutations.ts -------------------------------------------------------------------------------- /src/shared/types/toasts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/shared/types/toasts.ts -------------------------------------------------------------------------------- /src/stories/1-Button.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/stories/1-Button.stories.tsx -------------------------------------------------------------------------------- /src/stories/2-Input.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/stories/2-Input.stories.tsx -------------------------------------------------------------------------------- /src/stories/3-Tooltip.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/stories/3-Tooltip.stories.tsx -------------------------------------------------------------------------------- /src/stories/4-Toasts.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/stories/4-Toasts.stories.tsx -------------------------------------------------------------------------------- /src/stories/5-Appointment.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/stories/5-Appointment.stories.tsx -------------------------------------------------------------------------------- /src/stories/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/stories/styles.ts -------------------------------------------------------------------------------- /src/styles/animations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/styles/animations.ts -------------------------------------------------------------------------------- /src/styles/components/AuthAnimationContainer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/styles/components/AuthAnimationContainer.tsx -------------------------------------------------------------------------------- /src/styles/components/RippleButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/styles/components/RippleButton.tsx -------------------------------------------------------------------------------- /src/styles/components/ToastsContainer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/styles/components/ToastsContainer.tsx -------------------------------------------------------------------------------- /src/styles/global.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/styles/global.ts -------------------------------------------------------------------------------- /src/styles/theme/colors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/styles/theme/colors.ts -------------------------------------------------------------------------------- /src/styles/theme/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/styles/theme/index.ts -------------------------------------------------------------------------------- /src/translations/dateFns.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/translations/dateFns.ts -------------------------------------------------------------------------------- /src/translations/en/common.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/translations/en/common.json -------------------------------------------------------------------------------- /src/translations/i18n.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/translations/i18n.ts -------------------------------------------------------------------------------- /src/translations/pt/common.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/translations/pt/common.json -------------------------------------------------------------------------------- /src/utils/getExpiryConfirmationTimestamp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/utils/getExpiryConfirmationTimestamp.ts -------------------------------------------------------------------------------- /src/utils/getIsBusinessOpen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/utils/getIsBusinessOpen.ts -------------------------------------------------------------------------------- /src/utils/getUserImagePlaceholder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/utils/getUserImagePlaceholder.ts -------------------------------------------------------------------------------- /src/utils/getValidationErrors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/utils/getValidationErrors.ts -------------------------------------------------------------------------------- /src/utils/months.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/utils/months.ts -------------------------------------------------------------------------------- /src/utils/performSchemaValidation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/utils/performSchemaValidation.ts -------------------------------------------------------------------------------- /src/utils/providerMonthAvailability.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/src/utils/providerMonthAvailability.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LauraBeatris/gobarber-web/HEAD/yarn.lock --------------------------------------------------------------------------------