-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Docusaurus: fix:DA-199 update code highlighting name"" (
#5811) * Revert "Revert "Docusaurus: fix:DA-199 update code highlighting name (#5794)"…" This reverts commit 7e00317. * update colors
- Loading branch information
Showing
247 changed files
with
861 additions
and
3,189 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 |
---|---|---|
|
@@ -154,15 +154,15 @@ import { PrismaClient } from '@prisma/client' | |
const prisma = new PrismaClient() | ||
|
||
async function main() { | ||
// highlight-start | ||
// add-start | ||
const user = await prisma.user.create({ | ||
data: { | ||
name: 'Alice', | ||
email: '[email protected]', | ||
}, | ||
}) | ||
console.log(user) | ||
// highlight-end | ||
// add-end | ||
} | ||
|
||
main() | ||
|
@@ -210,10 +210,10 @@ import { PrismaClient } from '@prisma/client' | |
const prisma = new PrismaClient() | ||
|
||
async function main() { | ||
// highlight-start | ||
// add-start | ||
const users = await prisma.user.findMany() | ||
console.log(users) | ||
// highlight-end | ||
// add-end | ||
} | ||
|
||
main() | ||
|
@@ -263,7 +263,7 @@ import { PrismaClient } from '@prisma/client' | |
const prisma = new PrismaClient() | ||
|
||
async function main() { | ||
// highlight-start | ||
// add-start | ||
const user = await prisma.user.create({ | ||
data: { | ||
name: 'Bob', | ||
|
@@ -276,7 +276,7 @@ async function main() { | |
}, | ||
}) | ||
console.log(user) | ||
// highlight-end | ||
// add-end | ||
} | ||
|
||
main() | ||
|
@@ -322,14 +322,14 @@ import { PrismaClient } from '@prisma/client' | |
const prisma = new PrismaClient() | ||
|
||
async function main() { | ||
// highlight-start | ||
// add-start | ||
const usersWithPosts = await prisma.user.findMany({ | ||
include: { | ||
posts: true, | ||
}, | ||
}) | ||
console.dir(usersWithPosts, { depth: null }) | ||
// highlight-end | ||
// add-end | ||
} | ||
|
||
main() | ||
|
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
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
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.