diff options
Diffstat (limited to 'app/assets/javascripts/releases/mount_show.js')
-rw-r--r-- | app/assets/javascripts/releases/mount_show.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/assets/javascripts/releases/mount_show.js b/app/assets/javascripts/releases/mount_show.js new file mode 100644 index 00000000000..73e34869b21 --- /dev/null +++ b/app/assets/javascripts/releases/mount_show.js @@ -0,0 +1,21 @@ +import Vue from 'vue'; +import ReleaseShowApp from './components/app_show.vue'; +import createStore from './stores'; +import detailModule from './stores/modules/detail'; + +export default () => { + const el = document.getElementById('js-show-release-page'); + + const store = createStore({ + modules: { + detail: detailModule, + }, + }); + store.dispatch('detail/setInitialState', el.dataset); + + return new Vue({ + el, + store, + render: h => h(ReleaseShowApp), + }); +}; |