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