Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tristan Cavelier
slapos.toolbox
Commits
1f277080
Commit
1f277080
authored
Aug 07, 2014
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner: minishell keeps displaying previous commands' returns
parent
bb0ef4aa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
slapos/runner/static/css/editor.css
slapos/runner/static/css/editor.css
+2
-1
slapos/runner/static/js/scripts/shell.js
slapos/runner/static/js/scripts/shell.js
+3
-2
slapos/runner/templates/softwareFolder.html
slapos/runner/templates/softwareFolder.html
+2
-2
No files found.
slapos/runner/static/css/editor.css
View file @
1f277080
...
@@ -67,8 +67,9 @@ border-left:1px #E4E4E4 solid; cursor:pointer; color: #5C7077; text-shadow: 0px
...
@@ -67,8 +67,9 @@ border-left:1px #E4E4E4 solid; cursor:pointer; color: #5C7077; text-shadow: 0px
color
:
#074A86
;
color
:
#074A86
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border
:
2px
inset
#6A93A0
;
border
:
2px
inset
#6A93A0
;
overflow
:
auto
;
}
}
#shell-result
::first-line
.runned-command
{
{
font-weight
:
bold
;
font-weight
:
bold
;
}
}
...
...
slapos/runner/static/js/scripts/shell.js
View file @
1f277080
...
@@ -39,9 +39,10 @@ $(document).ready(function () {
...
@@ -39,9 +39,10 @@ $(document).ready(function () {
var
old_shell_btn_background
=
$
(
"
.shell_btn
"
).
css
(
"
background
"
);
var
old_shell_btn_background
=
$
(
"
.shell_btn
"
).
css
(
"
background
"
);
$
(
"
.shell_btn
"
).
css
(
"
background
"
,
"
url(/static/css/images/loading-min.gif) center right no-repeat
"
)
$
(
"
.shell_btn
"
).
css
(
"
background
"
,
"
url(/static/css/images/loading-min.gif) center right no-repeat
"
)
$
.
post
(
"
/runCommand
"
,
data
,
function
(
data
)
{
$
.
post
(
"
/runCommand
"
,
data
,
function
(
data
)
{
var
data
=
"
>>>
"
+
command
+
"
\n\n
"
+
data
;
var
data
=
"
<p><span class=
\"
runned-command
\"
>>>>
"
+
command
+
"
</span></p><br/><pre>
"
+
data
+
"
</pre><br/>
"
;
$
(
"
#shell-result
"
).
val
(
data
);
$
(
"
#shell-result
"
).
append
(
data
);
$
(
"
#shell-input
"
).
val
(
""
);
$
(
"
#shell-input
"
).
val
(
""
);
$
(
"
#shell-result
"
).
scrollTop
(
$
(
"
#shell-result
"
)[
0
].
scrollHeight
);
updateHistory
();
updateHistory
();
})
})
.
fail
(
function
(
xhr
,
status
,
error
)
{
.
fail
(
function
(
xhr
,
status
,
error
)
{
...
...
slapos/runner/templates/softwareFolder.html
View file @
1f277080
...
@@ -58,8 +58,8 @@
...
@@ -58,8 +58,8 @@
</div>
</div>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
<div
id=
"shell-window"
>
<div
id=
"shell-window"
>
<
textarea
id=
"shell-result"
cols=
"80"
readonly
>
<
div
id=
"shell-result"
>
</
textarea
>
</
div
>
<input
type=
"text"
name=
"command"
id=
"shell-input"
autocomplete=
"off"
placeholder=
"Type command ..."
/>
<input
type=
"text"
name=
"command"
id=
"shell-input"
autocomplete=
"off"
placeholder=
"Type command ..."
/>
</div>
</div>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment