Add cms id to master root
This commit is contained in:
parent
f2bf4bf7ba
commit
84613f3571
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@simplecms/simple-cms-core",
|
"name": "@simplecms/simple-cms-core",
|
||||||
"version": "0.1.6",
|
"version": "0.1.7",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "Simple CMS core application.",
|
"description": "Simple CMS core application.",
|
||||||
"repository": "https://github.com/SimpleCMS/simple-cms",
|
"repository": "https://github.com/SimpleCMS/simple-cms",
|
||||||
@ -23,7 +23,7 @@
|
|||||||
"lint:format": "prettier \"{{src,scripts,website}/**/,}*.{js,jsx,ts,tsx,css}\" --list-different",
|
"lint:format": "prettier \"{{src,scripts,website}/**/,}*.{js,jsx,ts,tsx,css}\" --list-different",
|
||||||
"lint:js": "eslint --color --ignore-path .gitignore \"{{src,scripts,website}/**/,}*.{js,jsx,ts,tsx}\"",
|
"lint:js": "eslint --color --ignore-path .gitignore \"{{src,scripts,website}/**/,}*.{js,jsx,ts,tsx}\"",
|
||||||
"lint": "run-p -c --aggregate-output \"lint:*\"",
|
"lint": "run-p -c --aggregate-output \"lint:*\"",
|
||||||
"prepare": "yarn build",
|
"prepublishOnly": "yarn build",
|
||||||
"start": "run-s clean develop"
|
"start": "run-s clean develop"
|
||||||
},
|
},
|
||||||
"module": "dist/esm/index.js",
|
"module": "dist/esm/index.js",
|
||||||
|
16
src/bootstrap.js
vendored
16
src/bootstrap.js
vendored
@ -21,13 +21,15 @@ const ROOT_ID = 'nc-root';
|
|||||||
|
|
||||||
function TranslatedApp({ locale, config }) {
|
function TranslatedApp({ locale, config }) {
|
||||||
return (
|
return (
|
||||||
<I18n locale={locale} messages={getPhrases(locale)}>
|
<div id="cms">
|
||||||
<ErrorBoundary showBackup config={config}>
|
<I18n locale={locale} messages={getPhrases(locale)}>
|
||||||
<Router history={history}>
|
<ErrorBoundary showBackup config={config}>
|
||||||
<App />
|
<Router history={history}>
|
||||||
</Router>
|
<App />
|
||||||
</ErrorBoundary>
|
</Router>
|
||||||
</I18n>
|
</ErrorBoundary>
|
||||||
|
</I18n>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user