2017-03-17 22:41:11 +00:00
|
|
|
import Vue from 'vue';
|
2017-03-17 17:30:32 +00:00
|
|
|
import PipelinesStore from './stores/pipelines_store';
|
|
|
|
import PipelinesComponent from './pipelines';
|
|
|
|
import '../vue_shared/vue_resource_interceptor';
|
|
|
|
|
2017-02-05 20:44:01 +00:00
|
|
|
$(() => new Vue({
|
2017-03-14 09:30:57 +00:00
|
|
|
el: document.querySelector('#pipelines-list-vue'),
|
2017-01-28 21:26:04 +00:00
|
|
|
|
2017-02-05 20:44:01 +00:00
|
|
|
data() {
|
2017-03-17 17:30:32 +00:00
|
|
|
const store = new PipelinesStore();
|
2017-01-28 21:26:04 +00:00
|
|
|
|
2017-02-05 20:44:01 +00:00
|
|
|
return {
|
2017-03-17 17:30:32 +00:00
|
|
|
store,
|
2017-02-05 20:44:01 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
components: {
|
2017-03-17 17:30:32 +00:00
|
|
|
'vue-pipelines': PipelinesComponent,
|
2017-02-05 20:44:01 +00:00
|
|
|
},
|
|
|
|
template: `
|
2017-03-17 19:14:16 +00:00
|
|
|
<vue-pipelines :store="store" />
|
2017-02-05 20:44:01 +00:00
|
|
|
`,
|
|
|
|
}));
|