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
45d91851
Commit
45d91851
authored
Jan 28, 2014
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner: FileTree in Editor page set to more used directories
parent
42e1e173
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
slapos/runner/static/js/scripts/softwareFolder.js
slapos/runner/static/js/scripts/softwareFolder.js
+4
-4
slapos/runner/utils.py
slapos/runner/utils.py
+1
-0
slapos/runner/views.py
slapos/runner/views.py
+1
-1
No files found.
slapos/runner/static/js/scripts/softwareFolder.js
View file @
45d91851
...
...
@@ -13,7 +13,7 @@ $(document).ready(function () {
softwareDisplay
=
true
,
projectDir
=
$
(
"
input#project
"
).
val
(),
workdir
=
$
(
"
input#workdir
"
).
val
(),
currentProject
=
workdir
+
"
/
"
+
projectDir
.
replace
(
workdir
,
""
).
split
(
'
/
'
)[
1
],
currentProject
=
"
workspace
/
"
+
projectDir
.
replace
(
workdir
,
""
).
split
(
'
/
'
)[
1
],
send
=
false
,
edit
=
false
,
ajaxResult
=
false
,
...
...
@@ -24,7 +24,7 @@ $(document).ready(function () {
current_file
=
null
,
favourite_list
=
new
Array
(),
base_path
=
function
()
{
return
softwareDisplay
?
currentProject
:
'
workspace
/
'
;
return
softwareDisplay
?
currentProject
:
'
runner_workdir
/
'
;
};
function
openFile
(
file
)
{
...
...
@@ -75,7 +75,7 @@ $(document).ready(function () {
function
switchContent
()
{
if
(
!
softwareDisplay
)
{
$
(
"
span.swith_btn
"
).
empty
();
$
(
"
span.swith_btn
"
).
append
(
"
Work
space
"
);
$
(
"
span.swith_btn
"
).
append
(
"
Work
ing dir
"
);
$
(
'
#fileTreeFull
'
).
show
();
$
(
'
#fileTree
'
).
hide
();
}
else
{
...
...
@@ -594,7 +594,7 @@ $(document).ready(function () {
editor
.
renderer
.
setHScrollBarAlwaysVisible
(
false
);
initTree
(
'
#fileTree
'
,
currentProject
,
'
pfolder
'
);
initTree
(
'
#fileTreeFull
'
,
'
workspace
'
);
initTree
(
'
#fileTreeFull
'
,
'
runner_workdir
'
);
//bindContextMenu('#fileTree');
$
(
"
#info
"
).
append
(
"
Current work tree:
"
+
base_path
());
...
...
slapos/runner/utils.py
View file @
45d91851
...
...
@@ -719,6 +719,7 @@ def realpath(config, path, check_exist=True):
'
software_root
': config['
software_root
'],
'
instance_root
': config['
instance_root
'],
'
workspace
': config['
workspace
'],
'
runner_workdir
': config['
runner_workdir
'],
'
software_link
': config['
software_link
']
}
if key not in allow_list:
...
...
slapos/runner/views.py
View file @
45d91851
...
...
@@ -301,7 +301,7 @@ def editCurrentProject():
project
=
os
.
path
.
join
(
app
.
config
[
'etc_dir'
],
".project"
)
projectList
=
listFolder
(
app
.
config
,
'workspace'
)
if
os
.
path
.
exists
(
project
)
and
projectList
:
return
render_template
(
'softwareFolder.html'
,
workDir
=
'
workspace
'
,
return
render_template
(
'softwareFolder.html'
,
workDir
=
'
runner_workdir
'
,
project
=
open
(
project
).
read
(),
projectList
=
projectList
)
elif
not
projectList
:
...
...
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