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
d9498da1
Commit
d9498da1
authored
Jun 07, 2015
by
Vishal Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HDPDGI-45: Merged HDPDGI-45 to master and fixed conflicts
parent
beb788a8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
94 additions
and
94 deletions
+94
-94
gruntfile.js
dashboard/v2/gruntfile.js
+25
-26
package.json
dashboard/v2/package.json
+63
-63
index.html
dashboard/v2/public/index.html
+1
-2
app.js
dashboard/v2/public/js/app.js
+4
-2
searchController.js
dashboard/v2/public/modules/search/searchController.js
+1
-1
No files found.
dashboard/v2/gruntfile.js
View file @
d9498da1
...
...
@@ -13,8 +13,8 @@ module.exports = function(grunt) {
livereload
:
35729
},
js
:
{
files
:
[
'public/**/*.js'
,
'!public/lib/**'
,
'!public/dist/**'
],
tasks
:
[
'shell'
,
'copy:mainjs'
]
files
:
[
'public/**/*.js'
,
'!public/lib/**'
,
'!public/dist/**'
,
'!public/js/app.min.js'
],
tasks
:
[
'shell'
,
'copy:mainjs'
]
},
html
:
{
files
:
[
'public/**/*.html'
],
...
...
@@ -31,14 +31,14 @@ module.exports = function(grunt) {
},
jshint
:
{
all
:
{
src
:
[
'gruntfile.js'
,
'package.json'
,
'server.js'
,
'server/**/*.js'
,
'public/**/*.js'
,
'!public/lib/**'
,
'!public/dist/**'
],
src
:
[
'gruntfile.js'
,
'package.json'
,
'server.js'
,
'server/**/*.js'
,
'public/**/*.js'
,
'!public/lib/**'
,
'!public/dist/**'
,
'!public/**/app.min.js'
],
options
:
{
jshintrc
:
true
}
}
},
concurrent
:
{
tasks
:
[
'watch'
,
'proxitserver'
],
tasks
:
[
'watch'
,
'proxitserver'
],
options
:
{
logConcurrentOutput
:
true
}
...
...
@@ -109,35 +109,34 @@ module.exports = function(grunt) {
}
},
copy
:
{
dist
:
{
expand
:
true
,
cwd
:
'public/'
,
src
:
'**'
,
dest
:
'dist'
,
},
mainjs
:
{
expand
:
true
,
cwd
:
'public/'
,
src
:
'js/app.min.js'
,
dest
:
'dist/js/'
,
flatten
:
true
,
filter
:
'isFile'
}
dist
:
{
expand
:
true
,
cwd
:
'public/'
,
src
:
'**'
,
dest
:
'dist'
,
},
mainjs
:
{
expand
:
true
,
cwd
:
'public/'
,
src
:
'js/app.min.js'
,
dest
:
'dist/js/'
,
flatten
:
true
,
filter
:
'isFile'
}
},
clean
:
[
'dist'
],
clean
:
[
'
public/lib'
,
'
dist'
],
proxit
:
{
dev
:
{
options
:
{
'port'
:
3010
,
'port'
:
3010
,
'verbose'
:
true
,
'hosts'
:
[{
'hostnames'
:
[
'*'
],
'routes'
:
{
'/'
:
'dist'
,
'/api'
:
'http://162.249.6.39:21000/api'
'/api'
:
'http://162.249.6.39:21000/api'
}
}
]
}]
}
}
}
...
...
@@ -146,8 +145,8 @@ module.exports = function(grunt) {
require
(
'load-grunt-tasks'
)(
grunt
);
grunt
.
registerTask
(
'default'
,
[
'devUpdate'
,
'bower'
,
'jshint'
,
'jsbeautifier:default'
]);
grunt
.
registerTask
(
'server'
,
[
'jshint'
,
'build'
,
'concurrent'
]);
grunt
.
registerTask
(
'build'
,
[
'clean'
,
'bower'
,
'copy:dist'
,
'minify'
,
'copy:mainjs'
]);
grunt
.
registerTask
(
'server'
,
[
'jshint'
,
'build'
,
'concurrent'
]);
grunt
.
registerTask
(
'build'
,
[
'clean'
,
'bower'
,
'copy:dist'
,
'minify'
,
'copy:mainjs'
]);
grunt
.
registerTask
(
'minify'
,
'Minify the all js'
,
function
()
{
var
done
=
this
.
async
();
...
...
@@ -156,7 +155,7 @@ module.exports = function(grunt) {
});
grunt
.
loadNpmTasks
(
'proxit'
);
grunt
.
registerTask
(
'proxitserver'
,
'Proxit'
,
function
()
{
var
done
=
this
.
async
();
var
done
=
this
.
async
();
grunt
.
task
.
run
([
'proxit:dev'
]);
done
();
});
...
...
dashboard/v2/package.json
View file @
d9498da1
{
"name"
:
"dgc-metadata"
,
"description"
:
"DGC Metadata"
,
"version"
:
"1.0.0-SNAPSHOT"
,
"private"
:
true
,
"bin"
:
"server.js"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"https://github.com/hortonworks/metadata"
},
"engines"
:
{
"node"
:
"0.10.x"
,
"npm"
:
"1.3.x"
},
"keywords"
:
[
"DGC"
,
"HortonWorks"
],
"scripts"
:
{
"postinstall"
:
"node node_modules/bower/bin/bower install"
},
"dependencies"
:
{
"body-parser"
:
"^1.2.0"
,
"bower"
:
"~1.3.1"
,
"compression"
:
"^1.0.2"
,
"consolidate"
:
"~0.10.0"
,
"cookie-parser"
:
"^1.0.1"
,
"cookies"
:
"~0.4.0"
,
"express"
:
"~4.2.0"
,
"express-load"
:
"^1.1.14"
,
"forever"
:
"~0.11.1"
,
"lodash"
:
"~2.4.1"
,
"method-override"
:
"^1.0.0"
,
"morgan"
:
"^1.0.1"
,
"path-extra"
:
"~0.1.1"
,
"proxit"
:
"^0.6.0"
,
"q"
:
"~1.0.1"
,
"rc"
:
"~0.3.4"
,
"serve-favicon"
:
"^2.0.0"
,
"static-favicon"
:
"^2.0.0-alpha"
,
"superagent"
:
"^0.20.0"
,
"swig"
:
"~1.3.2"
,
"view-helpers"
:
"~0.1.4"
,
"grunt-contrib-clean"
:
"~0.6.0"
},
"devDependencies"
:
{
"git-rev"
:
"^0.2.1"
,
"grunt"
:
"~0.4.2"
,
"grunt-bower-task"
:
"~0.4.0"
,
"grunt-cli"
:
"~0.1.11"
,
"grunt-concurrent"
:
"^1.0.0"
,
"grunt-contrib-compress"
:
"^0.13.0"
,
"grunt-contrib-jshint"
:
"^0.11.0"
,
"grunt-contrib-watch"
:
"^0.6.0"
,
"grunt-dev-update"
:
"^1.0.2"
,
"grunt-jsbeautifier"
:
"^0.2.6"
,
"grunt-nodemon"
:
"^0.4.0"
,
"grunt-shell"
:
"^1.1.1"
,
"load-grunt-tasks"
:
"^3.1.0"
,
"grunt-nginx"
:
"~0.2.2"
,
"grunt-contrib-copy"
:
"~0.8.0"
,
"grunt-contrib-clean"
:
"~0.6.0"
,
"proxit"
:
"~0.6.4"
}
"name"
:
"dgc-metadata"
,
"description"
:
"DGC Metadata"
,
"version"
:
"1.0.0-SNAPSHOT"
,
"private"
:
true
,
"bin"
:
"server.js"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"https://github.com/hortonworks/metadata"
},
"engines"
:
{
"node"
:
"0.10.x"
,
"npm"
:
"1.3.x"
},
"keywords"
:
[
"DGC"
,
"HortonWorks"
],
"scripts"
:
{
"postinstall"
:
"node node_modules/bower/bin/bower install"
},
"dependencies"
:
{
"body-parser"
:
"^1.2.0"
,
"bower"
:
"~1.3.1"
,
"compression"
:
"^1.0.2"
,
"consolidate"
:
"~0.10.0"
,
"cookie-parser"
:
"^1.0.1"
,
"cookies"
:
"~0.4.0"
,
"express"
:
"~4.2.0"
,
"express-load"
:
"^1.1.14"
,
"forever"
:
"~0.11.1"
,
"lodash"
:
"~2.4.1"
,
"method-override"
:
"^1.0.0"
,
"morgan"
:
"^1.0.1"
,
"path-extra"
:
"~0.1.1"
,
"proxit"
:
"^0.6.0"
,
"q"
:
"~1.0.1"
,
"rc"
:
"~0.3.4"
,
"serve-favicon"
:
"^2.0.0"
,
"static-favicon"
:
"^2.0.0-alpha"
,
"superagent"
:
"^0.20.0"
,
"swig"
:
"~1.3.2"
,
"view-helpers"
:
"~0.1.4"
,
"grunt-contrib-clean"
:
"~0.6.0"
},
"devDependencies"
:
{
"git-rev"
:
"^0.2.1"
,
"grunt"
:
"~0.4.2"
,
"grunt-bower-task"
:
"~0.4.0"
,
"grunt-cli"
:
"~0.1.11"
,
"grunt-concurrent"
:
"^1.0.0"
,
"grunt-contrib-compress"
:
"^0.13.0"
,
"grunt-contrib-jshint"
:
"^0.11.0"
,
"grunt-contrib-watch"
:
"^0.6.0"
,
"grunt-dev-update"
:
"^1.0.2"
,
"grunt-jsbeautifier"
:
"^0.2.6"
,
"grunt-nodemon"
:
"^0.4.0"
,
"grunt-shell"
:
"^1.1.1"
,
"load-grunt-tasks"
:
"^3.1.0"
,
"grunt-nginx"
:
"~0.2.2"
,
"grunt-contrib-copy"
:
"~0.8.0"
,
"grunt-contrib-clean"
:
"~0.6.0"
,
"proxit"
:
"~0.6.4"
}
}
dashboard/v2/public/index.html
View file @
d9498da1
...
...
@@ -45,7 +45,7 @@
</header>
<div
class=
"content"
>
<div
data-ng-include=
"'/modules/notification/views/notifications.html'"
></div>
<div
data-ui-view
></div>
<div
data-ui-view
class=
"container"
></div>
</div>
<footer
class=
"footer navbar-bottom"
>
<div
class=
"container"
>
...
...
@@ -65,7 +65,6 @@
<script
src=
"lib/angular-ui-utils/ui-utils.js"
></script>
<script
src=
"lib/lodash/lodash.js"
></script>
<script
src=
"http://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"
></script>
<script
src=
"http://cpettitt.github.io/project/dagre-d3/latest/dagre-d3.js"
></script>
<script
src=
"js/app.min.js"
></script>
</body>
...
...
dashboard/v2/public/js/app.js
View file @
d9498da1
...
...
@@ -57,8 +57,10 @@ angular.module('dgc').factory('lodash', ['$window',
NotificationService
.
error
(
err
);
});
}
else
{
errors
.
timeout
=
false
;
NotificationService
.
error
(
errors
);
if
(
errors
)
{
errors
.
timeout
=
false
;
NotificationService
.
error
(
errors
);
}
}
$rootScope
.
$on
(
'$stateChangeStart'
,
function
()
{
d3
.
selectAll
(
'.d3-tip'
).
remove
();
...
...
dashboard/v2/public/modules/search/searchController.js
View file @
d9498da1
...
...
@@ -67,7 +67,7 @@ angular.module('dgc.search').controller('SearchController', ['$scope', '$locatio
$scope
.
$watch
(
'currentPage + itemsPerPage'
,
function
()
{
var
begin
=
((
$scope
.
currentPage
-
1
)
*
$scope
.
itemsPerPage
),
end
=
begin
+
$scope
.
itemsPerPage
;
if
(
$scope
.
transformedResults
)
$scope
.
filteredResults
=
$scope
.
transformedResults
.
slice
(
begin
,
end
);
if
(
$scope
.
transformedResults
)
$scope
.
filteredResults
=
$scope
.
transformedResults
.
slice
(
begin
,
end
);
$scope
.
pageCount
=
function
()
{
return
Math
.
ceil
(
$scope
.
resultCount
/
$scope
.
itemsPerPage
);
};
...
...
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