-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7ea77a0
Showing
330 changed files
with
88,391 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"directory": "static/system/components/", | ||
"interactive": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Directories # | ||
/build/ | ||
/bin/ | ||
target/ | ||
# OS Files # | ||
.DS_Store | ||
*.class | ||
# Package Files # | ||
*.war | ||
*.ear | ||
*.db | ||
###################### | ||
# Windows | ||
###################### | ||
# Windows image file caches | ||
Thumbs.db | ||
# Folder config file | ||
Desktop.ini | ||
###################### | ||
# OSX | ||
###################### | ||
.DS_Store | ||
.svn | ||
# Thumbnails | ||
._* | ||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
###################### | ||
# Eclipse | ||
###################### | ||
#.project | ||
#.metadata | ||
#.classpath | ||
#.settings/ | ||
#.loadpath | ||
*.pydevproject | ||
bin/** | ||
tmp/** | ||
tmp/**/* | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
local.properties | ||
/src/main/resources/rebel.xml | ||
# External tool builders | ||
.externalToolBuilders/ | ||
# Locally stored "Eclipse launch configurations" | ||
*.launch | ||
# CDT-specific | ||
.cproject | ||
# PDT-specific | ||
.buildpath | ||
/.metadata/* | ||
.project | ||
.idea | ||
.git | ||
/static/system/components/**/* | ||
/resources-ext/documentation/**/* | ||
|
||
#ci | ||
/jenkins_dist/ | ||
|
||
# sass styles | ||
/static/custom/css/app.css | ||
/static/custom/css/modules/**/* | ||
|
||
# npm | ||
/static/custom/modules/horizontal/config/environment.json | ||
/node_modules/**/* | ||
|
||
/static/custom/modules/horizontal/templates.js | ||
/static/custom/modules/vertical/templates.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Authors | ||
======== | ||
Data Visualisation Tool (DVT) for EU-OSHA | ||
2016 by Zylk.net + Bilbomatica | ||
|
||
|
||
Setup | ||
======== | ||
|
||
1. pentaho 6 installation | ||
|
||
2. pentaho 6 extension | ||
add all resources in /resources-ext/pentaho-610-extension within the pentaho 6 installation, as an extension or override | ||
|
||
3. solution link to filesystem | ||
link source folder to pentaho solution as 'dvt-framework' (case-sensitive) | ||
ln -s ${src}/dvt-framework/ ${biserver}/pentaho-solutions/system/dvt-framework | ||
|
||
4. database | ||
|
||
database creation 'osha_dvt_allages', import and association in the server with the name 'jdbcEuOshaAllAges' | ||
> create database osha_dvt_allages character set utf8; | ||
> source /dvt-framework/resources-ext/dbdump/osha_dvt_allages.sql | ||
OR | ||
|
||
link to osha.zylk.net environment (intranet only) | ||
|
||
5. change env to localhost | ||
${src}dvt-framework/static/custom/modules/horizontal/config/environment.json | ||
|
||
5. | ||
Check the gulp tasks: | ||
Maybe automated with yeoman on near future. | ||
|
||
- This two tasks must be triggered, before see the dashboard with styles | ||
* dvt-sass | ||
* bootstrap-sass | ||
|
||
- This two tasks generate & show ngdoc documentation, the second build it up on 8083 port. | ||
* documentation | ||
* documentation_connect | ||
|
||
- This two tasks clean & minify the source of the project. our code not pentaho's code. Only use it, if on environment.json packed is true. | ||
* clean-min | ||
* package | ||
|
||
- ** Under development ** Generate $templateCache template for better performance, the task generate the code but not linked to dashboard yet. | ||
* html-horizontal-templates | ||
* html-vertical-templates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"name": "dvt-framework", | ||
"description": "DVT Framework", | ||
"main": [ | ||
"static/custom/app.js" | ||
], | ||
"dependencies": { | ||
"angular": "~1.4.0", | ||
"angular-animate": "~1.5.0", | ||
"angular-ui-router": "~0.2.15", | ||
"angular-bootstrap": "~1.3.3", | ||
"angular-bootstrap-affix": "~0.2.2", | ||
"angular-scroll": "^1.0.0", | ||
"angular-tooltips": "~1.1.4", | ||
"angulartics": "~1.0.3", | ||
"bootstrap": "~3.3.6", | ||
"bootstrap-sass": "~3.3.6", | ||
"classlist": "", | ||
"html2canvas":"^v0.5.0-beta4", | ||
"file-saver": "^1.3.3", | ||
"font-awesome": "~4.5.0", | ||
"angular-cookies": "~1.5.8", | ||
"angular-consent": "~2.0.0", | ||
"angularjs-socialshare" : "~2.3.1" | ||
}, | ||
"resolutions": { | ||
"angular": "~1.4.0" | ||
}, | ||
"devDependencies": {}, | ||
"moduleType": [ | ||
"dashboard" | ||
], | ||
"keywords": [ | ||
"pentaho", | ||
"dashboarding", | ||
"eu-osha", | ||
"dvt" | ||
], | ||
"authors": [ | ||
"Zylk.net", | ||
"Irune Prado <iprado@zylk.net>", | ||
"Iñigo Sanchez <isanchez@zylk.net>", | ||
"Sergio Argerey <sargerey@zylk.net>" | ||
], | ||
"license": "???", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"components", | ||
"test", | ||
"tests" | ||
], | ||
"private": true | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
({ | ||
appDir: '../static/custom', | ||
baseUrl: './js', | ||
dir: '../static/custom/dist', | ||
modules: [ | ||
{ | ||
name: 'app' | ||
} | ||
], | ||
fileExclusionRegExp: /^(r|build-res)\.js$/, | ||
optimizeCss: 'standard', | ||
removeCombined: true, | ||
paths: { | ||
|
||
}, | ||
shim: { | ||
|
||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.container { | ||
width: 1260px !important; | ||
} | ||
|
||
.row .span3 { | ||
width: 300px; | ||
} | ||
|
||
.form-search .search-query { | ||
width: 263px; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
var system = require('system'); | ||
// system.args[0] is the filename, so system.args[1] is the first real argument | ||
var url = system.args[1]; | ||
var filename = system.args[2]; | ||
|
||
|
||
function cloneObject(obj) { | ||
var clone = {}; | ||
for(var i in obj) { | ||
if(typeof(obj[i])=="object" && obj[i] != null) | ||
clone[i] = cloneObject(obj[i]); | ||
else | ||
clone[i] = obj[i]; | ||
} | ||
return clone; | ||
} | ||
|
||
console.log("########################################################"); | ||
|
||
// render the page, and run the callback function | ||
if(url.length > 0) { | ||
console.log("url.length > 0"); | ||
var page = require('webpage').create(); | ||
page.open(url, function (status) { | ||
if (status == 'success') { | ||
console.log("status == 'success'"); | ||
var delay; | ||
var checker = function() { | ||
var html = page.evaluate(function () { // page.open (url, function (status) { | ||
console.log("page.evaluate(function () {"); | ||
var body = document.getElementsByTagName('body')[0]; | ||
console.log("body"); | ||
if(body.getAttribute('data-status') == 'ready') { | ||
console.log("body.getAttribute('data-status') == 'ready'"); | ||
return document.getElementsByTagName('html')[0].outerHTML; | ||
} | ||
}); | ||
if(html) { | ||
console.log("html"); | ||
clearTimeout(delay); | ||
var performance = cloneObject(window.performance); | ||
console.log("Tiempo: " + (performance.timing.domContentLoadedEventEnd - performance.timing.domContentLoadedEventStart)); | ||
console.log(JSON.stringify(performance, undefined, 4)); | ||
phantom.exit(); | ||
} | ||
}; | ||
delay = setInterval(checker, 100); | ||
} | ||
}); | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
var system = require('system'); | ||
var page = require('webpage').create(); | ||
var fs = require('fs'); | ||
// system.args[0] is the filename, so system.args[1] is the first real argument | ||
var url = system.args[1]; | ||
var filename = system.args[2]; | ||
// render the page, and run the callback function | ||
page.open (url, function (status) { | ||
|
||
if (status !== 'success') { | ||
console.log('Unable to load the address | url: ' + url); | ||
phantom.exit(); | ||
} else { | ||
|
||
window.setTimeout(function () { | ||
var name = 'static/custom/seo/snapshots/' + filename; | ||
var content = page.frameContent; | ||
fs.write(name, content, 'w'); | ||
//console.log(page.content()); | ||
phantom.exit(); | ||
}, 5000); | ||
} | ||
}); | ||
|
||
page.onError = function(msg, trace) { | ||
|
||
var msgStack = ['ERROR: ' + msg]; | ||
|
||
if (trace && trace.length) { | ||
msgStack.push('TRACE:'); | ||
trace.forEach(function(t) { | ||
msgStack.push(' -> ' + t.file + ': ' + t.line + (t.function ? ' (in function "' + t.function +'")' : '')); | ||
}); | ||
} | ||
console.error(msgStack.join('\n')); | ||
}; |
Oops, something went wrong.