├── .eslintignore ├── .eslintrc.json ├── .gitignore ├── README.md ├── next.config.js ├── package.json ├── prisma ├── migrations │ ├── 20221220151728_create_db_structure │ │ └── migration.sql │ ├── 20221220151945_update_text_field_types │ │ └── migration.sql │ ├── 20221222115134_add_database_indexes │ │ └── migration.sql │ └── migration_lock.toml └── schema.prisma ├── public ├── favicon.ico └── vercel.svg ├── src ├── @types │ └── next-auth.d.ts ├── assets │ └── app-preview.png ├── components │ └── Calendar │ │ ├── index.tsx │ │ └── styles.ts ├── lib │ ├── auth │ │ └── prisma-adapter.ts │ ├── axios.ts │ ├── dayjs.ts │ ├── google.ts │ ├── prisma.ts │ └── react-query.ts ├── pages │ ├── _app.page.tsx │ ├── _document.page.tsx │ ├── api │ │ ├── auth │ │ │ └── [...nextAuth].api.ts │ │ └── users │ │ │ ├── [username] │ │ │ ├── availability.api.ts │ │ │ ├── blocked-dates.api.ts │ │ │ └── schedule.api.ts │ │ │ ├── index.api.ts │ │ │ ├── profile.api.ts │ │ │ └── time-intervals.api.ts │ ├── home │ │ ├── components │ │ │ └── ClaimUsernameForm │ │ │ │ ├── index.tsx │ │ │ │ └── styles.ts │ │ ├── index.tsx │ │ └── styles.ts │ ├── index.page.tsx │ ├── register │ │ ├── connect-calendar │ │ │ ├── index.page.tsx │ │ │ └── styles.ts │ │ ├── index.page.tsx │ │ ├── styles.ts │ │ ├── time-intervals │ │ │ ├── index.page.tsx │ │ │ └── styles.ts │ │ └── update-profile │ │ │ ├── index.page.tsx │ │ │ └── styles.ts │ └── schedule │ │ └── [username] │ │ ├── ScheduleForm │ │ ├── CalendarStep │ │ │ ├── index.tsx │ │ │ └── styles.ts │ │ ├── ConfirmStep │ │ │ ├── index.tsx │ │ │ └── styles.ts │ │ └── index.tsx │ │ ├── index.page.tsx │ │ └── styles.ts ├── styles │ └── global.ts └── utils │ ├── convert-time-string-to-minutes.ts │ └── get-week-days.ts └── tsconfig.json /.eslintignore: -------------------------------------------------------------------------------- 1 | *.d.ts 2 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/README.md -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/package.json -------------------------------------------------------------------------------- /prisma/migrations/20221220151728_create_db_structure/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/prisma/migrations/20221220151728_create_db_structure/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20221220151945_update_text_field_types/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/prisma/migrations/20221220151945_update_text_field_types/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20221222115134_add_database_indexes/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/prisma/migrations/20221222115134_add_database_indexes/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/@types/next-auth.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/@types/next-auth.d.ts -------------------------------------------------------------------------------- /src/assets/app-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/assets/app-preview.png -------------------------------------------------------------------------------- /src/components/Calendar/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/components/Calendar/index.tsx -------------------------------------------------------------------------------- /src/components/Calendar/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/components/Calendar/styles.ts -------------------------------------------------------------------------------- /src/lib/auth/prisma-adapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/lib/auth/prisma-adapter.ts -------------------------------------------------------------------------------- /src/lib/axios.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/lib/axios.ts -------------------------------------------------------------------------------- /src/lib/dayjs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/lib/dayjs.ts -------------------------------------------------------------------------------- /src/lib/google.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/lib/google.ts -------------------------------------------------------------------------------- /src/lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/lib/prisma.ts -------------------------------------------------------------------------------- /src/lib/react-query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/lib/react-query.ts -------------------------------------------------------------------------------- /src/pages/_app.page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/_app.page.tsx -------------------------------------------------------------------------------- /src/pages/_document.page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/_document.page.tsx -------------------------------------------------------------------------------- /src/pages/api/auth/[...nextAuth].api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/api/auth/[...nextAuth].api.ts -------------------------------------------------------------------------------- /src/pages/api/users/[username]/availability.api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/api/users/[username]/availability.api.ts -------------------------------------------------------------------------------- /src/pages/api/users/[username]/blocked-dates.api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/api/users/[username]/blocked-dates.api.ts -------------------------------------------------------------------------------- /src/pages/api/users/[username]/schedule.api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/api/users/[username]/schedule.api.ts -------------------------------------------------------------------------------- /src/pages/api/users/index.api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/api/users/index.api.ts -------------------------------------------------------------------------------- /src/pages/api/users/profile.api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/api/users/profile.api.ts -------------------------------------------------------------------------------- /src/pages/api/users/time-intervals.api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/api/users/time-intervals.api.ts -------------------------------------------------------------------------------- /src/pages/home/components/ClaimUsernameForm/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/home/components/ClaimUsernameForm/index.tsx -------------------------------------------------------------------------------- /src/pages/home/components/ClaimUsernameForm/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/home/components/ClaimUsernameForm/styles.ts -------------------------------------------------------------------------------- /src/pages/home/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/home/index.tsx -------------------------------------------------------------------------------- /src/pages/home/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/home/styles.ts -------------------------------------------------------------------------------- /src/pages/index.page.tsx: -------------------------------------------------------------------------------- 1 | export { default } from './home' 2 | -------------------------------------------------------------------------------- /src/pages/register/connect-calendar/index.page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/register/connect-calendar/index.page.tsx -------------------------------------------------------------------------------- /src/pages/register/connect-calendar/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/register/connect-calendar/styles.ts -------------------------------------------------------------------------------- /src/pages/register/index.page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/register/index.page.tsx -------------------------------------------------------------------------------- /src/pages/register/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/register/styles.ts -------------------------------------------------------------------------------- /src/pages/register/time-intervals/index.page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/register/time-intervals/index.page.tsx -------------------------------------------------------------------------------- /src/pages/register/time-intervals/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/register/time-intervals/styles.ts -------------------------------------------------------------------------------- /src/pages/register/update-profile/index.page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/register/update-profile/index.page.tsx -------------------------------------------------------------------------------- /src/pages/register/update-profile/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/register/update-profile/styles.ts -------------------------------------------------------------------------------- /src/pages/schedule/[username]/ScheduleForm/CalendarStep/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/schedule/[username]/ScheduleForm/CalendarStep/index.tsx -------------------------------------------------------------------------------- /src/pages/schedule/[username]/ScheduleForm/CalendarStep/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/schedule/[username]/ScheduleForm/CalendarStep/styles.ts -------------------------------------------------------------------------------- /src/pages/schedule/[username]/ScheduleForm/ConfirmStep/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/schedule/[username]/ScheduleForm/ConfirmStep/index.tsx -------------------------------------------------------------------------------- /src/pages/schedule/[username]/ScheduleForm/ConfirmStep/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/schedule/[username]/ScheduleForm/ConfirmStep/styles.ts -------------------------------------------------------------------------------- /src/pages/schedule/[username]/ScheduleForm/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/schedule/[username]/ScheduleForm/index.tsx -------------------------------------------------------------------------------- /src/pages/schedule/[username]/index.page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/schedule/[username]/index.page.tsx -------------------------------------------------------------------------------- /src/pages/schedule/[username]/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/pages/schedule/[username]/styles.ts -------------------------------------------------------------------------------- /src/styles/global.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/styles/global.ts -------------------------------------------------------------------------------- /src/utils/convert-time-string-to-minutes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/utils/convert-time-string-to-minutes.ts -------------------------------------------------------------------------------- /src/utils/get-week-days.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/src/utils/get-week-days.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/06-ignite-call/HEAD/tsconfig.json --------------------------------------------------------------------------------