Skip to content

Commit 7be60b4

Browse files
committed
Runs format script
1 parent bc88fd0 commit 7be60b4

File tree

18 files changed

+180
-80
lines changed

18 files changed

+180
-80
lines changed

CODE_OF_CONDUCT.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
25+
- Focusing on what is best not just for us as individuals, but for the
2626
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
30+
- The use of sexualized language or imagery, and sexual attention or
3131
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
3535
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
36+
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

CONTRIBUTING.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,19 @@ Contributions are what make the open source community such an amazing place to b
88

99
### Legend
1010

11-
✅ = has knowledge
11+
✅ = has knowledge
1212

1313
🥇 = is their main priority
1414

15-
⚠️ = is the only one with knowledge
15+
⚠️ = is the only one with knowledge
1616

17-
👀 = has no knowledge but wants to be onboarded
17+
👀 = has no knowledge but wants to be onboarded
1818

1919
<picture>
2020
<source media="(prefers-color-scheme: dark)" srcset="https://dynamic-svgs.vercel.app/image.svg?dark">
2121
<img alt="Areas of expertise table" src="https://dynamic-svgs.vercel.app/image.svg">
2222
</picture>
2323

24-
25-
26-
2724
## Developing
2825

2926
The development branch is `main`. This is the branch that all pull

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ Special thanks to these amazing projects which help power Cal.com:
437437
- [Day.js](https://day.js.org/)
438438
- [Tailwind CSS](https://tailwindcss.com/)
439439
- [Prisma](https://prisma.io/)
440-
441-
<a href="https://jitsu.com/?utm_source=cal.com-gihub"><img height="40px" src="https://jitsu.com/img/powered-by-jitsu.png?gh=true" alt="Jitsu.com"></a>
440+
441+
<a href="https://jitsu.com/?utm_source=cal.com-gihub"><img height="40px" src="https://jitsu.com/img/powered-by-jitsu.png?gh=true" alt="Jitsu.com"></a>
442442

443443
Cal.com is an [open startup](https://cal.com/open) and [Jitsu](https://github.com/jitsucom/jitsu) (an open-source Segment alternative) helps us to track most of the usage metrics.

packages/app-store-cli/readme.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
- Create a folder in packages/app-store/{APP_NAME} = {APP}
44
- Fill it with a sample app
5-
- Modify {APP}/_metadata.ts with the data provided
5+
- Modify {APP}/\_metadata.ts with the data provided
66

77
## Approach
88

99
- appType is derived from App Name(a slugify operation that makes a string that can be used as a director name, a variable name for imports and a URL path).
1010
- appType is then used to create the app directory. It becomes `config.type` of config.json. config.type is the value used to create an entry in App table and retrieve any apps or credentials. It also becomes App.dirName
11-
- dirnames that don't start with _ are considered apps in packages/app-store and based on those apps .generated.ts* files are created. This allows pre-cli apps to keep on working.
12-
- app directory is populated with app-store/_baseApp with newly updated config.json and package.json
11+
- dirnames that don't start with \_ are considered apps in packages/app-store and based on those apps .generated.ts\* files are created. This allows pre-cli apps to keep on working.
12+
- app directory is populated with app-store/\_baseApp with newly updated config.json and package.json
1313
- `packages/prisma/seed-app-store.config.json` is updated with new app.
1414

1515
NOTE: After app-store-cli is live, Credential.appId and Credential.type would be same for new apps. For old apps they would remain different. Credential.type would be used to identify credentials in integrations call and Credential.appId/App.slug would be used to identify apps.
@@ -20,20 +20,20 @@ If we rename all existing apps to their slug names, we can remove type and then
2020
- Beta Release
2121
- Show a warning somewhere that app directory must not be renamed manually, edit command must be used.
2222
- edit command should ask for slug and verify if it exists
23-
2423
- Improvements
2524
- Prefill fields in edit command
2625
- Merge app-store:watch and app-store commands, introduce app-store --watch
2726
- Allow inputs in non interactive way as well - That would allow easily copy pasting commands.
2827
- App already exists check. Ask user to run edit/regenerate command
2928
- An app created through CLI should be able to completely skip API validation for testing purposes. Credentials should be created with no API specified specific to the app. It would allow us to test any app end to end not worrying about the corresponding API endpoint.
30-
- Require assets path relative to app dir.
29+
- Require assets path relative to app dir.
3130

3231
## Roadmap
32+
3333
- Avoid delete and edit on apps created outside of cli
3434
- Someone can add wrong directory name(which doesn't satisfy slug requirements) manually. How to handle it.
3535
- Allow editing and updating app from the cal app itself - including assets uploading when developing locally.
3636
- Improvements in shared code across app
3737
- Use baseApp/api/add.ts for all apps with configuration of credentials creation and redirection URL.
3838
- Delete creation side effects if App creation fails - Might make debugging difficult
39-
- This is so that web app doesn't break because of additional app folders or faulty db-seed
39+
- This is so that web app doesn't break because of additional app folders or faulty db-seed

packages/app-store/utils.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ export function getLocationTypes(): string[] {
113113

114114
export function getLocationLabels(t: TFunction) {
115115
const defaultLocationLabels = defaultLocations.reduce((locations, location) => {
116-
if(location.label === "attendee_phone_number") {
117-
locations[location.value] = t("your_number")
118-
return locations
116+
if (location.label === "attendee_phone_number") {
117+
locations[location.value] = t("your_number");
118+
return locations;
119119
}
120-
if(location.label === "host_phone_number") {
121-
locations[location.value] = `${t("phone_call")} (${t("number_provided")})`
122-
return locations
120+
if (location.label === "host_phone_number") {
121+
locations[location.value] = `${t("phone_call")} (${t("number_provided")})`;
122+
return locations;
123123
}
124124
locations[location.value] = t(location.label);
125125
return locations;

packages/app-store/zapier/README.md

+27-27
Original file line numberDiff line numberDiff line change
@@ -13,49 +13,49 @@ If you run it on localhost, check out the [additional information](https://githu
1313
2. If not redirected to developer account, go to: [Zapier Developer Account](https://developer.zapier.com)
1414
3. Click **Start a Zapier Integration**
1515
4. Create Integration
16-
- Name: Cal.com
17-
- Description: Cal.com is a scheduling infrastructure for absolutely everyone.
18-
- Intended Audience: Private
19-
- Role: choose whatever is appropriate
20-
- Category: Calendar
16+
- Name: Cal.com
17+
- Description: Cal.com is a scheduling infrastructure for absolutely everyone.
18+
- Intended Audience: Private
19+
- Role: choose whatever is appropriate
20+
- Category: Calendar
2121

2222
## Authentication
2323

2424
1. Go to Authentication, choose Api key and click save
2525
2. Click Add Fields
26-
- Key: apiKey
27-
- Check the box ‘is this field required?’
26+
- Key: apiKey
27+
- Check the box ‘is this field required?’
2828
3. Configure a Test
29-
- Test: GET ```<baseUrl>```/api/integrations/zapier/listBookings
30-
- URL Params
31-
- apiKey: {{bundle.authData.apiKey}}
29+
- Test: GET `<baseUrl>`/api/integrations/zapier/listBookings
30+
- URL Params
31+
- apiKey: {{bundle.authData.apiKey}}
3232
4. Test your authentication —> First you have to install Zapier in the Cal.com App Store and generate an API key, use this API key to test your authentication (only zapier Api key works)
33-
33+
3434
## Triggers
3535

3636
Booking created, Booking rescheduled, Booking cancelled
37-
37+
3838
### Booking created
3939

4040
1. Settings
41-
- Key: booking_created
42-
- Name: Booking created
43-
- Noun: Booking
44-
- Description: Triggers when a new booking is created
41+
- Key: booking_created
42+
- Name: Booking created
43+
- Noun: Booking
44+
- Description: Triggers when a new booking is created
4545
2. API Configuration (apiKey is set automatically, leave it like it is):
46-
- Trigger Type: REST Hook
47-
- Subscribe: POST ```<baseUrl>```/api/integrations/zapier/addSubscription
48-
- Request Body
49-
- subscriberUrl: {{bundle.targetUrl}}
50-
- triggerEvent: BOOKING_CREATED
51-
- Unsubscribe: DELETE ```<baseUrl>```/api/integrations/zapier/deleteSubscription
52-
- URL Params (in addition to apiKey)
53-
- id: {{bundle.subscribeData.id}}
54-
- PerformList: GET ```<baseUrl>```/api/integrations/zapier/listBookings
46+
- Trigger Type: REST Hook
47+
- Subscribe: POST `<baseUrl>`/api/integrations/zapier/addSubscription
48+
- Request Body
49+
- subscriberUrl: {{bundle.targetUrl}}
50+
- triggerEvent: BOOKING_CREATED
51+
- Unsubscribe: DELETE `<baseUrl>`/api/integrations/zapier/deleteSubscription
52+
- URL Params (in addition to apiKey)
53+
- id: {{bundle.subscribeData.id}}
54+
- PerformList: GET `<baseUrl>`/api/integrations/zapier/listBookings
5555
3. Test your API request
5656

5757
Create the other two triggers (booking rescheduled, booking cancelled) exactly like this one, just use the appropriate naming (e.g. booking_rescheduled instead of booking_created)
58-
58+
5959
### Set ZAPIER_INVITE_LINK
6060

6161
The invite link can be found under under Manage → Sharing.
@@ -68,4 +68,4 @@ Possible solution: using [https://ngrok.com/](https://ngrok.com/)
6868

6969
1. Create Account
7070
2. [Download](https://ngrok.com/download) gnork and start a tunnel to your running localhost
71-
- Use forwarding url as your baseUrl for the URL endpoints
71+
- Use forwarding url as your baseUrl for the URL endpoints

packages/app-store/zapier/pages/setup/index.tsx

+6-5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { Button, Loader, Tooltip } from "@calcom/ui";
1010

1111
/** TODO: Maybe extract this into a package to prevent circular dependencies */
1212
import { trpc } from "@calcom/web/lib/trpc";
13+
1314
export interface IZapierSetupProps {
1415
inviteLink: string;
1516
}
@@ -46,7 +47,7 @@ export default function ZapierSetup(props: IZapierSetupProps) {
4647

4748
if (integrations.isLoading) {
4849
return (
49-
<div className="absolute z-50 flex items-center w-full h-screen bg-gray-200">
50+
<div className="absolute z-50 flex h-screen w-full items-center bg-gray-200">
5051
<Loader />
5152
</div>
5253
);
@@ -55,7 +56,7 @@ export default function ZapierSetup(props: IZapierSetupProps) {
5556
return (
5657
<div className="flex h-screen bg-gray-200">
5758
{showContent ? (
58-
<div className="p-10 m-auto bg-white rounded">
59+
<div className="m-auto rounded bg-white p-10">
5960
<div className="flex flex-row">
6061
<div className="mr-5">
6162
<img className="h-11" src="/api/app-store/zapier/icon.svg" alt="Zapier Logo" />
@@ -72,8 +73,8 @@ export default function ZapierSetup(props: IZapierSetupProps) {
7273
) : (
7374
<>
7475
<div className="mt-1 text-xl">{t("your_unique_api_key")}</div>
75-
<div className="flex my-2 mt-3">
76-
<div className="w-full p-3 pr-5 mr-1 bg-gray-100 rounded">{newApiKey}</div>
76+
<div className="my-2 mt-3 flex">
77+
<div className="mr-1 w-full rounded bg-gray-100 p-3 pr-5">{newApiKey}</div>
7778
<Tooltip content="copy to clipboard">
7879
<Button
7980
onClick={() => {
@@ -82,7 +83,7 @@ export default function ZapierSetup(props: IZapierSetupProps) {
8283
}}
8384
type="button"
8485
className="px-4 text-base ">
85-
<ClipboardCopyIcon className="w-5 h-5 mr-2 text-neutral-100" />
86+
<ClipboardCopyIcon className="mr-2 h-5 w-5 text-neutral-100" />
8687
{t("copy")}
8788
</Button>
8889
</Tooltip>

packages/emails/src/components/Info.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const Info = (props: {
77
withSpacer?: boolean;
88
lineThrough?: boolean;
99
}) => {
10-
if (!props.description || props.description=="") return null;
10+
if (!props.description || props.description === "") return null;
1111
return (
1212
<>
1313
{props.withSpacer && <Spacer />}

packages/emails/src/components/LocationInfo.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ export function LocationInfo(props: { calEvent: CalendarEvent; t: TFunction }) {
9090
style={{ color: "#3E3E3E" }}
9191
rel="noreferrer">
9292
Google <LinkIcon />
93-
9493
</a>
9594
}
9695
/>

packages/emails/src/components/ManageLink.tsx

+9-5
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ export function ManageLink(props: { calEvent: CalendarEvent; attendee: Person })
55
// Only the original attendee can make changes to the event
66
// Guests cannot
77
const t = props.attendee.language.translate;
8-
if(props.attendee.email === props.calEvent.attendees[0].email || props.calEvent.organizer.email === props.attendee.email ){
8+
if (
9+
props.attendee.email === props.calEvent.attendees[0].email ||
10+
props.calEvent.organizer.email === props.attendee.email
11+
) {
912
return (
1013
<div
1114
style={{
1215
fontFamily: "Roboto, Helvetica, sans-serif",
13-
fontSize: "16px", fontWeight: 500,
16+
fontSize: "16px",
17+
fontWeight: 500,
1418
lineHeight: "0px",
1519
textAlign: "left",
1620
color: "#3e3e3e",
@@ -26,7 +30,7 @@ export function ManageLink(props: { calEvent: CalendarEvent; attendee: Person })
2630
</div>
2731
);
2832
}
29-
30-
// Dont have the rights to the manage link
31-
return null
33+
34+
// Dont have the rights to the manage link
35+
return null;
3236
}

packages/emails/templates/forgot-password-email.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { TFunction } from "next-i18next";
22

33
import { renderEmail } from "../";
4-
54
import BaseEmail from "./_base-email";
65

76
export type PasswordReset = {

packages/embeds/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ This folder contains all the various flavours of embeds.
55
`core` contains the core library written in vanilla JS that manages the embed.
66
`snippet` contains the Vanilla JS Code Snippet that can be installed on any website and would automatically fetch the `core` library.
77

8-
Please see the respective folder READMEs for details on them.
8+
Please see the respective folder READMEs for details on them.

0 commit comments

Comments
 (0)