Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
545afb53
Commit
545afb53
authored
Sep 30, 2020
by
Deep Singh
Committed by
kevalbhatt
Oct 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3964: Atlas UI displayes large numbers incorrectly
Signed-off-by:
kevalbhatt
<
kbhatt@apache.org
>
parent
d4a50aad
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
46 additions
and
10 deletions
+46
-10
gruntfile.js
dashboardv2/gruntfile.js
+4
-2
package-lock.json
dashboardv2/package-lock.json
+5
-0
package.json
dashboardv2/package.json
+2
-1
main.js
dashboardv2/public/js/main.js
+2
-1
Overrides.js
dashboardv2/public/js/utils/Overrides.js
+10
-1
gruntfile.js
dashboardv3/gruntfile.js
+4
-2
package-lock.json
dashboardv3/package-lock.json
+5
-0
package.json
dashboardv3/package.json
+2
-1
main.js
dashboardv3/public/js/main.js
+2
-1
Overrides.js
dashboardv3/public/js/utils/Overrides.js
+10
-1
No files found.
dashboardv2/gruntfile.js
View file @
545afb53
...
...
@@ -110,7 +110,8 @@ module.exports = function(grunt) {
'table-dragger.js'
:
{
'table-dragger/dist'
:
'table-dragger'
},
'jstree.min.js'
:
{
'jstree/dist'
:
'jstree'
},
'jquery.steps.min.js'
:
{
'jquery-steps/build'
:
'jquery-steps'
},
'dropzone-amd-module.js'
:
{
'dropzone/dist'
:
"dropzone/js"
}
'dropzone-amd-module.js'
:
{
'dropzone/dist'
:
"dropzone/js"
},
'lossless-json.js'
:
{
'lossless-json/dist'
:
'lossless-json'
}
}
},
...
...
@@ -178,7 +179,8 @@ module.exports = function(grunt) {
],
'LICENSE.md'
:
[{
'backbone.babysitter'
:
'backbone-babysitter'
},
{
'backbone.wreqr'
:
'backbone-wreqr'
},
{
'nvd3'
:
'nvd3/'
}
{
'nvd3'
:
'nvd3/'
},
{
'lossless-json'
:
'lossless-json'
}
],
'license.txt'
:
[{
'backbone.marionette'
:
'backbone-marionette'
}],
'license'
:
[{
'table-dragger'
:
'table-dragger'
}],
...
...
dashboardv2/package-lock.json
View file @
545afb53
...
...
@@ -2104,6 +2104,11 @@
"integrity"
:
"sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc="
,
"dev"
:
true
},
"lossless-json"
:
{
"version"
:
"1.0.4"
,
"resolved"
:
"https://registry.npmjs.org/lossless-json/-/lossless-json-1.0.4.tgz"
,
"integrity"
:
"sha512-zEkWwELMSQQISdtOF44vk0bRJhN/PJ93qcgJLcodizQjxrJKdFrq2H1+Xv5QDe7v3dTYYbBI5hOsh4a9l0B2Ow=="
},
"loud-rejection"
:
{
"version"
:
"1.6.0"
,
"resolved"
:
"https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz"
,
...
...
dashboardv2/package.json
View file @
545afb53
...
...
@@ -52,7 +52,8 @@
"requirejs-text"
:
"2.0.15"
,
"select2"
:
"4.0.3"
,
"table-dragger"
:
"1.0.2"
,
"underscore"
:
"1.8.3"
"underscore"
:
"1.8.3"
,
"lossless-json"
:
"1.0.4"
},
"devDependencies"
:
{
"grunt"
:
"1.0.4"
,
...
...
dashboardv2/public/js/main.js
View file @
545afb53
...
...
@@ -181,7 +181,8 @@ require.config({
'table-dragger'
:
'libs/table-dragger/table-dragger'
,
'jstree'
:
'libs/jstree/jstree.min'
,
'jquery-steps'
:
'libs/jquery-steps/jquery.steps.min'
,
'dropzone'
:
'libs/dropzone/js/dropzone-amd-module'
'dropzone'
:
'libs/dropzone/js/dropzone-amd-module'
,
'lossless-json'
:
'libs/lossless-json/lossless-json'
},
/**
...
...
dashboardv2/public/js/utils/Overrides.js
View file @
545afb53
...
...
@@ -16,7 +16,7 @@
* limitations under the License.
*/
define
([
'require'
,
'utils/Utils'
,
'
marionette'
,
'backgrid'
,
'asBreadcrumbs'
,
'jquery-placeholder'
],
function
(
require
,
Utils
)
{
define
([
'require'
,
'utils/Utils'
,
'
lossless-json'
,
'marionette'
,
'backgrid'
,
'asBreadcrumbs'
,
'jquery-placeholder'
],
function
(
require
,
Utils
,
LosslessJSON
)
{
'use strict'
;
Backbone
.
$
.
ajaxSetup
({
...
...
@@ -42,8 +42,17 @@ define(['require', 'utils/Utils', 'marionette', 'backgrid', 'asBreadcrumbs', 'jq
if
(
options
.
cust_error
)
{
options
.
cust_error
(
that
,
response
);
}
},
converters
:
_
.
extend
(
$
.
ajaxSettings
.
converters
,
{
"text json"
:
function
(
data
)
{
try
{
return
LosslessJSON
.
parse
(
data
,
function
(
k
,
v
)
{
return
(
v
.
isLosslessNumber
)
?
v
.
value
:
v
});
}
catch
(
err
)
{
return
$
.
parseJSON
(
data
);
}
}
})
})
]);
}
...
...
dashboardv3/gruntfile.js
View file @
545afb53
...
...
@@ -110,7 +110,8 @@ module.exports = function(grunt) {
'table-dragger.js'
:
{
'table-dragger/dist'
:
'table-dragger'
},
'jstree.min.js'
:
{
'jstree/dist'
:
'jstree'
},
'jquery.steps.min.js'
:
{
'jquery-steps/build'
:
'jquery-steps'
},
'dropzone-amd-module.js'
:
{
'dropzone/dist'
:
"dropzone/js"
}
'dropzone-amd-module.js'
:
{
'dropzone/dist'
:
"dropzone/js"
},
'lossless-json.js'
:
{
'lossless-json/dist'
:
'lossless-json'
}
}
},
...
...
@@ -184,7 +185,8 @@ module.exports = function(grunt) {
],
'LICENSE.md'
:
[{
'backbone.babysitter'
:
'backbone-babysitter'
},
{
'backbone.wreqr'
:
'backbone-wreqr'
},
{
'nvd3'
:
'nvd3/'
}
{
'nvd3'
:
'nvd3/'
},
{
'lossless-json'
:
'lossless-json'
}
],
'license.txt'
:
[{
'backbone.marionette'
:
'backbone-marionette'
}],
'license'
:
[{
'table-dragger'
:
'table-dragger'
}],
...
...
dashboardv3/package-lock.json
View file @
545afb53
...
...
@@ -2112,6 +2112,11 @@
"integrity"
:
"sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc="
,
"dev"
:
true
},
"lossless-json"
:
{
"version"
:
"1.0.4"
,
"resolved"
:
"https://registry.npmjs.org/lossless-json/-/lossless-json-1.0.4.tgz"
,
"integrity"
:
"sha512-zEkWwELMSQQISdtOF44vk0bRJhN/PJ93qcgJLcodizQjxrJKdFrq2H1+Xv5QDe7v3dTYYbBI5hOsh4a9l0B2Ow=="
},
"loud-rejection"
:
{
"version"
:
"1.6.0"
,
"resolved"
:
"https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz"
,
...
...
dashboardv3/package.json
View file @
545afb53
...
...
@@ -53,7 +53,8 @@
"requirejs-text"
:
"2.0.15"
,
"select2"
:
"4.0.3"
,
"table-dragger"
:
"1.0.2"
,
"underscore"
:
"1.8.3"
"underscore"
:
"1.8.3"
,
"lossless-json"
:
"1.0.4"
},
"devDependencies"
:
{
"grunt"
:
"1.0.4"
,
...
...
dashboardv3/public/js/main.js
View file @
545afb53
...
...
@@ -210,7 +210,8 @@ require.config({
'table-dragger'
:
'libs/table-dragger/table-dragger'
,
'jstree'
:
'libs/jstree/jstree.min'
,
'jquery-steps'
:
'libs/jquery-steps/jquery.steps.min'
,
'dropzone'
:
'libs/dropzone/js/dropzone-amd-module'
'dropzone'
:
'libs/dropzone/js/dropzone-amd-module'
,
'lossless-json'
:
'libs/lossless-json/lossless-json'
},
/**
...
...
dashboardv3/public/js/utils/Overrides.js
View file @
545afb53
...
...
@@ -16,7 +16,7 @@
* limitations under the License.
*/
define
([
'require'
,
'utils/Utils'
,
'
marionette'
,
'backgrid'
,
'asBreadcrumbs'
,
'jquery-placeholder'
],
function
(
require
,
Utils
)
{
define
([
'require'
,
'utils/Utils'
,
'
lossless-json'
,
'marionette'
,
'backgrid'
,
'asBreadcrumbs'
,
'jquery-placeholder'
],
function
(
require
,
Utils
,
LosslessJSON
)
{
'use strict'
;
Backbone
.
$
.
ajaxSetup
({
...
...
@@ -42,8 +42,17 @@ define(['require', 'utils/Utils', 'marionette', 'backgrid', 'asBreadcrumbs', 'jq
if
(
options
.
cust_error
)
{
options
.
cust_error
(
that
,
response
);
}
},
converters
:
_
.
extend
(
$
.
ajaxSettings
.
converters
,
{
"text json"
:
function
(
data
)
{
try
{
return
LosslessJSON
.
parse
(
data
,
function
(
k
,
v
)
{
return
(
v
.
isLosslessNumber
)
?
v
.
value
:
v
});
}
catch
(
err
)
{
return
$
.
parseJSON
(
data
);
}
}
})
})
]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment