Fix broken shell and cmd
parent
cff8e4445e
commit
99aae0dd77
6
index.js
6
index.js
|
@ -34,19 +34,19 @@ app.engine("handlebars", hbs({
|
||||||
layoutsDir: path.join(__dirname, "views", "layouts"),
|
layoutsDir: path.join(__dirname, "views", "layouts"),
|
||||||
defaultLayout: "main",
|
defaultLayout: "main",
|
||||||
helpers: {
|
helpers: {
|
||||||
either: (a, b, options) => {
|
either: function(a, b, options) {
|
||||||
if (a || b) {
|
if (a || b) {
|
||||||
return options.fn(this);
|
return options.fn(this);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
filesize: filesize,
|
filesize: filesize,
|
||||||
octicon: (i, options) => {
|
octicon: function(i, options) {
|
||||||
if (!octicons[i]) {
|
if (!octicons[i]) {
|
||||||
return new handlebars.SafeString(octicons.question.toSVG());
|
return new handlebars.SafeString(octicons.question.toSVG());
|
||||||
}
|
}
|
||||||
return new handlebars.SafeString(octicons[i].toSVG());
|
return new handlebars.SafeString(octicons[i].toSVG());
|
||||||
},
|
},
|
||||||
eachpath: (path, options) => {
|
eachpath: function (path, options) {
|
||||||
if (typeof path != "string") {
|
if (typeof path != "string") {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<form action="@cmd" method="post">
|
<form action="@cmd" method="post">
|
||||||
<div id="cmd" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
|
<div id="cmd" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
|
||||||
<div class="modal-dialog modal-dialog-centered modal-sm">
|
<div class="modal-dialog modal-dialog-centered">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header bg-light">
|
<div class="modal-header bg-light">
|
||||||
<h5 class="modal-title">Run command</h5>
|
<h5 class="modal-title">Run command</h5>
|
||||||
|
|
Loading…
Reference in New Issue