OSDN Git Service

Modified: Upload, Command execution
[eos/zephyr.git] / front-end / app / scripts / controllers / Workspace.ts
1 namespace app.controllers {
2     export class Workspace {
3
4         public page: string;
5         public directoryList: declares.IDirectoryInfo[];
6
7         public static $inject = ['$scope', 'APIEndPoint', 'MyModal'];
8
9         constructor(private $scope: ng.IScope, private APIEndPoint: services.APIEndPoint, private MyModal: services.MyModal) {
10             this.directoryList = [];
11
12             var controller = this;
13             var directoryList = this.directoryList;
14
15             var o = {
16                 fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
17                 name: '',
18                 parentId: '',
19                 fileType: '',
20                 createdAt: '',
21                 updatedAt:'',
22                 path: '/'
23             };
24             directoryList.push(o);
25
26         }
27
28         public addDirectory(info: declares.IDirectoryInfo, directoryList: declares.IDirectoryInfo[]) {
29             directoryList.push(info);
30         }
31
32         public upload(){
33             //this.MyModal.preview();
34             this.MyModal.upload();
35         }
36
37         private debug() {
38             this.MyModal.preview();
39         }
40
41
42     }
43 }