]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/vues/vues.js
Updated 'Spanish Argentina' translation.
[bookstack] / resources / assets / js / vues / vues.js
index a70d32009a04a6747f68a4f4daf06d67b8ed31c2..992c76422ac72fbe1deb504571622e69d0847e41 100644 (file)
@@ -11,14 +11,22 @@ let vueMapping = {
     'image-manager': require('./image-manager'),
     'tag-manager': require('./tag-manager'),
     'attachment-manager': require('./attachment-manager'),
+    'page-editor': require('./page-editor'),
 };
 
 window.vues = {};
 
-let ids = Object.keys(vueMapping);
-for (let i = 0, len = ids.length; i < len; i++) {
-    if (!exists(ids[i])) continue;
-    let config = vueMapping[ids[i]];
-    config.el = '#' + ids[i];
-    window.vues[ids[i]] = new Vue(config);
-}
\ No newline at end of file
+function load() {
+    let ids = Object.keys(vueMapping);
+    for (let i = 0, len = ids.length; i < len; i++) {
+        if (!exists(ids[i])) continue;
+        let config = vueMapping[ids[i]];
+        config.el = '#' + ids[i];
+        window.vues[ids[i]] = new Vue(config);
+    }
+}
+
+export default load;
+
+
+