feat(v2): debug pages + debug layout + ability to debug content (#3229)

* improve debug plugin:
- add multiple debug pages + debug layout
- ability to debug plugin contentLoaded data

* add missing dependency

* fix broken test

* improve content rendering a bit

* create basic DebugJsonView

* fix ReactJson SSR issues
This commit is contained in:
Sébastien Lorber 2020-08-07 11:47:43 +02:00 committed by GitHub
parent be210a1bc4
commit fe281a8ebe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 511 additions and 110 deletions

View file

@ -28,7 +28,6 @@ import {
import {PluginOptionSchema} from './pluginOptionSchema';
import {
LoadContext,
PluginContentLoadedActions,
ConfigureWebpackUtils,
Props,
Plugin,
@ -195,13 +194,7 @@ export default function pluginContentBlog(
};
},
async contentLoaded({
content: blogContents,
actions,
}: {
content: BlogContent;
actions: PluginContentLoadedActions;
}) {
async contentLoaded({content: blogContents, actions}) {
if (!blogContents) {
return;
}