mirror of https://gitee.com/bigwinds/arangodb
several frontend bugfixes, optimizations
This commit is contained in:
parent
b8ba262a10
commit
8dcc0740c8
|
@ -23,8 +23,7 @@
|
||||||
"cInfo/:colname": "cInfo",
|
"cInfo/:colname": "cInfo",
|
||||||
"collection/:colid/:docid": "document",
|
"collection/:colid/:docid": "document",
|
||||||
"shell": "shell",
|
"shell": "shell",
|
||||||
"queries": "query2",
|
"queries": "query",
|
||||||
"query2": "query",
|
|
||||||
"workMonitor": "workMonitor",
|
"workMonitor": "workMonitor",
|
||||||
"databases": "databases",
|
"databases": "databases",
|
||||||
"settings": "databases",
|
"settings": "databases",
|
||||||
|
@ -558,27 +557,12 @@
|
||||||
this.shellView.render();
|
this.shellView.render();
|
||||||
},
|
},
|
||||||
|
|
||||||
/*query: function (initialized) {
|
query: function (initialized) {
|
||||||
this.checkUser();
|
this.checkUser();
|
||||||
if (!initialized) {
|
if (!initialized) {
|
||||||
this.waitForInit(this.query.bind(this));
|
this.waitForInit(this.query.bind(this));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!this.queryView) {
|
|
||||||
this.queryView = new window.queryView({
|
|
||||||
collection: this.queryCollection
|
|
||||||
});
|
|
||||||
}
|
|
||||||
this.queryView.render();
|
|
||||||
},
|
|
||||||
*/
|
|
||||||
|
|
||||||
query2: function (initialized) {
|
|
||||||
this.checkUser();
|
|
||||||
if (!initialized) {
|
|
||||||
this.waitForInit(this.query2.bind(this));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!this.queryView2) {
|
if (!this.queryView2) {
|
||||||
this.queryView2 = new window.queryView2({
|
this.queryView2 = new window.queryView2({
|
||||||
collection: this.queryCollection
|
collection: this.queryCollection
|
||||||
|
|
|
@ -499,7 +499,7 @@
|
||||||
advancedTableContent.push(
|
advancedTableContent.push(
|
||||||
window.modalView.createSelectEntry(
|
window.modalView.createSelectEntry(
|
||||||
"new-collection-sync",
|
"new-collection-sync",
|
||||||
"Sync",
|
"Wait for sync",
|
||||||
"",
|
"",
|
||||||
"Synchronize to disk before returning from a create or update of a document.",
|
"Synchronize to disk before returning from a create or update of a document.",
|
||||||
[{value: false, label: "No"}, {value: true, label: "Yes"}]
|
[{value: false, label: "No"}, {value: true, label: "Yes"}]
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
$('#queryImportDialog').modal('show');
|
$('#queryImportDialog').modal('show');
|
||||||
},
|
},
|
||||||
|
|
||||||
closeExportDialo: function() {
|
closeExportDialog: function() {
|
||||||
$('#queryImportDialog').modal('hide');
|
$('#queryImportDialog').modal('hide');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -690,10 +690,12 @@
|
||||||
|
|
||||||
checkForNewBindParams: function() {
|
checkForNewBindParams: function() {
|
||||||
var self = this,
|
var self = this,
|
||||||
words = (this.aqlEditor.getValue()).split(" "),
|
text = this.aqlEditor.getValue() //Remove comments
|
||||||
|
.replace(/\s*\/\/.*\n/g, '\n')
|
||||||
|
.replace(/\s*\/\*.*?\*\//g, ''),
|
||||||
|
words = text.split(" "),
|
||||||
words1 = [],
|
words1 = [],
|
||||||
pos = 0;
|
pos = 0;
|
||||||
|
|
||||||
_.each(words, function(word) {
|
_.each(words, function(word) {
|
||||||
word = word.split("\n");
|
word = word.split("\n");
|
||||||
_.each(word, function(x) {
|
_.each(word, function(x) {
|
||||||
|
@ -1295,6 +1297,7 @@
|
||||||
warnings += "\r\n" + "Result:" + "\r\n\r\n";
|
warnings += "\r\n" + "Result:" + "\r\n\r\n";
|
||||||
}
|
}
|
||||||
outputEditor.setValue(warnings + JSON.stringify(data.result, undefined, 2));
|
outputEditor.setValue(warnings + JSON.stringify(data.result, undefined, 2));
|
||||||
|
outputEditor.getSession().setScrollTop(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
var fetchQueryResult = function(data) {
|
var fetchQueryResult = function(data) {
|
||||||
|
|
|
@ -92,11 +92,10 @@
|
||||||
arangoHelper.arangoError('Could not delete collection.');
|
arangoHelper.arangoError('Could not delete collection.');
|
||||||
},
|
},
|
||||||
success: function() {
|
success: function() {
|
||||||
window.modalView.hide();
|
window.App.navigate("#collections", {trigger: true});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
this.collectionsView.render();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
saveModifiedCollection: function() {
|
saveModifiedCollection: function() {
|
||||||
|
|
|
@ -187,7 +187,6 @@ div.headerBar {
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
};
|
};
|
||||||
text-transform: capitalize;
|
|
||||||
|
|
||||||
.fa {
|
.fa {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
|
|
@ -51,12 +51,12 @@
|
||||||
|
|
||||||
.fa {
|
.fa {
|
||||||
color: rgba(0, 0, 0, .2);
|
color: rgba(0, 0, 0, .2);
|
||||||
float: right;
|
float: left;
|
||||||
font-size: 14pt;
|
font-size: 14pt;
|
||||||
|
left: 30px;
|
||||||
margin-right: 44px;
|
margin-right: 44px;
|
||||||
margin-top: 11px;
|
margin-top: 11px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: -11px;
|
|
||||||
|
|
||||||
&.fa-lock {
|
&.fa-lock {
|
||||||
right: -9px;
|
right: -9px;
|
||||||
|
@ -87,7 +87,8 @@
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin: 0 0 15px;
|
margin: 0 0 15px;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
padding: 15px;
|
padding: 10px;
|
||||||
|
padding-left: 35px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -296,11 +296,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.errorMessage {
|
.errorMessage {
|
||||||
color: $c-negative;
|
background: $c-negative;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: $c-white;
|
||||||
font-size: 9pt;
|
font-size: 9pt;
|
||||||
font-weight: 400;
|
font-weight: 100;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
margin-top: -9px;
|
margin-top: -7px;
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
.selected-row {
|
.selected-row {
|
||||||
background-color: rgba(46, 204, 113, .2);
|
background-color: rgba(46, 204, 113, .2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dataTables_empty {
|
||||||
|
padding-left: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.pure-table {
|
.pure-table {
|
||||||
|
|
Loading…
Reference in New Issue