Link: https://github.com/calcom/cal.com/tree/952a149604b9603905a0d43c35d266fd5dd885af/packages/app-store
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Credential, Prisma } from "@prisma/client"; | |
import { GetTokenResponse } from "google-auth-library/build/src/auth/oauth2client"; | |
import { Auth, calendar_v3, google } from "googleapis"; | |
import { getLocation, getRichDescription } from "@calcom/lib/CalEventParser"; | |
import CalendarService from "@calcom/lib/CalendarService"; | |
import { HttpError } from "@calcom/lib/http-error"; | |
import logger from "@calcom/lib/logger"; | |
import prisma from "@calcom/prisma"; | |
import type { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config = { | |
use: { | |
channel: "chrome", | |
deviceScaleFactor: 2, | |
launchOptions: { | |
// force GPU hardware acceleration (even in headless mode) | |
// without hardware acceleration, our tests will be much slower | |
args: ["--use-gl=egl"] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* ███████████████═╗ ███████████████═╗ █████████████═╗ █████═╗ █████═╗ | |
* ███████████████ ║ ███████████████ ║ ███████████████ ║ █████ ║ █████ ║ | |
* ╚═══█████ ╔════╝ ╚═══█████ ╔════╝ █████ ╔═════════╝ █████ ║ █████ ║ | |
* █████ ║ █████ ║ █████ ║ █████ ║ █████ ║ | |
* █████ ║ █████ ║ █████████████═╗ ███████████████ ║ | |
* █████ ║ █████ ║ ╚█████████████═╗ ╚███████████ ╔═╝ | |
* █████ ║ █████ ║ ╚══════█████ ║ ╚═█████ ╔══╝ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* TTTTTTTTTTTTTTTTTTTTTTTHHHHHHHHH HHHHHHHHHEEEEEEEEEEEEEEEEEEEEEE | |
* T:::::::::::::::::::::TH:::::::H H:::::::HE::::::::::::::::::::E | |
* T:::::::::::::::::::::TH:::::::H H:::::::HE::::::::::::::::::::E | |
* T:::::TT:::::::TT:::::THH::::::H H::::::HHEE::::::EEEEEEEEE::::E | |
* TTTTTT T:::::T TTTTTT H:::::H H:::::H E:::::E EEEEEE | |
* T:::::T H:::::H H:::::H E:::::E | |
* T:::::T H::::::HHHHH::::::H E::::::EEEEEEEEEE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
/* | |
Components: (do a ctrl-f find for them) | |
1.MEMORY | |
2.CPU | |
3.DISPLAY | |
4.INPUT | |
5.AUDIO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const userRoles = { | |
admin: ["create", "update", "delete", "view"], | |
user: ["update", "view"], | |
anonymous: ["view"], | |
} as const; | |
type UserRoles = typeof userRoles; | |
const canRolePerformAction = <TRole extends keyof UserRoles>( | |
role: TRole, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// challenges: https://github.com/type-challenges/type-challenges | |
// more challenges https://github.com/LearningTypeScript/projects/tree/main/projects/type-operations/array-type-shenanigans | |
// ts-play url shortener | |
// https://tsplay-dev.vercel.app/ | |
// https://tsplay.dev/wepV1W | |
// https://github.com/type-challenges/type-challenges/blob/main/questions/00949-medium-anyof/README.md | |
// https://tsplay.dev/NDyplm |
OlderNewer