Linting (#2083)
* Runs yarn format * Update website * Web lint is failing * Formatting * Adds cache for dependency install * Adds linting reports for GH * Fixes artifact upload * Caching tests * Merge reports on GH actions * Linting * Fix prettier plugin conflicts * Dep fixes * Moves tailwind to monorepo package (#2091) * New Crowdin translations by Github Action (#2077) Co-authored-by: Crowdin Bot <support+bot@crowdin.com> * fix redirection to 404 page on login (#2086) Co-authored-by: Peer Richelsen <peeroke@gmail.com> * fix: update contributing (#2084) Co-authored-by: Bailey Pumfleet <pumfleet@hey.com> * Formatting * Update website Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: Hariom Balhara <hariombalhara@gmail.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: Louis <48682663+louis-27@users.noreply.github.com> Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
This commit is contained in:
16 files changed
+412
-245
No files matched your search
@@ -7,6 +7,7 @@
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next",
|
||||
"dev": "PORT=4000 next",
|
||||
"lint": "next lint",
|
||||
"lint:report": "eslint . --format json --output-file ../../lint-results/docs.json",
|
||||
"start": "PORT=4000 next start",
|
||||
"build": "next build"
|
||||
},
|
||||
@@ -21,6 +22,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@calcom/config": "*",
|
||||
"eslint": "^8.9.0"
|
||||
"eslint": "^8.10.0"
|
||||
}
|
||||
}
|
||||
+13
-31
@@ -1,12 +1,8 @@
|
||||
export default {
|
||||
github: 'https://github.com/calcom/cal.com',
|
||||
docsRepositoryBase: 'https://github.com/calcom/cal.com/blob/main/apps/docs/pages',
|
||||
titleSuffix: ' | Cal.com',
|
||||
logo: (
|
||||
<h4 className="m-0">
|
||||
Cal.com
|
||||
</h4>
|
||||
),
|
||||
const themeConfig = {
|
||||
github: "https://github.com/calcom/cal.com",
|
||||
docsRepositoryBase: "https://github.com/calcom/cal.com/blob/main/apps/docs/pages",
|
||||
titleSuffix: " | Cal.com",
|
||||
logo: <h4 className="m-0">Cal.com</h4>,
|
||||
head: (
|
||||
<>
|
||||
<meta name="msapplication-TileColor" content="#ffffff" />
|
||||
@@ -29,23 +25,9 @@ export default {
|
||||
<meta name="og:image" content="https://cal.com/og-image.png" />
|
||||
<meta name="apple-mobile-web-app-title" content="Cal.com Docs" />
|
||||
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href="/apple-touch-icon.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="32x32"
|
||||
href="/favicon-32x32.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="16x16"
|
||||
href="/favicon-16x16.png"
|
||||
/>
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
||||
<link rel="manifest" href="/site.webmanifest" />
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#000000" />
|
||||
<meta name="msapplication-TileColor" content="#ff0000" />
|
||||
@@ -56,8 +38,8 @@ export default {
|
||||
prevLinks: true,
|
||||
nextLinks: true,
|
||||
footer: true,
|
||||
footerEditLink: 'Edit this page on GitHub',
|
||||
footerText: (
|
||||
<>© {new Date().getFullYear()} Cal.com, Inc. All rights reserved.</>
|
||||
),
|
||||
}
|
||||
footerEditLink: "Edit this page on GitHub",
|
||||
footerText: <>© {new Date().getFullYear()} Cal.com, Inc. All rights reserved.</>,
|
||||
};
|
||||
|
||||
export default themeConfig;
|
||||
@@ -24,7 +24,7 @@ module.exports = {
|
||||
"zh-TW",
|
||||
"cs",
|
||||
"sr",
|
||||
"sv"
|
||||
"sv",
|
||||
],
|
||||
},
|
||||
localePath: path.resolve("./public/static/locales"),
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"lint:report": "eslint . --format json --output-file ../../lint-results/web.json",
|
||||
"lint:fix": "next lint . --ext .ts,.js,.tsx,.jsx --fix",
|
||||
"check-changed-files": "ts-node scripts/ts-check-changed-files.ts",
|
||||
"downgrade": "ts-node ee/lib/stripe/downgrade.ts"
|
||||
@@ -127,7 +128,7 @@
|
||||
"autoprefixer": "^10.4.0",
|
||||
"babel-jest": "^27.3.1",
|
||||
"env-cmd": "10.1.0",
|
||||
"eslint": "^8.9.0",
|
||||
"eslint": "^8.10.0",
|
||||
"jest": "^26.0.0",
|
||||
"mockdate": "^3.0.5",
|
||||
"module-alias": "^2.2.2",
|
||||
|
||||
@@ -63,7 +63,7 @@ export default function User(props: inferSSRProps<typeof getServerSideProps>) {
|
||||
<div
|
||||
key={type.id}
|
||||
style={{ display: "flex" }}
|
||||
className="group hover:border-brand relative rounded-sm border border-neutral-200 bg-white hover:bg-gray-50 dark:border-0 dark:bg-neutral-900 dark:hover:border-neutral-600">
|
||||
className="hover:border-brand group relative rounded-sm border border-neutral-200 bg-white hover:bg-gray-50 dark:border-0 dark:bg-neutral-900 dark:hover:border-neutral-600">
|
||||
<ArrowRightIcon className="absolute right-3 top-3 h-4 w-4 text-black opacity-0 transition-opacity group-hover:opacity-100 dark:text-white" />
|
||||
{/* Don't prefetch till the time we drop the amount of javascript in [user][type] page which is impacting score for [user] page */}
|
||||
<Link
|
||||
|
||||
@@ -32,7 +32,7 @@ function TeamPage({ team }: TeamPageProps) {
|
||||
{team.eventTypes.map((type) => (
|
||||
<li
|
||||
key={type.id}
|
||||
className="group hover:border-brand relative rounded-sm border border-neutral-200 bg-white hover:bg-gray-50 dark:border-0 dark:bg-neutral-900 dark:hover:border-neutral-600">
|
||||
className="hover:border-brand group relative rounded-sm border border-neutral-200 bg-white hover:bg-gray-50 dark:border-0 dark:bg-neutral-900 dark:hover:border-neutral-600">
|
||||
<ArrowRightIcon className="absolute right-3 top-3 h-4 w-4 text-black opacity-0 transition-opacity group-hover:opacity-100 dark:text-white" />
|
||||
<Link href={`${team.slug}/${type.slug}`}>
|
||||
<a className="flex justify-between px-6 py-4">
|
||||
|
||||
+1
-1
Submodule apps/website updated: fcf813c194...59cd13be0a.
Reference in new issue
Block a user