-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' into jp-merl-1228-link-rewrites
- Loading branch information
Showing
30 changed files
with
801 additions
and
213 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 |
---|---|---|
@@ -1,43 +1,48 @@ | ||
--- | ||
name: '🐛 Bug Report' | ||
about: Report a reproducible bug or regression. | ||
about: Create a report to help us improve | ||
title: 'Bug: ' | ||
labels: 'Status: Unconfirmed' | ||
--- | ||
|
||
<!-- | ||
Please provide a clear and concise description of what the bug is. Include | ||
screenshots if needed. Please test using the latest version of the relevant | ||
FaustJS packages to make sure your issue has not already been fixed. | ||
Before you submit a bug report, please make sure you have searched for similar issues. | ||
Provide as much detail as possible so we can replicate the bug. Screenshots and screencasts | ||
are also helpful. We recommend testing with the latest versions of FaustJS packages. | ||
--> | ||
|
||
## Applicable Versions | ||
|
||
- `@faustjs/core` version: | ||
- `@faustjs/react` version: | ||
- `@faustjs/next` version: | ||
## Environment | ||
- `@faustwp/core` version: | ||
- `@faustwp/cli` version: | ||
- `@faustwp/blocks` version: | ||
- `@faustwp/block-editor-utils` version: | ||
- WordPress version: | ||
- Browser, OS, and other relevant software versions: | ||
|
||
## Steps To Reproduce | ||
|
||
1. | ||
2. | ||
|
||
## Description | ||
<!-- | ||
Your bug will get fixed much faster if we can run your code and it doesn't | ||
have dependencies other than what FaustJS requires. Issues without reproduction steps or | ||
code examples may be immediately closed as not actionable. | ||
A clear and concise description of what the bug is. Include any error messages or stack traces. | ||
If applicable, add screenshots to help explain your problem. | ||
--> | ||
|
||
Link to code example: | ||
|
||
## Steps to Reproduce | ||
<!-- | ||
Please provide a link to a repository on GitHub, or provide a | ||
minimal code example that reproduces the problem. You may provide a screenshot | ||
of the application if you think it is relevant to your bug report. | ||
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve. | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
--> | ||
|
||
## The current behavior | ||
## Expected vs. Actual Behavior | ||
<!-- | ||
What did you expect to happen, and what actually happened instead? | ||
The more detail, the better. Comparing your expectations to reality can help us pinpoint where the issue lies. | ||
--> | ||
|
||
## The expected behavior | ||
## Reproducible Demo | ||
<!-- | ||
Please provide a link to a live example, or an unambiguous set of steps to reproduce | ||
this bug. Include code to reproduce, if relevant. Sample projects on GitHub work well. | ||
Here's how to provide a Minimal, Complete, and Verifiable example: https://stackoverflow.com/help/mcve. | ||
--> |
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,36 @@ | ||
name: Experimental App Router Build & Test | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
experimental_app_router_build_test: | ||
name: "Build and Test Experimental App Router on Node.js ${{ matrix.node }} ${{ matrix.os }}" | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-latest'] | ||
node: ['18', '20'] | ||
permissions: | ||
checks: write | ||
pull-requests: write | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Install | ||
run: npm ci | ||
|
||
- name: Build (Monorepo) | ||
run: npm run build | ||
|
||
- name: Build | ||
run: npm run build | ||
working-directory: packages/experimental-app-router | ||
|
||
- name: Tests | ||
run: npm run test | ||
working-directory: packages/experimental-app-router |
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 |
---|---|---|
@@ -1 +1 @@ | ||
engine-strict=true | ||
engine-strict=false |
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 @@ | ||
'use server'; | ||
|
||
import { onLogin } from '@faustwp/experimental-app-router'; | ||
import { redirect } from 'next/navigation'; | ||
|
||
export async function loginAction(prevData: any, formData: FormData) { | ||
const res = await onLogin(formData); | ||
|
||
if (res.error) { | ||
return res; | ||
} | ||
|
||
redirect('/my-account'); | ||
} |
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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
import { withFaust } from '@faustwp/core'; | ||
|
||
/** @type {import('next').NextConfig} */ | ||
export default withFaust({ | ||
experimental: { | ||
serverActions: true, | ||
}, | ||
}); | ||
export default withFaust(); |
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.