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
Xavier Thompson
slapos.toolbox
Commits
11ebeb16
Commit
11ebeb16
authored
Oct 22, 2013
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean: remove unused files
parent
21e50956
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
250 deletions
+11
-250
slapos/runner/static/css/jqueryFileTree.css
slapos/runner/static/css/jqueryFileTree.css
+0
-92
slapos/runner/static/css/styles.css
slapos/runner/static/css/styles.css
+2
-2
slapos/runner/static/js/jquery/jqueryFileTree.js
slapos/runner/static/js/jquery/jqueryFileTree.js
+0
-90
slapos/runner/templates/layout.html
slapos/runner/templates/layout.html
+7
-3
slapos/runner/templates/manageProject.html
slapos/runner/templates/manageProject.html
+0
-55
slapos/runner/templates/projectFolder.html
slapos/runner/templates/projectFolder.html
+0
-1
slapos/runner/templates/viewLog.html
slapos/runner/templates/viewLog.html
+2
-0
slapos/runner/views.py
slapos/runner/views.py
+0
-7
No files found.
slapos/runner/static/css/jqueryFileTree.css
deleted
100644 → 0
View file @
21e50956
UL
.jqueryFileTree
{
font-family
:
'Helvetica Neue'
,
Helvetica
,
Arial
,
sans-serif
;
font-size
:
12px
;
line-height
:
20px
;
padding
:
0px
;
margin
:
0px
;
}
UL
.jqueryFileTree
LI
{
list-style
:
none
;
padding
:
0px
;
padding-left
:
25px
;
margin
:
0px
;
white-space
:
nowrap
;
}
UL
.jqueryFileTree
A
{
color
:
#333
;
text-decoration
:
none
;
display
:
block
;
padding
:
0px
2px
;
}
UL
.jqueryFileTree
A
:hover
{
background
:
#BDF
;
}
/* Core Styles */
.jqueryFileTree
LI
.directory
{
background
:
url(images/directory.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.expanded
{
background
:
url(images/folder_open.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.file
{
background
:
url(images/file.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.wait
{
background
:
url(images/spinner.gif)
left
top
no-repeat
;
}
/* File Extensions*/
.jqueryFileTree
LI
.ext_3gp
{
background
:
url(images/film.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_afp
{
background
:
url(images/code.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_afpa
{
background
:
url(images/code.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_asp
{
background
:
url(images/code.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_aspx
{
background
:
url(images/code.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_avi
{
background
:
url(images/film.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_bat
{
background
:
url(images/application.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_bmp
{
background
:
url(images/picture.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_c
{
background
:
url(images/code.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_cfg
{
background
:
url(images/cfg.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_cfm
{
background
:
url(images/code.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_cgi
{
background
:
url(images/code.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_com
{
background
:
url(images/application.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_cpp
{
background
:
url(images/code.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_css
{
background
:
url(images/css.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_doc
{
background
:
url(images/doc.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_exe
{
background
:
url(images/application.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_gif
{
background
:
url(images/picture.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_fla
{
background
:
url(images/flash.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_h
{
background
:
url(images/code.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_htm
{
background
:
url(images/html.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_html
{
background
:
url(images/html.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_jar
{
background
:
url(images/java.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_jpg
{
background
:
url(images/picture.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_jpeg
{
background
:
url(images/picture.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_js
{
background
:
url(images/script.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_lasso
{
background
:
url(images/code.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_log
{
background
:
url(images/txt.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_m4p
{
background
:
url(images/music.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_mov
{
background
:
url(images/film.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_mp3
{
background
:
url(images/music.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_mp4
{
background
:
url(images/film.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_mpg
{
background
:
url(images/film.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_mpeg
{
background
:
url(images/film.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_ogg
{
background
:
url(images/music.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_pcx
{
background
:
url(images/picture.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_pdf
{
background
:
url(images/pdf.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_php
{
background
:
url(images/php.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_png
{
background
:
url(images/picture.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_ppt
{
background
:
url(images/ppt.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_psd
{
background
:
url(images/psd.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_pl
{
background
:
url(images/script.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_py
{
background
:
url(images/script.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_rb
{
background
:
url(images/ruby.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_rbx
{
background
:
url(images/ruby.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_rhtml
{
background
:
url(images/ruby.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_rpm
{
background
:
url(images/linux.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_ruby
{
background
:
url(images/ruby.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_sql
{
background
:
url(images/db.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_swf
{
background
:
url(images/flash.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_tif
{
background
:
url(images/picture.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_tiff
{
background
:
url(images/picture.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_txt
{
background
:
url(images/txt.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_vb
{
background
:
url(images/code.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_wav
{
background
:
url(images/music.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_wmv
{
background
:
url(images/film.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_xls
{
background
:
url(images/xls.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_xml
{
background
:
url(images/code.png)
left
top
no-repeat
;
}
.jqueryFileTree
LI
.ext_zip
{
background
:
url(images/zip.png)
left
top
no-repeat
;
}
\ No newline at end of file
slapos/runner/static/css/styles.css
View file @
11ebeb16
...
...
@@ -380,7 +380,7 @@ padding: 10px;height: 80px;padding-bottom:15px;}
.file_tree
{
width
:
923px
;
height
:
30
0px
;
height
:
25
0px
;
border
:
solid
1px
#678dad
;
background
:
#fff
;
overflow
:
auto
;
...
...
@@ -552,7 +552,7 @@ h2.hight:hover{
.log_info_box
div
.state_terminated
span
{
background
:
#00C800
;
}
.log_info_box
div
.state_waiting
span
,
.log_info_box
div
.state_stopped
{
.log_info_box
div
.state_waiting
span
,
.log_info_box
div
.state_stopped
span
{
background
:
#FF3131
;
}
...
...
slapos/runner/static/js/jquery/jqueryFileTree.js
deleted
100644 → 0
View file @
21e50956
// jQuery File Tree
//
// Usage: $('.tree').fileTree( options, callback )
//
// Options: root - root folder to display; default = /
// script - location of the serverside AJAX file to use;
// folderEvent - event to trigger expand/collapse; default = click
// expandSpeed - default = 500 (ms); use -1 for no animation
// collapseSpeed - default = 500 (ms); use -1 for no animation
// expandEasing - easing function to use on expand (optional)
// collapseEasing - easing function to use on collapse (optional)
// multiFolder - whether or not to limit the browser to one subfolder at a time
// loadMessage - Message to display while initial tree loads (can be HTML)
// selectFolder - if true, also return path of folder when event happen on it
//
if
(
jQuery
)
(
function
(
$
){
$
.
extend
(
$
.
fn
,
{
fileTree
:
function
(
o
,
h
,
p
)
{
// Defaults
if
(
!
o
)
var
o
=
{};
if
(
o
.
root
==
undefined
)
o
.
root
=
'
/
'
;
if
(
o
.
script
==
undefined
)
o
.
script
=
''
;
if
(
o
.
folderEvent
==
undefined
)
o
.
folderEvent
=
'
click
'
;
if
(
o
.
expandSpeed
==
undefined
)
o
.
expandSpeed
=
500
;
if
(
o
.
collapseSpeed
==
undefined
)
o
.
collapseSpeed
=
500
;
if
(
o
.
expandEasing
==
undefined
)
o
.
expandEasing
=
null
;
if
(
o
.
collapseEasing
==
undefined
)
o
.
collapseEasing
=
null
;
if
(
o
.
multiFolder
==
undefined
)
o
.
multiFolder
=
true
;
if
(
o
.
loadMessage
==
undefined
)
o
.
loadMessage
=
'
Loading...
'
;
if
(
o
.
selectFolder
==
undefined
)
o
.
selectFolder
=
false
;
$
(
this
).
each
(
function
()
{
function
showTree
(
c
,
t
)
{
$
(
c
).
addClass
(
'
wait
'
);
$
(
"
.jqueryFileTree.start
"
).
remove
();
$
.
post
(
o
.
script
,
{
dir
:
t
},
function
(
data
)
{
$
(
c
).
find
(
'
.start
'
).
html
(
''
);
$
(
c
).
removeClass
(
'
wait
'
).
append
(
data
.
result
);
if
(
o
.
root
==
t
)
$
(
c
).
find
(
'
UL:hidden
'
).
show
();
else
$
(
c
).
find
(
'
UL:hidden
'
).
slideDown
({
duration
:
o
.
expandSpeed
,
easing
:
o
.
expandEasing
});
bindTree
(
c
);
});
}
function
bindTree
(
t
)
{
$
(
t
).
find
(
'
LI A
'
).
bind
(
o
.
folderEvent
,
function
()
{
if
(
$
(
this
).
parent
().
hasClass
(
'
directory
'
)
)
{
if
(
$
(
this
).
parent
().
hasClass
(
'
collapsed
'
)
)
{
// Expand
if
(
!
o
.
multiFolder
)
{
$
(
this
).
parent
().
parent
().
find
(
'
UL
'
).
slideUp
({
duration
:
o
.
collapseSpeed
,
easing
:
o
.
collapseEasing
});
$
(
this
).
parent
().
parent
().
find
(
'
LI.directory
'
).
removeClass
(
'
expanded
'
).
addClass
(
'
collapsed
'
);
}
$
(
this
).
parent
().
find
(
'
UL
'
).
remove
();
// cleanup
showTree
(
$
(
this
).
parent
(),
escape
(
$
(
this
).
attr
(
'
rel
'
).
match
(
/.*
\/
/
))
);
$
(
this
).
parent
().
removeClass
(
'
collapsed
'
).
addClass
(
'
expanded
'
);
if
(
o
.
selectFolder
){
h
(
$
(
this
).
attr
(
'
rel
'
));
}
}
else
{
// Collapse
$
(
this
).
parent
().
find
(
'
UL
'
).
slideUp
({
duration
:
o
.
collapseSpeed
,
easing
:
o
.
collapseEasing
});
$
(
this
).
parent
().
removeClass
(
'
expanded
'
).
addClass
(
'
collapsed
'
);
}
}
else
{
h
(
$
(
this
).
attr
(
'
rel
'
));
}
});
// Prevent A from triggering the # on non-click events
if
(
o
.
folderEvent
.
toLowerCase
!=
'
click
'
)
$
(
t
).
find
(
'
LI A
'
).
bind
(
'
click
'
,
function
()
{
return
false
;
});
//Bind double click to open file (only)
if
(
p
){
$
(
t
).
find
(
'
LI A
'
).
bind
(
'
dblclick
'
,
function
(){
if
(
!
$
(
this
).
parent
().
hasClass
(
'
directory
'
)
)
{
p
(
$
(
this
).
attr
(
'
rel
'
));
}
});
}
}
// Loading message
$
(
this
).
html
(
'
<ul class="jqueryFileTree start"><li class="wait">
'
+
o
.
loadMessage
+
'
<li></ul>
'
);
// Get the initial file list
showTree
(
$
(
this
),
escape
(
o
.
root
)
);
});
}
});
})(
jQuery
);
\ No newline at end of file
slapos/runner/templates/layout.html
View file @
11ebeb16
...
...
@@ -69,7 +69,8 @@
<h2
class=
"info"
>
{% block title %}{% endblock %} - {{session.title}}
</h2>
<div
class=
"run"
>
<div
id=
"running"
>
<p
id=
"running_info"
class=
'instance'
>
Building software...
</p>
<p
id=
"running_info"
class=
'software'
>
Building software...
</p>
<!--<p id="running_info" class='instance'>Running instance...</p>-->
<img
alt=
""
src=
"{{ url_for('static', filename='images/ajax_roller.gif') }}"
height=
'26'
title=
"slapgrid is currently running"
/>
<div
class=
"clear"
></div>
</div>
...
...
@@ -89,14 +90,17 @@
<li><a
href=
"{{ url_for('openProject', method='open')}}"
>
Open Software Release
</a></li>
<li><a
href=
"{{ url_for('openProject', method='new')}}"
>
Create Software Release
</a></li>
<li
class=
'sep'
></li>
<li><a
href=
"{{ url_for('removeInstance') }}"
id=
"removeIst"
>
Destroy All Services
</a></li>
<li><a
href=
"{{ url_for('runInstanceProfile') }}"
>
Redeploy Services
</a></li>
<li
class=
'sep'
></li>
<li><a
href=
"{{ url_for('browseWorkspace') }}"
>
Browse Workspace
</a></li>
<li><a
href=
"{{ url_for('inspectSoftware') }}"
>
My Softwares Releases
</a></li>
<li
class=
'sep'
></li>
<li><a
href=
"{{ url_for('dologout') }}"
>
Log out
</a></li>
</ul>
</li>
<li
class=
'right_menu slapos_run'
><a
href=
"{{ url_for('run
Instanc
eProfile') }}"
id=
"instrun"
></a>
<!--<li
><a href="{{ url_for('viewInstanceLog') }}" id="softrun">Logs</a></li
>-->
<li
class=
'right_menu slapos_run'
><a
href=
"{{ url_for('run
Softwar
eProfile') }}"
id=
"instrun"
></a>
<!--<li
class='right_menu slapos_top'><a href="{{ url_for('runInstanceProfile') }}" id="instrun"></a
>-->
</li>
</ul>
</div>
...
...
slapos/runner/templates/manageProject.html
deleted
100644 → 0
View file @
21e50956
{% extends "layout.html" %}
{% block title %}Manage your Project{% endblock %}
{% block head %}
{{ super() }}
<script
src=
"{{ url_for('static', filename='js/scripts/repo.js') }}"
type=
"text/javascript"
charset=
"utf-8"
></script>
{% endblock %}
{% block body %}
<form
action=
""
method=
post
>
<input
type=
"hidden"
name=
"workdir"
id=
"workdir"
value=
"{{workDir}}"
/>
<input
type=
"hidden"
name=
"subfolder"
id=
"subfolder"
value=
""
/>
<div
id=
"repoContent"
>
<h2>
Manage your repository
</h2>
<label
for=
'project'
>
Select your project into the list:
</label>
<select
id=
"project"
name=
"project"
>
{% for folder in project%}
<option
value=
"{{folder}}"
>
{{folder}}
</option>
{% endfor %}
</select>
<br/><br/>
<div
id=
"contentInfo"
>
<div
id=
"status"
style=
"margin-bottom:20px;"
>
<h2>
Please select one project...
</h2>
</div>
<div
id=
"branchlist"
style=
"margin-bottom:20px;"
>
<h2>
Your Repository Branches
</h2>
<div
style=
"margin-left:15px;"
>
<label
for=
'activebranch'
>
Select your active Branch:
</label>
<select
name=
"activebranch"
id=
"activebranch"
>
</select>
<label
for=
'branchname'
>
Branch Name:
</label>
<input
type=
"text"
name=
"branchname"
id=
"branchname"
size=
'22'
value=
"Enter the branch name..."
/>
<input
type=
"submit"
name=
"addbranch"
id =
"addbranch"
value=
"Add"
class=
"button"
title=
'add new branch: git checkout -b branch'
/>
<input
type=
"submit"
name=
"docheckout"
id =
"docheckout"
value=
"Checkout"
class=
"button"
title=
'add existing branch: git checkout branch'
/>
<br/>
<!--<label for='pullbranch'>Update your local repository: </label>-->
<!--<input type="submit" name="pullbranch" id ="pullbranch" value="Pull" class="button"/>-->
<!--<img class="waitting" id="pullimgwaitting" src="{{ url_for('static', filename='images/waiting.gif') }}" alt="" />-->
</div>
</div>
<div
id=
"push"
style=
"margin-bottom:20px;"
>
<h2>
Commit All your changes (On active branch)
</h2>
<div
style=
"margin-left:15px;"
>
<label
for=
'commitmsg'
>
Commit message:
</label>
<input
type=
"text"
name=
"commitmsg"
id=
"commitmsg"
size=
'40'
value=
"Enter message..."
/>
<input
type=
"submit"
name=
"commit"
id =
"commit"
value=
"Commit"
class=
"button"
/>
<img
class=
"waitting"
id=
"imgwaitting"
src=
"{{ url_for('static', filename='images/waiting.gif') }}"
alt=
""
/>
</div>
</div>
<br/>
</div>
</div>
</form>
{% endblock %}
slapos/runner/templates/projectFolder.html
View file @
11ebeb16
...
...
@@ -22,7 +22,6 @@
<h2>
Select the parent directory
</h2>
<div
id=
"fileTree"
class=
"file_tree"
></div>
<div
id=
"file_info"
class=
"file_info"
><span
id=
"info"
>
Please select your parent folder into the box...
</span></div>
<br/>
<input
type=
"submit"
name=
"create"
id =
"create"
value=
"Create"
class=
"button"
/>
</div>
</div>
...
...
slapos/runner/templates/viewLog.html
View file @
11ebeb16
...
...
@@ -37,6 +37,8 @@
<h2
class=
"instance"
>
Running State
</h2>
<div
class=
"log_content_box"
>
<!--<div id="instance_run_state" class="state_terminated">-->
<!--<div id="instance_run_state" class="state_stopped">-->
<div
id=
"instance_run_state"
class=
"state_waiting"
>
<span
class=
"legend"
></span>
<p>
Waiting for starting
</p>
...
...
slapos/runner/views.py
View file @
11ebeb16
...
...
@@ -310,12 +310,6 @@ def setCurrentProject():
return
jsonify
(
code
=
0
,
result
=
(
"Can not setup this Software Release"
))
@
login_required
()
def
manageProject
():
return
render_template
(
'manageProject.html'
,
workDir
=
'workspace'
,
project
=
getProjectList
(
app
.
config
[
'workspace'
]))
@
login_required
()
def
getProjectStatus
():
path
=
realpath
(
app
.
config
,
request
.
form
[
'project'
])
...
...
@@ -758,7 +752,6 @@ app.add_url_rule("/getProjectStatus", 'getProjectStatus', getProjectStatus,
methods
=
[
'POST'
])
app
.
add_url_rule
(
'/openProject/<method>'
,
'openProject'
,
openProject
,
methods
=
[
'GET'
])
app
.
add_url_rule
(
"/manageProject"
,
'manageProject'
,
manageProject
,
methods
=
[
'GET'
])
app
.
add_url_rule
(
"/setCurrentProject"
,
'setCurrentProject'
,
setCurrentProject
,
methods
=
[
'POST'
])
app
.
add_url_rule
(
"/checkFolder"
,
'checkFolder'
,
checkFolder
,
methods
=
[
'POST'
])
...
...
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