-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into admin-gen-configurable_support-nested
- Loading branch information
Showing
189 changed files
with
3,890 additions
and
2,332 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,5 @@ | ||
--- | ||
"@comet/cms-api": patch | ||
--- | ||
|
||
API Generator: Disable input generation if `create` and `update` are set to `false` in the decorator |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
--- | ||
"@comet/admin-theme": minor | ||
--- | ||
|
||
Slightly increase the default size of dialogs |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
--- | ||
"@comet/cms-admin": major | ||
"@comet/cms-api": major | ||
"@comet/eslint-config": minor | ||
"@comet/cms-site": minor | ||
--- | ||
|
||
Migrate site preview to Next.js Preview Mode | ||
|
||
Requires following changes to site: | ||
|
||
- Import `useRouter` from `next/router` (not exported from `@comet/cms-site` anymore) | ||
- Import `Link` from `next/link` (not exported from `@comet/cms-site` anymore) | ||
- Remove preview pages (pages in `src/pages/preview/` directory which call `createGetUniversalProps` with preview parameters) | ||
- Remove `createGetUniversalProps` | ||
- Just implement `getStaticProps`/`getServerSideProps` (Preview Mode will SSR automatically) | ||
- Get `previewData` from `context` and use it to configure the GraphQL Client | ||
- Add `SitePreviewProvider` to `App` (typically in `src/pages/_app.tsx`) | ||
- Add `/api/preview` Next API route (see demo) | ||
|
||
Requires following changes to API: | ||
|
||
- Set `sitePreviewSecret` in `PageTreeModule`-options (make sure it's the same across multiple API-instances) |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ lang/ | |
.pnp.* | ||
junit.xml | ||
.env.local | ||
**/.idea |
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.