Skip to content

Scheduling infrastructure for absolutely everyone.

Merge branch 'main' into bugfix/unify-email-sending

nicolas560bd1947255
diff --cc components/Modal.tsx
index a2f6ab704b2,ed4fbbe5b61..e03b1d1277f
--- a/components/Modal.tsx
+++ b/components/Modal.tsx
@@@ -1,63 -1,66 +1,63 @@@
-import { Fragment } from 'react'
-import { Dialog, Transition } from '@headlessui/react'
-import { CheckIcon } from '@heroicons/react/outline'
+import { Fragment } from "react";
+import { Dialog, Transition } from "@headlessui/react";
+import { CheckIcon } from "@heroicons/react/outline";
export default function Modal(props) {
- return (
- <Transition.Root show={props.open} as={Fragment}>
- <Dialog as="div" static className="fixed z-50 inset-0 overflow-y-auto" open={props.open} onClose={props.handleClose}>
- <div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
- <Transition.Child
- as={Fragment}
- enter="ease-out duration-300"
- enterFrom="opacity-0"
- enterTo="opacity-100"
- leave="ease-in duration-200"
- leaveFrom="opacity-100"
- leaveTo="opacity-0"
- >
- <Dialog.Overlay className="fixed inset-0 bg-gray-500 z-0 bg-opacity-75 transition-opacity" />
- </Transition.Child>
+ return (
+ <Transition.Root show={props.open} as={Fragment}>
+ <Dialog
+ as="div"
+ static
- className="fixed z-10 inset-0 overflow-y-auto"
++ className="fixed z-50 inset-0 overflow-y-auto"
+ open={props.open}
+ onClose={props.handleClose}>
+ <div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
+ <Transition.Child
+ as={Fragment}
+ enter="ease-out duration-300"
+ enterFrom="opacity-0"
+ enterTo="opacity-100"
+ leave="ease-in duration-200"
+ leaveFrom="opacity-100"
+ leaveTo="opacity-0">
- <Dialog.Overlay className="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" />
++ <Dialog.Overlay className="fixed inset-0 bg-gray-500 z-0 bg-opacity-75 transition-opacity" />
+ </Transition.Child>
- {/* This element is to trick the browser into centering the modal contents. */}
- <span className="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">
- &#8203;
- </span>
- <Transition.Child
- as={Fragment}
- enter="ease-out duration-300"
- enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
- enterTo="opacity-100 translate-y-0 sm:scale-100"
- leave="ease-in duration-200"
- leaveFrom="opacity-100 translate-y-0 sm:scale-100"
- leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
- >
- <div className="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6">
- <div>
- <div className="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-green-100">
- <CheckIcon className="h-6 w-6 text-green-600" aria-hidden="true" />
- </div>
- <div className="mt-3 text-center sm:mt-5">
- <Dialog.Title as="h3" className="text-lg leading-6 font-medium text-gray-900">
- {props.heading}
- </Dialog.Title>
- <div className="mt-2">
- <p className="text-sm text-gray-500">
- {props.description}
- </p>
- </div>
- </div>
- </div>
- <div className="mt-5 sm:mt-6">
- <button
- type="button"
- className="btn-wide btn-primary"
- onClick={() => props.handleClose()}
- >
- Dismiss
- </button>
- </div>
- </div>
- </Transition.Child>
+ {/* This element is to trick the browser into centering the modal contents. */}
+ <span className="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">
+ &#8203;
+ </span>
+ <Transition.Child
+ as={Fragment}
+ enter="ease-out duration-300"
+ enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
+ enterTo="opacity-100 translate-y-0 sm:scale-100"
+ leave="ease-in duration-200"
+ leaveFrom="opacity-100 translate-y-0 sm:scale-100"
+ leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95">
+ <div className="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6">
+ <div>
+ <div className="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-green-100">
+ <CheckIcon className="h-6 w-6 text-green-600" aria-hidden="true" />
</div>
- </Dialog>
- </Transition.Root>
- )
-}
+ <div className="mt-3 text-center sm:mt-5">
+ <Dialog.Title as="h3" className="text-lg leading-6 font-medium text-gray-900">
+ {props.heading}
+ </Dialog.Title>
+ <div className="mt-2">
+ <p className="text-sm text-gray-500">{props.description}</p>
+ </div>
+ </div>
+ </div>
+ <div className="mt-5 sm:mt-6">
+ <button type="button" className="btn-wide btn-primary" onClick={() => props.handleClose()}>
+ Dismiss
+ </button>
+ </div>
+ </div>
+ </Transition.Child>
+ </div>
+ </Dialog>
+ </Transition.Root>
+ );
+}
diff --cc components/Settings.tsx
index d175a563b19,b9f56c62af4..4d4354ef5a9
--- a/components/Settings.tsx
+++ b/components/Settings.tsx
@@@ -1,10 -1,7 +1,7 @@@
import Link from "next/link";
-import { CreditCardIcon, UserIcon, CodeIcon, KeyIcon, UserGroupIcon } from "@heroicons/react/solid";
+import { CodeIcon, CreditCardIcon, KeyIcon, UserGroupIcon, UserIcon } from "@heroicons/react/solid";
import { useRouter } from "next/router";
-
- function classNames(...classes) {
- return classes.filter(Boolean).join(" ");
- }
+ import classNames from "@lib/classNames";
export default function SettingsShell(props) {
const router = useRouter();
diff --cc components/Shell.tsx
index 914f1fc6d53,e4af877ab46..4b8e614c8d1
--- a/components/Shell.tsx
+++ b/components/Shell.tsx
@@@ -7,19 -7,16 +7,16 @@@ import { collectPageParameters, telemet
import { SelectorIcon } from "@heroicons/react/outline";
import {
CalendarIcon,
+ ChatAltIcon,
ClockIcon,
- PuzzleIcon,
CogIcon,
- ChatAltIcon,
- LogoutIcon,
ExternalLinkIcon,
LinkIcon,
+ LogoutIcon,
+ PuzzleIcon,
} from "@heroicons/react/solid";
import Logo from "./Logo";
-
- function classNames(...classes) {
- return classes.filter(Boolean).join(" ");
- }
+ import classNames from "@lib/classNames";
export default function Shell(props) {
const router = useRouter();
diff --cc components/team/EditTeamModal.tsx
index 28312329275,c5e15c6f48d..226b63ab253
--- a/components/team/EditTeamModal.tsx
+++ b/components/team/EditTeamModal.tsx
@@@ -18,112 -17,89 +18,114 @@@ export default function EditTeamModal(p
const deleteTeam = (e) => {
e.preventDefault();
- return fetch('/api/teams/' + props.team.id, {
- method: 'DELETE',
+ return fetch("/api/teams/" + props.team.id, {
+ method: "DELETE",
}).then(props.onExit);
- }
+ };
const removeMember = (member) => {
- return fetch('/api/teams/' + props.team.id + '/membership', {
- method: 'DELETE',
+ return fetch("/api/teams/" + props.team.id + "/membership", {
+ method: "DELETE",
body: JSON.stringify({ userId: member.id }),
headers: {
- 'Content-Type': 'application/json'
- }
+ "Content-Type": "application/json",
+ },
}).then(loadMembers);
- }
+ };
- return (<div className="fixed z-50 inset-0 overflow-y-auto" aria-labelledby="modal-title" role="dialog" aria-modal="true">
- <div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
- <div className="fixed inset-0 bg-gray-500 z-0 bg-opacity-75 transition-opacity" aria-hidden="true"></div>
+ return (
+ <div
- className="fixed z-10 inset-0 overflow-y-auto"
++ className="fixed z-50 inset-0 overflow-y-auto"
+ aria-labelledby="modal-title"
+ role="dialog"
+ aria-modal="true">
+ <div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
- <div className="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" aria-hidden="true"></div>
++ <div
++ className="fixed inset-0 bg-gray-500 z-0 bg-opacity-75 transition-opacity"
++ aria-hidden="true"></div>
- <span className="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span>
+ <span className="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">
+ &#8203;
+ </span>
- <div className="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6">
- <div className="sm:flex sm:items-start mb-4">
- <div className="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-black bg-opacity-10 sm:mx-0 sm:h-10 sm:w-10">
- <UsersIcon className="h-6 w-6 text-black" />
- </div>
- <div className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
- <h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-title">Edit the {props.team.name} team</h3>
- <div>
- <p className="text-sm text-gray-400">
- Manage and delete your team.
- </p>
- </div>
- </div>
- </div>
- <form>
- <div>
- <div className="mb-4">
- {members.length > 0 && <div>
- <div className="flex justify-between mb-2">
- <h2 className="text-lg font-medium text-gray-900">Members</h2>
- </div>
- <table className="table-auto mb-2 w-full text-sm">
- <tbody>
- {members.map( (member) => <tr key={member.email}>
- <td className="p-1">{member.name} {member.name && '(' + member.email + ')' }{!member.name && member.email}</td>
- <td className="capitalize">{member.role.toLowerCase()}</td>
- <td className="text-right py-2 px-1">
- {member.email !== session.user.email &&
- <button
- type="button"
- onClick={(e) => removeMember(member)}
- className="btn-sm text-xs bg-transparent px-3 py-1 rounded ml-2">
- <UserRemoveIcon className="text-red-400 group-hover:text-gray-500 flex-shrink-0 -mt-1 mr-1 h-4 w-4 inline"/>
- </button>
- }
- </td>
- </tr>)}
- </tbody>
- </table>
- </div>}
+ <div className="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6">
+ <div className="sm:flex sm:items-start mb-4">
+ <div className="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-black bg-opacity-10 sm:mx-0 sm:h-10 sm:w-10">
+ <UsersIcon className="h-6 w-6 text-black" />
</div>
- <div className="mb-4 border border-red-400 rounded p-2 px-4">
- <p className="block text-sm font-medium text-gray-700">Tick the box to disband this team.</p>
- <label className="mt-1">
- <input type="checkbox" onChange={(e) => setCheckedDisbandTeam(e.target.checked)} className="shadow-sm mr-2 focus:ring-black focus:border-black sm:text-sm border-gray-300 rounded-md" />
- Disband this team
- </label>
+ <div className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
+ <h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-title">
+ Edit the {props.team.name} team
+ </h3>
+ <div>
+ <p className="text-sm text-gray-400">Manage and delete your team.</p>
+ </div>
</div>
</div>
- <div className="mt-5 sm:mt-4 sm:flex sm:flex-row-reverse">
- {/*!checkedDisbandTeam && <button type="submit" className="btn btn-primary">
+ <form>
+ <div>
+ <div className="mb-4">
+ {members.length > 0 && (
+ <div>
+ <div className="flex justify-between mb-2">
+ <h2 className="text-lg font-medium text-gray-900">Members</h2>
+ </div>
+ <table className="table-auto mb-2 w-full text-sm">
+ <tbody>
+ {members.map((member) => (
+ <tr key={member.email}>
+ <td className="p-1">
+ {member.name} {member.name && "(" + member.email + ")"}
+ {!member.name && member.email}
+ </td>
+ <td className="capitalize">{member.role.toLowerCase()}</td>
+ <td className="text-right py-2 px-1">
+ {member.email !== session.user.email && (
+ <button
+ type="button"
+ onClick={() => removeMember(member)}
+ className="btn-sm text-xs bg-transparent px-3 py-1 rounded ml-2">
+ <UserRemoveIcon className="text-red-400 group-hover:text-gray-500 flex-shrink-0 -mt-1 mr-1 h-4 w-4 inline" />
+ </button>
+ )}
+ </td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
+ </div>
+ )}
+ </div>
+ <div className="mb-4 border border-red-400 rounded p-2 px-4">
+ <p className="block text-sm font-medium text-gray-700">Tick the box to disband this team.</p>
+ <label className="mt-1">
+ <input
+ type="checkbox"
+ onChange={(e) => setCheckedDisbandTeam(e.target.checked)}
+ className="shadow-sm mr-2 focus:ring-blue-500 focus:border-blue-500 sm:text-sm border-gray-300 rounded-md"
+ />
+ Disband this team
+ </label>
+ </div>
+ </div>
+ <div className="mt-5 sm:mt-4 sm:flex sm:flex-row-reverse">
+ {/*!checkedDisbandTeam && <button type="submit" className="btn btn-primary">
Update
</button>*/}
- {checkedDisbandTeam && <button onClick={deleteTeam} className="btn bg-red-700 rounded text-white px-2 font-medium text-sm">
- Disband Team
- </button>}
- <button onClick={props.onExit} type="button" className="btn btn-white mr-2">
- Close
- </button>
- </div>
- </form>
+ {checkedDisbandTeam && (
+ <button
+ onClick={deleteTeam}
+ className="btn bg-red-700 rounded text-white px-2 font-medium text-sm">
+ Disband Team
+ </button>
+ )}
+ <button onClick={props.onExit} type="button" className="btn btn-white mr-2">
+ Close
+ </button>
+ </div>
+ </form>
+ </div>
</div>
</div>
- </div>);
-}
+ );
+}
diff --cc components/team/MemberInvitationModal.tsx
index 45f226a9655,6c916baa273..fe2213d267f
--- a/components/team/MemberInvitationModal.tsx
+++ b/components/team/MemberInvitationModal.tsx
@@@ -45,7 -45,7 +45,9 @@@ export default function MemberInvitatio
role="dialog"
aria-modal="true">
<div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
- <div className="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" aria-hidden="true"></div>
- <div className="fixed inset-0 bg-gray-500 z-0 bg-opacity-75 transition-opacity" aria-hidden="true"></div>
++ <div
++ className="fixed inset-0 bg-gray-500 z-0 bg-opacity-75 transition-opacity"
++ aria-hidden="true"></div>
<span className="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">
&#8203;
diff --cc components/ui/modal/SetTimesModal.tsx
index 8dc9a759bcc,328bca6e47f..773a71d9a08
--- a/components/ui/modal/SetTimesModal.tsx
+++ b/components/ui/modal/SetTimesModal.tsx
@@@ -33,7 -33,7 +33,9 @@@ export default function SetTimesModal(p
role="dialog"
aria-modal="true">
<div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
- <div className="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" aria-hidden="true"></div>
- <div className="fixed inset-0 bg-gray-500 z-0 bg-opacity-75 transition-opacity" aria-hidden="true"></div>
++ <div
++ className="fixed inset-0 bg-gray-500 z-0 bg-opacity-75 transition-opacity"
++ aria-hidden="true"></div>
<span className="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">
&#8203;
diff --cc pages/404.tsx
index 00000000000,b8bba18bfbe..2e339168005
mode 000000,100644..100644
--- a/pages/404.tsx
+++ b/pages/404.tsx
@@@ -1,0 -1,154 +1,154 @@@
+ import { ChevronRightIcon } from "@heroicons/react/solid";
-import { DocumentTextIcon, BookOpenIcon, CodeIcon, CheckIcon } from "@heroicons/react/outline";
++import { BookOpenIcon, CheckIcon, CodeIcon, DocumentTextIcon } from "@heroicons/react/outline";
+ import { useRouter } from "next/router";
+ import React from "react";
+ import Link from "next/link";
+ import Head from "next/head";
+
+ const links = [
+ {
+ title: "Documentation",
+ description: "Learn how to integrate our tools with your app",
+ icon: DocumentTextIcon,
+ href: "https://docs.calendso.com",
+ },
+ {
+ title: "API Reference",
+ description: "A complete API reference for our libraries",
+ icon: CodeIcon,
+ href: "https://api.docs.calendso.com",
+ },
+ {
+ title: "Blog",
+ description: "Read our latest news and articles",
+ icon: BookOpenIcon,
+ href: "https://calendso.com/blog",
+ },
+ ];
+
+ export default function Custom404() {
+ const router = useRouter();
+ const username = router.asPath.replace("%20", "-");
+
+ return (
+ <>
+ <Head>
+ <title>404: This page could not be found.</title>
+ </Head>
+ <div className="bg-white min-h-screen px-4">
+ <main className="max-w-xl mx-auto pb-6 pt-16 sm:pt-24">
+ <div className="text-center">
+ <p className="text-sm font-semibold text-black uppercase tracking-wide">404 error</p>
+ <h1 className="mt-2 text-4xl font-extrabold text-gray-900 tracking-tight sm:text-5xl">
+ This page does not exist.
+ </h1>
+ <a href="https://checkout.calendso.com" className="inline-block mt-2 text-lg ">
+ The username <strong className="text-blue-500">calendso.com{username}</strong> is still
+ available. <span className="text-blue-500">Register now</span>.
+ </a>
+ </div>
+ <div className="mt-12">
+ <h2 className="text-sm font-semibold text-gray-500 tracking-wide uppercase">Popular pages</h2>
+
+ <ul role="list" className="mt-4">
+ <li className="border-2 border-green-500 px-4 py-2">
+ <a href="https://checkout.calendso.com" className="relative py-6 flex items-start space-x-4">
+ <div className="flex-shrink-0">
+ <span className="flex items-center justify-center h-12 w-12 rounded-lg bg-green-50">
+ <CheckIcon className="h-6 w-6 text-green-500" aria-hidden="true" />
+ </span>
+ </div>
+ <div className="min-w-0 flex-1">
+ <h3 className="text-base font-medium text-gray-900">
+ <span className="rounded-sm focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-gray-500">
+ <span className="focus:outline-none">
+ <span className="absolute inset-0" aria-hidden="true" />
+ Register <strong className="text-green-500">{username}</strong>
+ </span>
+ </span>
+ </h3>
+ <p className="text-base text-gray-500">Claim your username and schedule events</p>
+ </div>
+ <div className="flex-shrink-0 self-center">
+ <ChevronRightIcon className="h-5 w-5 text-gray-400" aria-hidden="true" />
+ </div>
+ </a>
+ </li>
+ </ul>
+
+ <ul role="list" className="mt-4 border-gray-200 divide-y divide-gray-200">
+ {links.map((link, linkIdx) => (
+ <li key={linkIdx} className="px-4 py-2">
+ <Link href={link.href}>
+ <a className="relative py-6 flex items-start space-x-4">
+ <div className="flex-shrink-0">
+ <span className="flex items-center justify-center h-12 w-12 rounded-lg bg-gray-50">
+ <link.icon className="h-6 w-6 text-gray-700" aria-hidden="true" />
+ </span>
+ </div>
+ <div className="min-w-0 flex-1">
+ <h3 className="text-base font-medium text-gray-900">
+ <span className="rounded-sm focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-gray-500">
+ <span className="absolute inset-0" aria-hidden="true" />
+ {link.title}
+ </span>
+ </h3>
+ <p className="text-base text-gray-500">{link.description}</p>
+ </div>
+ <div className="flex-shrink-0 self-center">
+ <ChevronRightIcon className="h-5 w-5 text-gray-400" aria-hidden="true" />
+ </div>
+ </a>
+ </Link>
+ </li>
+ ))}
+ <li className="px-4 py-2">
+ <a href="https://calendso.com/slack" className="relative py-6 flex items-start space-x-4">
+ <div className="flex-shrink-0">
+ <span className="flex items-center justify-center h-12 w-12 rounded-lg bg-gray-50">
+ <svg viewBox="0 0 2447.6 2452.5" className="h-6 w-6" xmlns="http://www.w3.org/2000/svg">
+ <g clipRule="evenodd" fillRule="evenodd">
+ <path
+ d="m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z"
+ fill="rgba(55, 65, 81)"></path>
+ <path
+ d="m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z"
+ fill="rgba(55, 65, 81)"></path>
+ <path
+ d="m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z"
+ fill="rgba(55, 65, 81)"></path>
+ <path
+ d="m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0"
+ fill="rgba(55, 65, 81)"></path>
+ </g>
+ </svg>
+ </span>
+ </div>
+ <div className="min-w-0 flex-1">
+ <h3 className="text-base font-medium text-gray-900">
+ <span className="rounded-sm focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-gray-500">
+ <span className="absolute inset-0" aria-hidden="true" />
+ Slack
+ </span>
+ </h3>
+ <p className="text-base text-gray-500">Join our community</p>
+ </div>
+ <div className="flex-shrink-0 self-center">
+ <ChevronRightIcon className="h-5 w-5 text-gray-400" aria-hidden="true" />
+ </div>
+ </a>
+ </li>
+ </ul>
+ <div className="mt-8">
+ <Link href="/">
+ <a className="text-base font-medium text-black hover:text-gray-500">
+ Or go back home<span aria-hidden="true"> &rarr;</span>
+ </a>
+ </Link>
+ </div>
+ </div>
+ </main>
+ </div>
+ </>
+ );
+ }
diff --cc pages/_app.tsx
index 5473bd4188c,4082a94b0a0..87c19cbdd69
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@@ -7,6 -8,12 +8,9 @@@ function MyApp({ Component, pageProps }
return (
<TelemetryProvider value={createTelemetryClient()}>
<Provider session={pageProps.session}>
+ <Head>
- <meta
- name="viewport"
- content="width=device-width, initial-scale=1.0"
- />
++ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ </Head>
<Component {...pageProps} />
</Provider>
</TelemetryProvider>
diff --cc pages/_document.tsx
index 4cd359997aa,29e3027b5d0..daa12451128
--- a/pages/_document.tsx
+++ b/pages/_document.tsx
@@@ -1,4 -1,4 +1,4 @@@
--import Document, { Html, Head, Main, NextScript } from "next/document";
++import Document, { Head, Html, Main, NextScript } from "next/document";
class MyDocument extends Document {
static async getInitialProps(ctx) {
diff --cc pages/api/book/[user].ts
index a7f10b15bf7,b2e174ca0e4..b032c925f56
--- a/pages/api/book/[user].ts
+++ b/pages/api/book/[user].ts
@@@ -148,11 -313,15 +149,11 @@@ export default async function handler(r
const calendarAvailability = await getBusyCalendarTimes(
currentUser.credentials,
- dayjs(req.body.start).startOf("day").utc().format(),
- dayjs(req.body.end).endOf("day").utc().format(),
+ dayjs(req.body.start).startOf("day").utc().format("YYYY-MM-DDTHH:mm:ss[Z]"),
+ dayjs(req.body.end).endOf("day").utc().format("YYYY-MM-DDTHH:mm:ss[Z]"),
selectedCalendars
);
- const videoAvailability = await getBusyVideoTimes(
- currentUser.credentials,
- dayjs(req.body.start).startOf("day").utc().format(),
- dayjs(req.body.end).endOf("day").utc().format()
- );
+ const videoAvailability = await getBusyVideoTimes(currentUser.credentials);
let commonAvailability = [];
if (hasCalendarIntegrations && hasVideoIntegrations) {
@@@ -201,17 -370,46 +202,28 @@@
},
});
- const rawLocation = req.body.location;
-
+ const invitee = [{ email: req.body.email, name: req.body.name, timeZone: req.body.timeZone }];
- const guests = req.body.guests.map(guest=>{
- let g = {
- 'email': guest,
- 'name': '',
- 'timeZone': req.body.timeZone
- }
++ const guests = req.body.guests.map((guest) => {
++ const g = {
++ email: guest,
++ name: "",
++ timeZone: req.body.timeZone,
++ };
+ return g;
+ });
- const attendeesList = [...invitee,...guests];
++ const attendeesList = [...invitee, ...guests];
+
- let evt: CalendarEvent = {
+ const evt: CalendarEvent = {
type: selectedEventType.title,
title: getEventName(req.body.name, selectedEventType.title, selectedEventType.eventName),
description: req.body.notes,
startTime: req.body.start,
endTime: req.body.end,
organizer: { email: currentUser.email, name: currentUser.name, timeZone: currentUser.timeZone },
- attendees: [{ email: req.body.email, name: req.body.name, timeZone: req.body.timeZone }],
+ attendees: attendeesList,
+ location: req.body.location, // Will be processed by the EventManager later.
};
- // If phone or inPerson use raw location
- // set evt.location to req.body.location
- if (!rawLocation?.includes("integration")) {
- evt.location = rawLocation;
- }
-
- // If location is set to an integration location
- // Build proper transforms for evt object
- // Extend evt object with those transformations
- if (rawLocation?.includes("integration")) {
- const maybeLocationRequestObject = getLocationRequestFromIntegration({
- location: rawLocation,
- });
-
- evt = merge(evt, maybeLocationRequestObject);
- }
-
const eventType = await prisma.eventType.findFirst({
where: {
userId: currentUser.id,
diff --cc pages/auth/error.tsx
index 450d24a3a82,82496187e4c..cbd57cfea45
--- a/pages/auth/error.tsx
+++ b/pages/auth/error.tsx
@@@ -1,51 -1,45 +1,51 @@@
-import { useRouter } from 'next/router';
-import { XIcon } from '@heroicons/react/outline';
-import Head from 'next/head';
-import Link from 'next/link';
+import { useRouter } from "next/router";
+import { XIcon } from "@heroicons/react/outline";
+import Head from "next/head";
+import Link from "next/link";
export default function Error() {
- const router = useRouter();
- const { error } = router.query;
+ const router = useRouter();
+ const { error } = router.query;
- return (
- <div className="fixed z-50 inset-0 overflow-y-auto" aria-labelledby="modal-title" role="dialog" aria-modal="true">
- <Head>
- <title>{error} - Calendso</title>
- <link rel="icon" href="/favicon.ico" />
- </Head>
- <div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
- <span className="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span>
- <div className="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6">
- <div>
- <div className="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100">
- <XIcon className="h-6 w-6 text-red-600" />
- </div>
- <div className="mt-3 text-center sm:mt-5">
- <h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-title">
- {error}
- </h3>
- <div className="mt-2">
- <p className="text-sm text-gray-500">
- An error occurred when logging you in. Head back to the login screen and try again.
- </p>
- </div>
- </div>
- </div>
- <div className="mt-5 sm:mt-6">
- <Link href="/auth/login">
- <a className="inline-flex justify-center w-full rounded-sm border border-transparent shadow-sm px-4 py-2 bg-neutral-900 text-base font-medium text-white hover:bg-neutral-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-neutral-500 sm:text-sm">
- Go back to the login page
- </a>
- </Link>
- </div>
- </div>
+ return (
+ <div
- className="fixed z-10 inset-0 overflow-y-auto"
++ className="fixed z-50 inset-0 overflow-y-auto"
+ aria-labelledby="modal-title"
+ role="dialog"
+ aria-modal="true">
+ <Head>
+ <title>{error} - Calendso</title>
+ <link rel="icon" href="/favicon.ico" />
+ </Head>
+ <div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
+ <span className="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">
+ &#8203;
+ </span>
+ <div className="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6">
+ <div>
+ <div className="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100">
+ <XIcon className="h-6 w-6 text-red-600" />
</div>
+ <div className="mt-3 text-center sm:mt-5">
+ <h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-title">
+ {error}
+ </h3>
+ <div className="mt-2">
+ <p className="text-sm text-gray-500">
+ An error occurred when logging you in. Head back to the login screen and try again.
+ </p>
+ </div>
+ </div>
+ </div>
+ <div className="mt-5 sm:mt-6">
+ <Link href="/auth/login">
+ <a className="inline-flex justify-center w-full rounded-sm border border-transparent shadow-sm px-4 py-2 bg-neutral-900 text-base font-medium text-white hover:bg-neutral-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-neutral-500 sm:text-sm">
+ Go back to the login page
+ </a>
+ </Link>
+ </div>
</div>
- );
+ </div>
+ </div>
+ );
}
diff --cc pages/auth/logout.tsx
index 7597d9affb2,94e60c2cec0..a066723c7c8
--- a/pages/auth/logout.tsx
+++ b/pages/auth/logout.tsx
@@@ -1,45 -1,41 +1,45 @@@
-import Head from 'next/head';
-import Link from 'next/link';
-import { CheckIcon } from '@heroicons/react/outline';
+import Head from "next/head";
+import Link from "next/link";
+import { CheckIcon } from "@heroicons/react/outline";
export default function Logout() {
- return (
- <div className="fixed z-50 inset-0 overflow-y-auto" aria-labelledby="modal-title" role="dialog" aria-modal="true">
- <Head>
- <title>Logged out - Calendso</title>
- <link rel="icon" href="/favicon.ico" />
- </Head>
- <div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
- <span className="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span>
- <div className="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6">
- <div>
- <div className="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-green-100">
- <CheckIcon className="h-6 w-6 text-green-600" />
- </div>
- <div className="mt-3 text-center sm:mt-5">
- <h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-title">
- You&apos;ve been logged out
- </h3>
- <div className="mt-2">
- <p className="text-sm text-gray-500">
- We hope to see you again soon!
- </p>
- </div>
- </div>
- </div>
- <div className="mt-5 sm:mt-6">
- <Link href="/auth/login">
- <a className="inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-black text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-black sm:text-sm">
- Go back to the login page
- </a>
- </Link>
- </div>
- </div>
+ return (
+ <div
- className="fixed z-10 inset-0 overflow-y-auto"
++ className="fixed z-50 inset-0 overflow-y-auto"
+ aria-labelledby="modal-title"
+ role="dialog"
+ aria-modal="true">
+ <Head>
+ <title>Logged out - Calendso</title>
+ <link rel="icon" href="/favicon.ico" />
+ </Head>
+ <div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
+ <span className="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">
+ &#8203;
+ </span>
+ <div className="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6">
+ <div>
+ <div className="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-green-100">
+ <CheckIcon className="h-6 w-6 text-green-600" />
</div>
+ <div className="mt-3 text-center sm:mt-5">
+ <h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-title">
+ You&apos;ve been logged out
+ </h3>
+ <div className="mt-2">
+ <p className="text-sm text-gray-500">We hope to see you again soon!</p>
+ </div>
+ </div>
+ </div>
+ <div className="mt-5 sm:mt-6">
+ <Link href="/auth/login">
- <a className="inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-black sm:text-sm">
++ <a className="inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-black text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-black sm:text-sm">
+ Go back to the login page
+ </a>
+ </Link>
+ </div>
</div>
- );
+ </div>
+ </div>
+ );
}
diff --cc pages/availability/index.tsx
index f0a5f3e23f2,c6a25f55d4c..701dd74f5ee
--- a/pages/availability/index.tsx
+++ b/pages/availability/index.tsx
@@@ -7,18 -7,20 +7,20 @@@ import { useRouter } from "next/router"
import { useRef, useState } from "react";
import { getSession, useSession } from "next-auth/client";
import { ClockIcon } from "@heroicons/react/outline";
-import Loader from '@components/Loader';
++import Loader from "@components/Loader";
export default function Availability(props) {
- const [, loading] = useSession();
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ const [session, loading] = useSession();
const router = useRouter();
- // const [showAddModal, setShowAddModal] = useState(false);
+ const [showAddModal, setShowAddModal] = useState(false);
const [successModalOpen, setSuccessModalOpen] = useState(false);
const [showChangeTimesModal, setShowChangeTimesModal] = useState(false);
- // const titleRef = useRef<HTMLInputElement>(); Everything is unused
- // const slugRef = useRef<HTMLInputElement>();
- // const descriptionRef = useRef<HTMLTextAreaElement>();
- // const lengthRef = useRef<HTMLInputElement>();
- // const isHiddenRef = useRef<HTMLInputElement>();
+ const titleRef = useRef<HTMLInputElement>();
+ const slugRef = useRef<HTMLInputElement>();
+ const descriptionRef = useRef<HTMLTextAreaElement>();
+ const lengthRef = useRef<HTMLInputElement>();
+ const isHiddenRef = useRef<HTMLInputElement>();
const startHoursRef = useRef<HTMLInputElement>();
const startMinsRef = useRef<HTMLInputElement>();
@@@ -55,10 -53,7 +53,7 @@@
m = m < 10 ? "0" + m : m;
return `${h}:${m}`;
}
-
- /*
- Currently unused, so it's commented out.
--
++ // eslint-disable-next-line @typescript-eslint/no-unused-vars
async function createEventTypeHandler(event) {
event.preventDefault();
@@@ -69,7 -64,7 +64,7 @@@
const enteredIsHidden = isHiddenRef.current.checked;
// TODO: Add validation
--
++ // eslint-disable-next-line @typescript-eslint/no-unused-vars
const response = await fetch("/api/availability/eventtype", {
method: "POST",
body: JSON.stringify({
@@@ -105,8 -100,8 +100,8 @@@
const bufferMins = enteredBufferHours * 60 + enteredBufferMins;
// TODO: Add validation
--
- await fetch("/api/availability/day", {
++ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ const response = await fetch("/api/availability/day", {
method: "PATCH",
body: JSON.stringify({ start: startMins, end: endMins, buffer: bufferMins }),
headers: {
diff --cc pages/availability/troubleshoot.tsx
index 611f066679d,cf33092bf52..b8100908e15
--- a/pages/availability/troubleshoot.tsx
+++ b/pages/availability/troubleshoot.tsx
@@@ -6,20 -6,17 +6,19 @@@ import dayjs from "dayjs"
import utc from "dayjs/plugin/utc";
import { GetServerSideProps } from "next";
import prisma from "@lib/prisma";
-import Loader from '@components/Loader';
++import Loader from "@components/Loader";
+
dayjs.extend(utc);
export default function Troubleshoot({ user }) {
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
const [session, loading] = useSession();
const [availability, setAvailability] = useState([]);
- const [selectedDate] = useState(dayjs());
++ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ const [selectedDate, setSelectedDate] = useState(dayjs());
if (loading) {
- return (
- <div className="loader">
- <span className="loader-inner"></span>
- </div>
- );
+ return <Loader />;
}
function convertMinsToHrsMins(mins) {
diff --cc pages/cancel/[uid].tsx
index a415e470230,bf1ebb323a3..06af00d1235
--- a/pages/cancel/[uid].tsx
+++ b/pages/cancel/[uid].tsx
@@@ -1,172 -1,168 +1,179 @@@
--import {useState} from 'react';
--import Head from 'next/head';
--import prisma from '../../lib/prisma';
--import {useRouter} from 'next/router';
--import dayjs from 'dayjs';
--import {CalendarIcon, ClockIcon, XIcon} from '@heroicons/react/solid';
--import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
--import isBetween from 'dayjs/plugin/isBetween';
--import utc from 'dayjs/plugin/utc';
--import timezone from 'dayjs/plugin/timezone';
--import {collectPageParameters, telemetryEventTypes, useTelemetry} from "../../lib/telemetry";
++import { useState } from "react";
++import Head from "next/head";
++import prisma from "../../lib/prisma";
++import { useRouter } from "next/router";
++import dayjs from "dayjs";
++import { CalendarIcon, ClockIcon, XIcon } from "@heroicons/react/solid";
++import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
++import isBetween from "dayjs/plugin/isBetween";
++import utc from "dayjs/plugin/utc";
++import timezone from "dayjs/plugin/timezone";
++import { collectPageParameters, telemetryEventTypes, useTelemetry } from "../../lib/telemetry";
dayjs.extend(isSameOrBefore);
dayjs.extend(isBetween);
dayjs.extend(utc);
dayjs.extend(timezone);
- function classNames(...classes) {
- return classes.filter(Boolean).join(' ')
- }
-
export default function Type(props) {
-- // Get router variables
-- const router = useRouter();
-- const { uid } = router.query;
++ // Get router variables
++ const router = useRouter();
++ const { uid } = router.query;
-- const [is24h, setIs24h] = useState(false);
-- const [loading, setLoading] = useState(false);
-- const [error, setError] = useState(null);
-- const telemetry = useTelemetry();
++ // eslint-disable-next-line @typescript-eslint/no-unused-vars
++ const [is24h, setIs24h] = useState(false);
++ const [loading, setLoading] = useState(false);
++ const [error, setError] = useState(null);
++ const telemetry = useTelemetry();
-- const cancellationHandler = async (event) => {
-- setLoading(true);
++ // eslint-disable-next-line @typescript-eslint/no-unused-vars
++ const cancellationHandler = async (event) => {
++ setLoading(true);
-- let payload = {
-- uid: uid
-- };
++ const payload = {
++ uid: uid,
++ };
-- telemetry.withJitsu(jitsu => jitsu.track(telemetryEventTypes.bookingCancelled, collectPageParameters()));
-- const res = await fetch(
-- '/api/cancel',
-- {
-- body: JSON.stringify(payload),
-- headers: {
-- 'Content-Type': 'application/json'
-- },
-- method: 'POST'
-- }
-- );
++ telemetry.withJitsu((jitsu) =>
++ jitsu.track(telemetryEventTypes.bookingCancelled, collectPageParameters())
++ );
++ const res = await fetch("/api/cancel", {
++ body: JSON.stringify(payload),
++ headers: {
++ "Content-Type": "application/json",
++ },
++ method: "POST",
++ });
-- if(res.status >= 200 && res.status < 300) {
-- router.push('/cancel/success?user=' + props.user.username + '&title=' + props.eventType.title);
-- } else {
-- setLoading(false);
-- setError("An error with status code " + res.status + " occurred. Please try again later.");
-- }
++ if (res.status >= 200 && res.status < 300) {
++ router.push("/cancel/success?user=" + props.user.username + "&title=" + props.eventType.title);
++ } else {
++ setLoading(false);
++ setError("An error with status code " + res.status + " occurred. Please try again later.");
}
++ };
-- return (
-- <div>
-- <Head>
-- <title>
-- Cancel {props.booking.title} | {props.user.name || props.user.username} |
-- Calendso
-- </title>
-- <link rel="icon" href="/favicon.ico"/>
-- </Head>
-- <main className="max-w-3xl mx-auto my-24">
- <div className="fixed z-10 inset-0 overflow-y-auto">
- <div className="fixed z-50 inset-0 overflow-y-auto">
-- <div
-- className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
-- <div className="fixed inset-0 my-4 sm:my-0 transition-opacity" aria-hidden="true">
-- <span className="hidden sm:inline-block sm:align-middle sm:h-screen"
-- aria-hidden="true">&#8203;</span>
-- <div
-- className="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6"
-- role="dialog" aria-modal="true" aria-labelledby="modal-headline">
-- {error && <div>
-- <div className="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100">
-- <XIcon className="h-6 w-6 text-red-600" />
-- </div>
-- <div className="mt-3 text-center sm:mt-5">
-- <h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-title">
-- {error}
-- </h3>
-- </div>
-- </div>}
-- {!error && <div>
-- <div
-- className="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100">
-- <XIcon className="h-6 w-6 text-red-600"/>
-- </div>
-- <div className="mt-3 text-center sm:mt-5">
-- <h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-headline">
-- Really cancel your booking?
-- </h3>
-- <div className="mt-2">
-- <p className="text-sm text-gray-500">
-- Instead, you could also reschedule it.
-- </p>
-- </div>
-- <div className="mt-4 border-t border-b py-4">
-- <h2 className="text-lg font-medium text-gray-600 mb-2">{props.booking.title}</h2>
-- <p className="text-gray-500 mb-1">
-- <ClockIcon className="inline-block w-4 h-4 mr-1 -mt-1"/>
-- {props.eventType.length} minutes
-- </p>
-- <p className="text-gray-500">
-- <CalendarIcon className="inline-block w-4 h-4 mr-1 -mt-1"/>
-- {dayjs.utc(props.booking.startTime).format((is24h ? 'H:mm' : 'h:mma') + ", dddd DD MMMM YYYY")}
-- </p>
-- </div>
-- </div>
-- </div>}
-- <div className="mt-5 sm:mt-6 text-center">
-- <div className="mt-5">
-- <button onClick={cancellationHandler} disabled={loading} type="button"
-- className="inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md text-red-700 bg-red-100 hover:bg-red-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:text-sm mx-2 btn-white">
-- Cancel
-- </button>
-- <button onClick={() => router.push('/reschedule/' + uid)} disabled={loading} type="button"
-- className="inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md text-gray-700 bg-gray-100 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500 sm:text-sm mx-2 btn-white">
-- Reschedule
-- </button>
-- </div>
-- </div>
-- </div>
-- </div>
++ return (
++ <div>
++ <Head>
++ <title>
++ Cancel {props.booking.title} | {props.user.name || props.user.username} | Calendso
++ </title>
++ <link rel="icon" href="/favicon.ico" />
++ </Head>
++ <main className="max-w-3xl mx-auto my-24">
++ <div className="fixed z-50 inset-0 overflow-y-auto">
++ <div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
++ <div className="fixed inset-0 my-4 sm:my-0 transition-opacity" aria-hidden="true">
++ <span className="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">
++ &#8203;
++ </span>
++ <div
++ className="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6"
++ role="dialog"
++ aria-modal="true"
++ aria-labelledby="modal-headline">
++ {error && (
++ <div>
++ <div className="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100">
++ <XIcon className="h-6 w-6 text-red-600" />
++ </div>
++ <div className="mt-3 text-center sm:mt-5">
++ <h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-title">
++ {error}
++ </h3>
+ </div>
++ </div>
++ )}
++ {!error && (
++ <div>
++ <div className="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100">
++ <XIcon className="h-6 w-6 text-red-600" />
++ </div>
++ <div className="mt-3 text-center sm:mt-5">
++ <h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-headline">
++ Really cancel your booking?
++ </h3>
++ <div className="mt-2">
++ <p className="text-sm text-gray-500">Instead, you could also reschedule it.</p>
++ </div>
++ <div className="mt-4 border-t border-b py-4">
++ <h2 className="text-lg font-medium text-gray-600 mb-2">{props.booking.title}</h2>
++ <p className="text-gray-500 mb-1">
++ <ClockIcon className="inline-block w-4 h-4 mr-1 -mt-1" />
++ {props.eventType.length} minutes
++ </p>
++ <p className="text-gray-500">
++ <CalendarIcon className="inline-block w-4 h-4 mr-1 -mt-1" />
++ {dayjs
++ .utc(props.booking.startTime)
++ .format((is24h ? "H:mm" : "h:mma") + ", dddd DD MMMM YYYY")}
++ </p>
++ </div>
+ </div>
++ </div>
++ )}
++ <div className="mt-5 sm:mt-6 text-center">
++ <div className="mt-5">
++ <button
++ onClick={cancellationHandler}
++ disabled={loading}
++ type="button"
++ className="inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md text-red-700 bg-red-100 hover:bg-red-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:text-sm mx-2 btn-white">
++ Cancel
++ </button>
++ <button
++ onClick={() => router.push("/reschedule/" + uid)}
++ disabled={loading}
++ type="button"
++ className="inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md text-gray-700 bg-gray-100 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500 sm:text-sm mx-2 btn-white">
++ Reschedule
++ </button>
++ </div>
</div>
-- </main>
++ </div>
++ </div>
++ </div>
</div>
-- );
++ </main>
++ </div>
++ );
}
export async function getServerSideProps(context) {
-- const booking = await prisma.booking.findFirst({
-- where: {
-- uid: context.query.uid,
-- },
++ const booking = await prisma.booking.findFirst({
++ where: {
++ uid: context.query.uid,
++ },
++ select: {
++ id: true,
++ title: true,
++ description: true,
++ startTime: true,
++ endTime: true,
++ attendees: true,
++ eventType: true,
++ user: {
select: {
-- id: true,
-- title: true,
-- description: true,
-- startTime: true,
-- endTime: true,
-- attendees: true,
-- eventType: true,
-- user: {
-- select: {
-- id: true,
-- username: true,
-- name: true,
-- }
-- }
-- }
-- });
++ id: true,
++ username: true,
++ name: true,
++ },
++ },
++ },
++ });
-- // Workaround since Next.js has problems serializing date objects (see https://github.com/vercel/next.js/issues/11993)
-- const bookingObj = Object.assign({}, booking, {
-- startTime: booking.startTime.toString(),
-- endTime: booking.endTime.toString()
-- });
++ // Workaround since Next.js has problems serializing date objects (see https://github.com/vercel/next.js/issues/11993)
++ const bookingObj = Object.assign({}, booking, {
++ startTime: booking.startTime.toString(),
++ endTime: booking.endTime.toString(),
++ });
-- return {
-- props: {
-- user: booking.user,
-- eventType: booking.eventType,
-- booking: bookingObj
-- },
-- }
++ return {
++ props: {
++ user: booking.user,
++ eventType: booking.eventType,
++ booking: bookingObj,
++ },
++ };
}
diff --cc pages/cancel/success.tsx
index 749de20e885,d6b597f15e3..cbb4f1f4198
--- a/pages/cancel/success.tsx
+++ b/pages/cancel/success.tsx
@@@ -1,98 -1,91 +1,92 @@@
- import {useState} from 'react';
--import Head from 'next/head';
--import prisma from '../../lib/prisma';
--import {useRouter} from 'next/router';
--import dayjs from 'dayjs';
--import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
--import isBetween from 'dayjs/plugin/isBetween';
--import utc from 'dayjs/plugin/utc';
--import timezone from 'dayjs/plugin/timezone';
--import {CheckIcon} from "@heroicons/react/outline";
++import Head from "next/head";
++import prisma from "../../lib/prisma";
++import { useRouter } from "next/router";
++import dayjs from "dayjs";
++import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
++import isBetween from "dayjs/plugin/isBetween";
++import utc from "dayjs/plugin/utc";
++import timezone from "dayjs/plugin/timezone";
++import { CheckIcon } from "@heroicons/react/outline";
dayjs.extend(isSameOrBefore);
dayjs.extend(isBetween);
dayjs.extend(utc);
dayjs.extend(timezone);
- function classNames(...classes) {
- return classes.filter(Boolean).join(' ')
- }
-
export default function Type(props) {
-- // Get router variables
-- const router = useRouter();
++ // Get router variables
++ const router = useRouter();
- const [is24h, setIs24h] = useState(false);
-
-- return (
-- <div>
-- <Head>
-- <title>
-- Cancelled {props.title} | {props.user.name || props.user.username} |
-- Calendso
-- </title>
-- <link rel="icon" href="/favicon.ico"/>
-- </Head>
-- <main className="max-w-3xl mx-auto my-24">
- <div className="fixed z-10 inset-0 overflow-y-auto">
- <div className="fixed z-50 inset-0 overflow-y-auto">
-- <div
-- className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
-- <div className="fixed inset-0 my-4 sm:my-0 transition-opacity" aria-hidden="true">
-- <span className="hidden sm:inline-block sm:align-middle sm:h-screen"
-- aria-hidden="true">&#8203;</span>
-- <div
-- className="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6"
-- role="dialog" aria-modal="true" aria-labelledby="modal-headline">
-- <div>
-- <div className="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-green-100">
-- <CheckIcon className="h-6 w-6 text-green-600" />
-- </div>
-- <div className="mt-3 text-center sm:mt-5">
-- <h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-headline">
-- Cancellation successful
-- </h3>
-- <div className="mt-2">
-- <p className="text-sm text-gray-500">
-- Feel free to pick another event anytime.
-- </p>
-- </div>
-- </div>
-- </div>
-- <div className="mt-5 sm:mt-6 text-center">
-- <div className="mt-5">
-- <button onClick={() => router.push('/' + props.user.username)} type="button"
-- className="inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md text-gray-700 bg-gray-100 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500 sm:text-sm mx-2 btn-white">
-- Pick another
-- </button>
-- </div>
-- </div>
-- </div>
-- </div>
++ return (
++ <div>
++ <Head>
++ <title>
++ Cancelled {props.title} | {props.user.name || props.user.username} | Calendso
++ </title>
++ <link rel="icon" href="/favicon.ico" />
++ </Head>
++ <main className="max-w-3xl mx-auto my-24">
++ <div className="fixed z-50 inset-0 overflow-y-auto">
++ <div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
++ <div className="fixed inset-0 my-4 sm:my-0 transition-opacity" aria-hidden="true">
++ <span className="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">
++ &#8203;
++ </span>
++ <div
++ className="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6"
++ role="dialog"
++ aria-modal="true"
++ aria-labelledby="modal-headline">
++ <div>
++ <div className="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-green-100">
++ <CheckIcon className="h-6 w-6 text-green-600" />
++ </div>
++ <div className="mt-3 text-center sm:mt-5">
++ <h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-headline">
++ Cancellation successful
++ </h3>
++ <div className="mt-2">
++ <p className="text-sm text-gray-500">Feel free to pick another event anytime.</p>
</div>
++ </div>
+ </div>
- </main>
++ <div className="mt-5 sm:mt-6 text-center">
++ <div className="mt-5">
++ <button
++ onClick={() => router.push("/" + props.user.username)}
++ type="button"
++ className="inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md text-gray-700 bg-gray-100 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500 sm:text-sm mx-2 btn-white">
++ Pick another
++ </button>
++ </div>
+ </div>
- </main>
++ </div>
++ </div>
++ </div>
</div>
-- );
++ </main>
++ </div>
++ );
}
export async function getServerSideProps(context) {
-- const user = await prisma.user.findFirst({
-- where: {
-- username: context.query.user,
-- },
-- select: {
-- username: true,
-- name: true,
-- bio: true,
-- avatar: true,
-- eventTypes: true
-- }
-- });
++ const user = await prisma.user.findFirst({
++ where: {
++ username: context.query.user,
++ },
++ select: {
++ username: true,
++ name: true,
++ bio: true,
++ avatar: true,
++ eventTypes: true,
++ },
++ });
-- return {
-- props: {
-- user,
-- title: context.query.title
-- },
-- }
++ return {
++ props: {
++ user,
++ title: context.query.title,
++ },
++ };
}
diff --cc pages/event-types/[type].tsx
index b4b5bcef7c8,7acf719e3f4..6042020f7ac
--- a/pages/event-types/[type].tsx
+++ b/pages/event-types/[type].tsx
@@@ -14,15 -14,14 +14,14 @@@ import { Disclosure, RadioGroup } from
import { PhoneIcon, XIcon } from "@heroicons/react/outline";
import { EventTypeCustomInput, EventTypeCustomInputType } from "@lib/eventTypeInput";
import {
- LocationMarkerIcon,
- LinkIcon,
- PlusIcon,
- DocumentIcon,
ChevronRightIcon,
ClockIcon,
- TrashIcon,
+ DocumentIcon,
ExternalLinkIcon,
+ LinkIcon,
+ LocationMarkerIcon,
- PencilIcon,
+ PlusIcon,
+ TrashIcon,
} from "@heroicons/react/solid";
import dayjs from "dayjs";
diff --cc pages/index.tsx
index 894d14ea6fb,9901e8a01b7..f99ba8b4b04
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@@ -6,6 -7,9 +7,7 @@@ function RedirectPage()
router.push("/event-types");
return;
}
- return (
- <Loader/>
- );
++ return <Loader />;
}
RedirectPage.getInitialProps = (ctx) => {
diff --cc pages/integrations/[integration].tsx
index df352973431,9c24e777242..56541be7431
--- a/pages/integrations/[integration].tsx
+++ b/pages/integrations/[integration].tsx
@@@ -4,7 -4,8 +4,8 @@@ import { getIntegrationName, getIntegra
import Shell from "../../components/Shell";
import { useState } from "react";
import { useRouter } from "next/router";
- import { useSession } from "next-auth/client";
-import { useSession, getSession } from "next-auth/client";
++import { getSession, useSession } from "next-auth/client";
+ import Loader from "@components/Loader";
export default function Integration(props) {
const router = useRouter();
diff --cc pages/integrations/index.tsx
index 6b965741b40,55294b4dfba..67deac06e22
--- a/pages/integrations/index.tsx
+++ b/pages/integrations/index.tsx
@@@ -4,31 -4,18 +4,18 @@@ import prisma from "../../lib/prisma"
import Shell from "../../components/Shell";
import { useEffect, useState } from "react";
import { getSession, useSession } from "next-auth/client";
- import {
- CalendarIcon,
- CheckCircleIcon,
- ChevronRightIcon,
- PlusIcon,
- XCircleIcon,
- } from "@heroicons/react/solid";
+ import { CheckCircleIcon, ChevronRightIcon, PlusIcon, XCircleIcon } from "@heroicons/react/solid";
import { InformationCircleIcon } from "@heroicons/react/outline";
import { Switch } from "@headlessui/react";
+ import Loader from "@components/Loader";
+ import classNames from "@lib/classNames";
-import { Dialog, DialogClose, DialogContent, DialogTrigger, DialogHeader } from "@components/Dialog";
++import { Dialog, DialogClose, DialogContent, DialogHeader, DialogTrigger } from "@components/Dialog";
- export default function Home({ integrations }) {
- const [, loading] = useSession();
-
- const [showAddModal, setShowAddModal] = useState(false);
- const [showSelectCalendarModal, setShowSelectCalendarModal] = useState(false);
+ export default function IntegrationHome({ integrations }) {
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ const [session, loading] = useSession();
const [selectableCalendars, setSelectableCalendars] = useState([]);
- function toggleAddModal() {
- setShowAddModal(!showAddModal);
- }
-
- function toggleShowCalendarModal() {
- setShowSelectCalendarModal(!showSelectCalendarModal);
- }
-
function loadCalendars() {
fetch("api/availability/calendar")
.then((response) => response.json())
diff --cc pages/settings/embed.tsx
index 5d46ce1944d,643350e6e08..259a7a66f65
--- a/pages/settings/embed.tsx
+++ b/pages/settings/embed.tsx
@@@ -2,18 -2,15 +2,15 @@@ import Head from "next/head"
import prisma from "../../lib/prisma";
import Shell from "../../components/Shell";
import SettingsShell from "../../components/Settings";
-import { useSession, getSession } from "next-auth/client";
-import Loader from '@components/Loader';
+import { getSession, useSession } from "next-auth/client";
++import Loader from "@components/Loader";
export default function Embed(props) {
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
const [session, loading] = useSession();
- //const router = useRouter(); Unused
if (loading) {
- return (
- <div className="loader">
- <span className="loader-inner"></span>
- </div>
- );
+ return <Loader />;
}
return (
diff --cc pages/settings/password.tsx
index d5ade539dec,b7cb51cbca2..cd4fd241771
--- a/pages/settings/password.tsx
+++ b/pages/settings/password.tsx
@@@ -4,10 -4,13 +4,13 @@@ import prisma from "../../lib/prisma"
import Modal from "../../components/Modal";
import Shell from "../../components/Shell";
import SettingsShell from "../../components/Settings";
-import { useSession, getSession } from "next-auth/client";
+import { getSession, useSession } from "next-auth/client";
+ import Loader from "@components/Loader";
export default function Settings() {
- const [, loading] = useSession();
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ const [session, loading] = useSession();
+
const [successModalOpen, setSuccessModalOpen] = useState(false);
const oldPasswordRef = useRef<HTMLInputElement>();
const newPasswordRef = useRef<HTMLInputElement>();
diff --cc public/calendso-logo-word.svg
index cfa67015e73,e4592085e6b..1a195915bb9
--- a/public/calendso-logo-word.svg
+++ b/public/calendso-logo-word.svg
@@@ -1,11 -1,41 +1,41 @@@
- <svg width="104" height="20" viewBox="0 0 104 20" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path d="M0 1C0 0.447715 0.447715 0 1 0H19C19.5523 0 20 0.447715 20 1V19C20 19.5523 19.5523 20 19 20H10.4142C10.149 20 9.89464 19.8946 9.70711 19.7071L5.21739 15.2174L0.292893 10.2929C0.105357 10.1054 0 9.851 0 9.58579V1Z" fill="black"/>
- <path d="M32.0349 15.426C34.2609 15.426 35.8783 14.226 36.1914 12.313L33.5827 11.7391C33.4262 12.7826 32.887 13.3565 32.0175 13.3565C30.9218 13.3565 30.2957 12.4173 30.2957 10.7826C30.2957 9.26951 30.9392 8.36516 32.0001 8.36516C32.8522 8.36516 33.4088 8.90429 33.5653 9.93038L36.1914 9.39125C35.8609 7.42603 34.3479 6.31299 32.0696 6.31299C29.2175 6.31299 27.4609 8.03473 27.4609 10.8695C27.4609 13.6347 29.287 15.426 32.0349 15.426Z" fill="black"/>
- <path d="M40.0978 15.426C41.4543 15.426 42.5673 14.8173 43.0021 13.8434C43.0195 14.3304 43.0543 14.7999 43.1412 15.2173H45.8543C45.6978 14.6782 45.6108 13.826 45.6108 12.7999V9.91299C45.6108 7.40864 44.3586 6.31299 41.5586 6.31299C39.0891 6.31299 37.5238 7.46082 37.3847 9.39125H40.1499C40.2021 8.55647 40.6891 8.10429 41.5412 8.10429C42.4108 8.10429 42.8282 8.53908 42.8282 9.53038V9.82603L40.7238 10.1217C39.4021 10.2956 38.5673 10.5739 37.9934 10.9739C37.4021 11.3912 37.1065 12.0347 37.1065 12.8521C37.1065 14.3999 38.3065 15.426 40.0978 15.426ZM41.1412 13.6521C40.4108 13.6521 39.9238 13.2521 39.9238 12.6434C39.9238 11.9999 40.3934 11.6347 41.4195 11.4434L42.9151 11.1999V11.8956C42.9151 12.9391 42.2021 13.6521 41.1412 13.6521Z" fill="black"/>
- <path d="M50.6759 2.60864H47.8759V15.2173H50.6759V2.60864Z" fill="black"/>
- <path d="M61.1052 10.6608C61.1052 7.8956 59.5748 6.31299 56.8444 6.31299C54.1313 6.31299 52.427 8.10429 52.427 10.9565C52.427 13.7739 54.1661 15.426 57.0357 15.426C58.8444 15.426 60.3226 14.5739 61.0183 13.1478L58.9661 12.2086C58.5661 13.0086 57.9226 13.426 57.0704 13.426C55.9052 13.426 55.0878 12.6782 55.0704 11.4956H61.1052V10.6608ZM58.4096 9.93038H55.0704C55.1052 8.6956 55.7139 7.96516 56.7922 7.96516C57.8357 7.96516 58.4096 8.62603 58.4096 9.86082V9.93038Z" fill="black"/>
- <path d="M62.8535 15.2173H65.6535V10.5217C65.6535 9.18256 66.1926 8.43473 67.1665 8.43473C68.0535 8.43473 68.4709 9.00864 68.4709 10.2086V15.2173H71.2535V9.82603C71.2535 7.4956 70.2969 6.2956 68.4187 6.2956C67.0969 6.2956 66.1404 6.92169 65.5317 8.19125V6.52169H62.8535V15.2173Z" fill="black"/>
- <path d="M76.3209 15.426C77.5904 15.426 78.6339 14.7652 79.0687 13.7217V15.2173H81.7122V2.60864H78.9295V7.6869C78.4948 6.78256 77.6252 6.31299 76.4774 6.31299C74.3035 6.31299 72.8426 8.13908 72.8426 10.9043C72.8426 13.6173 74.2339 15.426 76.3209 15.426ZM77.4165 13.4956C76.3556 13.4956 75.7122 12.4869 75.7122 10.8521C75.7122 9.18256 76.3209 8.24342 77.3817 8.24342C78.373 8.24342 78.9643 9.06082 78.9643 10.5391V11.2869C78.9643 12.6434 78.373 13.4956 77.4165 13.4956Z" fill="black"/>
- <path d="M87.5423 15.426C89.9771 15.426 91.3858 14.3304 91.3858 12.5565C91.3858 11.0608 90.6554 10.1391 88.7945 9.87821L87.2467 9.63473C86.4815 9.53038 86.2206 9.30429 86.2206 8.8869C86.2206 8.39995 86.6032 8.17386 87.438 8.17386C88.5162 8.17386 89.3858 8.60864 90.0293 9.33908L91.4728 8.03473C90.7597 6.95647 89.2815 6.31299 87.5249 6.31299C85.1249 6.31299 83.6988 7.37386 83.6988 9.06082C83.6988 10.5391 84.5858 11.4608 86.4641 11.7391L87.7162 11.913C88.6728 12.0521 88.951 12.2434 88.951 12.7652C88.951 13.2521 88.4988 13.5304 87.5945 13.5304C86.3945 13.5304 85.4554 13.0608 84.8467 12.1217L83.2293 13.3391C84.0641 14.713 85.6293 15.426 87.5423 15.426Z" fill="black"/>
- <path d="M96.9109 15.426C99.4848 15.426 101.433 13.8434 101.433 10.8521C101.433 7.86082 99.4848 6.31299 96.9109 6.31299C94.3544 6.31299 92.4066 7.86082 92.4066 10.8521C92.4066 13.8434 94.3544 15.426 96.9109 15.426ZM96.9109 13.4956C95.8327 13.4956 95.1892 12.626 95.1892 10.8521C95.1892 9.06082 95.8327 8.24342 96.9109 8.24342C98.0066 8.24342 98.6501 9.06082 98.6501 10.8521C98.6501 12.626 98.0066 13.4956 96.9109 13.4956Z" fill="black"/>
+ <?xml version="1.0" encoding="utf-8"?>
+ <!-- Generator: Adobe Illustrator 25.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- viewBox="0 0 427 97.5" style="enable-background:new 0 0 427 97.5;" xml:space="preserve">
++<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
++ viewBox="0 0 427 97.5" style="enable-background:new 0 0 427 97.5;" xml:space="preserve">
+ <style type="text/css">
+ .st0{fillRule:evenodd;clipRule:evenodd;fill:#104D86;}
+ </style>
+ <path class="st0" d="M27.5,88.2c-4.9,0-9.7-1.2-14-3.6c-4.2-2.4-7.6-5.8-9.9-10c-4.8-8.8-4.8-19.4,0-28.2c2.3-4.2,5.8-7.7,10-10
+ c4.3-2.4,9.1-3.7,14-3.6c6-0.1,11.8,1.7,16.5,5.3s8,8.7,9.9,15.4H42.8c-1.3-3-3.4-5.5-6.2-7.2c-2.6-1.6-5.6-2.5-8.7-2.5
+ c-2.8,0-5.6,0.7-8.1,2s-4.7,3.3-6.1,5.8c-3,5.3-3.1,11.9-0.2,17.3c1.4,2.5,3.4,4.5,5.8,6s5.2,2.3,8,2.2c7.2,0,12.4-3.3,15.4-9.9
+ h11.4c-1.1,4.2-3.1,8.1-5.8,11.5c-2.5,3-5.6,5.4-9.2,7C35.5,87.4,31.5,88.1,27.5,88.2L27.5,88.2z M99.6,82.1
+ c-4.6,4-10.6,6.2-16.8,6.1c-4.9,0-9.7-1.2-14-3.6c-4.1-2.4-7.5-5.8-9.8-10c-2.5-4.5-3.7-9.5-3.6-14.6c-0.1-15,11.9-27.2,26.9-27.3
+ c0.1,0,0.2,0,0.3,0c6.4-0.2,12.6,2.1,17.5,6.2v-5.2h11.5V87h-12V82.1z M83.5,43.7c-3,0-5.9,0.7-8.4,2.2c-2.5,1.4-4.6,3.5-6,6
+ c-1.5,2.5-2.2,5.4-2.2,8.4c-0.2,4.5,1.5,8.9,4.7,12.2c3.2,3.2,7.6,4.9,12.1,4.8c2.9,0,5.8-0.7,8.3-2.2c2.5-1.4,4.5-3.5,5.9-6
+ c2.9-5.3,2.9-11.7,0-17c-1.4-2.5-3.5-4.6-6-6C89.3,44.5,86.4,43.8,83.5,43.7L83.5,43.7z M122,14.8h9.7V87H122
+ C122,87.1,122,14.8,122,14.8z M149.8,65.2c0.5,2.3,1.5,4.4,3,6.3c1.4,1.8,3.3,3.2,5.4,4.1c2.2,1,4.6,1.5,7,1.5
+ c2.8,0.1,5.6-0.5,8.1-1.8c2.4-1.4,4.3-3.4,5.5-5.9h11.9c-2.7,6.5-6.2,11.2-10.4,14.2c-4.4,3.1-9.8,4.7-15.2,4.5
+ c-4.8,0.1-9.6-1.2-13.8-3.6c-4.1-2.4-7.5-5.8-9.7-10c-2.4-4.3-3.6-9.2-3.5-14.1c-0.1-4.9,1.1-9.8,3.5-14.1c2.3-4.2,5.7-7.6,9.8-10
+ c8.6-4.8,19.2-4.8,27.7,0.1c4.1,2.4,7.4,6,9.6,10.2c2.2,4.3,3.3,9.1,3.3,14c0,1-0.1,2.5-0.3,4.5h-41.9V65.2z M165.2,43.6
+ c-3.4-0.1-6.8,0.9-9.6,2.9c-2.7,2-4.7,4.8-5.6,8h30.2c-0.9-3.2-2.9-6-5.6-8C171.9,44.5,168.6,43.5,165.2,43.6z M234.8,57.3
+ c0-4.7-1-8.2-3-10.5s-4.9-3.5-8.7-3.5c-2.3,0-4.6,0.7-6.5,2c-2,1.3-3.7,3.2-4.8,5.4c-1.2,2.3-1.8,4.8-1.8,7.4V87h-11.2V33.8h10.5
+ v4.8c3.9-3.9,9.3-6,14.9-5.8c3.9,0,7.7,1,11,3s6,4.8,7.9,8.2c1.9,3.5,2.9,7.5,2.9,11.5v31.6h-11.2L234.8,57.3L234.8,57.3z
+ M296.7,82.2c-2.4,1.9-5,3.4-7.9,4.4c-3,1-6.2,1.5-9.4,1.5c-4.8,0.1-9.6-1.2-13.8-3.7c-4.1-2.4-7.5-5.9-9.8-10.1
+ c-2.4-4.3-3.6-9.1-3.6-14.1c-0.1-5.1,1.1-10.1,3.5-14.7c2.3-4.2,5.7-7.7,9.8-10.1c4.3-2.5,9.2-3.8,14.1-3.7c3.1,0,6.1,0.5,9,1.4
+ c2.8,0.9,5.4,2.3,7.8,4.1V14.9h11.3v72.2h-11.1L296.7,82.2L296.7,82.2z M280.4,43.1c-3,0-5.9,0.7-8.4,2.2c-2.5,1.4-4.6,3.5-6,6
+ c-1.5,2.6-2.2,5.5-2.2,8.5c-0.2,4.6,1.5,9.1,4.7,12.4c3.2,3.2,7.5,5,12.1,4.8c2.9,0,5.8-0.7,8.3-2.3c2.5-1.5,4.5-3.6,5.9-6.1
+ c2.9-5.4,2.9-11.8,0-17.2C291.8,46.2,286.3,43,280.4,43.1z M335.8,88.2c-3.8,0.1-7.5-0.8-10.8-2.4c-3.1-1.6-5.7-4-7.5-7
+ c-1.9-3.3-2.9-7.1-3-10.9h11c0,2.7,1.1,5.3,3.1,7.1c2.1,1.7,4.8,2.6,7.5,2.5c1.8,0,3.6-0.2,5.3-0.8c1.3-0.4,2.4-1.2,3.3-2.2
+ c0.7-0.8,1.1-1.9,1.1-3c0.1-1.2-0.4-2.4-1.2-3.2c-0.5-0.5-1.1-0.8-1.7-1.2c-0.7-0.3-1.4-0.6-2.2-0.8c-1.8-0.4-3.9-0.9-6.1-1.3
+ c-1.8-0.2-3.5-0.6-5.1-1s-3.5-1-5-1.6c-0.8-0.2-1.6-0.6-2.4-1l-1-0.7c-0.4-0.4-0.8-0.7-1.2-1c-0.7-0.5-1.3-1.1-1.8-1.8
+ c-0.6-0.8-1.1-1.7-1.5-2.6c-0.9-2-1.3-4.2-1.2-6.4c0-3,0.9-6,2.7-8.5c1.8-2.5,4.3-4.5,7.2-5.7c3.3-1.4,6.8-2.1,10.3-2
+ c3.6-0.1,7.1,0.7,10.3,2.4c3,1.5,5.4,3.8,7.1,6.7c1.8,3.2,2.7,6.8,2.7,10.4H345c-0.1-3-1-5.2-2.7-6.7s-4-2.3-7-2.3s-5.2,0.5-6.8,1.5
+ c-1.4,0.8-2.3,2.2-2.3,3.8c-0.1,1,0.3,2,1,2.6c0.6,0.5,1.2,0.9,1.8,1.2c0.6,0.3,1.3,0.5,2,0.7c0.8,0.2,1.7,0.4,2.7,0.6l3.1,0.5
+ c3.4,0.5,6.7,1.2,10,2.2c2.6,0.8,5,2.3,6.7,4.5c1.8,2.4,2.9,5.3,3,8.4l0.1,1.8c0.1,3.2-0.9,6.4-2.8,9.1s-4.5,4.8-7.5,6
+ C343.2,87.6,339.5,88.3,335.8,88.2L335.8,88.2z M412.4,74.6c-2.4,4.2-5.9,7.7-10.2,10c-4.5,2.4-9.6,3.7-14.8,3.6
+ c-4.9,0.1-9.7-1.2-14-3.6c-4.2-2.4-7.7-5.8-10.1-9.9c-2.5-4.2-3.8-9-3.7-13.8c-0.1-5.1,1.1-10.1,3.6-14.6c2.4-4.2,6-7.7,10.2-10
+ c4.4-2.4,9.3-3.6,14.3-3.6s9.9,1.2,14.3,3.6c4.2,2.3,7.8,5.7,10.2,9.9c2.4,4.3,3.7,9.2,3.6,14.2C416.1,65.4,414.8,70.3,412.4,74.6
+ L412.4,74.6z M387.8,43.3c-3,0-6,0.8-8.6,2.3s-4.8,3.6-6.3,6.2c-1.5,2.6-2.3,5.5-2.3,8.5c0,4.6,1.8,9,5.2,12.2
+ c3.2,3.4,7.6,5.3,12.3,5.3c3,0,6-0.8,8.5-2.4c2.6-1.5,4.7-3.7,6.2-6.3c1.5-2.6,2.3-5.6,2.3-8.6s-0.8-6-2.3-8.6s-3.7-4.7-6.3-6.2
+ C393.9,44.1,390.9,43.3,387.8,43.3z"/>
</svg>