File tree 4 files changed +6
-48
lines changed
pods/components/problem-explanation
4 files changed +6
-48
lines changed Original file line number Diff line number Diff line change 15
15
id : yarn-cache-dir-path
16
16
run : echo "::set-output name=dir::$(yarn cache dir)"
17
17
18
- - uses : actions/cache@v1
18
+ - uses : actions/cache@v3
19
19
id : yarn-cache
20
20
with :
21
21
path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
Original file line number Diff line number Diff line change 1
1
import Component from '@ember/component' ;
2
- import { inject as service } from '@ember/service' ;
3
- import { jsonToTable } from '../../../util/json-to-table' ;
4
2
5
3
export default Component . extend ( {
6
- languageSelection : service ( 'language-selection' ) ,
7
-
8
- init ( ) {
9
- this . _super ( ...arguments ) ;
10
- let contest = this . get ( 'contest' ) ;
11
-
12
-
13
- document . addEventListener ( 'contextmenu' , function ( event ) {
14
- event . preventDefault ( ) ;
15
- } ) ;
16
-
17
-
18
- document . addEventListener ( 'keydown' , function ( event ) {
19
- if (
20
- event . key === 'F12' ||
21
- ( event . ctrlKey && event . shiftKey && event . key === 'I' ) ||
22
- ( event . ctrlKey && event . shiftKey && event . key === 'C' ) ||
23
- ( event . ctrlKey && event . shiftKey && event . key === 'J' ) ||
24
- ( event . ctrlKey && event . key === 'U' )
25
- ) {
26
- event . preventDefault ( ) ;
27
- }
28
- } ) ;
29
- } ,
30
-
31
- jsonToTable ( data ) {
32
- const table = jsonToTable ( data ) ;
33
- return table ;
34
- }
35
4
} ) ;
Original file line number Diff line number Diff line change 1
- <div class =" py-4 no-select" >
2
- <p >{{ markdown-to-html problem.details.description }} </p >
3
-
1
+ <div class =" py-4" >
2
+ <p >
3
+ {{ markdown-to-html problem.details.description }}
4
+ </p >
4
5
<div class =" extra-bold" >Input Format</div >
5
6
<p >
6
7
{{ markdown-to-html problem.details.input_format }}
21
22
</div >
22
23
<div class =" extra-bold" >Sample Output</div >
23
24
<div class =" bg-grey br-5 w-60 px-4 py-2 my-2" >
24
- {{ #if (includes contest.allowedLanguages " mysql" )}}
25
- <pre >{{ json-to-table problem.details.sample_output }} </pre >
26
- {{ else }}
27
- <pre >{{ problem.details.sample_output }} </pre >
28
- {{ /if }}
25
+ <pre >{{ problem.details.sample_output }} </pre >
29
26
</div >
30
27
{{ #if problem.details.explanation }}
31
28
<div class =" extra-bold" >Explanation</div >
Original file line number Diff line number Diff line change @@ -292,12 +292,4 @@ body{
292
292
100% {
293
293
box-shadow : 0 0 0 6px rgba (167 , 89 , 47 , 0.032 );
294
294
}
295
- }
296
-
297
- .no-select {
298
- user-select : none ;
299
- -webkit-user-select : none ;
300
- -moz-user-select : none ;
301
- -ms-user-select : none ;
302
- pointer-events : none ;
303
295
}
You can’t perform that action at this time.
0 commit comments