Skip to content

Commit

Permalink
Merge pull request #22 from CodeforcesContestHelper/dev
Browse files Browse the repository at this point in the history
Upload latest source code
  • Loading branch information
tiger2005 authored Oct 11, 2021
2 parents 1ac6f7c + 7e9b25f commit c922183
Show file tree
Hide file tree
Showing 20 changed files with 243 additions and 82 deletions.
10 changes: 5 additions & 5 deletions css/all.min.css

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions css/client.css
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ body{
}
.singleOpenSmallWindow{
cursor: pointer;
right: 10px;
right: 20px;
}
.singleHeadBackProgress {
width: 0px;
Expand Down Expand Up @@ -552,7 +552,7 @@ img[src=""],img:not([src]){opacity:0;}
place-items: center;
transition: 0.2s;
position: absolute;
width: 70%;
width: 50%;
height: 30px;
border-radius: 3px;
top: -40px;
Expand Down Expand Up @@ -831,7 +831,6 @@ pre{




/* SETTINGS */
.settingPage{
padding: 0px 50px;
Expand Down Expand Up @@ -1157,7 +1156,7 @@ pre{
display: inline-block;
}
.bigInputArea{
width: calc(100% - 60px);
width: calc(100% - 57px);
padding: 3px 0px;
position: relative;
}
Expand Down
4 changes: 2 additions & 2 deletions css/contest/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ body{
color: #fff;
}
.HtmlContainer{
background: #333;
background: rgb(29, 33, 37);
}
.singleContestProgressBarDisplayer{
background: #555;
Expand All @@ -11,7 +11,7 @@ body{
background: #777;
}
.styleBlock{
background: #555;
background: #444;
}
.idleColor{
border: 1px solid #888;
Expand Down
38 changes: 19 additions & 19 deletions css/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ body{
color: #fff;
}
.HtmlContainer{
background: #333;
background: rgb(29, 33, 37);
}
.NavBarContent:hover{
background: #444;
background: rgb(36, 41, 46);
}
.NavBarChosen, .InnerContent{
background: #444;
background: rgb(36, 41, 46);
}
.ToolListMinimize:hover{
background: #666;
Expand All @@ -35,16 +35,16 @@ body{
border-bottom: 1px solid #777;
}
.selectButton{
background: #666;
background: #424254;
}
.selectButton:hover{
background: #777;
background: #666;
}
.selectButton.selected{
background: #888;
background: #666;
}
.singleRankChangesDisplayer{
background: #666;
background: #455055;
}
.singleContestProgressBackground{
background: #777;
Expand All @@ -56,21 +56,21 @@ body{
border-color: #111 transparent transparent transparent;
}
.singleProblemlistDisplayerGridItem{
background: #666;
background: #434348;
}
.singleProblemlistDisplayerGridItemIndex{
background: #888;
background: #555;
}
.singleProblemlistBottom{
background: #333;
}
.singleProblemlistDisplayListItemInfo, .singleProblemlistDisplayListItemStatus, .singleProblemlistDisplayEventItem{
background: #666;
background: #474747;
}
.singleProblemlistDisplayListItemInfo:hover,
.singleProblemlistDisplayListItemStatus:hover,
.singleProblemlistDisplayEventItem:hover{
background: #444;
background: #373737;
}
.singleProblemlistDisplayListItemProgress{
background: #777;
Expand All @@ -95,27 +95,27 @@ body{
cursor: default;
}
.settingsInputPartContent{
background: #444;
background: rgb(36, 41, 46);
border: 0;
border-bottom: 1px solid #888;
color: white;
outline: none;
}
.submissionDisplayer > div:first-child > div:first-child{
background: #555;
background: rgb(35, 40, 45);
}
.submissionCodeDisplayer{
background: #333;
background: rgb(35, 40, 45);
}
.settingsLoginButton, .settingsLoginType{
color: white;

}
.settingsSelectBigPartContent{
background: #444;
background: rgb(36, 41, 46);;
}
.searchPageTop, .searchPageTip{
background: #555;
background: rgb(45, 50, 55);
}
.searchArgumentsChoser{
background: #444;
Expand All @@ -133,7 +133,7 @@ body{
border-left-color: rgb(255, 204, 102);
}
.highlightedContestList{
background: #585858;
background: #444;
}


Expand All @@ -146,10 +146,10 @@ body{


.blockManager{
background: #555;
background: rgb(46, 51, 56);
}
.blockManagerTitle{
background: #4d4d4d;
background: rgb(51, 56, 61);
}
.folderButton{
background: #666;
Expand Down
58 changes: 55 additions & 3 deletions css/problem/client.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ body{
border-radius: 10px;
overflow: hidden;
}
.sideBarItem, .sideBarGroup{
.sideBarItem, .sideBarGroup, .addProblemSidebar{
transition: 0.2s;
font-size: 16px;
padding: 10px;
Expand All @@ -76,7 +76,8 @@ body{
cursor: pointer;
}
.sideBarItem > i, .sideBarItem > span
, .sideBarGroup > i, .sideBarGroup > span{
, .sideBarGroup > i, .sideBarGroup > span
, .addProblemSidebar > i{
text-align: center;
display: inline-block;
width: 16px;
Expand All @@ -102,7 +103,8 @@ body{
}
.innerContent{
flex: 1;
overflow: hidden
overflow: hidden;
z-index: 1;
}
.ToolList{
-webkit-app-region: drag;
Expand Down Expand Up @@ -233,6 +235,9 @@ body{
width: 16px;
margin-right: 12px;
}
.submitInterface{
border-radius: 5px;
}
.submitInterfaceTitle{
font-size: 18px;
}
Expand Down Expand Up @@ -266,6 +271,53 @@ select{
border-radius: 4px;
margin-right: 10px;
}
.addProblemInterface{
border-radius: 5px;
}
.inputButtonSplitter{
margin: 10px 0px;
display: flex;
flex-direction: row;
height: 50px;
width: calc(100% - 10px);
padding: 5px;
border-radius: 5px;
background: rgba(127, 127, 127, 0.4);
position: relative;
}
.inputButtonSplitterTitle{
position: absolute;
top: 0px;
height: 22px;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(127, 127, 127, 1);
font-size: 16px;
padding: 0px 10px;
border-radius: 5px;
}
.inputButtonSplitter > input{
margin-top: 10px;
background: transparent;
width: calc(100% - 40px);
font-family: var(--font-family);
font-size: 20px;
}
.inputButtonSplitter > button{
margin-top: 10px;
cursor: pointer;
margin-left: 10px;
width: 40px;
transition: 0.2s;
height: 40px;
border-radius: 5px;
font-size: 20px;
display: grid;
place-items: center;
outline: 0;
}


.problemTag > i{
margin-right: 10px;
}
Expand Down
26 changes: 15 additions & 11 deletions css/problem/dark.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
body{
color: #fff;
}
.HtmlContainer{
background: #333;
.HtmlContainer, .innerContentPage{
background: rgb(29, 33, 37);
}
.sideBar{
background: #555;
background: #2a2a2a;
}
.sideBarItem.chosen{
padding-left: 5px;
Expand All @@ -15,8 +15,8 @@ body{
background: #ff456b;
color: white;
}
.sideBarItem:hover{
background: #999;
.sideBarItem:hover, .addProblemSidebar:hover{
background: #888;
}
.ToolList{
border-bottom: 2px solid #555;
Expand All @@ -25,7 +25,7 @@ body{
background: #666;
}
.progressBar{
background: #616161;
background: #444;
}
.progressBar > div > div.actions:hover{
background: #777;
Expand All @@ -40,18 +40,22 @@ input{
background: #404040;
}
.blockManagerContent{
background: #474747;
background: #333;
}
.submitInterface{
background: #555;
.submitInterface, .addProblemInterface{
background: #302e35;
}
.bigButton{
background: transparent;
border: 1px solid #777;
color: white;
}
.inputButtonSplitter > button{
border: 1px solid #777;
color: white;
}
select{
background: #555;
background: #302e35;
}
a {color: #55d015;}
a:hover {color: #42c100;}
Expand All @@ -68,7 +72,7 @@ table > tr > th, table > tr > td { border-color:#fff; }
background: rgba(0, 0, 0, 0.85);
}
.sideBarGroupContents{
background: #777;
background: #555;
}


Expand Down
10 changes: 7 additions & 3 deletions css/problem/default.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
body{
color: #000;
}
.HtmlContainer{
.HtmlContainer, .innerContentPage{
background: #eee;
}
.sideBar{
Expand All @@ -15,7 +15,7 @@ body{
background: #ff456b;
color: white;
}
.sideBarItem:hover{
.sideBarItem:hover, .addProblemSidebar:hover{
background: #eee;
}
.ToolList{
Expand Down Expand Up @@ -46,13 +46,17 @@ input{
background: rgba(200, 200, 200, 0.95);
color: black;
}
.submitInterface{
.submitInterface, .addProblemInterface{
background: #ddd;
}
.bigButton{
border: 1px solid #777;
color: white;
}
.inputButtonSplitter > button{
border: 1px solid #777;
color: white;
}
select{
background: #ddd;
}
Expand Down
5 changes: 2 additions & 3 deletions js/authorize.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function submitSolution(ci, idx, code, lang, S, E){
success: function(data){
var csrf = queryCsrf.exec(data)[1];
$.ajax({
url: settings.mainURL + '/contest/' + ci + '/submit',
url: settings.mainURL + `/${ci >= 100000 ? "gym" : "contest"}/` + ci + '/submit',
type: "POST",
data: {
csrf_token: csrf,
Expand Down Expand Up @@ -211,8 +211,7 @@ function reloadLanguages(){

function loadContestPassedStatus(S, E){
if(currentLoginHandle == ""){
S();
return;
S(); return;
}
$.ajax({
url: settings.mainURL + '/contests',
Expand Down
Loading

0 comments on commit c922183

Please sign in to comment.