mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
export itself
This commit is contained in:
@@ -13,8 +13,6 @@ import locale from 'element-ui/lib/locale/lang/en';
|
||||
|
||||
import sharedRepository from './repository/shared.js';
|
||||
import configRepository from './repository/config.js';
|
||||
window.sharedRepository = sharedRepository;
|
||||
window.configRepository = configRepository;
|
||||
import webApiService from './service/webapi.js';
|
||||
|
||||
(async function () {
|
||||
|
||||
@@ -60,6 +60,7 @@ async function syncLoop() {
|
||||
}
|
||||
|
||||
var self = new ConfigRepository();
|
||||
window.configRepository = self;
|
||||
|
||||
export {
|
||||
self as default,
|
||||
|
||||
@@ -97,6 +97,7 @@ function transformKey(key) {
|
||||
}
|
||||
|
||||
var self = new SharedRepository();
|
||||
window.sharedRepository = self;
|
||||
|
||||
export {
|
||||
self as default,
|
||||
|
||||
@@ -21,6 +21,7 @@ class SQLiteService {
|
||||
}
|
||||
|
||||
var self = new SQLiteService();
|
||||
window.sqliteService = self;
|
||||
|
||||
export {
|
||||
self as default,
|
||||
|
||||
@@ -8,6 +8,7 @@ class WebApiService {
|
||||
execute(options) {
|
||||
return new Promise((resolve, reject) => {
|
||||
WebApi.Execute(options, (err, response) => {
|
||||
console.log('WebApi', options, { err, response });
|
||||
if (err !== null) {
|
||||
reject(err);
|
||||
return;
|
||||
@@ -19,6 +20,7 @@ class WebApiService {
|
||||
}
|
||||
|
||||
var self = new WebApiService();
|
||||
window.webApiService = self;
|
||||
|
||||
export {
|
||||
self as default,
|
||||
|
||||
@@ -12,9 +12,6 @@ import locale from 'element-ui/lib/locale/lang/en';
|
||||
import sharedRepository from './repository/shared.js';
|
||||
import configRepository from './repository/config.js';
|
||||
|
||||
window.sharedRepository = sharedRepository;
|
||||
window.configRepository = configRepository;
|
||||
|
||||
(async function () {
|
||||
await CefSharp.BindObjectAsync(
|
||||
'VRCX',
|
||||
|
||||
Reference in New Issue
Block a user