summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/static_site_editor/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/static_site_editor/index.js')
-rw-r--r--app/assets/javascripts/static_site_editor/index.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/assets/javascripts/static_site_editor/index.js b/app/assets/javascripts/static_site_editor/index.js
new file mode 100644
index 00000000000..4290cb9a9ba
--- /dev/null
+++ b/app/assets/javascripts/static_site_editor/index.js
@@ -0,0 +1,20 @@
+import Vue from 'vue';
+import StaticSiteEditor from './components/static_site_editor.vue';
+import createStore from './store';
+
+const initStaticSiteEditor = el => {
+ const store = createStore();
+
+ return new Vue({
+ el,
+ store,
+ components: {
+ StaticSiteEditor,
+ },
+ render(createElement) {
+ return createElement('static-site-editor', StaticSiteEditor);
+ },
+ });
+};
+
+export default initStaticSiteEditor;