Browse Source

[MODULES][TERMINAL] Release v1.1

DSR! 3 years ago
parent
commit
cfde3ebab3

BIN
modules/build/Terminal.tar.gz


File diff suppressed because it is too large
+ 0 - 0
modules/build/modules.json


+ 11 - 11
modules/src/Terminal/html/inject.html

@@ -1,22 +1,18 @@
 <style>
 .terminal-container {
-    position: fixed; 
+    width: 100%;
+    position: fixed;
     bottom: 0;
-    width: 100%; 
-    z-index: 99999;
     margin-bottom: 0;
     background-color: #2b2b2b;
-    border-bottom: 0;
-    border-left: 0;
-    border-right: 0;
-    border-bottom-left-radius: 0;
-    border-bottom-right-radius: 0;
+    border-width: 1px 0 0 0;
+    border-radius: 4px 4px 0 0;
+    z-index: 999;
 }
 
 .terminal-content {
     width: 100%;
     border: 0;
-    min-height: 200px;
 }
 
 #terminal-panel {
@@ -24,14 +20,18 @@
 }
 
 .terminal-collapse {
-    content: url('/img/chevron_up.svg');
     width: 16px;
+    content: url('/img/chevron_up.svg');
     vertical-align: middle;
 }
 
 .terminal-collapse.collapsed {
     content: url('/img/chevron_down.svg');
 }
+
+.module-content {
+    padding-bottom: 60px;
+}
 </style>
 
 <div id="terminal-module" class="panel panel-default terminal-container collapse">
@@ -47,7 +47,7 @@
 </div>
 
 <script type="text/javascript">
-    $(function() {
+$(function() {
     //registerController('TerminalController', ['$scope', '$api', function($scope, $api){
     var $scope = {};
     var $api = window.pineapple;

+ 4 - 0
modules/src/Terminal/js/loader.js

@@ -1,4 +1,8 @@
 $(function() {
+    if ($('#terminal-open').length === 1) {
+        return;
+    }
+
     // JS
     var js = $('<script src="modules/Terminal/js/jquery-resizable.min.js"></script>');
     $('head').append(js);

+ 1 - 1
modules/src/Terminal/module.info

@@ -6,6 +6,6 @@
         "tetra"
     ],
     "title": "Terminal",
-    "version": "1.0",
+    "version": "1.1",
     "injectJS": "js/loader.js"
 }

Some files were not shown because too many files changed in this diff