mirror of https://github.com/JohnHammond/CTFd.git
Run prettier
parent
6099abf1a1
commit
228701cae7
|
@ -1,4 +1,4 @@
|
|||
@import "~codemirror/lib/codemirror.css";
|
||||
.CodeMirror {
|
||||
font-size: 12px;
|
||||
}
|
||||
font-size: 12px;
|
||||
}
|
||||
|
|
|
@ -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"));
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue