1
0
Fork 0

added es6 to es5 conversion for some modules, fixed issue #1485

This commit is contained in:
hkernbach 2015-09-22 09:28:46 +02:00
parent 8591661af4
commit 3643159055
81 changed files with 25054 additions and 18436 deletions

View File

@ -81,7 +81,7 @@
"frontend/js/arango/arango.js",
"frontend/js/arango/templateEngine.js",
"frontend/js/shell/browser.js",
"frontend/js/config/dygraphConfig.js",
"frontend/js/config/dygraphConfig.js",/*
"frontend/js/modules/underscore.js",
"frontend/js/modules/org/arangodb/aql/explainer.js",
"frontend/js/modules/org/arangodb/aql/functions.js",
@ -105,7 +105,7 @@
"frontend/js/modules/org/arangodb/simple-query.js",
"frontend/js/modules/org/arangodb/tutorial.js",
"frontend/js/modules/org/arangodb-common.js",
"frontend/js/modules/org/arangodb.js",
"frontend/js/modules/org/arangodb.js",*/
"frontend/js/bootstrap/errors.js",
"frontend/js/bootstrap/monkeypatches.js",
"frontend/js/bootstrap/module-internal.js",
@ -352,6 +352,20 @@
}
}
},
sharedES: {
src: [
"frontend/js/modules/**/*.js",
],
dest: 'frontend/build/arangoes6.js',
options: {
extractRequired: function () {
return [];
},
extractDeclared: function () {
return [];
}
}
},
jsCluster: {
src: [
"frontend/js/lib/dygraph-combined.js",
@ -448,13 +462,25 @@
]
},
babel: {
options: {
sourceMap: false
},
dist: {
files: {
'frontend/build/arangoes5.js': 'frontend/build/arangoes6.js'
}
}
},
uglify: {
dist: {
files: {
'frontend/build/app.min.js': 'frontend/build/app.js',
'clusterFrontend/build/cluster.min.js': 'clusterFrontend/build/cluster.js',
'frontend/src/ace.min.js': 'frontend/src/ace.js',
'build/sharedLibs.min.js': 'build/sharedLibs.js'
'build/sharedLibs.min.js': 'build/sharedLibs.js',
'frontend/build/arangoes5.min.js': 'frontend/build/arangoes5.js'
}
}
},
@ -480,11 +506,13 @@
},
concat_in_order: {
files: [
'!frontend/js/modules/**/*.js',
'frontend/js/{,*/}*.js',
'frontend/js/graphViewer/**/*.js',
'clusterFrontend/js/{,*/}*.js'
],
tasks: [
'concat_in_order:sharedES',
'concat_in_order:sharedLibs',
'concat_in_order:default',
'concat_in_order:jsCluster',
@ -512,8 +540,9 @@
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks('grunt-contrib-htmlmin')
grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-contrib-htmlmin');
grunt.loadNpmTasks('grunt-contrib-uglify');
require('load-grunt-tasks')(grunt);
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.loadNpmTasks('grunt-text-replace');
@ -524,11 +553,13 @@
'replace',
'imagemin',
'concat',
'concat_in_order:sharedES',
'concat_in_order:sharedLibs',
'concat_in_order:default',
'concat_in_order:jsCluster',
'concat_in_order:htmlCluster',
'concat_in_order:htmlStandalone',
'babel',
'cssmin',
'uglify',
'htmlmin',
@ -541,6 +572,7 @@
'sass:dev',
'replace',
'concat',
'concat_in_order:sharedES',
'concat_in_order:sharedLibs',
'concat_in_order:default',
'concat_in_order:jsCluster',
@ -551,6 +583,7 @@
grunt.registerTask('deploy', [
'sass:dist',
'concat_in_order:sharedES',
'concat_in_order:sharedLibs',
'concat_in_order:default',
'concat_in_order:jsCluster',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2158,6 +2158,10 @@ div.queryline select, div.queryline input, input.search-input, .modal-body .sele
margin-left: -5px;
margin-top: -1px;
width: 40%; }
.navbar .arango-collection-select {
position: relative;
right: -22px;
top: 4px; }
.navbar .nav .dropdown .active > .dropdown-toggle, .navbar .nav .dropdown .open > .dropdown-toggle, .navbar .nav .dropdown .open.active > .dropdown-toggle {
background: #788f3d; }
.navbar .nav > .active > a {
@ -4900,6 +4904,7 @@ div.dropdownInner {
div.dropdownInner ul {
border-left: 1px solid rgba(140, 138, 137, 0.25);
display: inline;
list-style-type: none;
margin-top: 10px;
min-height: 105px;
width: 230px; }

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1 +1,2 @@
<script src="app.js?version=1442220392252"></script>
<script src="app.js?version=1442906628925"></script>
<script src="arangoes5.js?version=1442906628925"></script>

View File

@ -2640,4 +2640,4 @@ var cutByResolution = function (str) {
<% }); %>
</ul>
</div>
<% } %></script></head><body><nav class="navbar"><div class="resizecontainer"><div class="navlogo"><a class="logo" href="#"><img class="arangodbLogo" src="img/arangodb_logo_small.png"></a></div><div id="progressPlaceholderIcon"></div><div class="statmenu" id="statisticBar"></div><div class="usermenu" id="userBar" style="float:right"></div><div class="notificationmenu" id="notificationBar" style="float:right"></div><div class="navmenu" id="navigationBar"></div></div></nav><div class="centralRow resizecontainer"><div id="content" class="centralContent"></div></div><div id="modalPlaceholder"></div><div id="progressPlaceholder" style="display:none"></div><footer class="footer"><div class="resizecontainer" id="footerBar"></div></footer><script src="app.js?version=1442220392252"></script></body></html>
<% } %></script></head><body><nav class="navbar"><div class="resizecontainer"><div class="navlogo"><a class="logo" href="#"><img class="arangodbLogo" src="img/arangodb_logo_small.png"></a></div><div id="progressPlaceholderIcon"></div><div class="statmenu" id="statisticBar"></div><div class="usermenu" id="userBar" style="float:right"></div><div class="notificationmenu" id="notificationBar" style="float:right"></div><div class="navmenu" id="navigationBar"></div></div></nav><div class="centralRow resizecontainer"><div id="content" class="centralContent"></div></div><div id="modalPlaceholder"></div><div id="progressPlaceholder" style="display:none"></div><footer class="footer"><div class="resizecontainer" id="footerBar"></div></footer><script src="app.js?version=1442906628925"></script><script src="arangoes5.js?version=1442906628925"></script></body></html>

View File

@ -2896,7 +2896,8 @@ var cutByResolution = function (str) {
</div>
</footer>
<script src="app.js?version=1442220392252"></script>
<script src="app.js?version=1442906628925"></script>
<script src="arangoes5.js?version=1442906628925"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -2143,6 +2143,10 @@ div.queryline select, div.queryline input, input.search-input, .modal-body .sele
margin-left: -5px;
margin-top: -1px;
width: 40%; }
.navbar .arango-collection-select {
position: relative;
right: -22px;
top: 4px; }
.navbar .nav .dropdown .active > .dropdown-toggle, .navbar .nav .dropdown .open > .dropdown-toggle, .navbar .nav .dropdown .open.active > .dropdown-toggle {
background: #788f3d; }
.navbar .nav > .active > a {
@ -4885,6 +4889,7 @@ div.dropdownInner {
div.dropdownInner ul {
border-left: 1px solid rgba(140, 138, 137, 0.25);
display: inline;
list-style-type: none;
margin-top: 10px;
min-height: 105px;
width: 230px; }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 B

After

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 B

After

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 848 B

After

Width:  |  Height:  |  Size: 66 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 848 B

After

Width:  |  Height:  |  Size: 66 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 B

After

Width:  |  Height:  |  Size: 53 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 B

After

Width:  |  Height:  |  Size: 56 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 B

After

Width:  |  Height:  |  Size: 57 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 B

After

Width:  |  Height:  |  Size: 57 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 B

After

Width:  |  Height:  |  Size: 56 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 B

After

Width:  |  Height:  |  Size: 59 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 B

After

Width:  |  Height:  |  Size: 73 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 B

After

Width:  |  Height:  |  Size: 73 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 747 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 920 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 103 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 661 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 893 B

After

Width:  |  Height:  |  Size: 669 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 622 B

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 618 B

After

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 893 B

After

Width:  |  Height:  |  Size: 660 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 855 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 652 B

After

Width:  |  Height:  |  Size: 557 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 B

After

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 B

After

Width:  |  Height:  |  Size: 93 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 770 B

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@ -1 +1,2 @@
<script src="app.js?version=__VERSION"></script>
<script src="arangoes5.js?version=__VERSION"></script>

View File

@ -41,7 +41,7 @@
}
this.demoView.render();
this.naviView.selectMenuItem('demo-menu');
//this.naviView.selectMenuItem('demo-menu');
},
initialize: function () {

View File

@ -66,6 +66,7 @@ div.dropdownInner {
@extend %pull-left;
border-left: 1px solid $c-content-border;
display: inline;
list-style-type: none;
margin-top: 10px;
min-height: 105px;
width: 230px;

View File

@ -22,6 +22,12 @@
width: 40%;
}
.arango-collection-select {
position: relative;
right: -22px;
top: 4px;
}
.nav {
.dropdown {

View File

@ -71,6 +71,10 @@
"path": "build/sharedLibs.min.js",
"gzip": true
},
"/arangoes5.js": {
"path": "frontend/build/arangoes5.min.js",
"gzip": true
},
"/app.js": {
"path": "frontend/build/app.min.js",
"gzip": true

View File

@ -9,6 +9,7 @@
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-babel": "^5.0.1",
"grunt-concat-in-order": "^0.1.6",
"grunt-contrib-compress": "^0.13.0",
"grunt-contrib-concat": "^0.5.1",
@ -17,7 +18,7 @@
"grunt-contrib-imagemin": "^0.9.4",
"grunt-contrib-jshint": "^0.11.0",
"grunt-contrib-sass": "^0.8.1",
"grunt-contrib-uglify": "^0.9.1",
"grunt-contrib-uglify": "^0.9.2",
"grunt-contrib-watch": "^0.6.1",
"grunt-karma": "^0.10.1",
"grunt-processhtml": "^0.3.8",
@ -28,6 +29,7 @@
"karma-coverage": "^0.2.7",
"karma-jasmine": "^0.3.5",
"karma-phantomjs-launcher": "^0.1.4",
"load-grunt-tasks": "^3.2.0",
"matchdep": "^0.3.0",
"sass": "^0.5.0"
},