From: himetani_cafe Date: Sat, 27 Feb 2016 08:29:31 +0000 (+0900) Subject: Modify command directive html to be more cool X-Git-Tag: v0.3.0p0057 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=refs%2Ftags%2Fv0.3.0p0057;p=eos%2Fzephyr.git Modify command directive html to be more cool --- diff --git a/front-end/app/scripts/directives/Command.ts b/front-end/app/scripts/directives/Command.ts index 3fae985..db84a5c 100644 --- a/front-end/app/scripts/directives/Command.ts +++ b/front-end/app/scripts/directives/Command.ts @@ -92,6 +92,7 @@ namespace app.directives { }); this.WebSocket.on('console', function(msg) { + console.log(msg); var messages = msg.split('\n'); if(messages[0].substr(0,6) === 'Usage:') { controller.messages = msg.split('\n'); diff --git a/front-end/app/style.scss b/front-end/app/style.scss index f90085d..f4658fa 100644 --- a/front-end/app/style.scss +++ b/front-end/app/style.scss @@ -14,6 +14,7 @@ $panel-bg: #eee; .console-body { background-color: white; + padding: 20px; height: 100%; } @@ -24,6 +25,26 @@ $panel-bg: #eee; .command { padding:5px; } + +.panel-title { + font-family: 'Open Sans'; +} + +.open-sans { + font-family: 'Open Sans'; +} + +.btn { + font-family: 'Open Sans'; +} + +label { + font-family: 'Open Sans'; +} + +.page-header { + color: black; +} // Import libs // -------------------- @import "../node_modules/bootstrap-sass/assets/stylesheets/bootstrap"; diff --git a/front-end/app/templates/command.html b/front-end/app/templates/command.html index 6622a5c..ad0ed69 100644 --- a/front-end/app/templates/command.html +++ b/front-end/app/templates/command.html @@ -1,54 +1,69 @@
- - -

- [{{ctrl.index}}: {{ctrl.name}}] - + + +

+ [{{ctrl.index}}]: {{ctrl.name}} +

-
-
- -
-
    -
  • - - -
  • -
- - - - - - + +
+
+

+ Action +

+ + + +
+
+
+
+

+ Parameters +

+ +
    +
  • + + +
  • +
- -
-
-
-

Message from console

- -
-
-

{{msg}}

+ +
+
+
+

Message from console

+
+
+

{{msg}}

+
+
+
+
-
+
diff --git a/front-end/app/templates/header-menu.html b/front-end/app/templates/header-menu.html index dc9fef1..9887b2a 100644 --- a/front-end/app/templates/header-menu.html +++ b/front-end/app/templates/header-menu.html @@ -1,4 +1,4 @@ -