mirror of https://github.com/JohnHammond/CTFd.git
Run prettier
parent
6099abf1a1
commit
228701cae7
|
@ -1,4 +1,4 @@
|
||||||
@import "~codemirror/lib/codemirror.css";
|
@import "~codemirror/lib/codemirror.css";
|
||||||
.CodeMirror {
|
.CodeMirror {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { default as helpers } from "core/helpers";
|
||||||
import $ from "jquery";
|
import $ from "jquery";
|
||||||
import { ezQuery, ezProgressBar } from "core/ezq";
|
import { ezQuery, ezProgressBar } from "core/ezq";
|
||||||
import CodeMirror from "codemirror";
|
import CodeMirror from "codemirror";
|
||||||
import 'codemirror/mode/htmlmixed/htmlmixed.js';
|
import "codemirror/mode/htmlmixed/htmlmixed.js";
|
||||||
|
|
||||||
function loadTimestamp(place, timestamp) {
|
function loadTimestamp(place, timestamp) {
|
||||||
if (typeof timestamp == "string") {
|
if (typeof timestamp == "string") {
|
||||||
|
@ -235,25 +235,19 @@ function insertTimezones(target) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$(() => {
|
$(() => {
|
||||||
CodeMirror.fromTextArea(
|
CodeMirror.fromTextArea(document.getElementById("theme-header"), {
|
||||||
document.getElementById("theme-header"),
|
lineNumbers: true,
|
||||||
{
|
lineWrapping: true,
|
||||||
lineNumbers: true,
|
mode: "htmlmixed",
|
||||||
lineWrapping: true,
|
htmlMode: true
|
||||||
mode: "htmlmixed",
|
});
|
||||||
htmlMode: true
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
CodeMirror.fromTextArea(
|
CodeMirror.fromTextArea(document.getElementById("theme-footer"), {
|
||||||
document.getElementById("theme-footer"),
|
lineNumbers: true,
|
||||||
{
|
lineWrapping: true,
|
||||||
lineNumbers: true,
|
mode: "htmlmixed",
|
||||||
lineWrapping: true,
|
htmlMode: true
|
||||||
mode: "htmlmixed",
|
});
|
||||||
htmlMode: true
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
insertTimezones($("#start-timezone"));
|
insertTimezones($("#start-timezone"));
|
||||||
insertTimezones($("#end-timezone"));
|
insertTimezones($("#end-timezone"));
|
||||||
|
|
|
@ -4,7 +4,7 @@ import $ from "jquery";
|
||||||
import CTFd from "core/CTFd";
|
import CTFd from "core/CTFd";
|
||||||
import { default as helpers } from "core/helpers";
|
import { default as helpers } from "core/helpers";
|
||||||
import CodeMirror from "codemirror";
|
import CodeMirror from "codemirror";
|
||||||
import 'codemirror/mode/htmlmixed/htmlmixed.js';
|
import "codemirror/mode/htmlmixed/htmlmixed.js";
|
||||||
import { ezQuery, ezToast } from "core/ezq";
|
import { ezQuery, ezToast } from "core/ezq";
|
||||||
|
|
||||||
function get_filetype_icon_class(filename) {
|
function get_filetype_icon_class(filename) {
|
||||||
|
|
Loading…
Reference in New Issue