mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-27 05:07:50 +02:00
Update prettier and fix formatting
This commit is contained in:
parent
19b7e1ec04
commit
c00e575a61
29 changed files with 47 additions and 44 deletions
|
@ -63,7 +63,7 @@ export const Footer: React.FunctionComponent = () => {
|
||||||
return (
|
return (
|
||||||
<div className="mx-auto space-y-8">
|
<div className="mx-auto space-y-8">
|
||||||
<div className="space-y-16 lg:flex lg:space-x-8 lg:space-y-0">
|
<div className="space-y-16 lg:flex lg:space-x-8 lg:space-y-0">
|
||||||
<div className=" lg:w-2/6">
|
<div className="lg:w-2/6">
|
||||||
<Image
|
<Image
|
||||||
src="/logo-grayscale.svg"
|
src="/logo-grayscale.svg"
|
||||||
width={140}
|
width={140}
|
||||||
|
|
|
@ -14,7 +14,7 @@ export const NavLink = ({
|
||||||
<Link
|
<Link
|
||||||
className={cn(
|
className={cn(
|
||||||
"inline-flex items-center gap-x-2.5 rounded text-sm font-medium",
|
"inline-flex items-center gap-x-2.5 rounded text-sm font-medium",
|
||||||
isActive ? "" : "hover:text-primary text-muted-foreground ",
|
isActive ? "" : "hover:text-primary text-muted-foreground",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
|
|
|
@ -126,7 +126,7 @@ export default async function Page({ params }: { params: { locale: string } }) {
|
||||||
const { t } = await getTranslation(params.locale, ["common", "pricing"]);
|
const { t } = await getTranslation(params.locale, ["common", "pricing"]);
|
||||||
return (
|
return (
|
||||||
<article className="mx-auto max-w-3xl space-y-6">
|
<article className="mx-auto max-w-3xl space-y-6">
|
||||||
<header className="space-y-2 sm:p-6 sm:text-center ">
|
<header className="space-y-2 sm:p-6 sm:text-center">
|
||||||
<h1 className="text-2xl font-bold tracking-tight sm:text-4xl">
|
<h1 className="text-2xl font-bold tracking-tight sm:text-4xl">
|
||||||
<Trans
|
<Trans
|
||||||
t={t}
|
t={t}
|
||||||
|
|
|
@ -25,7 +25,7 @@ const ErrorPage: React.FunctionComponent<ComponentProps> = ({
|
||||||
{icon || (
|
{icon || (
|
||||||
<FileSearchIcon className="mb-4 inline-block size-24 text-gray-400" />
|
<FileSearchIcon className="mb-4 inline-block size-24 text-gray-400" />
|
||||||
)}
|
)}
|
||||||
<div className="text-primary-600 mb-2 text-3xl font-bold ">
|
<div className="text-primary-600 mb-2 text-3xl font-bold">
|
||||||
{title}
|
{title}
|
||||||
</div>
|
</div>
|
||||||
<p className="text-gray-600">{description}</p>
|
<p className="text-gray-600">{description}</p>
|
||||||
|
|
|
@ -266,7 +266,7 @@ export const BigTestimonial = () => {
|
||||||
initial={{ opacity: 0, y: 20 }}
|
initial={{ opacity: 0, y: 20 }}
|
||||||
whileInView={{ opacity: 1, y: 0 }}
|
whileInView={{ opacity: 1, y: 0 }}
|
||||||
viewport={{ once: true, amount: "all" }}
|
viewport={{ once: true, amount: "all" }}
|
||||||
className="flex flex-col items-center gap-y-8 "
|
className="flex flex-col items-center gap-y-8"
|
||||||
>
|
>
|
||||||
<Image
|
<Image
|
||||||
src="/static/images/stars-5.svg"
|
src="/static/images/stars-5.svg"
|
||||||
|
|
|
@ -63,7 +63,7 @@ export function Sidebar() {
|
||||||
const { user } = useUser();
|
const { user } = useUser();
|
||||||
const posthog = usePostHog();
|
const posthog = usePostHog();
|
||||||
return (
|
return (
|
||||||
<nav className="flex flex-1 flex-col ">
|
<nav className="flex flex-1 flex-col">
|
||||||
<ul role="list" className="flex flex-1 flex-col gap-y-7">
|
<ul role="list" className="flex flex-1 flex-col gap-y-7">
|
||||||
<li>
|
<li>
|
||||||
<ul role="list" className="-mx-2 space-y-1">
|
<ul role="list" className="-mx-2 space-y-1">
|
||||||
|
|
|
@ -14,7 +14,7 @@ export default async function Page() {
|
||||||
<div className="space-y-8">
|
<div className="space-y-8">
|
||||||
<div className="space-y-4 text-center">
|
<div className="space-y-4 text-center">
|
||||||
<FileSearchIcon className="mb-4 inline-block size-24 text-gray-400" />
|
<FileSearchIcon className="mb-4 inline-block size-24 text-gray-400" />
|
||||||
<div className="text-primary-600 mb-2 text-3xl font-bold ">
|
<div className="text-primary-600 mb-2 text-3xl font-bold">
|
||||||
{t("errors_notFoundTitle")}
|
{t("errors_notFoundTitle")}
|
||||||
</div>
|
</div>
|
||||||
<p className="text-gray-600">{t("errors_notFoundDescription")}</p>
|
<p className="text-gray-600">{t("errors_notFoundDescription")}</p>
|
||||||
|
|
|
@ -229,7 +229,7 @@ function DiscussionInner() {
|
||||||
</Badge>
|
</Badge>
|
||||||
) : null}
|
) : null}
|
||||||
</Participant>
|
</Participant>
|
||||||
<div className="flex items-center gap-2 text-sm ">
|
<div className="flex items-center gap-2 text-sm">
|
||||||
<div className="text-gray-500">
|
<div className="text-gray-500">
|
||||||
{dayjs(comment.createdAt).fromNow()}
|
{dayjs(comment.createdAt).fromNow()}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -21,7 +21,7 @@ const ErrorPage: React.FunctionComponent<ComponentProps> = ({
|
||||||
<div className="space-y-8">
|
<div className="space-y-8">
|
||||||
<div className="space-y-4 text-center">
|
<div className="space-y-4 text-center">
|
||||||
<Icon className="mb-4 inline-block size-24 text-gray-400" />
|
<Icon className="mb-4 inline-block size-24 text-gray-400" />
|
||||||
<div className="text-primary-600 mb-2 text-3xl font-bold ">
|
<div className="text-primary-600 mb-2 text-3xl font-bold">
|
||||||
{title}
|
{title}
|
||||||
</div>
|
</div>
|
||||||
<p className="text-gray-600">{description}</p>
|
<p className="text-gray-600">{description}</p>
|
||||||
|
|
|
@ -54,7 +54,7 @@ const Setting = ({ children }: React.PropsWithChildren) => {
|
||||||
<label
|
<label
|
||||||
className={cn(
|
className={cn(
|
||||||
"cursor-pointer bg-white hover:bg-gray-50 active:bg-gray-100",
|
"cursor-pointer bg-white hover:bg-gray-50 active:bg-gray-100",
|
||||||
"flex select-none justify-between gap-x-4 gap-y-2.5 rounded-md border p-3 sm:flex-row ",
|
"flex select-none justify-between gap-x-4 gap-y-2.5 rounded-md border p-3 sm:flex-row",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|
|
@ -291,7 +291,7 @@ const DesktopPoll: React.FunctionComponent = () => {
|
||||||
"scrollbar-thin hover:scrollbar-thumb-gray-400 scrollbar-thumb-gray-300 scrollbar-track-gray-100 relative z-10 flex-grow overflow-auto scroll-smooth",
|
"scrollbar-thin hover:scrollbar-thumb-gray-400 scrollbar-thumb-gray-300 scrollbar-track-gray-100 relative z-10 flex-grow overflow-auto scroll-smooth",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<table className="w-full table-auto border-separate border-spacing-0 bg-gray-50 ">
|
<table className="w-full table-auto border-separate border-spacing-0 bg-gray-50">
|
||||||
<thead>
|
<thead>
|
||||||
<PollHeader />
|
<PollHeader />
|
||||||
</thead>
|
</thead>
|
||||||
|
|
|
@ -44,8 +44,8 @@
|
||||||
"framer-motion": "^10.16.4",
|
"framer-motion": "^10.16.4",
|
||||||
"next": "^14.2.13",
|
"next": "^14.2.13",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^3.2.4",
|
"prettier": "^3.3.3",
|
||||||
"prettier-plugin-tailwindcss": "^0.5.11",
|
"prettier-plugin-tailwindcss": "^0.6.8",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"tailwindcss": "^3.4.4",
|
"tailwindcss": "^3.4.4",
|
||||||
|
|
|
@ -19,5 +19,8 @@
|
||||||
"@rallly/ui": "*",
|
"@rallly/ui": "*",
|
||||||
"next": "*",
|
"next": "*",
|
||||||
"stripe": "^13.2.0"
|
"stripe": "^13.2.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@rallly/eslint-config": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"extends": "@rallly/tsconfig/next.json",
|
"extends": "@rallly/tsconfig/next.json",
|
||||||
"include": ["**/*.ts", "**/*.tsx", "**/*.js"],
|
"include": ["**/*.ts", "**/*.tsx", "**/*.js"],
|
||||||
"exclude": ["node_modules"],
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"extends": "@rallly/tsconfig/next.json",
|
"extends": "@rallly/tsconfig/next.json",
|
||||||
"include": ["**/*.ts", "**/*.tsx"],
|
"include": ["**/*.ts", "**/*.tsx"],
|
||||||
"exclude": ["node_modules"],
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true
|
||||||
},
|
},
|
||||||
"files": ["i18next.d.ts"],
|
"files": ["i18next.d.ts"],
|
||||||
"include": ["**/*.ts", "**/*.tsx"],
|
"include": ["**/*.ts", "**/*.tsx"],
|
||||||
"exclude": ["node_modules", ".react-email"],
|
"exclude": ["node_modules", ".react-email"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"extends": "@rallly/tsconfig/next.json",
|
"extends": "@rallly/tsconfig/next.json",
|
||||||
"include": ["**/*.ts", "**/*.tsx"],
|
"include": ["**/*.ts", "**/*.tsx"],
|
||||||
"exclude": ["node_modules"],
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/utils": ["src/lib/utils.ts"],
|
"@/utils": ["src/lib/utils.ts"],
|
||||||
"@/components/*": ["src/*"],
|
"@/components/*": ["src/*"],
|
||||||
"@/ui/*": ["src/*"],
|
"@/ui/*": ["src/*"]
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
"include": ["**/*.ts", "**/*.tsx"],
|
"include": ["**/*.ts", "**/*.tsx"],
|
||||||
"exclude": ["node_modules"],
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"types": ["vitest/globals"],
|
"types": ["vitest/globals"]
|
||||||
},
|
},
|
||||||
"extends": "@rallly/tsconfig/base.json",
|
"extends": "@rallly/tsconfig/base.json",
|
||||||
"include": ["**/*.ts", "**/*.tsx"],
|
"include": ["**/*.ts", "**/*.tsx"]
|
||||||
}
|
}
|
||||||
|
|
16
yarn.lock
16
yarn.lock
|
@ -12770,15 +12770,15 @@ prelude-ls@^1.2.1:
|
||||||
resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz"
|
resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz"
|
||||||
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
|
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
|
||||||
|
|
||||||
prettier-plugin-tailwindcss@^0.5.11:
|
prettier-plugin-tailwindcss@^0.6.8:
|
||||||
version "0.5.11"
|
version "0.6.8"
|
||||||
resolved "https://registry.yarnpkg.com/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.11.tgz#1aa9308c3285b3cb7942aaeaec8d0e0775ac54d0"
|
resolved "https://registry.yarnpkg.com/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.6.8.tgz#8a178e1679e3f941cc9de396f109c6cffea676d8"
|
||||||
integrity sha512-AvI/DNyMctyyxGOjyePgi/gqj5hJYClZ1avtQvLlqMT3uDZkRbi4HhGUpok3DRzv9z7Lti85Kdj3s3/1CeNI0w==
|
integrity sha512-dGu3kdm7SXPkiW4nzeWKCl3uoImdd5CTZEJGxyypEPL37Wj0HT2pLqjrvSei1nTeuQfO4PUfjeW5cTUNRLZ4sA==
|
||||||
|
|
||||||
prettier@^3.2.4:
|
prettier@^3.3.3:
|
||||||
version "3.2.4"
|
version "3.3.3"
|
||||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.4.tgz#4723cadeac2ce7c9227de758e5ff9b14e075f283"
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105"
|
||||||
integrity sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==
|
integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==
|
||||||
|
|
||||||
pretty-format@^3.8.0:
|
pretty-format@^3.8.0:
|
||||||
version "3.8.0"
|
version "3.8.0"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue