wip: towards v1

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2022-04-05 00:15:11 +05:30
parent 829c52925a
commit 8733948056
531 changed files with 157998 additions and 44971 deletions

View File

@@ -82,25 +82,25 @@ export default {
functions = await this.$store.dispatch('sqlMgr/ActSqlOp', [{
env: this.nodes.env,
dbAlias: this.nodes.dbAlias,
tn: this.nodes.tn || this.nodes.view_name
table_name: this.nodes.table_name || this.nodes.view_name
}, 'defaultRestMiddlewareCodeGet', {
title: this.route.title,
relation_type: this.route.relation_type,
tn: this.nodes.tn || this.nodes.view_name
table_name: this.nodes.table_name || this.nodes.view_name
}])
} else {
functions = await this.$store.dispatch('sqlMgr/ActSqlOp', [{
env: this.nodes.env,
dbAlias: this.nodes.dbAlias,
tn: this.nodes.tn || this.nodes.view_name
table_name: this.nodes.table_name || this.nodes.view_name
}, 'defaultRestHandlerCodeGet', {
type: this.method,
path: this.route[this.method].path,
title: this.route[this.method].title,
relation_type: this.route[this.method].relation_type,
tnp: this.route[this.method].tnp,
tnc: this.route[this.method].tnc,
tn: this.nodes.tn || this.nodes.view_name
tnp: this.route[this.method].table_namep,
tnc: this.route[this.method].table_namec,
table_name: this.nodes.table_name || this.nodes.view_name
}])
}
if (functions && functions.length) {
@@ -118,7 +118,7 @@ export default {
env: this.nodes.env,
dbAlias: this.nodes.dbAlias
}, 'xcRoutesMiddlewareUpdate', {
tn: this.nodes.tn || this.nodes.view_name,
table_name: this.nodes.table_name || this.nodes.view_name,
type: this.method,
functions: [this.code],
title: this.route.title
@@ -133,7 +133,7 @@ export default {
functions: [this.code],
path: this.route[this.method].path,
relation_type: this.route[this.method].relation_type,
tn: this.nodes.tn || this.nodes.view_name
table_name: this.nodes.table_name || this.nodes.view_name
}])
}
this.$toast.success('API Handler updated successfully').goAway(3000)