App Schema Auto Fix Feature
This commit is contained in:
1 parent
9bbabb14ca
commit
23f13fa0c3
6 files changed
+212
-41
No files matched your search
@@ -27,6 +27,7 @@ function newFoundationsDocsCommmandInterface() {
|
||||
function detectAppCommands() {
|
||||
if (checkContributeCommand() === undefined) { return true }
|
||||
if (checkUpdateCommand() === undefined) { return true }
|
||||
if (fixAppSchema() === undefined) { return true }
|
||||
|
||||
function checkContributeCommand() {
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.toLowerCase() === 'app.help app.contribute') {
|
||||
@@ -130,6 +131,19 @@ function newFoundationsDocsCommmandInterface() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function fixAppSchema() {
|
||||
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('App.fix') !== 0 && UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('app.fix') !== 0) { return 'Not Update Commands' }
|
||||
|
||||
httpRequest(undefined, 'App/FixAppSchema', onResponse)
|
||||
|
||||
return
|
||||
|
||||
function onResponse(err, data) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function detectDocsCommands() {
|
||||
|
||||
Reference in new issue
Block a user