Skip to content

Commit

Permalink
cleanup unnecessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
TyrManuZ committed Mar 25, 2018
1 parent b4ddcac commit aaa37ca
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 22 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# C8Y builds
build
_build_for_deploy

# Logs
logs
*.log
Expand Down
2 changes: 1 addition & 1 deletion plugins/dashboardUtils/cumulocity.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"c8y.enhanced.dashboardUtils"
],
"js": [
"jszip/jszip.min.js",
"node_modules/jszip/dist/jszip.min.js",
"dashboardUtils.module.js",
"dashboardUtils.config.js",
"dashboardUtils.constants.js",
Expand Down
4 changes: 3 additions & 1 deletion plugins/dashboardUtils/dashboardUtils.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
exportDashboard
};

const CONSTANTS = dashboardUtilsConstants;

return service;

////////////
function cleanseDashboardJson(dashboard) {
var deferred = $q.defer();
dashboard = dashboard.data
_.forEach(dashboardUtilsConstants.DASHBOARD_KEYS_TO_BE_REMOVED, function(key) {
_.forEach(CONSTANTS.DASHBOARD_KEYS_TO_BE_REMOVED, function(key) {
delete dashboard[key];
});
deferred.resolve(dashboard);
Expand Down
1 change: 0 additions & 1 deletion plugins/dashboardUtils/hello.html

This file was deleted.

15 changes: 0 additions & 15 deletions plugins/dashboardUtils/jszip/jszip.min.js

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/dashboardUtils/main.html

This file was deleted.

0 comments on commit aaa37ca

Please sign in to comment.