Skip to content

Commit 454b038

Browse files
committed
Version 0.8
- Changed to Markdown for challenge descriptions along with math & code blocks support - Added announcements with markdown support - Added challenge filtering in tag sorting page & 1 new filter - Fixed some bugs with loading challenge names with special chars - Improved performance greatly using lazy loading and more
1 parent eaae5d8 commit 454b038

29 files changed

+2283
-1443
lines changed

client/package-lock.json

+1,356-670
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

+14-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@ant-design/dark-theme": "^2.0.2",
76
"@testing-library/jest-dom": "^4.2.4",
87
"@testing-library/react": "^11.2.7",
98
"@testing-library/user-event": "^7.1.2",
@@ -13,16 +12,21 @@
1312
"lodash": "^4.17.21",
1413
"react": "^17.0.1",
1514
"react-dimensions": "^1.3.1",
16-
"react-dom": "^16.13.1",
15+
"react-dom": "^17.0.1",
1716
"react-jsx-parser": "^1.28.1",
1817
"react-markdown": "^6.0.2",
18+
"react-mathjax": "^1.0.1",
1919
"react-router": "^5.2.0",
2020
"react-router-dom": "^5.2.0",
2121
"react-scripts": "4.0.3",
2222
"react-spinners-css": "^1.1.9",
2323
"react-spring": "^9.1.2",
2424
"react-syntax-highlighter": "^15.4.3",
25-
"recharts": "^2.0.9"
25+
"recharts": "^2.0.9",
26+
"rehype-katex": "^5.0.0",
27+
"rehype-raw": "^5.1.0",
28+
"remark-gfm": "^1.0.0",
29+
"remark-math": "^4.0.0"
2630
},
2731
"scripts": {
2832
"start": "react-app-rewired start",
@@ -31,7 +35,10 @@
3135
"eject": "react-scripts eject"
3236
},
3337
"eslintConfig": {
34-
"extends": "react-app"
38+
"ignorePatterns": [
39+
"src/*",
40+
"!src/test.js"
41+
]
3542
},
3643
"browserslist": {
3744
"production": [
@@ -47,14 +54,11 @@
4754
},
4855
"devDependencies": {
4956
"babel-plugin-import": "^1.13.3",
50-
"css-loader": "^3.5.3",
57+
"css-loader": "^5.2.6",
58+
"cssnano": "^5.0.4",
5159
"customize-cra": "^1.0.0",
5260
"less-loader": "^6.1.0",
5361
"react-app-rewired": "^2.1.8",
54-
"style-loader": "^1.2.1",
55-
"terser-webpack-plugin": "^3.0.2"
56-
},
57-
"eslintConfig": {
58-
"ignorePatterns": ["src/*", "!src/test.js"]
62+
"style-loader": "^2.0.0"
5963
}
6064
}

client/src/App.css

+51-28
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,118 @@
11
.buttonHover {
22
background-color: #1765ad;
3-
transition: 0.3s;
3+
transition: .3s
44
}
5+
56
.buttonHover:hover {
6-
background-color: #15395b;
7+
background-color: #15395b
78
}
89

910
.ant-layout-sider {
10-
width: "10vw" !important;
11-
min-width: "5vw" !important;
11+
width: "10vw"!important;
12+
min-width: "5vw"!important
1213
}
1314

1415
@keyframes slideInFromLeft {
1516
0% {
1617
transform: translateX(-20%);
17-
opacity: 0;
18+
opacity: 0
1819
}
1920
100% {
2021
transform: translateX(0);
21-
opacity: 1;
22+
opacity: 1
2223
}
2324
}
2425

2526
.pageTransition {
26-
animation-duration: 0.3s;
27+
animation-duration: .3s;
2728
animation-timing-function: ease-out;
2829
animation-delay: 0s;
2930
animation-iteration-count: 1;
30-
animation-name: slideInFromLeft;
31+
animation-name: slideInFromLeft
3132
}
3233

3334
@keyframes slideInFromTop {
3435
0% {
3536
transform: translateY(50%);
36-
opacity: 1;
37+
opacity: 1
3738
}
3839
100% {
3940
transform: translateY(0);
40-
opacity: 1;
41+
opacity: 1
4142
}
4243
}
4344

4445
.pageSwitch {
45-
animation-duration: 0.38s;
46+
animation-duration: .38s;
4647
animation-timing-function: ease-out;
4748
animation-delay: 0s;
4849
animation-iteration-count: 1;
49-
animation-name: slideInFromTop;
50+
animation-name: slideInFromTop
5051
}
5152

5253
.card-design {
53-
border-color: #1890ff !important;
54-
border-radius: 5px !important;
55-
transition: 0.35s !important;
54+
border-color: #1890ff!important;
55+
border-radius: 5px!important;
56+
transition: .35s!important
5657
}
5758

5859
.card-design:hover {
59-
opacity: 0.5;
60+
opacity: .5
6061
}
6162

6263
::-webkit-scrollbar-track {
63-
-webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
64-
background-color: #1f1f1f;
64+
-webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, .3);
65+
background-color: #1f1f1f
6566
}
6667

6768
::-webkit-scrollbar {
6869
width: 10px;
69-
background-color: #8c8c8c;
70+
background-color: #8c8c8c
7071
}
7172

7273
::-webkit-scrollbar-thumb {
7374
-webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, .3);
74-
background-color: #8c8c8c;
75+
background-color: #8c8c8c
7576
}
7677

7778
.create_challenge_form h1 {
78-
font-size: 120%;
79+
font-size: 120%
7980
}
8081

8182
.loadingStyle {
82-
display: "flex" !important;
83-
width: "100%" !important;
84-
justify-content: "center";
85-
justify-items: "center";
86-
position: absolute;
83+
display: flex!important;
84+
width: "100%"!important;
85+
justify-content: center;
86+
justify-items: center;
87+
position: absolute
8788
}
8889

8990
.ant-table {
90-
background:rgba(0, 0, 0, 0.5) !important;
91+
background: rgba(0, 0, 0, .5)!important
9192
}
9293

9394
.ant-table-container {
94-
overflow: auto;
95+
overflow: auto
96+
}
97+
98+
.w-md-editor {
99+
background-color: transparent !important;
100+
border: 1px solid #434343 !important;
101+
caret-color: rgba(255, 255, 255, 0.85) !important;
102+
}
103+
104+
.w-md-editor ::selection {
105+
background-color: rgba(24, 144, 255, 0.5);
106+
}
107+
108+
.wmde-markdown-color code[class*="language-"] {
109+
color: rgba(255, 255, 255, 0.85) !important;
110+
}
111+
112+
.w-md-editor-toolbar {
113+
background-color: #d9d9d9 !important;
114+
}
115+
116+
.w-md-editor-text-pre .title, .w-md-editor-text-pre .bold {
117+
color: rgba(255, 255, 255, 0.85) !important;
95118
}

0 commit comments

Comments
 (0)