__webpack_require__(15);
__webpack_require__(16);
__webpack_require__(17);
+ __webpack_require__(18);
/***/ },
if (fileId) {
endPoint += '/' + fileId;
}
- console.log(endPoint);
return this.resource(endPoint).get();
};
return APIEndPoint;
this.APIEndPoint = APIEndPoint;
this.$scope = $scope;
var controller = this;
+ console.log(this.list);
this.APIEndPoint
.getOptionControlFile('dcdFilePrint')
.$promise
})(app || (app = {}));
var app;
(function (app) {
+ var directives;
+ (function (directives) {
+ var Directory = (function () {
+ function Directory() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.controller = 'directoryController';
+ this.controllerAs = 'ctrl';
+ this.bindToController = {
+ info: '=',
+ add: '&',
+ list: '=',
+ files: '='
+ };
+ this.templateUrl = 'templates/directory.html';
+ }
+ Directory.Factory = function () {
+ var directive = function () {
+ return new Directory();
+ };
+ return directive;
+ };
+ return Directory;
+ })();
+ directives.Directory = Directory;
+ var DirectoryController = (function () {
+ function DirectoryController(APIEndPoint, $scope) {
+ this.APIEndPoint = APIEndPoint;
+ this.$scope = $scope;
+ var controller = this;
+ this.APIEndPoint
+ .getFiles(this.info.fileId)
+ .$promise
+ .then(function (result) {
+ if (result.status === 'success') {
+ controller.files = result.info;
+ angular.forEach(result.info, function (file) {
+ if (file.fileType === '0') {
+ var o = file;
+ if (controller.info.path === '/') {
+ o.path = '/' + file.name;
+ }
+ else {
+ o.path = controller.info.path + '/' + file.name;
+ }
+ controller.add()(o, controller.list);
+ }
+ });
+ }
+ ;
+ });
+ }
+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
+ return DirectoryController;
+ })();
+ directives.DirectoryController = DirectoryController;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
var controllers;
(function (controllers) {
var Execution = (function () {
function Workspace($scope, APIEndPoint) {
this.$scope = $scope;
this.APIEndPoint = APIEndPoint;
+ this.directoryList = [];
var controller = this;
- this.page = 'workspace';
- this.APIEndPoint
- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
- .$promise
- .then(function (result) {
- controller.fileInfo = result.info;
- console.log(result);
- });
+ var directoryList = this.directoryList;
+ var o = {
+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
+ name: '',
+ parentId: '',
+ fileType: '',
+ createdAt: '',
+ updatedAt: '',
+ path: '/'
+ };
+ directoryList.push(o);
}
+ Workspace.prototype.addDirectory = function (info, directoryList) {
+ directoryList.push(info);
+ };
Workspace.$inject = ['$scope', 'APIEndPoint'];
return Workspace;
})();
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
app.zephyr.directive('command', app.directives.Command.Factory());
app.zephyr.directive('option', app.directives.Option.Factory());
+ app.zephyr.directive('directory', app.directives.Directory.Factory());
})(app || (app = {}));
if (fileId) {
endPoint += '/' + fileId;
}
- console.log(endPoint);
return this.resource(endPoint).get();
};
return APIEndPoint;
this.APIEndPoint = APIEndPoint;
this.$scope = $scope;
var controller = this;
+ console.log(this.list);
this.APIEndPoint
.getOptionControlFile('dcdFilePrint')
.$promise
})(app || (app = {}));
var app;
(function (app) {
+ var directives;
+ (function (directives) {
+ var Directory = (function () {
+ function Directory() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.controller = 'directoryController';
+ this.controllerAs = 'ctrl';
+ this.bindToController = {
+ info: '=',
+ add: '&',
+ list: '=',
+ files: '='
+ };
+ this.templateUrl = 'templates/directory.html';
+ }
+ Directory.Factory = function () {
+ var directive = function () {
+ return new Directory();
+ };
+ return directive;
+ };
+ return Directory;
+ })();
+ directives.Directory = Directory;
+ var DirectoryController = (function () {
+ function DirectoryController(APIEndPoint, $scope) {
+ this.APIEndPoint = APIEndPoint;
+ this.$scope = $scope;
+ var controller = this;
+ this.APIEndPoint
+ .getFiles(this.info.fileId)
+ .$promise
+ .then(function (result) {
+ if (result.status === 'success') {
+ controller.files = result.info;
+ angular.forEach(result.info, function (file) {
+ if (file.fileType === '0') {
+ var o = file;
+ if (controller.info.path === '/') {
+ o.path = '/' + file.name;
+ }
+ else {
+ o.path = controller.info.path + '/' + file.name;
+ }
+ controller.add()(o, controller.list);
+ }
+ });
+ }
+ ;
+ });
+ }
+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
+ return DirectoryController;
+ })();
+ directives.DirectoryController = DirectoryController;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
var controllers;
(function (controllers) {
var Execution = (function () {
function Workspace($scope, APIEndPoint) {
this.$scope = $scope;
this.APIEndPoint = APIEndPoint;
+ this.directoryList = [];
var controller = this;
- this.page = 'workspace';
- this.APIEndPoint
- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
- .$promise
- .then(function (result) {
- controller.fileInfo = result.info;
- console.log(result);
- });
+ var directoryList = this.directoryList;
+ var o = {
+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
+ name: '',
+ parentId: '',
+ fileType: '',
+ createdAt: '',
+ updatedAt: '',
+ path: '/'
+ };
+ directoryList.push(o);
}
+ Workspace.prototype.addDirectory = function (info, directoryList) {
+ directoryList.push(info);
+ };
Workspace.$inject = ['$scope', 'APIEndPoint'];
return Workspace;
})();
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
app.zephyr.directive('command', app.directives.Command.Factory());
app.zephyr.directive('option', app.directives.Option.Factory());
+ app.zephyr.directive('directory', app.directives.Directory.Factory());
})(app || (app = {}));
if (fileId) {
endPoint += '/' + fileId;
}
- console.log(endPoint);
return this.resource(endPoint).get();
};
return APIEndPoint;
this.APIEndPoint = APIEndPoint;
this.$scope = $scope;
var controller = this;
+ console.log(this.list);
this.APIEndPoint
.getOptionControlFile('dcdFilePrint')
.$promise
})(app || (app = {}));
var app;
(function (app) {
+ var directives;
+ (function (directives) {
+ var Directory = (function () {
+ function Directory() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.controller = 'directoryController';
+ this.controllerAs = 'ctrl';
+ this.bindToController = {
+ info: '=',
+ add: '&',
+ list: '=',
+ files: '='
+ };
+ this.templateUrl = 'templates/directory.html';
+ }
+ Directory.Factory = function () {
+ var directive = function () {
+ return new Directory();
+ };
+ return directive;
+ };
+ return Directory;
+ })();
+ directives.Directory = Directory;
+ var DirectoryController = (function () {
+ function DirectoryController(APIEndPoint, $scope) {
+ this.APIEndPoint = APIEndPoint;
+ this.$scope = $scope;
+ var controller = this;
+ this.APIEndPoint
+ .getFiles(this.info.fileId)
+ .$promise
+ .then(function (result) {
+ if (result.status === 'success') {
+ controller.files = result.info;
+ angular.forEach(result.info, function (file) {
+ if (file.fileType === '0') {
+ var o = file;
+ if (controller.info.path === '/') {
+ o.path = '/' + file.name;
+ }
+ else {
+ o.path = controller.info.path + '/' + file.name;
+ }
+ controller.add()(o, controller.list);
+ }
+ });
+ }
+ ;
+ });
+ }
+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
+ return DirectoryController;
+ })();
+ directives.DirectoryController = DirectoryController;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
var controllers;
(function (controllers) {
var Execution = (function () {
function Workspace($scope, APIEndPoint) {
this.$scope = $scope;
this.APIEndPoint = APIEndPoint;
+ this.directoryList = [];
var controller = this;
- this.page = 'workspace';
- this.APIEndPoint
- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
- .$promise
- .then(function (result) {
- controller.fileInfo = result.info;
- console.log(result);
- });
+ var directoryList = this.directoryList;
+ var o = {
+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
+ name: '',
+ parentId: '',
+ fileType: '',
+ createdAt: '',
+ updatedAt: '',
+ path: '/'
+ };
+ directoryList.push(o);
}
+ Workspace.prototype.addDirectory = function (info, directoryList) {
+ directoryList.push(info);
+ };
Workspace.$inject = ['$scope', 'APIEndPoint'];
return Workspace;
})();
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
app.zephyr.directive('command', app.directives.Command.Factory());
app.zephyr.directive('option', app.directives.Option.Factory());
+ app.zephyr.directive('directory', app.directives.Directory.Factory());
})(app || (app = {}));
if (fileId) {
endPoint += '/' + fileId;
}
- console.log(endPoint);
return this.resource(endPoint).get();
};
return APIEndPoint;
this.APIEndPoint = APIEndPoint;
this.$scope = $scope;
var controller = this;
+ console.log(this.list);
this.APIEndPoint
.getOptionControlFile('dcdFilePrint')
.$promise
})(app || (app = {}));
var app;
(function (app) {
+ var directives;
+ (function (directives) {
+ var Directory = (function () {
+ function Directory() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.controller = 'directoryController';
+ this.controllerAs = 'ctrl';
+ this.bindToController = {
+ info: '=',
+ add: '&',
+ list: '=',
+ files: '='
+ };
+ this.templateUrl = 'templates/directory.html';
+ }
+ Directory.Factory = function () {
+ var directive = function () {
+ return new Directory();
+ };
+ return directive;
+ };
+ return Directory;
+ })();
+ directives.Directory = Directory;
+ var DirectoryController = (function () {
+ function DirectoryController(APIEndPoint, $scope) {
+ this.APIEndPoint = APIEndPoint;
+ this.$scope = $scope;
+ var controller = this;
+ this.APIEndPoint
+ .getFiles(this.info.fileId)
+ .$promise
+ .then(function (result) {
+ if (result.status === 'success') {
+ controller.files = result.info;
+ angular.forEach(result.info, function (file) {
+ if (file.fileType === '0') {
+ var o = file;
+ if (controller.info.path === '/') {
+ o.path = '/' + file.name;
+ }
+ else {
+ o.path = controller.info.path + '/' + file.name;
+ }
+ controller.add()(o, controller.list);
+ }
+ });
+ }
+ ;
+ });
+ }
+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
+ return DirectoryController;
+ })();
+ directives.DirectoryController = DirectoryController;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
var controllers;
(function (controllers) {
var Execution = (function () {
function Workspace($scope, APIEndPoint) {
this.$scope = $scope;
this.APIEndPoint = APIEndPoint;
+ this.directoryList = [];
var controller = this;
- this.page = 'workspace';
- this.APIEndPoint
- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
- .$promise
- .then(function (result) {
- controller.fileInfo = result.info;
- console.log(result);
- });
+ var directoryList = this.directoryList;
+ var o = {
+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
+ name: '',
+ parentId: '',
+ fileType: '',
+ createdAt: '',
+ updatedAt: '',
+ path: '/'
+ };
+ directoryList.push(o);
}
+ Workspace.prototype.addDirectory = function (info, directoryList) {
+ directoryList.push(info);
+ };
Workspace.$inject = ['$scope', 'APIEndPoint'];
return Workspace;
})();
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
app.zephyr.directive('command', app.directives.Command.Factory());
app.zephyr.directive('option', app.directives.Option.Factory());
+ app.zephyr.directive('directory', app.directives.Directory.Factory());
})(app || (app = {}));
if (fileId) {
endPoint += '/' + fileId;
}
- console.log(endPoint);
return this.resource(endPoint).get();
};
return APIEndPoint;
this.APIEndPoint = APIEndPoint;
this.$scope = $scope;
var controller = this;
+ console.log(this.list);
this.APIEndPoint
.getOptionControlFile('dcdFilePrint')
.$promise
})(app || (app = {}));
var app;
(function (app) {
+ var directives;
+ (function (directives) {
+ var Directory = (function () {
+ function Directory() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.controller = 'directoryController';
+ this.controllerAs = 'ctrl';
+ this.bindToController = {
+ info: '=',
+ add: '&',
+ list: '=',
+ files: '='
+ };
+ this.templateUrl = 'templates/directory.html';
+ }
+ Directory.Factory = function () {
+ var directive = function () {
+ return new Directory();
+ };
+ return directive;
+ };
+ return Directory;
+ })();
+ directives.Directory = Directory;
+ var DirectoryController = (function () {
+ function DirectoryController(APIEndPoint, $scope) {
+ this.APIEndPoint = APIEndPoint;
+ this.$scope = $scope;
+ var controller = this;
+ this.APIEndPoint
+ .getFiles(this.info.fileId)
+ .$promise
+ .then(function (result) {
+ if (result.status === 'success') {
+ controller.files = result.info;
+ angular.forEach(result.info, function (file) {
+ if (file.fileType === '0') {
+ var o = file;
+ if (controller.info.path === '/') {
+ o.path = '/' + file.name;
+ }
+ else {
+ o.path = controller.info.path + '/' + file.name;
+ }
+ controller.add()(o, controller.list);
+ }
+ });
+ }
+ ;
+ });
+ }
+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
+ return DirectoryController;
+ })();
+ directives.DirectoryController = DirectoryController;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
var controllers;
(function (controllers) {
var Execution = (function () {
function Workspace($scope, APIEndPoint) {
this.$scope = $scope;
this.APIEndPoint = APIEndPoint;
+ this.directoryList = [];
var controller = this;
- this.page = 'workspace';
- this.APIEndPoint
- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
- .$promise
- .then(function (result) {
- controller.fileInfo = result.info;
- console.log(result);
- });
+ var directoryList = this.directoryList;
+ var o = {
+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
+ name: '',
+ parentId: '',
+ fileType: '',
+ createdAt: '',
+ updatedAt: '',
+ path: '/'
+ };
+ directoryList.push(o);
}
+ Workspace.prototype.addDirectory = function (info, directoryList) {
+ directoryList.push(info);
+ };
Workspace.$inject = ['$scope', 'APIEndPoint'];
return Workspace;
})();
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
app.zephyr.directive('command', app.directives.Command.Factory());
app.zephyr.directive('option', app.directives.Option.Factory());
+ app.zephyr.directive('directory', app.directives.Directory.Factory());
})(app || (app = {}));
if (fileId) {
endPoint += '/' + fileId;
}
- console.log(endPoint);
return this.resource(endPoint).get();
};
return APIEndPoint;
this.APIEndPoint = APIEndPoint;
this.$scope = $scope;
var controller = this;
+ console.log(this.list);
this.APIEndPoint
.getOptionControlFile('dcdFilePrint')
.$promise
})(app || (app = {}));
var app;
(function (app) {
+ var directives;
+ (function (directives) {
+ var Directory = (function () {
+ function Directory() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.controller = 'directoryController';
+ this.controllerAs = 'ctrl';
+ this.bindToController = {
+ info: '=',
+ add: '&',
+ list: '=',
+ files: '='
+ };
+ this.templateUrl = 'templates/directory.html';
+ }
+ Directory.Factory = function () {
+ var directive = function () {
+ return new Directory();
+ };
+ return directive;
+ };
+ return Directory;
+ })();
+ directives.Directory = Directory;
+ var DirectoryController = (function () {
+ function DirectoryController(APIEndPoint, $scope) {
+ this.APIEndPoint = APIEndPoint;
+ this.$scope = $scope;
+ var controller = this;
+ this.APIEndPoint
+ .getFiles(this.info.fileId)
+ .$promise
+ .then(function (result) {
+ if (result.status === 'success') {
+ controller.files = result.info;
+ angular.forEach(result.info, function (file) {
+ if (file.fileType === '0') {
+ var o = file;
+ if (controller.info.path === '/') {
+ o.path = '/' + file.name;
+ }
+ else {
+ o.path = controller.info.path + '/' + file.name;
+ }
+ controller.add()(o, controller.list);
+ }
+ });
+ }
+ ;
+ });
+ }
+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
+ return DirectoryController;
+ })();
+ directives.DirectoryController = DirectoryController;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
var controllers;
(function (controllers) {
var Execution = (function () {
function Workspace($scope, APIEndPoint) {
this.$scope = $scope;
this.APIEndPoint = APIEndPoint;
+ this.directoryList = [];
var controller = this;
- this.page = 'workspace';
- this.APIEndPoint
- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
- .$promise
- .then(function (result) {
- controller.fileInfo = result.info;
- console.log(result);
- });
+ var directoryList = this.directoryList;
+ var o = {
+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
+ name: '',
+ parentId: '',
+ fileType: '',
+ createdAt: '',
+ updatedAt: '',
+ path: '/'
+ };
+ directoryList.push(o);
}
+ Workspace.prototype.addDirectory = function (info, directoryList) {
+ directoryList.push(info);
+ };
Workspace.$inject = ['$scope', 'APIEndPoint'];
return Workspace;
})();
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
app.zephyr.directive('command', app.directives.Command.Factory());
app.zephyr.directive('option', app.directives.Option.Factory());
+ app.zephyr.directive('directory', app.directives.Directory.Factory());
})(app || (app = {}));
if (fileId) {
endPoint += '/' + fileId;
}
- console.log(endPoint);
return this.resource(endPoint).get();
};
return APIEndPoint;
this.APIEndPoint = APIEndPoint;
this.$scope = $scope;
var controller = this;
+ console.log(this.list);
this.APIEndPoint
.getOptionControlFile('dcdFilePrint')
.$promise
})(app || (app = {}));
var app;
(function (app) {
+ var directives;
+ (function (directives) {
+ var Directory = (function () {
+ function Directory() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.controller = 'directoryController';
+ this.controllerAs = 'ctrl';
+ this.bindToController = {
+ info: '=',
+ add: '&',
+ list: '=',
+ files: '='
+ };
+ this.templateUrl = 'templates/directory.html';
+ }
+ Directory.Factory = function () {
+ var directive = function () {
+ return new Directory();
+ };
+ return directive;
+ };
+ return Directory;
+ })();
+ directives.Directory = Directory;
+ var DirectoryController = (function () {
+ function DirectoryController(APIEndPoint, $scope) {
+ this.APIEndPoint = APIEndPoint;
+ this.$scope = $scope;
+ var controller = this;
+ this.APIEndPoint
+ .getFiles(this.info.fileId)
+ .$promise
+ .then(function (result) {
+ if (result.status === 'success') {
+ controller.files = result.info;
+ angular.forEach(result.info, function (file) {
+ if (file.fileType === '0') {
+ var o = file;
+ if (controller.info.path === '/') {
+ o.path = '/' + file.name;
+ }
+ else {
+ o.path = controller.info.path + '/' + file.name;
+ }
+ controller.add()(o, controller.list);
+ }
+ });
+ }
+ ;
+ });
+ }
+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
+ return DirectoryController;
+ })();
+ directives.DirectoryController = DirectoryController;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
var controllers;
(function (controllers) {
var Execution = (function () {
function Workspace($scope, APIEndPoint) {
this.$scope = $scope;
this.APIEndPoint = APIEndPoint;
+ this.directoryList = [];
var controller = this;
- this.page = 'workspace';
- this.APIEndPoint
- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
- .$promise
- .then(function (result) {
- controller.fileInfo = result.info;
- console.log(result);
- });
+ var directoryList = this.directoryList;
+ var o = {
+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
+ name: '',
+ parentId: '',
+ fileType: '',
+ createdAt: '',
+ updatedAt: '',
+ path: '/'
+ };
+ directoryList.push(o);
}
+ Workspace.prototype.addDirectory = function (info, directoryList) {
+ directoryList.push(info);
+ };
Workspace.$inject = ['$scope', 'APIEndPoint'];
return Workspace;
})();
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
app.zephyr.directive('command', app.directives.Command.Factory());
app.zephyr.directive('option', app.directives.Option.Factory());
+ app.zephyr.directive('directory', app.directives.Directory.Factory());
})(app || (app = {}));
if (fileId) {
endPoint += '/' + fileId;
}
- console.log(endPoint);
return this.resource(endPoint).get();
};
return APIEndPoint;
this.APIEndPoint = APIEndPoint;
this.$scope = $scope;
var controller = this;
+ console.log(this.list);
this.APIEndPoint
.getOptionControlFile('dcdFilePrint')
.$promise
})(app || (app = {}));
var app;
(function (app) {
+ var directives;
+ (function (directives) {
+ var Directory = (function () {
+ function Directory() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.controller = 'directoryController';
+ this.controllerAs = 'ctrl';
+ this.bindToController = {
+ info: '=',
+ add: '&',
+ list: '=',
+ files: '='
+ };
+ this.templateUrl = 'templates/directory.html';
+ }
+ Directory.Factory = function () {
+ var directive = function () {
+ return new Directory();
+ };
+ return directive;
+ };
+ return Directory;
+ })();
+ directives.Directory = Directory;
+ var DirectoryController = (function () {
+ function DirectoryController(APIEndPoint, $scope) {
+ this.APIEndPoint = APIEndPoint;
+ this.$scope = $scope;
+ var controller = this;
+ this.APIEndPoint
+ .getFiles(this.info.fileId)
+ .$promise
+ .then(function (result) {
+ if (result.status === 'success') {
+ controller.files = result.info;
+ angular.forEach(result.info, function (file) {
+ if (file.fileType === '0') {
+ var o = file;
+ if (controller.info.path === '/') {
+ o.path = '/' + file.name;
+ }
+ else {
+ o.path = controller.info.path + '/' + file.name;
+ }
+ controller.add()(o, controller.list);
+ }
+ });
+ }
+ ;
+ });
+ }
+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
+ return DirectoryController;
+ })();
+ directives.DirectoryController = DirectoryController;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
var controllers;
(function (controllers) {
var Execution = (function () {
function Workspace($scope, APIEndPoint) {
this.$scope = $scope;
this.APIEndPoint = APIEndPoint;
+ this.directoryList = [];
var controller = this;
- this.page = 'workspace';
- this.APIEndPoint
- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
- .$promise
- .then(function (result) {
- controller.fileInfo = result.info;
- console.log(result);
- });
+ var directoryList = this.directoryList;
+ var o = {
+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
+ name: '',
+ parentId: '',
+ fileType: '',
+ createdAt: '',
+ updatedAt: '',
+ path: '/'
+ };
+ directoryList.push(o);
}
+ Workspace.prototype.addDirectory = function (info, directoryList) {
+ directoryList.push(info);
+ };
Workspace.$inject = ['$scope', 'APIEndPoint'];
return Workspace;
})();
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
app.zephyr.directive('command', app.directives.Command.Factory());
app.zephyr.directive('option', app.directives.Option.Factory());
+ app.zephyr.directive('directory', app.directives.Directory.Factory());
})(app || (app = {}));
if (fileId) {
endPoint += '/' + fileId;
}
- console.log(endPoint);
return this.resource(endPoint).get();
};
return APIEndPoint;
this.APIEndPoint = APIEndPoint;
this.$scope = $scope;
var controller = this;
+ console.log(this.list);
this.APIEndPoint
.getOptionControlFile('dcdFilePrint')
.$promise
})(app || (app = {}));
var app;
(function (app) {
+ var directives;
+ (function (directives) {
+ var Directory = (function () {
+ function Directory() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.controller = 'directoryController';
+ this.controllerAs = 'ctrl';
+ this.bindToController = {
+ info: '=',
+ add: '&',
+ list: '=',
+ files: '='
+ };
+ this.templateUrl = 'templates/directory.html';
+ }
+ Directory.Factory = function () {
+ var directive = function () {
+ return new Directory();
+ };
+ return directive;
+ };
+ return Directory;
+ })();
+ directives.Directory = Directory;
+ var DirectoryController = (function () {
+ function DirectoryController(APIEndPoint, $scope) {
+ this.APIEndPoint = APIEndPoint;
+ this.$scope = $scope;
+ var controller = this;
+ this.APIEndPoint
+ .getFiles(this.info.fileId)
+ .$promise
+ .then(function (result) {
+ if (result.status === 'success') {
+ controller.files = result.info;
+ angular.forEach(result.info, function (file) {
+ if (file.fileType === '0') {
+ var o = file;
+ if (controller.info.path === '/') {
+ o.path = '/' + file.name;
+ }
+ else {
+ o.path = controller.info.path + '/' + file.name;
+ }
+ controller.add()(o, controller.list);
+ }
+ });
+ }
+ ;
+ });
+ }
+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
+ return DirectoryController;
+ })();
+ directives.DirectoryController = DirectoryController;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
var controllers;
(function (controllers) {
var Execution = (function () {
function Workspace($scope, APIEndPoint) {
this.$scope = $scope;
this.APIEndPoint = APIEndPoint;
+ this.directoryList = [];
var controller = this;
- this.page = 'workspace';
- this.APIEndPoint
- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
- .$promise
- .then(function (result) {
- controller.fileInfo = result.info;
- console.log(result);
- });
+ var directoryList = this.directoryList;
+ var o = {
+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
+ name: '',
+ parentId: '',
+ fileType: '',
+ createdAt: '',
+ updatedAt: '',
+ path: '/'
+ };
+ directoryList.push(o);
}
+ Workspace.prototype.addDirectory = function (info, directoryList) {
+ directoryList.push(info);
+ };
Workspace.$inject = ['$scope', 'APIEndPoint'];
return Workspace;
})();
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
app.zephyr.directive('command', app.directives.Command.Factory());
app.zephyr.directive('option', app.directives.Option.Factory());
+ app.zephyr.directive('directory', app.directives.Directory.Factory());
})(app || (app = {}));
if (fileId) {
endPoint += '/' + fileId;
}
- console.log(endPoint);
return this.resource(endPoint).get();
};
return APIEndPoint;
this.APIEndPoint = APIEndPoint;
this.$scope = $scope;
var controller = this;
+ console.log(this.list);
this.APIEndPoint
.getOptionControlFile('dcdFilePrint')
.$promise
})(app || (app = {}));
var app;
(function (app) {
+ var directives;
+ (function (directives) {
+ var Directory = (function () {
+ function Directory() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.controller = 'directoryController';
+ this.controllerAs = 'ctrl';
+ this.bindToController = {
+ info: '=',
+ add: '&',
+ list: '=',
+ files: '='
+ };
+ this.templateUrl = 'templates/directory.html';
+ }
+ Directory.Factory = function () {
+ var directive = function () {
+ return new Directory();
+ };
+ return directive;
+ };
+ return Directory;
+ })();
+ directives.Directory = Directory;
+ var DirectoryController = (function () {
+ function DirectoryController(APIEndPoint, $scope) {
+ this.APIEndPoint = APIEndPoint;
+ this.$scope = $scope;
+ var controller = this;
+ this.APIEndPoint
+ .getFiles(this.info.fileId)
+ .$promise
+ .then(function (result) {
+ if (result.status === 'success') {
+ controller.files = result.info;
+ angular.forEach(result.info, function (file) {
+ if (file.fileType === '0') {
+ var o = file;
+ if (controller.info.path === '/') {
+ o.path = '/' + file.name;
+ }
+ else {
+ o.path = controller.info.path + '/' + file.name;
+ }
+ controller.add()(o, controller.list);
+ }
+ });
+ }
+ ;
+ });
+ }
+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
+ return DirectoryController;
+ })();
+ directives.DirectoryController = DirectoryController;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
var controllers;
(function (controllers) {
var Execution = (function () {
function Workspace($scope, APIEndPoint) {
this.$scope = $scope;
this.APIEndPoint = APIEndPoint;
+ this.directoryList = [];
var controller = this;
- this.page = 'workspace';
+ var directoryList = this.directoryList;
+ var o = {
+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
+ name: '',
+ parentId: '',
+ fileType: '',
+ createdAt: '',
+ updatedAt: '',
+ path: '/'
+ };
+ directoryList.push(o);
+ }
+ Workspace.prototype.addDirectory = function (info, directoryList) {
+ directoryList.push(info);
+ };
+ Workspace.$inject = ['$scope', 'APIEndPoint'];
+ return Workspace;
+ })();
+ controllers.Workspace = Workspace;
+ })(controllers = app.controllers || (app.controllers = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
+ var controllers;
+ (function (controllers) {
+ var History = (function () {
+ function History($scope) {
+ this.page = "History";
+ }
+ History.$inject = ['$scope'];
+ return History;
+ })();
+ controllers.History = History;
+ })(controllers = app.controllers || (app.controllers = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
+ 'use strict';
+ var appName = 'zephyr';
+ app.zephyr = angular.module(appName, ['ui.router', 'ngResource', 'ui.bootstrap']);
+ app.zephyr.config(function ($stateProvider, $urlRouterProvider, $locationProvider) {
+ $urlRouterProvider.otherwise('/execution');
+ $locationProvider.html5Mode({
+ enabled: true,
+ requireBase: false
+ });
+ $stateProvider
+ .state('execution', {
+ url: '/execution',
+ templateUrl: 'templates/execution.html',
+ controller: 'executionController',
+ controllerAs: 'c'
+ })
+ .state('workspace', {
+ url: '/workspace',
+ templateUrl: 'templates/workspace.html',
+ controller: 'workspaceController',
+ controllerAs: 'c'
+ })
+ .state('history', {
+ url: '/history',
+ templateUrl: 'templates/history.html',
+ controller: 'historyController',
+ controllerAs: 'c'
+ });
+ });
+ app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+ app.zephyr.service('MyModal', app.services.MyModal);
+ app.zephyr.controller('executionController', app.controllers.Execution);
+ app.zephyr.controller('workspaceController', app.controllers.Workspace);
+ app.zephyr.controller('historyController', app.controllers.History);
+ app.zephyr.controller('commandController', app.directives.CommandController);
+ app.zephyr.controller('optionController', app.directives.OptionController);
+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
+ app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
+ app.zephyr.directive('command', app.directives.Command.Factory());
+ app.zephyr.directive('option', app.directives.Option.Factory());
+ app.zephyr.directive('directory', app.directives.Directory.Factory());
+ })(app || (app = {}));
+
+
+/***/ },
+/* 18 */
+/***/ function(module, exports) {
+
+ var app;
+ (function (app) {
+ var declares;
+ (function (declares) {
+ var CommandInfo = (function () {
+ function CommandInfo(name) {
+ this.name = name;
+ }
+ return CommandInfo;
+ })();
+ declares.CommandInfo = CommandInfo;
+ })(declares = app.declares || (app.declares = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
+ var services;
+ (function (services) {
+ var APIEndPoint = (function () {
+ function APIEndPoint($resource) {
+ this.$resource = $resource;
+ }
+ APIEndPoint.prototype.resource = function (endPoint) {
+ var customAction = {
+ method: 'GET',
+ isArray: false
+ };
+ return this.$resource(endPoint, {}, { customAction: customAction });
+ };
+ APIEndPoint.prototype.getOptionControlFile = function (command) {
+ var endPoint = '/api/optionControlFile/' + command;
+ return this.resource(endPoint).get();
+ };
+ APIEndPoint.prototype.getFiles = function (fileId) {
+ var endPoint = '/api/v1/workspace';
+ if (fileId) {
+ endPoint += '/' + fileId;
+ }
+ return this.resource(endPoint).get();
+ };
+ return APIEndPoint;
+ })();
+ services.APIEndPoint = APIEndPoint;
+ })(services = app.services || (app.services = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
+ var services;
+ (function (services) {
+ var MyModal = (function () {
+ function MyModal($uibModal) {
+ this.$uibModal = $uibModal;
+ this.modalOption = {
+ backdrop: true,
+ controller: null,
+ templateUrl: null,
+ size: null
+ };
+ }
+ MyModal.prototype.open = function (modalName) {
+ if (modalName === 'SelectCommand') {
+ this.modalOption.templateUrl = 'templates/select-command.html';
+ this.modalOption.size = 'lg';
+ }
+ return this.$uibModal.open(this.modalOption);
+ };
+ return MyModal;
+ })();
+ services.MyModal = MyModal;
+ })(services = app.services || (app.services = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
+ var directives;
+ (function (directives) {
+ var Command = (function () {
+ function Command() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.scope = true;
+ this.controller = 'commandController';
+ this.controllerAs = 'ctrl';
+ this.bindToController = {
+ index: '=',
+ name: '=',
+ remove: '&',
+ list: '='
+ };
+ this.templateUrl = 'templates/command.html';
+ }
+ Command.Factory = function () {
+ var directive = function () {
+ return new Command();
+ };
+ directive.$inject = [];
+ return directive;
+ };
+ return Command;
+ })();
+ directives.Command = Command;
+ var CommandController = (function () {
+ function CommandController(APIEndPoint, $scope) {
+ this.APIEndPoint = APIEndPoint;
+ this.$scope = $scope;
+ var controller = this;
+ console.log(this.list);
this.APIEndPoint
- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
+ .getOptionControlFile('dcdFilePrint')
.$promise
.then(function (result) {
- controller.fileInfo = result.info;
console.log(result);
+ controller.options = result.info;
});
+ this.files = ['a.file', 'b.file', 'c.file'];
+ this.heading = "[" + this.index + "]: dcdFilePring";
+ this.isOpen = true;
+ this.$scope.$on('close', function () {
+ controller.isOpen = false;
+ });
+ }
+ CommandController.prototype.submit = function () {
+ var params = {};
+ angular.forEach(this.options, function (option) {
+ var inputs = [];
+ angular.forEach(option.arg, function (arg) {
+ if (arg.input) {
+ inputs.push(arg.input);
+ }
+ });
+ if (inputs.length > 0) {
+ params[option.option] = inputs;
+ }
+ });
+ console.log(params);
+ };
+ CommandController.prototype.removeMySelf = function (index) {
+ this.remove()(index, this.list);
+ };
+ CommandController.$inject = ['APIEndPoint', '$scope'];
+ return CommandController;
+ })();
+ directives.CommandController = CommandController;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
+ var directives;
+ (function (directives) {
+ var HeaderMenu = (function () {
+ function HeaderMenu() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.templateUrl = 'templates/header-menu.html';
}
+ HeaderMenu.Factory = function () {
+ var directive = function () {
+ return new HeaderMenu();
+ };
+ return directive;
+ };
+ return HeaderMenu;
+ })();
+ directives.HeaderMenu = HeaderMenu;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
+ var directives;
+ (function (directives) {
+ var Option = (function () {
+ function Option() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.controller = 'optionController';
+ this.bindToController = {
+ info: '=',
+ files: '='
+ };
+ this.scope = true;
+ this.templateUrl = 'templates/option.html';
+ this.controllerAs = 'ctrl';
+ }
+ Option.Factory = function () {
+ var directive = function () {
+ return new Option();
+ };
+ directive.$inject = [];
+ return directive;
+ };
+ return Option;
+ })();
+ directives.Option = Option;
+ var OptionController = (function () {
+ function OptionController() {
+ var controller = this;
+ angular.forEach(controller.info.arg, function (arg) {
+ if (arg.initialValue) {
+ if (arg.formType === 'number') {
+ arg.input = parseInt(arg.initialValue);
+ }
+ else {
+ arg.input = arg.initialValue;
+ }
+ }
+ });
+ }
+ OptionController.$inject = [];
+ return OptionController;
+ })();
+ directives.OptionController = OptionController;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
+ var directives;
+ (function (directives) {
+ var Directory = (function () {
+ function Directory() {
+ this.restrict = 'E';
+ this.replace = true;
+ this.controller = 'directoryController';
+ this.controllerAs = 'ctrl';
+ this.bindToController = {
+ info: '=',
+ add: '&',
+ list: '=',
+ files: '='
+ };
+ this.templateUrl = 'templates/directory.html';
+ }
+ Directory.Factory = function () {
+ var directive = function () {
+ return new Directory();
+ };
+ return directive;
+ };
+ return Directory;
+ })();
+ directives.Directory = Directory;
+ var DirectoryController = (function () {
+ function DirectoryController(APIEndPoint, $scope) {
+ this.APIEndPoint = APIEndPoint;
+ this.$scope = $scope;
+ var controller = this;
+ this.APIEndPoint
+ .getFiles(this.info.fileId)
+ .$promise
+ .then(function (result) {
+ if (result.status === 'success') {
+ controller.files = result.info;
+ angular.forEach(result.info, function (file) {
+ if (file.fileType === '0') {
+ var o = file;
+ if (controller.info.path === '/') {
+ o.path = '/' + file.name;
+ }
+ else {
+ o.path = controller.info.path + '/' + file.name;
+ }
+ controller.add()(o, controller.list);
+ }
+ });
+ }
+ ;
+ });
+ }
+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
+ return DirectoryController;
+ })();
+ directives.DirectoryController = DirectoryController;
+ })(directives = app.directives || (app.directives = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
+ var controllers;
+ (function (controllers) {
+ var Execution = (function () {
+ function Execution(MyModal, $scope) {
+ this.MyModal = MyModal;
+ this.$scope = $scope;
+ this.commandInfoList = [];
+ }
+ ;
+ Execution.prototype.add = function () {
+ this.$scope.$broadcast('close');
+ this.commandInfoList.push(new app.declares.CommandInfo('dcdFilePrint'));
+ };
+ Execution.prototype.open = function () {
+ var result = this.MyModal.open('SelectCommand');
+ console.log(result);
+ };
+ Execution.prototype.remove = function (index, list) {
+ list.splice(index, 1);
+ };
+ Execution.prototype.close = function () {
+ console.log("close");
+ };
+ Execution.$inject = ['MyModal', '$scope'];
+ return Execution;
+ })();
+ controllers.Execution = Execution;
+ })(controllers = app.controllers || (app.controllers = {}));
+ })(app || (app = {}));
+ var app;
+ (function (app) {
+ var controllers;
+ (function (controllers) {
+ var Workspace = (function () {
+ function Workspace($scope, APIEndPoint) {
+ this.$scope = $scope;
+ this.APIEndPoint = APIEndPoint;
+ this.directoryList = [];
+ var controller = this;
+ var directoryList = this.directoryList;
+ var o = {
+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
+ name: '',
+ parentId: '',
+ fileType: '',
+ createdAt: '',
+ updatedAt: '',
+ path: '/'
+ };
+ directoryList.push(o);
+ }
+ Workspace.prototype.addDirectory = function (info, directoryList) {
+ directoryList.push(info);
+ };
Workspace.$inject = ['$scope', 'APIEndPoint'];
return Workspace;
})();
app.zephyr.controller('historyController', app.controllers.History);
app.zephyr.controller('commandController', app.directives.CommandController);
app.zephyr.controller('optionController', app.directives.OptionController);
+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
app.zephyr.directive('command', app.directives.Command.Factory());
app.zephyr.directive('option', app.directives.Option.Factory());
+ app.zephyr.directive('directory', app.directives.Directory.Factory());
})(app || (app = {}));