]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/components/index.js
Changed the location of the "view-toggle" to be under the books views.
[bookstack] / resources / assets / js / components / index.js
index 4cb16d06afcb6d62bd9da06a0e6e3270349d946b..aa69f326562fb0831a069bd17fcf1d22e9d07f71 100644 (file)
@@ -15,12 +15,14 @@ let componentMapping = {
     'markdown-editor': require('./markdown-editor'),
     'editor-toolbox': require('./editor-toolbox'),
     'image-picker': require('./image-picker'),
+    'collapsible': require('./collapsible'),
+    'toggle-switch': require('./toggle-switch'),
+    'page-display': require('./page-display'),
 };
 
 window.components = {};
 
 let componentNames = Object.keys(componentMapping);
-initAll();
 
 /**
  * Initialize components of the given name within the given element.
@@ -52,4 +54,6 @@ function initAll(parentElement) {
     }
 }
 
-window.components.init = initAll;
\ No newline at end of file
+window.components.init = initAll;
+
+export default initAll;
\ No newline at end of file