blob: 6f85432a77ead92784b97b905a39614fdd1b3880 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import Vue from 'vue';
import Vuex from 'vuex';
import AuthorSelectApp from './components/author_select.vue';
import store from './store';
Vue.use(Vuex);
export default el => {
if (!el) {
return null;
}
store.dispatch('setInitialData', el.dataset);
return new Vue({
el,
store,
render(h) {
return h(AuthorSelectApp, {
props: {
projectCommitsEl: document.querySelector('.js-project-commits-show'),
},
});
},
});
};
|