File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1919 {{ /if }}
2020 <SubmissionResult
2121 @fullScreen ={{ fullScreen }}
22- @allowedLanguages ={{ contest.allowedLanguages }}
23-
2422 @judgeResult ={{ if (not submission.codeTaskGroup.isRunning ) lastResult }} />
2523 </div >
2624{{ /if }}
Original file line number Diff line number Diff line change @@ -48,12 +48,7 @@ export default class CodeWindowComponent extends Component {
4848 code : "csharp" ,
4949 mode : "csharp" ,
5050 source : ""
51- } , {
52- name : "MySQL 10" ,
53- code : "mysql" ,
54- mode : "mysql" ,
55- source : ""
56- }
51+ }
5752 ]
5853
5954 setSubmission = ( ) => {
Original file line number Diff line number Diff line change 4848 </div >
4949 <div class =" w-100" >
5050 {{ #liquid-if (eq currentTab ' problem' )}}
51- <ProblemExplanation @problem ={{ problem }} @ contest = {{ contest }} />
51+ <ProblemExplanation @problem ={{ problem }} />
5252 {{ else if (eq currentTab 'submissions')}}
5353 <SubmissionsList
5454 @contest ={{ contest }}
Original file line number Diff line number Diff line change 11import Component from '@ember/component' ;
2- import { inject as service } from '@ember/service' ;
3- import jsonToTable from '../../../helpers/json-to-table' ;
42
53export default Component . extend ( {
6-
7- languageSelection : service ( 'language-selection' ) ,
8- init ( ) {
9- this . _super ( ...arguments ) ;
10- let contest = this . get ( 'contest' ) . data ;
11-
12- document . addEventListener ( 'contextmenu' , function ( event ) {
13- event . preventDefault ( ) ;
14- } ) ;
15- document . addEventListener ( 'keydown' , function ( event ) {
16- if (
17- event . key === 'F12' ||
18- ( event . ctrlKey && event . shiftKey && event . key === 'I' ) ||
19- ( event . ctrlKey && event . shiftKey && event . key === 'C' ) ||
20- ( event . ctrlKey && event . shiftKey && event . key === 'J' ) ||
21- ( event . ctrlKey && event . key === 'U' )
22- ) {
23- event . preventDefault ( ) ;
24- }
25- } ) ;
26-
27- } ,
28- jsonToTable ( data ) {
29-
30- const table = jsonToTable ( data ) ;
31- return table ;
32- }
33-
34- } ) ;
4+ } ) ;
Original file line number Diff line number Diff line change 11<div class =" py-4" >
2- <p class =" no-select" >{{ markdown-to-html problem.details.description }} </p >
3-
2+ <p >
3+ {{ markdown-to-html problem.details.description }}
4+ </p >
45 <div class =" extra-bold" >Input Format</div >
5-
6- <pre >{{ problem.details.input_format }} </pre >
7-
8-
6+ <p >
7+ {{ markdown-to-html problem.details.input_format }}
8+ </p >
99 <div class =" extra-bold" >Constraints</div >
1010 <div class =" bg-grey br-5 w-60 px-4 py-2 my-2" >
11- <p >{{ markdown-to-html problem.details.constraints }} </p >
11+ <p >
12+ {{ markdown-to-html problem.details.constraints }}
13+ </p >
1214 </div >
13-
1415 <div class =" extra-bold" >Output Format</div >
15- <pre >{{ problem.details.output_format }} </pre >
16+ <p >
17+ {{ markdown-to-html problem.details.output_format }}
18+ </p >
1619 <div class =" extra-bold" >Sample Input</div >
1720 <div class =" bg-grey br-5 w-60 px-4 py-2 my-2" >
18- <pre >{{ problem.details.sample_input }} </pre >
21+ <pre >{{ problem.details.sample_input }} </pre >
1922 </div >
20-
2123 <div class =" extra-bold" >Sample Output</div >
2224 <div class =" bg-grey br-5 w-60 px-4 py-2 my-2" >
23- {{ #if (includes contest.allowedLanguages " mysql" )}}
24- <pre >{{ json-to-table problem.details.sample_output }} </pre >
25- {{ else }}
2625 <pre >{{ problem.details.sample_output }} </pre >
27- {{ /if }}
28-
2926 </div >
30-
3127 {{ #if problem.details.explanation }}
3228 <div class =" extra-bold" >Explanation</div >
3329 <div class =" bg-grey br-5 w-60 px-4 py-2 my-2" >
Original file line number Diff line number Diff line change 3333
3434 {{ #liquid-if (eq selectedTab " problem" )}}
3535 <ProblemExplanation
36- @problem ={{ problem }}
37- @contest =" {{ this.contest }} " />
36+ @problem ={{ problem }} />
3837 {{ else if (eq selectedTab "submissions")}}
3938 <SubmissionsList
4039 @contest ={{ contest }}
Original file line number Diff line number Diff line change 6060{{ #if (or submitProjectTask.isRunning lastResult )}}
6161 <div class =" mt-4" >
6262 <SubmissionResult
63- @allowedLanguages ={{ contest.allowedLanguages }}
64-
6563 @contentType ={{ content.type }}
6664 @judgeResult ={{ if (not submitProjectTask.isRunning ) lastResult }}
6765 />
Original file line number Diff line number Diff line change 11import Component from '@ember/component' ;
22import { computed } from '@ember/object' ;
3- import { jsonToTable } from '../../../util/json-to-table' ;
3+
44export default class SubmissionResult extends Component {
55 didRender ( ) {
66 this . element . scrollIntoView ( { behavior : "smooth" , block : "end" } )
@@ -41,8 +41,4 @@ export default class SubmissionResult extends Component {
4141 return this . judgeResult . testcases
4242 }
4343 }
44- jsonToTable ( data ) {
45- const table = jsonToTable ( data ) ;
46- return table ;
47- }
4844}
Original file line number Diff line number Diff line change 22 <span class =" font-sm bold" >
33 Compilation Successful
44 </span >
5-
65 {{ #if output }}
7- {{ #if (includes allowedLanguages " mysql" )}}
8- <pre class =" mt-3 bg-grey p-4" >{{ json-to-table output }} </pre >
9- {{ else }}
10- <pre class =" mt-3 bg-grey p-4" >{{ output }} </pre >
11- {{ /if }}
6+ <pre class =" mt-3 bg-grey p-4" >{{ output }} </pre >
127 {{ /if }}
138</div >
You can’t perform that action at this time.
0 commit comments