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
4 years ago
by
Deep Singh
Committed by
kevalbhatt
4 years ago
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
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
48 additions
and
12 deletions
+48
-12
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
+11
-2
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
+11
-2
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'
}],
...
...
This diff is collapsed.
Click to expand it.
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"
,
...
...
This diff is collapsed.
Click to expand it.
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"
,
...
...
This diff is collapsed.
Click to expand it.
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'
},
/**
...
...
This diff is collapsed.
Click to expand it.
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,7 +42,16 @@ 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
);
}
}
})
})
]);
}
...
...
This diff is collapsed.
Click to expand it.
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'
}],
...
...
This diff is collapsed.
Click to expand it.
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"
,
...
...
This diff is collapsed.
Click to expand it.
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"
,
...
...
This diff is collapsed.
Click to expand it.
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'
},
/**
...
...
This diff is collapsed.
Click to expand it.
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,7 +42,16 @@ 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
);
}
}
})
})
]);
}
...
...
This diff is collapsed.
Click to expand it.
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