1
0
Fork 0

Fix broken shell and cmd

pull/17/head
Ambrose Chua 2021-05-07 23:07:13 +08:00
parent cff8e4445e
commit 99aae0dd77
2 changed files with 4 additions and 4 deletions

View File

@ -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 "";
} }

View File

@ -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>