OSDN Git Service

Change UserInterface and File Manipulation API
authorhimatani_cafe <fumifumi@yasunaga-lab.bio.kyutech.ac.jp>
Wed, 4 Feb 2015 02:27:53 +0000 (11:27 +0900)
committerhimatani_cafe <fumifumi@yasunaga-lab.bio.kyutech.ac.jp>
Wed, 4 Feb 2015 02:27:53 +0000 (11:27 +0900)
58 files changed:
zephyr/client/app/app.js
zephyr/client/app/directive/menubar/menubar.controller.js [new file with mode: 0644]
zephyr/client/app/directive/menubar/menubar.directive.js [new file with mode: 0644]
zephyr/client/app/directive/menubar/menubar.html [new file with mode: 0644]
zephyr/client/app/directive/my-directory/my-directory.controller.js [new file with mode: 0644]
zephyr/client/app/directive/my-directory/my-directory.directive.js [new file with mode: 0644]
zephyr/client/app/directive/my-directory/my-directory.html [new file with mode: 0644]
zephyr/client/app/directive/my-exe/my-exe.controller.js [new file with mode: 0644]
zephyr/client/app/directive/my-exe/my-exe.html [new file with mode: 0644]
zephyr/client/app/directive/my-exe/my-exe.js [new file with mode: 0644]
zephyr/client/app/directive/my-form/my-form.directive.js
zephyr/client/app/directive/my-number/my-number.directive.js
zephyr/client/app/directive/my-number/my-number.html
zephyr/client/app/directive/navbar/navbar.controller.js
zephyr/client/app/directive/navbar/navbar.directive.js
zephyr/client/app/directive/navbar/navbar.directive.spec.js [deleted file]
zephyr/client/app/directive/navbar/navbar.html
zephyr/client/app/directive/navbar/navbar.less [deleted file]
zephyr/client/app/route/activityLogPage/activityLogPage.controller.js [deleted file]
zephyr/client/app/route/activityLogPage/activityLogPage.controller.spec.js [deleted file]
zephyr/client/app/route/activityLogPage/activityLogPage.js [deleted file]
zephyr/client/app/route/activityLogPage/activityLogPage.less [deleted file]
zephyr/client/app/route/commandPage/.DS_Store [deleted file]
zephyr/client/app/route/commandPage/commandPage.controller.js [deleted file]
zephyr/client/app/route/commandPage/commandPage.controller.spec.jp [deleted file]
zephyr/client/app/route/commandPage/commandPage.html [deleted file]
zephyr/client/app/route/commandPage/commandPage.js [deleted file]
zephyr/client/app/route/commandPage/commandPage.less [deleted file]
zephyr/client/app/route/dashboard/dashboard.controller.js [deleted file]
zephyr/client/app/route/dashboard/dashboard.controller.spec.js [deleted file]
zephyr/client/app/route/dashboard/dashboard.html [deleted file]
zephyr/client/app/route/dashboard/dashboard.less [deleted file]
zephyr/client/app/route/executionPage/.DS_Store [deleted file]
zephyr/client/app/route/executionPage/executionPage.controller.js [deleted file]
zephyr/client/app/route/executionPage/executionPage.controller.spec.js [deleted file]
zephyr/client/app/route/executionPage/executionPage.html [deleted file]
zephyr/client/app/route/executionPage/executionPage.js [deleted file]
zephyr/client/app/route/executionPage/executionPage.less [deleted file]
zephyr/client/app/route/home/home.controller.js [new file with mode: 0644]
zephyr/client/app/route/home/home.html [new file with mode: 0644]
zephyr/client/app/route/home/home.js [moved from zephyr/client/app/route/dashboard/dashboard.js with 51% similarity]
zephyr/client/app/route/log/log.controller.js [new file with mode: 0644]
zephyr/client/app/route/log/log.html [moved from zephyr/client/app/route/activityLogPage/activityLogPage.html with 93% similarity]
zephyr/client/app/route/log/log.js [new file with mode: 0644]
zephyr/client/app/route/workspace/workspace.controller.js [new file with mode: 0644]
zephyr/client/app/route/workspace/workspace.html [new file with mode: 0644]
zephyr/client/app/route/workspace/workspace.js [new file with mode: 0644]
zephyr/client/app/route/workspacePage/workspacePage.html
zephyr/client/app/service/commandModal/commandModal.controller.js [new file with mode: 0644]
zephyr/client/app/service/commandModal/commandModal.html [new file with mode: 0644]
zephyr/client/app/service/commandModal/commandModal.service.js [new file with mode: 0644]
zephyr/client/app/service/createFileModal/createFileModal.controller.js
zephyr/client/app/service/createFileModal/createFileModal.service.js
zephyr/client/app/service/createFileModal/createFileModal.service.spec.js [deleted file]
zephyr/client/index.html
zephyr/server/api/workspaces/index.js [new file with mode: 0644]
zephyr/server/api/workspaces/workspaces.controller.js [new file with mode: 0644]
zephyr/server/routes.js

index 958913e..55cc126 100644 (file)
@@ -11,12 +11,8 @@ angular.module('zephyrApp', [
     .config(function ($routeProvider, $locationProvider) {
     $routeProvider
     .otherwise({
-        redirectTo: '/'
+        redirectTo: '/home'
     })
 
 $locationProvider.html5Mode(true);
-})
-.value('directivePath',{
-    'navbar':'app/directive/navbar/navbar.html'
-}
-);
+});
diff --git a/zephyr/client/app/directive/menubar/menubar.controller.js b/zephyr/client/app/directive/menubar/menubar.controller.js
new file mode 100644 (file)
index 0000000..3a1eddd
--- /dev/null
@@ -0,0 +1,17 @@
+'use strict';
+
+angular.module('zephyrApp')
+.controller('MenubarCtrl', function MenubarCtrl($scope, createFileModal) {
+    $scope.chDir = function(dir) {
+        $scope.setDir(dir);
+    };
+    $scope.showDir = function(dir) {
+        $scope.setDirMode = true;
+    };
+    $scope.openFileModal = function() {
+        createFileModal.open($scope);
+    };
+
+});
+
+
diff --git a/zephyr/client/app/directive/menubar/menubar.directive.js b/zephyr/client/app/directive/menubar/menubar.directive.js
new file mode 100644 (file)
index 0000000..11217f5
--- /dev/null
@@ -0,0 +1,12 @@
+'use strict';
+
+angular.module('zephyrApp')
+.directive('menubar', function () {
+    return {
+        templateUrl: 'app/directive/menubar/menubar.html',
+        controller: 'MenubarCtrl',
+        restrict: 'EA',
+        link: function (scope, element, attrs, controller) {
+        }
+    };
+});
diff --git a/zephyr/client/app/directive/menubar/menubar.html b/zephyr/client/app/directive/menubar/menubar.html
new file mode 100644 (file)
index 0000000..f1ef304
--- /dev/null
@@ -0,0 +1,13 @@
+<ul class="nav navbar-nav navbar-left">
+    <li class="dropdown">
+    <a  class="dropdown-toggle" data-toggle="dropdown"><b class="caret"></b></a>
+    <ul class="dropdown-menu">
+        <li><a>{{curDir}}</a></li>
+        <li class="divider"></li>
+        <li ng-repeat="dir in dirs"><a  ng-click="chDir(dir)">{{dir}}</a></li>
+    </ul>
+    </li>
+    <li><a  popover="Goto {{curDir}} " popover-trigger="mouseenter" ng-click="showDir(curDir)">{{curDir}}</a></li>
+    <li popover-trigger="mouseenter" popover="upload file" ><a  ng-click="openFileModal();toggleExe();"><i class="icon-createfile"></i></a></li>
+    <li popover-trigger="mouseenter" popover="select command" ><a  ng-click="openCommandModal()"><i class="icon-fullborders"></i></a></li>
+</ul>
diff --git a/zephyr/client/app/directive/my-directory/my-directory.controller.js b/zephyr/client/app/directive/my-directory/my-directory.controller.js
new file mode 100644 (file)
index 0000000..65d82fc
--- /dev/null
@@ -0,0 +1,6 @@
+'use strict';
+
+angular.module('zephyrApp')
+.controller('MyDirectoryCtrl', function DirectoryCtrl($scope, api) {
+    $scope.$watch("curDir", $scope.update, true);
+});
diff --git a/zephyr/client/app/directive/my-directory/my-directory.directive.js b/zephyr/client/app/directive/my-directory/my-directory.directive.js
new file mode 100644 (file)
index 0000000..1036061
--- /dev/null
@@ -0,0 +1,12 @@
+'use strict';
+
+angular.module('zephyrApp')
+.directive('myDirectory', function () {
+    return {
+        controller: 'MyDirectoryCtrl',
+        templateUrl: 'app/directive/my-directory/my-directory.html',
+        restrict: 'EA',
+        link: function (scope, element, attrs, controller) {
+        }
+    };
+});
diff --git a/zephyr/client/app/directive/my-directory/my-directory.html b/zephyr/client/app/directive/my-directory/my-directory.html
new file mode 100644 (file)
index 0000000..b0e768f
--- /dev/null
@@ -0,0 +1,20 @@
+<div class="row">
+    <div class="table-responsive">
+        <table class="table table-hover">
+            <thead>
+                <tr>
+                    <th class="col-md-5">Name</th>
+                    <th class="col-md-2">Size</th>
+                    <th class="col-md-5">Accessed Time</th>
+                </tr>
+            </thead>
+            <tbody>
+                <tr ng-repeat="row in tableRows">
+                    <td>{{row.name}}</td>
+                    <td>{{row.size}}</td>
+                    <td>{{row.atime}}</td>
+                </tr>
+            </tbody>
+        </table>
+    </div>
+</div>
diff --git a/zephyr/client/app/directive/my-exe/my-exe.controller.js b/zephyr/client/app/directive/my-exe/my-exe.controller.js
new file mode 100644 (file)
index 0000000..628bc3d
--- /dev/null
@@ -0,0 +1,6 @@
+'use strict';
+
+angular.module('zephyrApp')
+.controller('MyExeCtrl', function DirectoryCtrl($scope, api) {
+
+});
diff --git a/zephyr/client/app/directive/my-exe/my-exe.html b/zephyr/client/app/directive/my-exe/my-exe.html
new file mode 100644 (file)
index 0000000..996729f
--- /dev/null
@@ -0,0 +1,21 @@
+<div class="page-header">
+    <h1>{{selectedCommand}}</h1>
+</div>
+<div class="row">
+    <div ng-repeat="(i, opt) in opts">
+        <div class="col-md-5">
+            <my-panel ng-if="$even" i="{{i}}"></my-panel>
+        </div>
+        <div class="col-md-2"></div>
+        <div class="col-md-5">
+            <my-panel ng-if="$odd" i="{{i}}"></my-panel>
+        </div>
+    </div>
+</div>
+<div class="row">
+    <div class="col-md-8">
+    </div>
+    <div class="col-md-4">
+        <button>Execute</button>
+    </div>
+</div>
diff --git a/zephyr/client/app/directive/my-exe/my-exe.js b/zephyr/client/app/directive/my-exe/my-exe.js
new file mode 100644 (file)
index 0000000..741eb84
--- /dev/null
@@ -0,0 +1,12 @@
+'use strict';
+
+angular.module('zephyrApp')
+.directive('myExe', function () {
+    return {
+        controller: 'MyExeCtrl',
+        templateUrl: 'app/directive/my-exe/my-exe.html',
+        restrict: 'EA',
+        link: function (scope, element, attrs, controller) {
+        }
+    };
+});
index 6b4cb5c..6ac7253 100644 (file)
@@ -4,17 +4,17 @@ angular.module('zephyrApp')
 .directive('myForm', function ($compile) {
     return {
         template:"<div></div>",
-    scope:{ 
-        argIndex: '@j'
-    },
-    replace: true,
-    restrict: 'EA',
-    link: function (scope, element, attrs) {
-        element.append($compile("<div class=\"col-md-6\"><my-"+scope.arg.formType+"><my-"+scope.arg.formType+"/></div>")(scope));
-    },
-    controller: function($scope){
-                    var argIndex  = parseInt($scope.argIndex);
-                    $scope.arg = $scope.$parent.opt.arg[argIndex];
-                }
+        scope:{ 
+            argIndex: '@j'
+        },
+        replace: true,
+        restrict: 'EA',
+        link: function (scope, element, attrs) {
+            element.append($compile("<div class=\"col-md-6\"><my-"+scope.arg.formType+"><my-"+scope.arg.formType+"/></div>")(scope));
+        },
+        controller: function($scope){
+            var argIndex  = parseInt($scope.argIndex);
+            $scope.arg = $scope.$parent.opt.arg[argIndex];
+        }
     };
 });
index a80516a..50f4dc2 100644 (file)
@@ -4,17 +4,17 @@ angular.module('zephyrApp')
 .directive('myNumber', function () {
     return {
         templateUrl: 'app/directive/my-number/my-number.html',
-    scope: { }, // This Directive has has Isolated Scope
-    restrict: 'EA',
-    link: angular.noop,
-    controller: function($scope){
-                    // Receive "arg" and "opt" From $parent Scope 
-                    // $parent Scope is my-form Directive
-                    var arg = $scope.$parent.arg;
-                    var opt = $scope.$parent.$parent.opt;
+        scope: { }, // This Directive has has Isolated Scope
+        restrict: 'EA',
+        link: angular.noop,
+        controller: function($scope){
+            // Receive "arg" and "opt" From $parent Scope 
+            // $parent Scope is my-form Directive
+            var arg = $scope.$parent.arg;
+            var opt = $scope.$parent.$parent.opt;
 
-                    $scope.argName    = arg.argName;
-                    $scope.optionName = opt.optionName;
-                }
+            $scope.argName    = arg.argName;
+            $scope.optionName = opt.optionName;
+        }
     };
 });
index 9f928cf..70ea8bf 100644 (file)
@@ -1,4 +1,2 @@
 <label for="argName" class="control-label">{{argName}}</label>
 <input type="number" class="form-control">
-
-
index 99ffcab..7cebcd0 100644 (file)
@@ -2,29 +2,6 @@
 
 angular.module('zephyrApp')
 .controller('NavbarCtrl', function NavbarCtrl($scope, api) {
-    
-    var dirs = [
-        "fumifumi",
-        "tacyas",
-        "himetani"
-    ];
-
-    $scope.curDir = dirs[1];
-
-    $scope.chDir = function(dir) {
-        $scope.curDir = dir;
-        $scope.dirs = filterDir(dirs);
-    };
-
-    $scope.dirs = filterDir(dirs);
-
-    function isNotCurDir(dir){
-        return !(dir === $scope.curDir);
-    };
-    
-    function filterDir(dirs) {
-        return dirs.filter(isNotCurDir);
-    }
 });
 
 
index f1d85df..094fead 100644 (file)
@@ -6,7 +6,6 @@ angular.module('zephyrApp')
         controller: 'NavbarCtrl',
         templateUrl: 'app/directive/navbar/navbar.html',
         restrict: 'EA',
-        transclude: true,
         link: function (scope, element, attrs, controller) {
         }
     };
diff --git a/zephyr/client/app/directive/navbar/navbar.directive.spec.js b/zephyr/client/app/directive/navbar/navbar.directive.spec.js
deleted file mode 100644 (file)
index 8c64cd4..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-describe('Directive: navbar', function () {
-
-  // load the directive's module and view
-  beforeEach(module('zephyrApp'));
-  beforeEach(module('app/directive/navbar/navbar.html'));
-
-  var element, scope;
-
-  beforeEach(inject(function ($rootScope) {
-    scope = $rootScope.$new();
-  }));
-
-  it('should make hidden element visible', inject(function ($compile) {
-    element = angular.element('<navbar></navbar>');
-    element = $compile(element)(scope);
-    scope.$apply();
-    expect(element.text()).toBe('this is the navbar directive');
-  }));
-});
\ No newline at end of file
index 4373a30..e03b444 100644 (file)
@@ -1,29 +1,15 @@
 <div class="navbar navbar-default">
     <div class="navbar-header">
-        <a class="navbar-brand" href="#">Zephyr</a>
+        <a class="navbar-brand" href="">Zephyr</a>
     </div>
     <div class="navbar-collapse collapse navbar-responsive-collapse">
         <ul class="nav navbar-nav">
-            <li class="active"><a href="#">Home</a></li>
-            <li><a href="#">Directory</a></li>
-            <li><a href="#">Activity Log</a></li>
+            <li class="active"><a href="/">Home</a></li>
+            <li><a href="workspace">Workspace</a></li>
+            <li><a href="log">Activity Log</a></li>
         </ul>
         <form class="navbar-form navbar-left">
             <input type="text" class="form-control col-lg-8" placeholder="Search">
         </form>
-        <ul class="nav navbar-nav navbar-right">
-            <li popover-trigger="mouseenter" popover="Upload File" ><a href="" ng-click="openFileModal()"><i class="icon-createfile"></i></a></li>
-            <li><a href="#"><i class="icon-enteralt"></i></a></li>
-            <li class="dropdown">
-            <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{curDir}} <b class="caret"></b></a>
-            <ul class="dropdown-menu">
-                <li><a href="#">{{curDir}}</a></li>
-                <li class="divider"></li>
-                <li ng-repeat="dir in dirs"><a href="#" ng-click="chDir(dir)">{{dir}}</a></li>
-            </ul>
-            </li>
-        </ul>
-        <!--
-        -->
     </div>
 </div>
diff --git a/zephyr/client/app/directive/navbar/navbar.less b/zephyr/client/app/directive/navbar/navbar.less
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/zephyr/client/app/route/activityLogPage/activityLogPage.controller.js b/zephyr/client/app/route/activityLogPage/activityLogPage.controller.js
deleted file mode 100644 (file)
index 08fdd6d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-angular.module('zephyrApp')
-  .controller('LogpageCtrl', function ($scope,directivePath) {
-    $scope.navbar = directivePath.navbar;
-  });
diff --git a/zephyr/client/app/route/activityLogPage/activityLogPage.controller.spec.js b/zephyr/client/app/route/activityLogPage/activityLogPage.controller.spec.js
deleted file mode 100644 (file)
index 6bd672a..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-describe('Controller: LogpageCtrl', function () {
-
-  // load the controller's module
-  beforeEach(module('zephyrApp'));
-
-  var LogpageCtrl, scope;
-
-  // Initialize the controller and a mock scope
-  beforeEach(inject(function ($controller, $rootScope) {
-    scope = $rootScope.$new();
-    LogpageCtrl = $controller('LogpageCtrl', {
-      $scope: scope
-    });
-  }));
-
-  it('should ...', function () {
-    expect(1).toEqual(1);
-  });
-});
diff --git a/zephyr/client/app/route/activityLogPage/activityLogPage.js b/zephyr/client/app/route/activityLogPage/activityLogPage.js
deleted file mode 100644 (file)
index 2b089e9..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-angular.module('zephyrApp')
-  .config(function ($routeProvider) {
-    $routeProvider
-      .when('/activityLogPage', {
-        templateUrl: 'app/route/activityLogPage/activityLogPage.html',
-        controller: 'LogpageCtrl'
-      });
-  });
diff --git a/zephyr/client/app/route/activityLogPage/activityLogPage.less b/zephyr/client/app/route/activityLogPage/activityLogPage.less
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/zephyr/client/app/route/commandPage/.DS_Store b/zephyr/client/app/route/commandPage/.DS_Store
deleted file mode 100644 (file)
index a367912..0000000
Binary files a/zephyr/client/app/route/commandPage/.DS_Store and /dev/null differ
diff --git a/zephyr/client/app/route/commandPage/commandPage.controller.js b/zephyr/client/app/route/commandPage/commandPage.controller.js
deleted file mode 100644 (file)
index 8a11740..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-angular.module('zephyrApp')
-.controller('CommandCtrl', function ($scope,directivePath,api) {
-    $scope.navbar = directivePath.navbar;   
-
-    $scope.commands = api('commandList');
-    $scope.tags     = api('tagList');
-    $scope.tag      = "all";
-
-    $scope.changeTag = function(tag){
-        $scope.tag = tag;
-    };
-
-});
diff --git a/zephyr/client/app/route/commandPage/commandPage.controller.spec.jp b/zephyr/client/app/route/commandPage/commandPage.controller.spec.jp
deleted file mode 100644 (file)
index 8139f94..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-describe('Controller: CommandCtrl', function () {
-
-  // load the controller's module
-  beforeEach(module('zephyrApp'));
-
-  var CommandCtrl, scope;
-
-  // Initialize the controller and a mock scope
-  beforeEach(inject(function ($controller, $rootScope) {
-    scope = $rootScope.$new();
-    CommandCtrl = $controller('CommandCtrl', {
-      $scope: scope
-    });
-  }));
-
-  it('should ...', function () {
-    expect(1).toEqual(1);
-  });
-});
diff --git a/zephyr/client/app/route/commandPage/commandPage.html b/zephyr/client/app/route/commandPage/commandPage.html
deleted file mode 100644 (file)
index 737eb01..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<div ng-include="navbar"></div>
-
-<div id="page-wrapper">
-    <div class="page-header">
-        <div class="row">
-            <div class="col-lg-12">
-                <h1>Command</h1>
-            </div>
-            <!-- /.col-lg-12 -->
-        </div>
-        <div class="row">
-            <div class="col-md-8">
-                <div class="btn-group"ng-repeat="tag in tags">
-                    <button type="button" class="btn btn-default btn-xs" ng-click="changeTag(tag)"><span class="glyphicon glyphicon-tag"></span>{{tag}}</button>
-                </div>
-            </div>
-            <div class="col-md-4">
-                <div class="input-group custom-search-form">
-                    <input type="text" class="form-control" placeholder="Search..." ng-model="searchText">
-                    <span class="input-group-btn">
-                        <button class="btn btn-default" type="button">
-                            <i class="fa fa-search"></i>
-                        </button>
-                    </span>
-                </div>
-            </div>
-        </div>
-    </div>
-
-    <div class="row">
-        <div ng-repeat="command in commands | filter:searchText |tagFilter:tag">
-            <div class="col-md-4">
-                <a href="executionPage/{{command.name}}" target="_blank" ng-if="$index%3==0">{{command.name}}</a>
-            </div>
-            <div class="col-md-4">
-                <a href="executionPage/{{command.name}}" target="_blank" ng-if="$index%3==1">{{command.name}}</a>
-            </div>
-            <div class="col-md-4">
-                <a href="executionPage/{{command.name}}" target="_blank" ng-if="$index%3==2">{{command.name}}</a>
-            </div>
-        </div>
-    </div>
-</div>
-<!-- /#page-wrapper -->
-
diff --git a/zephyr/client/app/route/commandPage/commandPage.js b/zephyr/client/app/route/commandPage/commandPage.js
deleted file mode 100644 (file)
index 795ac6a..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-angular.module('zephyrApp')
-  .config(function ($routeProvider) {
-    $routeProvider
-      .when('/commandPage', {
-        templateUrl: 'app/route/commandPage/commandPage.html',
-        controller: 'CommandCtrl'
-      });
-  });
diff --git a/zephyr/client/app/route/commandPage/commandPage.less b/zephyr/client/app/route/commandPage/commandPage.less
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/zephyr/client/app/route/dashboard/dashboard.controller.js b/zephyr/client/app/route/dashboard/dashboard.controller.js
deleted file mode 100644 (file)
index 5b010fe..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-angular.module('zephyrApp')
-.controller('RouteCtrl', function ($scope, $location, commandModal, api) {
-    $scope.workspaces = api('workspace/read');
-
-    $scope.workspaceIsActive = false;
-    $scope.onWorkspace = function() {
-        $scope.workspaceIsActive = true;
-    };
-    $scope.openCommandModal = function() {
-        commandModal.open();
-    }
-});
diff --git a/zephyr/client/app/route/dashboard/dashboard.controller.spec.js b/zephyr/client/app/route/dashboard/dashboard.controller.spec.js
deleted file mode 100644 (file)
index 78af263..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-describe('Controller: RouteCtrl', function () {
-
-  // load the controller's module
-  beforeEach(module('zephyrApp'));
-
-  var RouteCtrl, scope;
-
-  // Initialize the controller and a mock scope
-  beforeEach(inject(function ($controller, $rootScope) {
-    scope = $rootScope.$new();
-    RouteCtrl = $controller('RouteCtrl', {
-      $scope: scope
-    });
-  }));
-
-  it('should ...', function () {
-    expect(1).toEqual(1);
-  });
-});
diff --git a/zephyr/client/app/route/dashboard/dashboard.html b/zephyr/client/app/route/dashboard/dashboard.html
deleted file mode 100644 (file)
index f981561..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<navbar></navbar>
-<div class="container">
-    <div class="row">
-        <ul class="nav navbar-nav navbar-left">
-            <li><a popover="Goto {{curDir}} " popover-trigger="mouseenter" href="#">{{curDir}}</a></li>
-            <li class="dropdown">
-            <a href="#" class="dropdown-toggle" data-toggle="dropdown"><b class="caret"></b></a>
-            <ul class="dropdown-menu">
-                <li><a>{{curDir}}</a></li>
-                <li class="divider"></li>
-                <li ng-repeat="dir in dirs"><a href="#" ng-click="chDir(dir)">{{dir}}</a></li>
-            </ul>
-            </li>
-            <li popover-trigger="mouseenter" popover="upload file" ><a href="" ng-click="openFileModal()"><i class="icon-createfile"></i></a></li>
-            <li popover-trigger="mouseenter" popover="select command" ><a href="" ng-click="openCommandModal()"><i class="icon-fullborders"></i></a></li>
-        </ul>
-    </div>
-    <div class="col-md-8">
-        <div class="well well-lg">
-            <directory></directory> 
-        </div>
-    </div>
-</div>
diff --git a/zephyr/client/app/route/dashboard/dashboard.less b/zephyr/client/app/route/dashboard/dashboard.less
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/zephyr/client/app/route/executionPage/.DS_Store b/zephyr/client/app/route/executionPage/.DS_Store
deleted file mode 100644 (file)
index ba736c9..0000000
Binary files a/zephyr/client/app/route/executionPage/.DS_Store and /dev/null differ
diff --git a/zephyr/client/app/route/executionPage/executionPage.controller.js b/zephyr/client/app/route/executionPage/executionPage.controller.js
deleted file mode 100644 (file)
index 1d04b04..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-angular.module('zephyrApp')
-.controller('ExecutionpageCtrl', function ($scope, $location, api) {
-    var command = $location.path().replace("/executionPage/","");
-    $scope.opts = api('option/'+command);
-    $scope.command = command;
-});
diff --git a/zephyr/client/app/route/executionPage/executionPage.controller.spec.js b/zephyr/client/app/route/executionPage/executionPage.controller.spec.js
deleted file mode 100644 (file)
index 76731aa..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-describe('Controller: ExecutionpageCtrl', function () {
-
-  // load the controller's module
-  beforeEach(module('zephyrApp'));
-
-  var ExecutionpageCtrl, scope;
-
-  // Initialize the controller and a mock scope
-  beforeEach(inject(function ($controller, $rootScope) {
-    scope = $rootScope.$new();
-    ExecutionpageCtrl = $controller('ExecutionpageCtrl', {
-      $scope: scope
-    });
-  }));
-
-  it('should ...', function () {
-    expect(1).toEqual(1);
-  });
-});
diff --git a/zephyr/client/app/route/executionPage/executionPage.html b/zephyr/client/app/route/executionPage/executionPage.html
deleted file mode 100644 (file)
index 122236f..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<div class="container">
-    <div class="row">
-        <div class="page-header">
-            <h1>{{command}}</h1>
-        </div>
-        <div ng-repeat="(i, opt) in opts">
-            <div class="col-md-5">
-                <my-panel ng-if="$even" i="{{i}}"></my-panel>
-            </div>
-            <div class="col-md-2"></div>
-            <div class="col-md-5">
-                <my-panel ng-if="$odd" i="{{i}}"></my-panel>
-            </div>
-        </div>
-    </div>
-</div>
diff --git a/zephyr/client/app/route/executionPage/executionPage.js b/zephyr/client/app/route/executionPage/executionPage.js
deleted file mode 100644 (file)
index 65b53d8..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-angular.module('zephyrApp')
-  .config(function ($routeProvider) {
-    $routeProvider
-      .when('/executionPage/:id', {
-        templateUrl: 'app/route/executionPage/executionPage.html',
-        controller: 'ExecutionpageCtrl'
-      });
-  });
diff --git a/zephyr/client/app/route/executionPage/executionPage.less b/zephyr/client/app/route/executionPage/executionPage.less
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/zephyr/client/app/route/home/home.controller.js b/zephyr/client/app/route/home/home.controller.js
new file mode 100644 (file)
index 0000000..cac82ec
--- /dev/null
@@ -0,0 +1,46 @@
+'use strict';
+
+angular.module('zephyrApp')
+.controller('RouteHomeCtrl', function ($scope, $location, commandModal, api, createFileModal) {
+    // For menubar directive
+    var dirs = [
+        "fumifumi",
+        "tacyas",
+        "himetani"
+    ];
+    $scope.curDir = dirs[0];
+    $scope.dirs = filterDir(dirs);
+    $scope.setDir = function(dir) {
+        $scope.curDir = dir; 
+        $scope.dirs = filterDir(dirs);
+    };
+    function isNotCurDir(dir){
+        return !(dir === $scope.curDir);
+    };
+    function filterDir(dirs) {
+        return dirs.filter(isNotCurDir);
+    };
+    // For commandModal service
+    $scope.openCommandModal = function() {
+        commandModal.open($scope);
+    };
+    $scope.selectCommand = function(selectedCommand) {
+        $scope.selectedCommand = selectedCommand;
+        showOpts();
+    };
+    function showOpts() {
+        if ($scope.selectedCommand)
+            $scope.opts = api('option/'+$scope.selectedCommand);
+    };
+    // For my-directory directive
+    $scope.isDirMode = true;
+    $scope.update = function () {
+        $scope.tableRows = api('workspaces/' + $scope.curDir);
+    };
+    $scope.setMode2True = function () {
+        $scope.isDirMode = true;
+    };
+    $scope.setMode2False = function () {
+        $scope.isDirMode = false;
+    };
+});
diff --git a/zephyr/client/app/route/home/home.html b/zephyr/client/app/route/home/home.html
new file mode 100644 (file)
index 0000000..b33a6a5
--- /dev/null
@@ -0,0 +1,14 @@
+<navbar></navbar>
+<div class="container">
+    <div class="row">
+        <menubar></menubar>
+      </div>
+    <div class="col-md-8">
+        <div ng-if="!isDirMode">
+            <my-exe></my-exe>
+        </div>
+        <div ng-if="isDirMode">
+            <my-directory></my-directory>
+        </div>
+    </div>
+</div>
similarity index 51%
rename from zephyr/client/app/route/dashboard/dashboard.js
rename to zephyr/client/app/route/home/home.js
index 2c6147c..28a8109 100644 (file)
@@ -3,8 +3,8 @@
 angular.module('zephyrApp')
   .config(function ($routeProvider) {
     $routeProvider
-      .when('/', {
-        templateUrl: 'app/route/dashboard/dashboard.html',
-        controller: 'RouteCtrl'
+      .when('/home', {
+        templateUrl: 'app/route/home/home.html',
+        controller: 'RouteHomeCtrl'
       });
   });
diff --git a/zephyr/client/app/route/log/log.controller.js b/zephyr/client/app/route/log/log.controller.js
new file mode 100644 (file)
index 0000000..8c576cc
--- /dev/null
@@ -0,0 +1,5 @@
+'use strict';
+
+angular.module('zephyrApp')
+  .controller('RouteLogCtrl', function ($scope,directivePath) {
+  });
@@ -1,4 +1,4 @@
-<div ng-include="navbar"></div>
+<navbar></navbar>
 
 <div id="page-wrapper">
     <div class="page-header">
diff --git a/zephyr/client/app/route/log/log.js b/zephyr/client/app/route/log/log.js
new file mode 100644 (file)
index 0000000..33545b6
--- /dev/null
@@ -0,0 +1,10 @@
+'use strict';
+
+angular.module('zephyrApp')
+  .config(function ($routeProvider) {
+    $routeProvider
+      .when('/log', {
+        templateUrl: 'app/route/log/log.html',
+        controller: 'RouteLogCtrl'
+      });
+  });
diff --git a/zephyr/client/app/route/workspace/workspace.controller.js b/zephyr/client/app/route/workspace/workspace.controller.js
new file mode 100644 (file)
index 0000000..a583a2f
--- /dev/null
@@ -0,0 +1,5 @@
+'use strict';
+
+angular.module('zephyrApp')
+  .controller('RouteWorkspaceCtrl', function ($scope,directivePath) {
+  });
diff --git a/zephyr/client/app/route/workspace/workspace.html b/zephyr/client/app/route/workspace/workspace.html
new file mode 100644 (file)
index 0000000..bfb9b5d
--- /dev/null
@@ -0,0 +1,23 @@
+<navbar></navbar>
+
+<div id="page-wrapper">
+    <div class="page-header">
+        <div class="row">
+            <div class="col-lg-12">
+                <h1>Workspace</h1>
+            </div>
+            <!-- /.col-lg-12 -->
+        </div>
+        <div class="row">
+            へっだーだよ! 
+        </div>
+    </div>
+
+    <div class="row">
+        <div class="col-md-12">
+            Workspaceだよ!
+        </div> 
+    </div>
+</div>
+<!-- /#page-wrapper -->
+
diff --git a/zephyr/client/app/route/workspace/workspace.js b/zephyr/client/app/route/workspace/workspace.js
new file mode 100644 (file)
index 0000000..d4d9d5d
--- /dev/null
@@ -0,0 +1,10 @@
+'use strict';
+
+angular.module('zephyrApp')
+  .config(function ($routeProvider) {
+    $routeProvider
+      .when('/workspace', {
+        templateUrl: 'app/route/workspace/workspace.html',
+        controller: 'RouteWorkspaceCtrl'
+      });
+  });
index d809a1c..5ed29d4 100644 (file)
@@ -1,67 +1,57 @@
 <div id="wrapper">
     <navbar></navbar>
     <div id="page-wrapper">
-        <div ng-controller="WorkspacepageCtrl">
-
-            <div class="container-fluid">
-
-                <div class="row page-header">
-                    <ol class="breadcrumb">
-                        <li>
-                            <a href="/">Dashboard</a>
-                        </li>
-                        <li ng-class="{active: isAll}">
-                            <a ng-if="isChild" href="/workspacePage/all">All Workspace</a>
-                            <span ng-if="isAll">All Workspace</span>
-                        </li>
-                        <li ng-if="isChild" class="active">
-                            {{path}}
-                        </li>
-                    </ol>
-                </div>
+        <div class="container-fluid">
+
+            <div class="row page-header">
+                <ol class="breadcrumb">
+                    <li>
+                    <a href="/">Dashboard</a>
+                    </li>
+                    <li ng-class="{active: isAll}">
+                    <a ng-if="isChild" href="/workspacePage/all">All Workspace</a>
+                    <span ng-if="isAll">All Workspace</span>
+                    </li>
+                    <li ng-if="isChild" class="active">
+                    {{path}}
+                    </li>
+                </ol>
+            </div>
 
-                <div class="row">
-                    <div class="collapse navbar-collapse">
-                        <h3 class="pull-left" style="display:inline">{{path}}</h3>
-                        <form class="navbar-form navbar-right" role="search">
-                            <div class="form-group">
-                                <input type="text" class="form-control" placeholder="Search">
-                            </div>
-                        </form>
-                        <ul class="nav navbar-nav navbar-right">
-                            <li ng-if="isAll" popover-trigger="mouseenter" popover="Create Workspace"><a href="" ng-click="openDirModal()"><i class="icon-addfolderalt"></i></a></li>
-                            <li ng-if="isChild" popover-trigger="mouseenter" popover="Upload File" ><a href="" ng-click="openFileModal()"><i class="icon-createfile"></i></a></li>
-                        </ul>
-                    </div>
+            <div class="row">
+                <div class="collapse navbar-collapse">
+                    <h3 class="pull-left" style="display:inline">{{path}}</h3>
+                    <form class="navbar-form navbar-right" role="search">
+                        <div class="form-group">
+                            <input type="text" class="form-control" placeholder="Search">
+                        </div>
+                    </form>
+                    <ul class="nav navbar-nav navbar-right">
+                        <li ng-if="isAll" popover-trigger="mouseenter" popover="Create Workspace"><a href="" ng-click="openDirModal()"><i class="icon-addfolderalt"></i></a></li>
+                        <li ng-if="isChild" popover-trigger="mouseenter" popover="Upload File" ><a href="" ng-click="openFileModal()"><i class="icon-createfile"></i></a></li>
+                    </ul>
                 </div>
+            </div>
 
-                <div class="row">
-                    <div class="table-responsive">
-                        <table class="table table-hover">
-                            <thead>
-                                <tr>
-                                    <th>#</th>
-                                    <th>Name</th>
-                                </tr>
-                            </thead>
-                            <tbody>
-                                <tr ng-repeat="row in tableRows" ng-click="move(row)">
-                                    <td>{{$index+1}}</td>
-                                    <td>{{row}}</td>
-                                </tr>
-                            </tbody>
-                        </table>
-                    </div>
+            <div class="row">
+                <div class="table-responsive">
+                    <table class="table table-hover">
+                        <thead>
+                            <tr>
+                                <th>#</th>
+                                <th>Name</th>
+                            </tr>
+                        </thead>
+                        <tbody>
+                            <tr ng-repeat="row in tableRows" ng-click="move(row)">
+                                <td>{{$index+1}}</td>
+                                <td>{{row}}</td>
+                            </tr>
+                        </tbody>
+                    </table>
                 </div>
-
             </div>
-            <!-- WorkspacepageCtrl -->
-
-        </div>
-        <!-- .containeri -->
-
-    </div>
-    <!-- /#page-wrapper -->
-
+        </div><!-- .container -->
+    </div><!-- /#page-wrapper -->
 </div>
 
diff --git a/zephyr/client/app/service/commandModal/commandModal.controller.js b/zephyr/client/app/service/commandModal/commandModal.controller.js
new file mode 100644 (file)
index 0000000..801835a
--- /dev/null
@@ -0,0 +1,14 @@
+angular.module('zephyrApp')
+.controller('CommandModalCtrl', function ($scope, $modalInstance, api) {
+    $scope.commands = api('commandList');
+    $scope.tags     = api('tagList');
+    $scope.tag      = "all";
+    $scope.changeTag = function(tag) {
+        $scope.tag = tag;
+    };
+    $scope.chCommand = function(selectedCommand) {
+        $scope.selectCommand(selectedCommand);
+        $scope.setMode2False();
+        $modalInstance.close();
+    };
+});
diff --git a/zephyr/client/app/service/commandModal/commandModal.html b/zephyr/client/app/service/commandModal/commandModal.html
new file mode 100644 (file)
index 0000000..d5ed502
--- /dev/null
@@ -0,0 +1,36 @@
+<div class="modal-header">
+    <h3>Select Command</h3>
+</div>
+
+<div class="modal-body">
+    <div class="row">
+        <div class="col-md-8">
+            <div class="btn-group"ng-repeat="tag in tags">
+                <button type="button" class="btn btn-default btn-xs" ng-click="changeTag(tag)"><span class="glyphicon glyphicon-tag"></span>{{tag}}</button>
+            </div>
+        </div>
+        <div class="col-md-4">
+            <div class="input-group custom-search-form">
+                <input type="text" class="form-control" placeholder="Search..." ng-model="searchText">
+                <span class="input-group-btn">
+                    <button class="btn btn-default" type="button">
+                        <i class="fa fa-search"></i>
+                    </button>
+                </span>
+            </div>
+        </div>
+    </div>
+</div>
+
+<div class="modal-footer">
+    <div class="row">
+        <div ng-repeat="command in commands | filter:searchText |tagFilter:tag">
+            <div class="col-md-6">
+                <a class="pull-left" ng-click="chCommand(command.name)" ng-if="$even">{{command.name}}</a>
+            </div>
+            <div class="col-md-6">
+                <a class="pull-left" ng-click="chCommand(command.name)" ng-if="$odd">{{command.name}}</a>
+            </div>
+        </div>
+    </div>
+</div>
diff --git a/zephyr/client/app/service/commandModal/commandModal.service.js b/zephyr/client/app/service/commandModal/commandModal.service.js
new file mode 100644 (file)
index 0000000..25be4c0
--- /dev/null
@@ -0,0 +1,19 @@
+'use strict';
+
+angular.module('zephyrApp')
+  .service('commandModal', function ($modal) {
+    var openModal = function (scope) {
+        $modal.open({
+            templateUrl: 'app/service/commandModal/commandModal.html',
+            controller : 'CommandModalCtrl',
+            badkdrop: true,
+            scope: scope,
+            size: 'lg'
+        });
+    };
+
+    return {
+        open: openModal
+    }
+
+  });
index 808f2ae..9d2789d 100644 (file)
@@ -17,25 +17,25 @@ angular.module('zephyrApp')
 
     $scope.submit = function() {
         if ($scope.files) {
-            console.log($scope.files);
+            angular.forEach($scope.files, function (file) {
+                $upload.upload({
+                    url: 'api/workspaces/' + $scope.curDir, 
+                    method: 'POST',
+                    headers: {'Authorization': 'xxx'}, // only for html5
+                    withCredentials: true,
+                    file: file 
+                }).progress(function(evt) {
+                    console.log('progress: ' + parseInt(100.0 * evt.loaded / evt.total) + '% file :'+ evt.config.file.name);
+                }).success(function(data, status, headers, config) {
+                    console.log('file ' + config.file.name + 'is uploaded successfully. Response: ' + data);
+                });
+                var name = $scope.curDir;
+                $scope.update();
+                $modalInstance.close();
+            });
+
         } else {
             alert("Select Files.");
         }
-        angular.forEach($scope.files, function (file) {
-            $upload.upload({
-                url: 'api/upload/create/' + dir, 
-                method: 'POST',
-                headers: {'Authorization': 'xxx'}, // only for html5
-                withCredentials: true,
-                file: file 
-            }).progress(function(evt) {
-                console.log('progress: ' + parseInt(100.0 * evt.loaded / evt.total) + '% file :'+ evt.config.file.name);
-            }).success(function(data, status, headers, config) {
-                console.log('file ' + config.file.name + 'is uploaded successfully. Response: ' + data);
-            });
-        });
-        
-        $scope.update();
-        $modalInstance.close();
     };
 });
index 8bb804d..b7618c5 100644 (file)
@@ -10,9 +10,7 @@ angular.module('zephyrApp')
             scope: scope
         });
     };
-
     return {
         open: openModal
     }
-
   });
diff --git a/zephyr/client/app/service/createFileModal/createFileModal.service.spec.js b/zephyr/client/app/service/createFileModal/createFileModal.service.spec.js
deleted file mode 100644 (file)
index 99b2661..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-describe('Service: createFileModal', function () {
-
-  // load the service's module
-  beforeEach(module('zephyrApp'));
-
-  // instantiate service
-  var createFileModal;
-  beforeEach(inject(function (_createFileModal_) {
-    createFileModal = _createFileModal_;
-  }));
-
-  it('should do something', function () {
-    expect(!!createFileModal).toBe(true);
-  });
-
-});
index 2bab0c7..112b394 100644 (file)
         <script src="app/app.js"></script>
           <!-- injector:js -->
           <script src="app/directive/fileupload/fileupload.directive.js"></script>
+          <script src="app/directive/menubar/menubar.controller.js"></script>
+          <script src="app/directive/menubar/menubar.directive.js"></script>
+          <script src="app/directive/my-directory/my-directory.controller.js"></script>
+          <script src="app/directive/my-directory/my-directory.directive.js"></script>
+          <script src="app/directive/my-exe/my-exe.controller.js"></script>
+          <script src="app/directive/my-exe/my-exe.js"></script>
           <script src="app/directive/my-form/my-form.directive.js"></script>
           <script src="app/directive/my-number/my-number.directive.js"></script>
           <script src="app/directive/my-panel/my-panel.directive.js"></script>
           <script src="app/factory/api/api.service.js"></script>
           <script src="app/filter/argFilter/argFilter.filter.js"></script>
           <script src="app/filter/tagFilter/tagFilter.filter.js"></script>
-          <script src="app/route/activityLogPage/activityLogPage.controller.js"></script>
-          <script src="app/route/activityLogPage/activityLogPage.js"></script>
-          <script src="app/route/commandPage/commandPage.controller.js"></script>
-          <script src="app/route/commandPage/commandPage.js"></script>
-          <script src="app/route/dashboard/dashboard.controller.js"></script>
-          <script src="app/route/dashboard/dashboard.js"></script>
-          <script src="app/route/executionPage/executionPage.controller.js"></script>
-          <script src="app/route/executionPage/executionPage.js"></script>
+          <script src="app/route/home/home.controller.js"></script>
+          <script src="app/route/home/home.js"></script>
+          <script src="app/route/log/log.controller.js"></script>
+          <script src="app/route/log/log.js"></script>
+          <script src="app/route/workspace/workspace.controller.js"></script>
+          <script src="app/route/workspace/workspace.js"></script>
           <script src="app/route/workspacePage/workspacePage.controller.js"></script>
           <script src="app/route/workspacePage/workspacePage.js"></script>
+          <script src="app/service/commandModal/commandModal.controller.js"></script>
+          <script src="app/service/commandModal/commandModal.service.js"></script>
           <script src="app/service/createDirModal/createDirModal.controller.js"></script>
           <script src="app/service/createDirModal/createDirModal.service.js"></script>
           <script src="app/service/createFileModal/createFileModal.controller.js"></script>
diff --git a/zephyr/server/api/workspaces/index.js b/zephyr/server/api/workspaces/index.js
new file mode 100644 (file)
index 0000000..ca3e838
--- /dev/null
@@ -0,0 +1,13 @@
+'use strict';
+
+var express = require('express');
+var controller = require('./workspaces.controller');
+
+var router = express.Router();
+
+router.post('/:name', controller.create);
+router.get('/:name', controller.read);
+router.put('/:name', controller.update);
+router.get('/delete/:name/:file', controller.delete)
+
+module.exports = router;
diff --git a/zephyr/server/api/workspaces/workspaces.controller.js b/zephyr/server/api/workspaces/workspaces.controller.js
new file mode 100644 (file)
index 0000000..cf8f873
--- /dev/null
@@ -0,0 +1,52 @@
+'use strict';
+
+var _  = require('lodash');
+var fs = require('fs');
+
+exports.create = function (req, res) {
+    var options = setOptions(req.params.name);
+    var uploader = require('blueimp-file-upload-expressjs')(options);
+    uploader.post(req, res, function (obj) {
+        res.send(JSON.stringify(obj));
+    });
+};
+
+exports.read = function (req, res) {
+    var path = "./server/workspace/" + req.params.name + "/files/";
+    fs.readdir(path ,function(err, files){
+        var filesinfo = files.map(function(file) {
+            return cutStat(file, fs.statSync(path+file));
+        });
+        res.send(filesinfo);
+    });
+};
+
+exports.update = function (req, res) {
+    res.send('updated');
+};
+exports.delete = function (req, res) {
+    fs.unlinkSync("./server/workspace/" + req.params.name + "/files/" + req.params.file);
+    res.send('succeeded');
+};
+
+function setOptions(name) {
+    var options = {
+        tmpDir    : "./server/workspace/" + name + "/tmp",
+        uploadDir : "./server/workspace/" + name + "/files",
+        uploadUrl : "./server/workspace/" + name + "/files/",
+        strage    : {
+            type : 'local'
+        } 
+    }
+    return options;
+};
+
+function cutStat(name, stat) {
+    var cutStat = {
+        name : name,
+        size : stat.size,
+        atime: stat.atime
+    };
+    return cutStat;
+}
+
index fbd9877..a80e55b 100644 (file)
@@ -11,6 +11,10 @@ module.exports = function(app) {
   // Insert routes below
   app.use('/api/upload', require('./api/upload'));
   app.use('/api/workspace', require('./api/workspace'));
+
+  //app.use('/api/allworkspaces', require('./api/allworkspaces'));
+  app.use('/api/workspaces', require('./api/workspaces'));
+
   app.use('/api/option', require('./api/option'));
   app.use('/api/tagList', require('./api/tagList'));
   app.use('/api/commandList', require('./api/commandList'));