2020-08-13 21:10:04 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import App from './components/app.vue';
|
|
|
|
import store from './store';
|
|
|
|
|
2020-09-08 21:08:53 +00:00
|
|
|
let whatsNewApp;
|
2020-08-13 21:10:04 +00:00
|
|
|
|
2020-09-08 21:08:53 +00:00
|
|
|
export default () => {
|
|
|
|
if (whatsNewApp) {
|
|
|
|
store.dispatch('openDrawer');
|
|
|
|
} else {
|
|
|
|
const whatsNewElm = document.getElementById('whats-new-app');
|
2020-08-13 21:10:04 +00:00
|
|
|
|
2020-09-08 21:08:53 +00:00
|
|
|
whatsNewApp = new Vue({
|
|
|
|
el: whatsNewElm,
|
|
|
|
store,
|
|
|
|
components: {
|
|
|
|
App,
|
|
|
|
},
|
|
|
|
render(createElement) {
|
|
|
|
return createElement('app', {
|
|
|
|
props: {
|
2020-09-28 18:09:40 +00:00
|
|
|
storageKey: whatsNewElm.getAttribute('data-storage-key'),
|
2020-09-08 21:08:53 +00:00
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
2020-08-13 21:10:04 +00:00
|
|
|
};
|