diff --git a/app-backend/dist/js/dashboard.min.js b/app-backend/dist/js/dashboard.min.js index 0dff67d..d9c776b 100644 --- a/app-backend/dist/js/dashboard.min.js +++ b/app-backend/dist/js/dashboard.min.js @@ -93,7 +93,7 @@ angular // Uncomment the following line if you have dnsmasq installed // BASE_API = 'http://captain.captain.x/api/v1/'; // Uncomment the following line if you don't have dnsmasq installed - // BASE_API = 'http://127.0.0.1:3000/api/v1/'; + BASE_API = 'http://127.0.0.1:3000/api/v1/'; function ApiManager(captainLogger, $http, $timeout) { @@ -652,6 +652,124 @@ angular.module('RDash') } }); +/** + * File Upload Read Directive + */ + +angular + .module('RDash') + .directive("fileread", [function () { + return { + scope: { + fileread: "=" + }, + link: function (scope, element, attributes) { + element.bind("change", function (changeEvent) { + scope.$apply(function () { + scope.fileread = changeEvent.target.files[0]; + // or all selected files: + // scope.fileread = changeEvent.target.files; + }); + }); + } + } + }]); +/** + * Loading Directive + * @see http://tobiasahlin.com/spinkit/ + */ + +angular + .module('RDash') + .directive('rdLoading', rdLoading); + +function rdLoading() { + var directive = { + restrict: 'AE', + template: '