Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken images, remove unused assets, update types, polish #224

Merged
merged 25 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b046c81
Update next to canary
delbaoliveira Oct 19, 2023
2c1d76c
Merge branch 'main' into use-ppr
delbaoliveira Oct 21, 2023
30c9a4e
Update layout.tsx
delbaoliveira Oct 21, 2023
668c1ce
Use canary
delbaoliveira Oct 21, 2023
18d98e8
Remove serverActions flag warning
delbaoliveira Oct 21, 2023
b68a4ae
Use unstable_noStore
delbaoliveira Oct 21, 2023
3a6a283
Add Date.now() test
delbaoliveira Oct 21, 2023
3fe93ab
Update metadataBase url
delbaoliveira Oct 21, 2023
b1b4919
Create wrapper component for Cards
delbaoliveira Oct 21, 2023
23525f2
Update page.tsx
delbaoliveira Oct 22, 2023
b9abdfc
Misc
delbaoliveira Oct 25, 2023
15fcc6c
Merge branch 'main' into use-ppr
delbaoliveira Oct 25, 2023
31df981
Delete unused data fetch
delbaoliveira Oct 25, 2023
1624cf1
Add noStore to /invoices and /customers functions
delbaoliveira Oct 25, 2023
3c9bca9
Remove date.now()
delbaoliveira Oct 25, 2023
a13da46
Use canary
delbaoliveira Oct 25, 2023
a27f2d4
Merge branch 'main' into use-ppr
delbaoliveira Oct 25, 2023
88de8fd
Merge branch 'main' into use-ppr
delbaoliveira Oct 25, 2023
da98829
Rename component
delbaoliveira Oct 25, 2023
8839294
Fix imports
delbaoliveira Oct 25, 2023
b6baca4
Update types for useFormStatus and useFormState
delbaoliveira Oct 25, 2023
f5940ed
Rename folder, add team members
delbaoliveira Oct 26, 2023
1f4c96b
fixed images and added login button pending state
steven-tey Oct 26, 2023
a980d6f
Update dashboard/final-example/app/lib/data.ts
delbaoliveira Oct 26, 2023
44418bc
Merge branch 'main' into add-starting-example
delbaoliveira Oct 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions dashboard/01-getting-started/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dashboard/02-styling/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dashboard/03-creating-layouts-and-pages/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dashboard/04-navigating-between-routes/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dashboard/05-optimizing-images-and-fonts/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dashboard/06-creating-the-dashboard-pages/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dashboard/07-setting-up-a-database/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dashboard/08-adding-authentication/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dashboard/09-fetching-dashboard-data/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dashboard/10-mutating-dashboard-data/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dashboard/11-adding-search-and-pagination/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dashboard/12-debugging-and-testing/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dashboard/13-adding-metadata/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions dashboard/14-deploying/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions dashboard/15-final/public/acme-logo.svg

This file was deleted.

Binary file removed dashboard/15-final/public/customers/amy-burns.png
Binary file not shown.
Binary file removed dashboard/15-final/public/customers/balazs-orban.png
Binary file not shown.
Binary file not shown.
Binary file removed dashboard/15-final/public/customers/tom-occhino.png
Binary file not shown.
20 changes: 0 additions & 20 deletions dashboard/15-final/public/icon.svg

This file was deleted.

Binary file removed dashboard/15-final/public/og-image.png
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
// https://nextjs.org/learn/dashboard-app/fetching-data
const users = [
{
id: '410544b2-4001-4271-9855-68f1c4f65645',
id: '410544b2-4001-4271-9855-fec4b6a6442a',
name: 'User',
email: 'user@nextmail.com',
password: '123456',
CredentialsSignin,
},
];

Expand All @@ -25,15 +24,15 @@ const customers = [
},
{
id: '3958dc9e-737f-4377-85e9-fec4b6a6442a',
name: 'Guillermo Rauch',
email: 'guillermo@rauch.com',
image_url: '/customers/guillermo-rauch.png',
name: 'Hector Simpson',
email: 'hector@simpson.com',
image_url: '/customers/hector-simpson.png',
},
{
id: '50ca3e18-62cd-11ee-8c99-0242ac120002',
name: 'Jared Palmer',
email: 'jared@palmer.com',
image_url: '/customers/jared-palmer.png',
name: 'Steven Tey',
email: 'steven@tey.com',
image_url: '/customers/steven-tey.png',
},
{
id: '3958dc9e-787f-4377-85e9-fec4b6a6442a',
Expand All @@ -43,9 +42,9 @@ const customers = [
},
{
id: '76d65c26-f784-44a2-ac19-586678f7c2f2',
name: 'Tom Occhino',
email: 'tom@occhino.com',
image_url: '/customers/tom-occhino.png',
name: 'Michael Novotny',
email: 'michael@novotny.com',
image_url: '/customers/michael-novotny.png',
},
{
id: 'd6e15727-9fe1-4961-8c5b-ea44a9bd81aa',
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,13 @@ export default function LoginForm() {
</form>
);
}

function LoginButton() {
const { pending } = useFormStatus();

return (
<Button className="mt-4 w-full" aria-disabled={pending}>
Log in <ArrowRightIcon className="ml-auto h-5 w-5 text-gray-50" />
</Button>
);
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export default NextAuth(authConfig).auth;

export const config = {
// https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher
matcher: ['/((?!api|_next/static|_next/image|favicon.ico).*)'],
matcher: ['/((?!api|_next/static|_next/image|.png).*)'],
};
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const bcrypt = require('bcrypt');

async function seedUsers() {
try {
await sql`CREATE EXTENSION IF NOT EXISTS "uuid-ossp"`;
// Create the "invoices" table if it doesn't exist
const createTable = await sql`
CREATE TABLE IF NOT EXISTS users (
Expand Down
File renamed without changes.
12 changes: 2 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading