Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jan 8, 2025
1 parent 99ea610 commit 93e25b1
Show file tree
Hide file tree
Showing 9 changed files with 1,313 additions and 3,882 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/argos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,3 @@ jobs:

- name: Build the website
run: npm run build

- name: Take screenshots with Playwright
run: npm exec playwright test -- --config playwright-argos.config.ts

- name: Upload screenshots to Argos
run: npm exec argos upload ./screenshots
6 changes: 3 additions & 3 deletions code-examples/protect-page-login/nextjs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { edgeConfig } from "@ory/integrations/next"
const ory = new FrontendApi(new Configuration(edgeConfig))

// Returns either the email or the username depending on the user's Identity Schema
const getUserName = (identity: Identity) =>
identity.traits.email || identity.traits.username
const getUserName = (identity: Identity | undefined) =>
identity?.traits.email || identity?.traits.username || "user"
// highlight-end

const inter = Inter({ subsets: ["latin"] })
Expand Down Expand Up @@ -58,7 +58,7 @@ export default function Home() {
<main className={styles.main}>
<div className={styles.description}>
{/* highlight-start */}
<p>Hello, {getUserName(session?.identity)}</p>
<p>Hello, {getUserName(session.identity)}</p>
<div>
<p className={styles.description}>
<a href={logoutUrl}>Log out</a>
Expand Down
5,046 changes: 1,301 additions & 3,745 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 9 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,14 @@
},
"dependencies": {
"@apidevtools/json-schema-ref-parser": "11.5.4",
"@argos-ci/cli": "2.0.1",
"@argos-ci/playwright": "3.0.1",
"@docusaurus/core": "3.6.3",
"@docusaurus/plugin-client-redirects": "3.6.3",
"@docusaurus/plugin-content-docs": "3.6.3",
"@docusaurus/plugin-content-pages": "3.6.3",
"@docusaurus/plugin-sitemap": "3.6.3",
"@docusaurus/preset-classic": "3.6.3",
"@docusaurus/theme-classic": "3.6.3",
"@docusaurus/theme-search-algolia": "3.6.3",
"@docusaurus/core": "3.7.0",
"@docusaurus/plugin-client-redirects": "3.7.0",
"@docusaurus/plugin-content-docs": "3.7.0",
"@docusaurus/plugin-content-pages": "3.7.0",
"@docusaurus/plugin-sitemap": "3.7.0",
"@docusaurus/preset-classic": "3.7.0",
"@docusaurus/theme-classic": "3.7.0",
"@docusaurus/theme-search-algolia": "3.7.0",
"@octokit/rest": "20.0.2",
"@ory/client-fetch": "1.15.16",
"@rjsf/chakra-ui": "5.17.1",
Expand All @@ -52,7 +50,7 @@
"file-loader": "6.2.0",
"json-loader": "0.5.7",
"json-schema-faker": "0.5.6",
"mermaid": "9.3.0",
"mermaid": "11.4.1",
"net": "1.0.2",
"node-fetch": "2.6.7",
"node-polyfill-webpack-plugin": "3.0.0",
Expand Down
25 changes: 0 additions & 25 deletions playwright-argos.config.ts

This file was deleted.

1 change: 0 additions & 1 deletion tests/playwright-argos/README.md

This file was deleted.

20 changes: 0 additions & 20 deletions tests/playwright-argos/screenshot.css

This file was deleted.

52 changes: 0 additions & 52 deletions tests/playwright-argos/screenshot.spec.ts

This file was deleted.

19 changes: 0 additions & 19 deletions tests/playwright-argos/utils.ts

This file was deleted.

0 comments on commit 93e25b1

Please sign in to comment.