]> git.r.bdr.sh - rbdr/sorting-hat-renderer/blame_incremental - lib/sorting_hat.js
Update docs / remove bundle
[rbdr/sorting-hat-renderer] / lib / sorting_hat.js
... / ...
CommitLineData
1import Vue from 'vue';
2
3import WaveRendererComponent from './components/wave_renderer';
4import StatusComponent from './components/status';
5
6/* global window */
7
8const internals = {};
9
10internals.SortingHat = {
11
12 start() {
13
14 this.vm = new Vue({
15 el: '#sorting-hat',
16 components: {
17 waveRenderer: WaveRendererComponent,
18 status: StatusComponent
19 }
20 });
21 }
22};
23
24
25internals.run = function () {
26
27 internals.SortingHat.start();
28};
29
30window.addEventListener('load', internals.run);