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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos.toolbox
Commits
b8c15775
Commit
b8c15775
authored
Nov 18, 2013
by
Alain Takoudjou
Committed by
Nicolas Wavrant
Feb 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix file management in editor, update fancyTree
parent
c74951fa
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
174 additions
and
118 deletions
+174
-118
slapos/runner/fileBrowser.py
slapos/runner/fileBrowser.py
+2
-2
slapos/runner/static/css/images/knewstuff.png
slapos/runner/static/css/images/knewstuff.png
+0
-0
slapos/runner/static/css/jquery.contextMenu.css
slapos/runner/static/css/jquery.contextMenu.css
+3
-2
slapos/runner/static/css/styles.css
slapos/runner/static/css/styles.css
+2
-0
slapos/runner/static/images/ui_menu_blue.png
slapos/runner/static/images/ui_menu_blue.png
+0
-0
slapos/runner/static/js/jquery/jquery.fancytree.min.js
slapos/runner/static/js/jquery/jquery.fancytree.min.js
+5
-5
slapos/runner/static/js/scripts/inspectInstance.js
slapos/runner/static/js/scripts/inspectInstance.js
+4
-4
slapos/runner/static/js/scripts/softwareFolder.js
slapos/runner/static/js/scripts/softwareFolder.js
+149
-98
slapos/runner/templates/manageRepository.html
slapos/runner/templates/manageRepository.html
+1
-1
slapos/runner/templates/softwareFolder.html
slapos/runner/templates/softwareFolder.html
+8
-6
No files found.
slapos/runner/fileBrowser.py
View file @
b8c15775
...
...
@@ -127,7 +127,7 @@ class FileBrowser(object):
os.unlink(filepath)
except Exception as e:
return str(e)
return "
{
result
:
'1'
,
test
:
%
s
}
" % '*'.join(lfiles)
return "
{
result
:
'1'
}
"
def copyItem(self, dir, files, del_source=False):
"""Copy a list of files or directory to dir"""
...
...
slapos/runner/static/css/images/knewstuff.png
0 → 100644
View file @
b8c15775
3.41 KB
slapos/runner/static/css/jquery.contextMenu.css
View file @
b8c15775
/* Generic context menu styles */
.contextMenu
{
position
:
absolute
;
width
:
18
0px
;
width
:
20
0px
;
z-index
:
99999
;
border
:
solid
1px
#CCC
;
background
:
#ffffff
;
...
...
@@ -68,3 +68,4 @@
.contextMenu
LI
.rename
A
{
background-image
:
url(images/mfile.png)
;
}
.contextMenu
LI
.md5sum
A
{
background-image
:
url(images/selection-select.png)
;
}
.contextMenu
LI
.refresh
A
{
background-image
:
url(images/refresh.png)
;
}
.contextMenu
LI
.favorite
A
{
background-image
:
url(images/knewstuff.png)
;
}
\ No newline at end of file
slapos/runner/static/css/styles.css
View file @
b8c15775
...
...
@@ -248,6 +248,7 @@ body {
outline
:
none
;
font
:
13px
'Helvetica Neue'
,
Helvetica
,
Arial
,
sans-serif
;
}
.fancytree-edit-input
{
background
:
#fff
;
border
:
solid
1px
#678dad
;
outline
:
none
;
padding
:
2px
;}
input
[
type
=
"radio"
],
input
[
type
=
"checkbox"
]
{
margin
:
4px
;
...
...
@@ -657,6 +658,7 @@ a.lshare img{
.save_btn
{
background
:
url(../images/icon_save.png)
center
right
no-repeat
;
width
:
60px
;}
.swith_btn
{
background
:
url(../images/gnome-session-switch.png)
center
right
no-repeat
;
width
:
105px
;}
.flist_btn
{
background
:
url(../images/list2_down.png)
center
right
no-repeat
;
width
:
26px
;}
.fmenu_btn
{
background
:
url(../images/ui_menu_blue.png)
center
right
no-repeat
;
width
:
58px
;}
#error
{
padding
:
0px
;
...
...
slapos/runner/static/images/ui_menu_blue.png
0 → 100644
View file @
b8c15775
358 Bytes
slapos/runner/static/js/jquery/jquery.fancytree.min.js
View file @
b8c15775
This diff is collapsed.
Click to expand it.
slapos/runner/static/js/scripts/inspectInstance.js
View file @
b8c15775
...
...
@@ -111,11 +111,10 @@ $(document).ready(function () {
}
function
setupEditor
(
editable
)
{
editor
=
ace
.
edit
(
'
editor
'
);
editor
=
ace
.
edit
(
'
editor
Viewer
'
);
editor
.
setTheme
(
'
ace/theme/crimson_editor
'
);
var
CurentMode
=
require
(
'
ace/mode/text
'
).
Mode
;
editor
.
getSession
().
setMode
(
new
CurentMode
());
editor
.
getSession
().
setMode
(
"
ace/mode/xml
"
);
editor
.
getSession
().
setTabSize
(
2
);
editor
.
getSession
().
setUseSoftTabs
(
true
);
editor
.
renderer
.
setHScrollBarAlwaysVisible
(
false
);
...
...
@@ -215,7 +214,8 @@ $(document).ready(function () {
return
false
;
});
$
(
'
#xmlview
'
).
click
(
function
()
{
var
content
=
'
<div class="main_content" style="height:230px"><pre id="editor"></pre></div>
'
+
var
content
=
'
<p id="xmllog" class="message"><br/></p>
'
+
'
<div class="main_content" style="height:230px"><pre id="editorViewer"></pre></div>
'
+
'
<input type=submit value="Load" id="loadxml" class="button">
'
;
$
.
ajax
({
type
:
'
GET
'
,
...
...
slapos/runner/static/js/scripts/softwareFolder.js
View file @
b8c15775
This diff is collapsed.
Click to expand it.
slapos/runner/templates/manageRepository.html
View file @
b8c15775
{% extends "layout.html" %}
{% block title %}
Adding new projec
t{% endblock %}
{% block title %}
Git repository managemen
t{% endblock %}
{% block head %}
{{ super() }}
<link
href=
"{{ url_for('static', filename='css/gsFileManager.css', _external=False) }}"
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
/>
...
...
slapos/runner/templates/softwareFolder.html
View file @
b8c15775
{% extends "layout.html" %}
{% block title %}
Your current software folder
{% endblock %}
{% block title %}
View and edit source code
{% endblock %}
{% block head %}
{{ super() }}
<link
href=
"{{ url_for('static', filename='css/ui.fancytree.css', _external=False) }}"
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
/>
...
...
@@ -26,7 +26,7 @@
<input
type=
"hidden"
name=
"subfolder"
id=
"subfolder"
value=
""
/>
<!-- Definition of context menu -->
<ul
id=
"
my
Menu"
class=
"contextMenu"
>
<ul
id=
"
fileTree
Menu"
class=
"contextMenu"
>
<li
class=
"edit"
><a
href=
"#edit"
>
Edit
</a></li>
<li
class=
"edit"
><a
href=
"#editfull"
>
Open in new editor
</a></li>
<li
class=
"view"
><a
href=
"#view"
>
Open in viewer
</a></li>
...
...
@@ -34,6 +34,7 @@
<li
class=
"delete "
><a
href=
"#delete"
>
Delete
</a></li>
<li
class=
"refresh separator"
><a
href=
"#refresh"
>
Refresh
</a></li>
<li
class=
"md5sum"
><a
href=
"#md5sum"
>
File md5 sum
</a></li>
<li
class=
"favorite"
><a
href=
"#favorite"
>
Add file to favorites
</a></li>
<li
class=
"copy separator"
><a
href=
"#copy"
>
Copy
</a></li>
<li
class=
"cut"
><a
href=
"#cut"
>
Cut
</a></li>
<li
class=
"paste"
><a
href=
"#paste"
>
Paste
</a></li>
...
...
@@ -46,10 +47,11 @@
<ul
class=
'box_header'
>
<li
id=
"switch"
><span
class=
"swith_btn"
title=
"Switch between differents file source"
>
This project
</span></li>
<li
id=
"save"
><span
class=
"save_btn"
title=
"Save current file. Hint: Use Ctrl+S"
>
Save
</span></li>
<li
id=
"flist"
><span
class=
"flist_btn"
id=
"filelist"
title=
"Recently opened files and favourites"
rel=
'tooltip'
>
</span></li>
<li
id=
"filelist"
><span
class=
"flist_btn"
title=
"Recently opened files and favourites"
rel=
'tooltip'
>
</span></li>
<li
id=
"option"
><span
class=
"fmenu_btn"
title=
'Show more option'
rel=
'tooltip'
>
Menu
</span></li>
<li>
<h2>
<
a
style=
"display:none"
id=
'option'
href=
'#'
rel=
'tooltip'
title=
'Show more option'
>
[Menu]
</a><
span
id=
"edit_info"
>
No file in editor
</span>
<span
id=
"edit_info"
>
No file in editor
</span>
<span
id=
"edit_status"
></span>
</h2>
</li>
...
...
@@ -85,8 +87,8 @@
<ul
class=
"inline"
>
<li><a
id=
'getmd5'
href=
"#"
>
Get or Update md5sum
</a></li>
<li><a
id=
'addflist'
href=
"#"
>
Add to favourites
</a></li>
<li><a
id=
'find'
href=
"#"
>
Find in file
[Ctl+F]
</a></li>
<li><a
id=
'replace'
href=
"#"
>
Replace in file
[Ct
l+H]
</a></li
></li>
<li><a
id=
'find'
href=
"#"
>
Find in file
[Ct
r
l+F]
</a></li>
<li><a
id=
'replace'
href=
"#"
>
Replace in file
[Ct
rl+H]
</a
></li>
</ul>
<div
class=
"sep"
></div>
<span
class=
"list"
>
Add project development
</span>
...
...
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