Skip to content

Commit 54645e5

Browse files
tags fixed
1 parent 5b7c307 commit 54645e5

9 files changed

Lines changed: 63 additions & 64 deletions

File tree

CTFd/plugins/userchallenge/assets/js/compat/CTFd.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import $ from "jquery";
21
import dayjs from "dayjs";
2+
import $ from "jquery";
33
import MarkdownIt from "markdown-it";
44

5-
import "./patch";
6-
import fetch from "./fetch";
7-
import config from "./config";
5+
import { getScript } from "@ctfdio/ctfd-js/utils/ajax";
6+
import { createHtmlNode, htmlEntities } from "@ctfdio/ctfd-js/utils/html";
87
import API from "./api";
8+
import config from "./config";
99
import ezq from "./ezq";
10-
import { htmlEntities, createHtmlNode } from "@ctfdio/ctfd-js/utils/html";
11-
import { getScript } from "@ctfdio/ctfd-js/utils/ajax";
10+
import fetch from "./fetch";
11+
import "./patch";
1212

13-
const api = new API("/");
13+
const api = new API("/userchallenge/api");
1414
const user = {};
1515
const _internal = {};
1616
const ui = {
@@ -32,7 +32,6 @@ const init = (data) => {
3232
config.urlRoot = data.urlRoot || config.urlRoot;
3333
config.csrfNonce = data.csrfNonce || config.csrfNonce;
3434
config.userMode = data.userMode || config.userMode;
35-
api.domain = config.urlRoot + "./plugins/UserChallengeManagement/apiModding";
3635
user.id = data.userId;
3736
};
3837
const plugin = {

CTFd/plugins/userchallenge/staticAssets/assets/HintEditForm-C1IRW5DI.js renamed to CTFd/plugins/userchallenge/staticAssets/assets/HintEditForm-CJA_wE-H.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CTFd/plugins/userchallenge/staticAssets/assets/NextChallenge-CaVr43am.js renamed to CTFd/plugins/userchallenge/staticAssets/assets/NextChallenge-BMiLVhhZ.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CTFd/plugins/userchallenge/staticAssets/assets/js/adminChallenge-7055_SAK.js renamed to CTFd/plugins/userchallenge/staticAssets/assets/js/adminChallenge-BKAW65cS.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CTFd/plugins/userchallenge/staticAssets/assets/js/adminChallenges-CanlZVFv.js renamed to CTFd/plugins/userchallenge/staticAssets/assets/js/adminChallenges-B4g-OAcb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{e as c,C as i,b as d}from"./main-CSCwBH5u.js";import{$ as e}from"../jquery-DDmc7zOD.js";function r(o){let l=e("input[data-challenge-id]:checked").map(function(){return e(this).data("challenge-id")}),a=l.length===1?"challenge":"challenges";c({title:"Delete Challenges",body:`Are you sure you want to delete ${l.length} ${a}?`,success:function(){const t=[];for(var n of l)t.push(i.fetch(`/userchallenge/api/challenges/${n}`,{method:"DELETE"}));Promise.all(t).then(s=>{window.location.reload()})}})}function u(o){let l=e("input[data-challenge-id]:checked").map(function(){return e(this).data("challenge-id")});d({title:"Edit Challenges",body:e(`
1+
import{e as c,C as i,b as d}from"./main-8Vylz6kc.js";import{$ as e}from"../jquery-DDmc7zOD.js";function r(o){let l=e("input[data-challenge-id]:checked").map(function(){return e(this).data("challenge-id")}),a=l.length===1?"challenge":"challenges";c({title:"Delete Challenges",body:`Are you sure you want to delete ${l.length} ${a}?`,success:function(){const t=[];for(var n of l)t.push(i.fetch(`/userchallenge/api/challenges/${n}`,{method:"DELETE"}));Promise.all(t).then(s=>{window.location.reload()})}})}function u(o){let l=e("input[data-challenge-id]:checked").map(function(){return e(this).data("challenge-id")});d({title:"Edit Challenges",body:e(`
22
<form id="challenges-bulk-edit">
33
<div class="form-group">
44
<label>Category</label>

CTFd/plugins/userchallenge/staticAssets/assets/js/main-CSCwBH5u.js renamed to CTFd/plugins/userchallenge/staticAssets/assets/js/main-8Vylz6kc.js

Lines changed: 35 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CTFd/plugins/userchallenge/staticAssets/assets/js/userChallenge-e0xDYLQZ.js renamed to CTFd/plugins/userchallenge/staticAssets/assets/js/userChallenge-BuMIJllY.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)