diff options
| author | Ben Beltran <ben@nsovocal.com> | 2017-08-30 00:29:19 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2017-08-30 00:29:19 -0500 |
| commit | b78f678de4f242b2a364bbf0cc39c8ec61ee5357 (patch) | |
| tree | 92cb79b266ec9b5b609a8e8ba829bda3d7315ca8 /lib/sorting_hat.js | |
| parent | dc7f608a828fc0b34a291af915727ab1f7d6ba0a (diff) | |
| parent | 21f11b5ae525f52fd1a2bf1a741ad79bfccb1278 (diff) | |
Diffstat (limited to 'lib/sorting_hat.js')
| -rw-r--r-- | lib/sorting_hat.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/sorting_hat.js b/lib/sorting_hat.js new file mode 100644 index 0000000..2568b75 --- /dev/null +++ b/lib/sorting_hat.js @@ -0,0 +1,37 @@ +import Vue from 'vue'; + +import WaveRendererComponent from './components/wave_renderer'; +import StatusComponent from './components/status'; + +/* global window */ + +const internals = {}; + +/** + * The main vue application, it is composed by the other components, no real + * logic otherwise + * + * @class SortingHat + */ +internals.SortingHat = { + + start() { + + this.vm = new Vue({ + el: '#sorting-hat', + components: { + waveRenderer: WaveRendererComponent, + status: StatusComponent + } + }); + } +}; + +// Instantiates the app + +internals.run = function () { + + internals.SortingHat.start(); +}; + +window.addEventListener('load', internals.run); |