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
Nicolas Wavrant
slapos.toolbox
Commits
12d9fe85
Commit
12d9fe85
authored
Aug 06, 2014
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: minishell looks better
parent
9b757dd1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
6 deletions
+23
-6
slapos/runner/static/css/editor.css
slapos/runner/static/css/editor.css
+17
-5
slapos/runner/static/js/scripts/shell.js
slapos/runner/static/js/scripts/shell.js
+5
-0
slapos/runner/templates/softwareFolder.html
slapos/runner/templates/softwareFolder.html
+1
-1
No files found.
slapos/runner/static/css/editor.css
View file @
12d9fe85
...
...
@@ -45,28 +45,40 @@ border-left:1px #E4E4E4 solid; cursor:pointer; color: #5C7077; text-shadow: 0px
.item-hide
{
display
:
none
;}
#shell-window
{
width
:
97
8
px
;
width
:
97
4
px
;
height
:
350px
;
z-index
:
10
;
border
:
2px
solid
#6A93A0
;
border-top
:
none
;
border-left
:
none
;
background
:
#7FAED3
;
background
:
#9bbed6
;
position
:
absolute
;
display
:
none
;
border-bottom-left-radius
:
5px
;
border-bottom-right-radius
:
5px
;
}
#shell-result
{
width
:
98%
;
height
:
300px
;
margin-left
:
1%
;
margin-right
:
1%
;
box-sizing
:
border-bo
x
;
margin-top
:
5p
x
;
padding
:
3px
;
background
:
#E4E4E4
;
color
:
#074A86
;
box-sizing
:
border-box
;
border
:
2px
inset
#6A93A0
;
}
#shell-result
::first-line
{
font-weight
:
bold
;
}
#shell-input
{
width
:
9
7
%
;
width
:
9
6
%
;
margin-left
:
1%
;
margin-right
:
1%
;
position
:
absolute
;
bottom
:
10px
;
background
:
#E4E4E4
;
color
:
#074A86
;
border
:
inset
1px
#678dad
;
}
slapos/runner/static/js/scripts/shell.js
View file @
12d9fe85
...
...
@@ -19,6 +19,11 @@ $(document).ready(function () {
updateHistory
();
$
(
"
#shell
"
).
click
(
function
()
{
// We have to do that because once slide effect is activated, div is considered as visible
$
(
"
#shell
"
).
css
(
"
background-color
"
,
"
#E4E4E4
"
);
if
(
!
$
(
"
#shell-window
"
).
is
(
'
:visible
'
)
)
{
$
(
"
#shell
"
).
css
(
"
background-color
"
,
"
#C7C7C7
"
);
}
$
(
"
#shell-window
"
).
slideToggle
(
"
fast
"
);
if
(
$
(
"
#shell-window
"
).
is
(
'
:visible
'
)
)
{
$
(
"
#shell-input
"
).
focus
();
...
...
slapos/runner/templates/softwareFolder.html
View file @
12d9fe85
...
...
@@ -60,7 +60,7 @@
<div
id=
"shell-window"
>
<textarea
id=
"shell-result"
cols=
"80"
readonly
>
</textarea>
<input
type=
"text"
name=
"command"
id=
"shell-input"
autocomplete=
"off"
/>
<input
type=
"text"
name=
"command"
id=
"shell-input"
autocomplete=
"off"
placeholder=
"Type command ..."
/>
</div>
<div
class=
"clear"
></div>
<div
class=
"software_details"
>
...
...
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