Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
5c15e02c
Commit
5c15e02c
authored
Aug 11, 2017
by
Erik Geiser
Browse files
[fix] integration with new file browser and support for spaces in filenames
parent
a332fb2c
Changes
4
Hide whitespace changes
Inline
Side-by-side
vispa/extensions/codeeditor/static/js/action.js
View file @
5c15e02c
...
...
@@ -252,7 +252,7 @@ define(["jquery", "emitter"], function($, Emitter) {
sort
:
"
name
"
,
reverse
:
false
};
this
.
view
.
spawnInstance
(
"
file
"
,
"
FileSelector
"
,
args
);
this
.
view
.
spawnInstance
(
"
file
2
"
,
"
FileSelector
"
,
args
);
return
this
;
},
...
...
vispa/extensions/codeeditor/static/js/commandline.js
View file @
5c15e02c
...
...
@@ -9,14 +9,15 @@ define(["jquery", "emitter", "vispa/extension"], function($, Emitter, Extension)
this
.
view
=
view
;
// commandline template -> list of extensions
this
.
commandlineTemplates
=
{
"
python %file
"
:
[
"
py
"
],
"
sh %file
"
:
[
"
sh
"
],
"
php %file
"
:
[
"
php
"
],
"
pdflatex %file
"
:
[
"
tex
"
],
"
gcc %file -o %file.out && ./%file.out
"
:
[
"
c
"
],
"
g++ %file -o %file.out && ./%file.out
"
:
[
"
cc
"
,
"
cp
"
,
"
cxx
"
,
"
cpp
"
,
"
CPP
"
,
"
c++
"
,
"
C
"
],
"
R -f %file
"
:
[
"
R
"
],
"
octave -q -f %file
"
:
[
"
m
"
]
"
python '%file'
"
:
[
"
py
"
],
"
sh '%file'
"
:
[
"
sh
"
],
"
php '%file'
"
:
[
"
php
"
],
"
pdflatex '%file'
"
:
[
"
tex
"
],
"
gcc '%file' -o '%file.out' && './%file.out'
"
:
[
"
c
"
],
"
g++ '%file' -o '%file.out' && './%file.out'
"
:
[
"
cc
"
,
"
cp
"
,
"
cxx
"
,
"
cpp
"
,
"
CPP
"
,
"
c++
"
,
"
C
"
],
"
R -f '%file'
"
:
[
"
R
"
],
"
octave -q -f '%file'
"
:
[
"
m
"
]
};
this
.
commandline
=
null
;
...
...
@@ -208,7 +209,7 @@ define(["jquery", "emitter", "vispa/extension"], function($, Emitter, Extension)
var
node
=
$
(
"
<a/>
"
);
node
.
html
(
name
);
node
.
on
({
mouseover
:
function
()
{
mouseover
:
function
()
{
$
(
"
body
"
).
css
(
"
cursor
"
,
"
hand
"
);
},
mouseleave
:
function
()
{
...
...
vispa/extensions/codeeditor/static/js/output.js
View file @
5c15e02c
...
...
@@ -306,7 +306,7 @@ define(["jquery", "emitter"], function($, Emitter) {
sort
:
"
name
"
,
reverse
:
false
};
this
.
view
.
spawnInstance
(
"
file
"
,
"
FileSelector
"
,
args
);
this
.
view
.
spawnInstance
(
"
file
2
"
,
"
FileSelector
"
,
args
);
}
});
...
...
vispa/extensions/codeeditor/static/js/view.js
View file @
5c15e02c
...
...
@@ -239,7 +239,7 @@ define([
reverse
:
false
};
this
.
spawnInstance
(
"
file
"
,
"
FileSelector
"
,
args
);
this
.
spawnInstance
(
"
file
2
"
,
"
FileSelector
"
,
args
);
}
},{
iconClass
:
"
fa-file-text
"
,
...
...
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