forked from AdventOfJavaScript/2023-12-00__starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from camer0nluo/login
feature: add login and forgot password page
- Loading branch information
Showing
16 changed files
with
303 additions
and
92 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { createClient } from '@supabase/supabase-js' | ||
|
||
export const supabase = createClient( | ||
`${process.env.SUPABASE_URL}`, | ||
`${process.env.SUPABASE_KEY}` | ||
) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
] | ||
}, | ||
"devDependencies": { | ||
"@redwoodjs/auth-auth0-setup": "6.4.1", | ||
"@redwoodjs/auth-supabase-setup": "6.4.1", | ||
"@redwoodjs/cli-storybook": "6.4.1", | ||
"@redwoodjs/core": "6.4.1", | ||
"prettier-plugin-tailwindcss": "0.4.1" | ||
|
@@ -25,7 +25,9 @@ | |
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@auth0/auth0-react": "^2.2.3", | ||
"@supabase/auth-ui-react": "^0.4.6", | ||
"@supabase/auth-ui-shared": "^0.1.8", | ||
"@supabase/supabase-js": "^2.39.0", | ||
"dotenv": "^16.3.1" | ||
} | ||
} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
|
||
import DashboardPage from './DashboardPage' | ||
|
||
const meta: Meta<typeof DashboardPage> = { | ||
component: DashboardPage, | ||
} | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof DashboardPage> | ||
|
||
export const Primary: Story = {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { render } from '@redwoodjs/testing/web' | ||
|
||
import DashboardPage from './DashboardPage' | ||
|
||
// Improve this test with help from the Redwood Testing Doc: | ||
// https://redwoodjs.com/docs/testing#testing-pages-layouts | ||
|
||
describe('DashboardPage', () => { | ||
it('renders successfully', () => { | ||
expect(() => { | ||
render(<DashboardPage />) | ||
}).not.toThrow() | ||
}) | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Link, routes } from '@redwoodjs/router' | ||
import { MetaTags } from '@redwoodjs/web' | ||
|
||
const DashboardPage = () => { | ||
return ( | ||
<> | ||
<MetaTags title="Dashboard" description="Dashboard page" /> | ||
|
||
<h1>DashboardPage</h1> | ||
<p> | ||
Find me in <code>./web/src/pages/DashboardPage/DashboardPage.tsx</code> | ||
</p> | ||
<p> | ||
My default route is named <code>dashboard</code>, link to me with ` | ||
<Link to={routes.dashboard()}>Dashboard</Link>` | ||
</p> | ||
</> | ||
) | ||
} | ||
|
||
export default DashboardPage |
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
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
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
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
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
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
Oops, something went wrong.