Skip to content

Commit

Permalink
dashboard update; initialize rome.tools
Browse files Browse the repository at this point in the history
  • Loading branch information
arthtyagi committed Nov 9, 2022
1 parent 1094cdb commit 1995a2f
Show file tree
Hide file tree
Showing 18 changed files with 47 additions and 45 deletions.
26 changes: 13 additions & 13 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ orientation.
Examples of behavior that contributes to creating a positive environment
include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting
- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

### Our Responsibilities

Expand Down
4 changes: 2 additions & 2 deletions apps/landing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ The `pages/api` directory is mapped to `/api/*`. Files in this directory are tre

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

Expand Down
6 changes: 3 additions & 3 deletions apps/server/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Database and Async

- PostgresQL (in prod only)
- Django-Q + Redis for scheduling async tasks.
- Channel layer for websocket communication.
- PostgresQL (in prod only)
- Django-Q + Redis for scheduling async tasks.
- Channel layer for websocket communication.

## Code Formatting

Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/CommandPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function CommandPalette() {
}, [handleKeyPress]);

return (
<Transition.Root show={open} as={Fragment} appear>
<Transition.Root show={open} as={Fragment} appear={true}>
<Dialog as="div" className="relative z-10" onClose={setOpen}>
<Transition.Child
as={Fragment}
Expand Down Expand Up @@ -170,7 +170,7 @@ export default function CommandPalette() {
'group flex items-center rounded-md px-4 py-4 text-sm',
'focus:ring-offset-neutral border-[1px] border-dashed border-neutral-800 focus:outline-none focus:ring-2 focus:ring-offset-2'
)}
end
end={true}
>
<item.icon
className="-ml-1 mr-3 h-6 w-6 flex-shrink-0"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/forms/ChangeEmail.forms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default function ChangeEmailForm(): JSX.Element {
loggedInUser.email ? loggedInUser.email : '[email protected]'
}
autoComplete="email"
required
required={true}
className="dark:bg-darkBG mt-1 block w-full rounded-md border
border-neutral-300 py-2 px-3 shadow-sm focus:border-orange-500 focus:outline-none focus:ring-orange-500
dark:border-neutral-800 sm:text-sm"
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/components/forms/Login.forms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function LoginForm({ loginError, setLoginError }: LoginFormProps)
type="email"
placeholder="[email protected]"
autoComplete="email"
required
required={true}
className="dark:bg-darkBG mt-1 block w-full rounded-md border
border-neutral-300 py-2 px-3 shadow-sm focus:outline-none dark:border-neutral-800 sm:text-sm"
/>
Expand Down Expand Up @@ -113,7 +113,7 @@ export default function LoginForm({ loginError, setLoginError }: LoginFormProps)
type="password"
placeholder="••••••••••••••••"
autoComplete="current-password"
required
required={true}
className="dark:bg-darkBG mt-1 block w-full rounded-md border
border-neutral-300 py-2 px-3 shadow-sm focus:outline-none dark:border-neutral-800 sm:text-sm"
/>
Expand Down Expand Up @@ -146,7 +146,7 @@ export default function LoginForm({ loginError, setLoginError }: LoginFormProps)
</div>

<div className="flex w-full justify-center">
<PrimaryButton isSubmitting={isSubmitting} wFull>
<PrimaryButton isSubmitting={isSubmitting} wFull={true}>
<span className="w-full">
{isSubmitting ? 'Signing In...' : 'Sign In'} <span></span>
</span>
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/components/forms/ResetPassword.forms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default function PasswordResetForm(): JSX.Element {
placeholder="••••••••••••••••"
autoComplete="current-password"
aria-describedby="password-description"
required
required={true}
className="dark:bg-darkBG mt-1 block w-full rounded-md border
border-neutral-300 py-2 px-3 shadow-sm focus:outline-none dark:border-neutral-800 sm:text-sm"
/>
Expand Down Expand Up @@ -136,7 +136,7 @@ export default function PasswordResetForm(): JSX.Element {
placeholder="••••••••••••••••"
autoComplete="current-password"
aria-describedby="password-description"
required
required={true}
className="dark:bg-darkBG mt-1 block w-full rounded-md border
border-neutral-300 py-2 px-3 shadow-sm focus:outline-none dark:border-neutral-800 sm:text-sm"
/>
Expand Down Expand Up @@ -247,7 +247,7 @@ export function ForgotPasswordForm(): JSX.Element {
type="email"
placeholder="[email protected]"
autoComplete="email"
required
required={true}
className="dark:bg-darkBG mt-1 block w-full rounded-md border
border-neutral-300 py-2 px-3 shadow-sm focus:outline-none dark:border-neutral-800 sm:text-sm"
/>
Expand Down
12 changes: 6 additions & 6 deletions apps/web/src/components/forms/Signup.forms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default function SignupForm({
type="text"
placeholder="John"
autoComplete="First Name"
required
required={true}
className="dark:bg-darkBG mt-1 block w-full rounded-md border
border-neutral-300 py-2 px-3 shadow-sm focus:outline-none dark:border-neutral-800 sm:text-sm"
/>
Expand Down Expand Up @@ -158,7 +158,7 @@ export default function SignupForm({
type="lastName"
placeholder="Doe"
autoComplete="Last Name"
required
required={true}
className="dark:bg-darkBG mt-1 block w-full rounded-md border
border-neutral-300 py-2 px-3 shadow-sm focus:outline-none dark:border-neutral-800 sm:text-sm"
/>
Expand Down Expand Up @@ -192,7 +192,7 @@ export default function SignupForm({
type="email"
placeholder="[email protected]"
autoComplete="email"
required
required={true}
className="dark:bg-darkBG mt-1 block w-full rounded-md border
border-neutral-300 py-2 px-3 shadow-sm focus:outline-none dark:border-neutral-800 sm:text-sm"
/>
Expand Down Expand Up @@ -227,7 +227,7 @@ export default function SignupForm({
placeholder="••••••••••••••••"
autoComplete="current-password"
aria-describedby="password-description"
required
required={true}
className="dark:bg-darkBG mt-1 block w-full rounded-md border
border-neutral-300 py-2 px-3 shadow-sm focus:outline-none dark:border-neutral-800 sm:text-sm"
/>
Expand Down Expand Up @@ -273,7 +273,7 @@ export default function SignupForm({
type="password"
placeholder="••••••••••••••••"
autoComplete="current-password"
required
required={true}
className="dark:bg-darkBG mt-1 block w-full rounded-md border
border-neutral-300 py-2 px-3 shadow-sm focus:outline-none dark:border-neutral-800 sm:text-sm"
/>
Expand All @@ -297,7 +297,7 @@ export default function SignupForm({
<div>
{!signedUp ? (
<div className="flex justify-center">
<PrimaryButton isSubmitting={isSubmitting} wFull>
<PrimaryButton isSubmitting={isSubmitting} wFull={true}>
<span className="text-lg font-bold">
{isSubmitting ? 'Signing up...' : 'Sign Up'}{' '}
<span className="text-xs"></span>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const router = createBrowserRouter([
{
path: '/meetings/past',
hasErrorBoundary: true,
element: <MeetingList past />,
element: <MeetingList past={true} />,
},
{
path: '/meetings/:uid',
Expand Down
8 changes: 4 additions & 4 deletions apps/web/src/pages/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {
'flex items-center px-5 py-3 duration-300'
)
}
end
end={true}
>
<item.icon
className={classNames(
Expand Down Expand Up @@ -176,7 +176,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {
'mb-1 flex w-1/4 justify-evenly rounded-xl border-t-2 border-transparent py-3'
)
}
end
end={true}
>
<tab.icon
className="h-8 w-8 flex-shrink-0"
Expand Down Expand Up @@ -249,11 +249,11 @@ export default function Layout({ children }: { children: React.ReactNode }) {
to="/social/circle"
className="ml-2 flex font-mono text-sm font-medium text-orange-200
duration-300 hover:text-white"
end
end={true}
>
<ArrowLeftIcon
className="mr-2 h-6 w-5 flex-shrink-0 text-gray-300"
aria-hidden
aria-hidden={true}
/>
Circle
</NavLink>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function Login() {

<div className="mt-6">
<PrimaryButton
wFull
wFull={true}
onClick={() => {
setGithubLogin(true);
loginGithub();
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/pages/social/OneOne.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ function MatchCard({ username }: { username: string }): JSX.Element {
</button>
) : (
<button type="button" className={greenString}>
<CheckIcon className="mr-2 h-6 w-5" aria-hidden />
<CheckIcon className="mr-2 h-6 w-5" aria-hidden={true} />
<span>Added To Circle</span>
</button>
)}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/pages/social/components/ActionDialogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export function ScheduleDialog({
className="rounded-md border-[1px] border-solid border-neutral-600 px-3 py-1 font-light text-slate-900
shadow-2xl shadow-white/20 invert filter duration-300 sm:px-3 lg:px-6"
step={900}
required
required={true}
/>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/pages/social/forms/SocialProfile.forms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ export function SocialProfileForm(): JSX.Element {
}
}
}}
multiple
multiple={true}
>
{({ open }) => (
<>
Expand Down Expand Up @@ -588,7 +588,7 @@ export function SocialProfileForm(): JSX.Element {
}
}
}
multiple
multiple={true}
>
{({ open }) => (
<>
Expand Down Expand Up @@ -709,7 +709,7 @@ export function SocialProfileForm(): JSX.Element {
}
}
}}
multiple
multiple={true}
>
{({ open }) => (
<>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/pages/stream/Messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function MessagesNav({ user }: { user: string }): JSX.Element {
if (connected) {
return (
<NavLink
preventScrollReset
preventScrollReset={true}
key={user}
to={`/messages/${user}/`}
className={classNames(
Expand Down
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"build": "turbo run build",
"dev": "turbo run dev --parallel",
"lint": "turbo run lint",
"rome": "rome check ./ --apply",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions rome.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"linter": {
"enabled": true,
"ignore": ["*.js", "*.css", "*.html", "*.json", "*.md", "*.txt", "*.xml", "node_modules/**", "dist/**"],
"rules": {
"recommended": true
}
Expand Down

0 comments on commit 1995a2f

Please sign in to comment.