Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions src/connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ import Vue from 'vue'
import reqwest from './plugins/reqwest.js'
import { _t } from './plugins/gettext.js'

const serverUrl = 'http://localhost:9092'

const ACCESS_TOKEN_KEY = 'ACCESS_TOKEN'
const REFRESH_TOKEN_KEY = 'REFRESH_TOKEN'

const clientId = '0gvr1GFNpCy9fSpxsKHPdUPUu7ZSCQS76zc8kAgl'
const clientSecret = 'dazoA4IhCGrWrkh2rA02FE1qm3AVWdAz9qKqSZDLAD22xWiVYsEeMtq2BmqVY748U8Qw9jecBo9BHYYG3nZDgOUUwaEFjjDir1VX25ejnCvEcwdzV3Wt2Rxcnt45lxaN'
// const serverUrl = 'http://localhost:9092'
// const clientId = '0gvr1GFNpCy9fSpxsKHPdUPUu7ZSCQS76zc8kAgl'
// const clientSecret = 'dazoA4IhCGrWrkh2rA02FE1qm3AVWdAz9qKqSZDLAD22xWiVYsEeMtq2BmqVY748U8Qw9jecBo9BHYYG3nZDgOUUwaEFjjDir1VX25ejnCvEcwdzV3Wt2Rxcnt45lxaN'

const serverUrl = 'https://codebang.dashingsoft.com'
const clientId = 'rgt9yKrM82ACFiKLW2aIwxYUCIUV8ggx2OH5hvu8'
const clientSecret = 'hiWi4Q8k4TR1aAF8PGtqjL7DiY15gBFXjYQ9UM5F3EV5mneJbo88LlXqst0PcfpYVhPQyKc1jjlICggI0otTjOv6zoP89Q0uBNoLsEqkRVmi2G4w5Snn9dBADHx7UxaT'

// Fix this issue:
// Do not access Object.prototype method ‘hasOwnProperty’ from target object no-prototype-builtins
Expand Down Expand Up @@ -177,9 +180,9 @@ const make_multipart_data = function (args, files) {
}

export default new Vue({
computed: {
isAuthenticated: function () {
return is_authenticated()
data() {
return {
isAuthenticated: false
}
},
methods: {
Expand Down Expand Up @@ -249,6 +252,7 @@ export default new Vue({
const callback = function (success, result) {
if (!success && !silent)
this.showError(result.message)
this.isAuthenticated = is_authenticated()
this.$emit('api-login', success, result)
}.bind(this)
get_token(username, password, callback)
Expand All @@ -257,6 +261,7 @@ export default new Vue({
const callback = function (success, result) {
if (!success && !silent)
this.showError(result.message)
this.isAuthenticated = is_authenticated()
this.$emit('api-logout', success, result)
}.bind(this)
revoke_token(callback)
Expand Down
14 changes: 10 additions & 4 deletions tools/lldb-proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class Debugger(object):
def __init__(self):
self.debugger = lldb.SBDebugger.Create()
self.debugger.SetAsync(False)
self.interpreter = self.debugger.GetCommandInterpreter()
self.res = lldb.SBCommandReturnObject()
self.target = None

def handle_command(self, command):
Expand All @@ -57,12 +59,16 @@ def handle_command(self, command):
raise RuntimeError('No %s found' % name)

m = getattr(obj, action)
if m is None:
raise RuntimeError('No method %s found' % action)
if m is not None:
return m(*args)

return m(*args)
if name == 'debugger':
# self.debugger.HandleCommand(command)
self.res.clear()
self.interpreter.HandleCommand(action, self.res)
return self.res.Succeeded()

# self.debugger.HandleCommand(command)
raise RuntimeError('No method %s found for %s' % (action, name))

def _add_breakpoint(self, bp=None):
main_bp = self.target.BreakpointCreateByName(
Expand Down
3 changes: 3 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
publicPath: "/app/"
}