mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 05:05:42 +01:00
wip
This commit is contained in:
parent
b7596e357c
commit
d5f345c8f9
2 changed files with 8 additions and 16 deletions
|
@ -5,9 +5,7 @@
|
|||
// Style
|
||||
import './style.styl';
|
||||
|
||||
require('./tags');
|
||||
require('./mixins');
|
||||
import * as riot from 'riot';
|
||||
import Vue from 'vue';
|
||||
import init from '../init';
|
||||
import route from './router';
|
||||
import fuckAdBlock from './scripts/fuck-ad-block';
|
||||
|
@ -18,7 +16,7 @@ import composeNotification from '../common/scripts/compose-notification';
|
|||
/**
|
||||
* init
|
||||
*/
|
||||
init(async (mios: MiOS) => {
|
||||
init(async (mios: MiOS, app: Vue) => {
|
||||
/**
|
||||
* Fuck AD Block
|
||||
*/
|
||||
|
|
|
@ -13,7 +13,6 @@ import VueRouter from 'vue-router';
|
|||
Vue.use(VueRouter);
|
||||
|
||||
import checkForUpdate from './common/scripts/check-for-update';
|
||||
import mixin from './common/mixins';
|
||||
import MiOS from './common/mios';
|
||||
|
||||
/**
|
||||
|
@ -64,20 +63,15 @@ export default (callback, sw = false) => {
|
|||
const mios = new MiOS(sw);
|
||||
|
||||
mios.init(() => {
|
||||
// ミックスイン初期化
|
||||
mixin(mios);
|
||||
|
||||
// ローディング画面クリア
|
||||
const ini = document.getElementById('ini');
|
||||
ini.parentNode.removeChild(ini);
|
||||
|
||||
// アプリ基底要素マウント
|
||||
const app = document.createElement('div');
|
||||
app.setAttribute('id', 'app');
|
||||
document.body.appendChild(app);
|
||||
document.body.innerHTML = '<div id="app"><router-view></router-view></div>';
|
||||
|
||||
const app = new Vue({
|
||||
router: new VueRouter()
|
||||
}).$mount('#app');
|
||||
|
||||
try {
|
||||
callback(mios);
|
||||
callback(mios, app);
|
||||
} catch (e) {
|
||||
panic(e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue