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
Lu Xu
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
Show 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
...
@@ -45,28 +45,40 @@ border-left:1px #E4E4E4 solid; cursor:pointer; color: #5C7077; text-shadow: 0px
.item-hide
{
display
:
none
;}
.item-hide
{
display
:
none
;}
#shell-window
{
#shell-window
{
width
:
97
8
px
;
width
:
97
4
px
;
height
:
350px
;
height
:
350px
;
z-index
:
10
;
z-index
:
10
;
border
:
2px
solid
#6A93A0
;
border
:
2px
solid
#6A93A0
;
border-top
:
none
;
border-top
:
none
;
border-left
:
none
;
background
:
#9bbed6
;
background
:
#7FAED3
;
position
:
absolute
;
position
:
absolute
;
display
:
none
;
display
:
none
;
border-bottom-left-radius
:
5px
;
border-bottom-right-radius
:
5px
;
}
}
#shell-result
{
#shell-result
{
width
:
98%
;
width
:
98%
;
height
:
300px
;
height
:
300px
;
margin-left
:
1%
;
margin-left
:
1%
;
margin-right
:
1%
;
margin-right
:
1%
;
box-sizing
:
border-bo
x
;
margin-top
:
5p
x
;
padding
:
3px
;
padding
:
3px
;
background
:
#E4E4E4
;
color
:
#074A86
;
box-sizing
:
border-box
;
border
:
2px
inset
#6A93A0
;
}
#shell-result
::first-line
{
font-weight
:
bold
;
}
}
#shell-input
{
#shell-input
{
width
:
9
7
%
;
width
:
9
6
%
;
margin-left
:
1%
;
margin-left
:
1%
;
margin-right
:
1%
;
margin-right
:
1%
;
position
:
absolute
;
position
:
absolute
;
bottom
:
10px
;
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 () {
...
@@ -19,6 +19,11 @@ $(document).ready(function () {
updateHistory
();
updateHistory
();
$
(
"
#shell
"
).
click
(
function
()
{
$
(
"
#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
"
);
$
(
"
#shell-window
"
).
slideToggle
(
"
fast
"
);
if
(
$
(
"
#shell-window
"
).
is
(
'
:visible
'
)
)
{
if
(
$
(
"
#shell-window
"
).
is
(
'
:visible
'
)
)
{
$
(
"
#shell-input
"
).
focus
();
$
(
"
#shell-input
"
).
focus
();
...
...
slapos/runner/templates/softwareFolder.html
View file @
12d9fe85
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
<div
id=
"shell-window"
>
<div
id=
"shell-window"
>
<textarea
id=
"shell-result"
cols=
"80"
readonly
>
<textarea
id=
"shell-result"
cols=
"80"
readonly
>
</textarea>
</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>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
<div
class=
"software_details"
>
<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