|
@@ -14,6 +14,10 @@ import SeenUserList from './components/SeenUserList';
|
|
|
if (!window) {
|
|
if (!window) {
|
|
|
window = {};
|
|
window = {};
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+const mainContent = document.querySelector('#content-main');
|
|
|
|
|
+const pageId = mainContent.attributes['data-page-id'].value || null;
|
|
|
|
|
+
|
|
|
// FIXME
|
|
// FIXME
|
|
|
const crowi = new Crowi({me: $('#content-main').data('current-username')}, window);
|
|
const crowi = new Crowi({me: $('#content-main').data('current-username')}, window);
|
|
|
window.crowi = crowi;
|
|
window.crowi = crowi;
|
|
@@ -22,8 +26,6 @@ crowi.fetchUsers();
|
|
|
const crowiRenderer = new CrowiRenderer();
|
|
const crowiRenderer = new CrowiRenderer();
|
|
|
window.crowiRenderer = crowiRenderer;
|
|
window.crowiRenderer = crowiRenderer;
|
|
|
|
|
|
|
|
-const pageId = $('#content-main').data('page-id');
|
|
|
|
|
-
|
|
|
|
|
const componentMappings = {
|
|
const componentMappings = {
|
|
|
'search-top': <HeaderSearchBox />,
|
|
'search-top': <HeaderSearchBox />,
|
|
|
'search-page': <SearchPage />,
|
|
'search-page': <SearchPage />,
|