Run prettier

admin-teams-pagination
Kevin Chung 2020-04-27 13:10:35 -04:00
parent 6099abf1a1
commit 228701cae7
3 changed files with 16 additions and 22 deletions

View File

@ -1,4 +1,4 @@
@import "~codemirror/lib/codemirror.css";
.CodeMirror {
font-size: 12px;
}
font-size: 12px;
}

View File

@ -8,7 +8,7 @@ import { default as helpers } from "core/helpers";
import $ from "jquery";
import { ezQuery, ezProgressBar } from "core/ezq";
import CodeMirror from "codemirror";
import 'codemirror/mode/htmlmixed/htmlmixed.js';
import "codemirror/mode/htmlmixed/htmlmixed.js";
function loadTimestamp(place, timestamp) {
if (typeof timestamp == "string") {
@ -235,25 +235,19 @@ function insertTimezones(target) {
}
$(() => {
CodeMirror.fromTextArea(
document.getElementById("theme-header"),
{
lineNumbers: true,
lineWrapping: true,
mode: "htmlmixed",
htmlMode: true
}
);
CodeMirror.fromTextArea(document.getElementById("theme-header"), {
lineNumbers: true,
lineWrapping: true,
mode: "htmlmixed",
htmlMode: true
});
CodeMirror.fromTextArea(
document.getElementById("theme-footer"),
{
lineNumbers: true,
lineWrapping: true,
mode: "htmlmixed",
htmlMode: true
}
);
CodeMirror.fromTextArea(document.getElementById("theme-footer"), {
lineNumbers: true,
lineWrapping: true,
mode: "htmlmixed",
htmlMode: true
});
insertTimezones($("#start-timezone"));
insertTimezones($("#end-timezone"));

View File

@ -4,7 +4,7 @@ import $ from "jquery";
import CTFd from "core/CTFd";
import { default as helpers } from "core/helpers";
import CodeMirror from "codemirror";
import 'codemirror/mode/htmlmixed/htmlmixed.js';
import "codemirror/mode/htmlmixed/htmlmixed.js";
import { ezQuery, ezToast } from "core/ezq";
function get_filetype_icon_class(filename) {