function ajax(url, cb) { simplize.vue.http(url, { method: 'GET', xhr: { withCredentials: true } }).then(function(response) { cb(response.data); }) }
Table, Query, Process, Util } from 'websql.js'; import * as tables from './table'; import cookie from 'js-cookie'; import SDK from 'oauth2sdk'; import configs from 'json!../config.json'; import Resource from 'vue-resource'; import URL from 'url'; import { talk } from './js/util/chat'; import GlobalSocket from './js/util/socket'; simplize.vue.use(Resource); const oAuthOptions = { client_id: configs.AK, client_secret: configs.SK, remote: 'http://' + configs.remote, local: 'http://' + configs.host + '/?action=oauth' } const sdk = new SDK(ajax, oAuthOptions); simplize.vue.prototype.$sdk = sdk; simplize.ready(function(){ TrackSQL(function(database){