Skip to content

Commit

Permalink
removed logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkaixiang committed Oct 29, 2021
1 parent 2f68f1c commit db28750
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
16 changes: 8 additions & 8 deletions client/src/AdminPanel/adminChallengeEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ const CreateChallengeForm = (props) => {

<div style={{ display: "flex", flexDirection: "column", justifyContent: "center", alignContent: "center" }}>

<Card>
<Card className="settings-card">
<h1>Challenge Points:</h1>
<Form.Item
name="points"
Expand All @@ -265,7 +265,7 @@ const CreateChallengeForm = (props) => {
</Form.Item>
</Card>

<Card>
<Card className="settings-card">
<h1>Maximum Number of Attempts (Set to 0 for unlimited)</h1>
<Form.Item
name="max_attempts"
Expand All @@ -289,7 +289,7 @@ const CreateChallengeForm = (props) => {
{(fields, { add, remove }) => {

return (
<Card>
<Card className="settings-card">
<h1>Flags</h1>
{fields.map(field => (
<Space key={field.key} style={{ display: 'flex', marginBottom: 8 }} align="start">
Expand Down Expand Up @@ -337,7 +337,7 @@ const CreateChallengeForm = (props) => {
<Form.List name="tags">
{(fields, { add, remove }) => {
return (
<Card>
<Card className="settings-card">
<h1>Tags</h1>
{fields.map(field => (
<Space key={field.key} style={{ display: 'flex', marginBottom: 8 }} align="start">
Expand Down Expand Up @@ -388,7 +388,7 @@ const CreateChallengeForm = (props) => {
<Form.List name="hints" >
{(fields, { add, remove }) => {
return (
<Card>
<Card className="settings-card">
<h1>Hints</h1>
{fields.map(field => (
<Space key={field.key} style={{ display: 'flex', marginBottom: 8 }} align="start">
Expand Down Expand Up @@ -439,7 +439,7 @@ const CreateChallengeForm = (props) => {
}}
</Form.List>

<Card>
<Card className="settings-card">
<h1>Writeup Link (Optional)</h1>
<Form.Item
name="writeup"
Expand All @@ -462,7 +462,7 @@ const CreateChallengeForm = (props) => {
</div>
</Card>

<Card>
<Card className="settings-card">
<h1>Visibility</h1>
<Form.Item
name="visibility"
Expand Down Expand Up @@ -502,7 +502,7 @@ const CreateChallengeForm = (props) => {
<p>Locks this challenge until the provided challenge above has been solved.</p>
</Card>

<Card>
<Card className="settings-card">
<h1>Dynamic Scoring</h1>
<Form.Item
name="dynamic"
Expand Down
2 changes: 0 additions & 2 deletions client/src/Challenges/challenges.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ class Challenges extends React.Component {
for (let i = 0; i < originalData.length; i++) {
originalDataDictionary[originalData[i]._id] = originalData[i].challenges
}
console.log(originalDataDictionary)
console.log(categoryMetaInfo)
this.setState({ categories: categoryMetaInfo, originalData: originalDataDictionary, loadingChall: false })
let categoryChall = this.props.match.params.categoryChall;
const mongoID = /^[a-f\d]{24}$/i
Expand Down
1 change: 0 additions & 1 deletion client/src/SidebarDropdown/Teams.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ class Teams extends React.Component {
this.getCodeDetails(code)
}
else {
console.log(this.props.team)
const team = this.props.match.params.team
if (typeof team !== "undefined") { // User is viewing another team
this.loadTeamDetails(team)
Expand Down

0 comments on commit db28750

Please sign in to comment.