Skip to content

Commit 3398d02

Browse files
committed
Revert SICP changes
1 parent 64f5af2 commit 3398d02

File tree

5 files changed

+80
-106
lines changed

5 files changed

+80
-106
lines changed

src/i18n/locales/en/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import commons from './commons.json';
22
import grading from './grading.json';
33
import login from './login.json';
4-
import sicp from './sicp.json';
54
import autograder from './sideContent/autograder.json';
65
import contestLeaderboard from './sideContent/contestLeaderboard.json';
76
import contestVoting from './sideContent/contestVoting.json';
@@ -23,7 +22,6 @@ export default {
2322
login,
2423
translation: {
2524
...grading,
26-
...sicp,
2725
...sourcecast,
2826
...sourceRecorder,
2927
...stories,

src/i18n/locales/en/sicp.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/i18n/locales/zh-SG/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import commons from './commons.json';
22
import grading from './grading.json';
33
import login from './login.json';
4-
import sicp from './sicp.json';
54
import autograder from './sideContent/autograder.json';
65
import contestLeaderboard from './sideContent/contestLeaderboard.json';
76
import contestVoting from './sideContent/contestVoting.json';
@@ -23,7 +22,6 @@ export default {
2322
login,
2423
translation: {
2524
...grading,
26-
...sicp,
2725
...sourcecast,
2826
...sourceRecorder,
2927
...stories,

src/i18n/locales/zh-SG/sicp.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/pages/sicp/subcomponents/SicpIndexPage.tsx

Lines changed: 80 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,101 @@
11
import { H1, H2, H4 } from '@blueprintjs/core';
22
import React from 'react';
3-
import { useTranslation } from 'react-i18next';
43

54
import SicpToc from './SicpToc';
65

7-
const SicpIndexPage: React.FC = () => {
8-
const { t } = useTranslation();
6+
const originalAuthors = 'Harold Abelson and Gerald Jay Sussman';
7+
const originalWithAuthors = 'with Julie Sussman';
8+
const adaptedAuthors = 'Martin Henz and Tobias Wrigstad';
9+
const adaptedWithAuthors = 'with Julie Sussman';
10+
const developers = 'Samuel Fang';
911

10-
const authors = (
11-
<div className="sicp-authors">
12-
<H4>{t('sicp.originalAuthors')}</H4>
13-
<p>
14-
{t('sicp.originalAuthorsNote')}
15-
<i>— original authors</i>
16-
</p>
17-
<H4>{t('sicp.adaptedAuthors')}</H4>
12+
const authors = (
13+
<div className="sicp-authors">
14+
<H4>{originalAuthors}</H4>
15+
<p>
16+
{originalWithAuthors}
17+
<i>— original authors</i>
18+
</p>
19+
<H4>{adaptedAuthors}</H4>
20+
<p>
21+
{adaptedWithAuthors}
22+
<i>— adapters to JavaScript</i>
23+
</p>
24+
<H4>{developers}</H4>
25+
<p>
26+
<i>— designer and developer of this Interactive SICP JS edition</i>
27+
</p>
28+
</div>
29+
);
30+
31+
const bookTitle = (
32+
<div>
33+
<H1>Structure and Interpretation of Computer Programs</H1>
34+
<H2>— JavaScript Edition</H2>
35+
</div>
36+
);
37+
38+
const licenses = (
39+
<div className="sicp-licenses">
40+
<div>
41+
<a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="nofollow">
42+
<img src="https://licensebuttons.net/l/by-sa/4.0/88x31.png" alt="CC BY-SA 4.0" />
43+
</a>
44+
</div>
45+
<div>
1846
<p>
19-
{t('sicp.adaptedAuthorsNote')}
20-
<i>— adapters to JavaScript</i>
47+
This work is licensed under a{' '}
48+
<a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="nofollow">
49+
Creative Commons Attribution-ShareAlike 4.0 International License
50+
</a>
51+
.
2152
</p>
22-
<H4>{t('sicp.developers')}</H4>
53+
</div>
54+
<br />
55+
<div>
56+
<a href="https://www.gnu.org/licenses/gpl-3.0.en.html" rel="nofollow">
57+
<img
58+
src="https://camo.githubusercontent.com/46d38fe6087a9b9bdf7e45458901b818765b8391/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f372f37392f4c6963656e73655f69636f6e2d67706c2e7376672f353070782d4c6963656e73655f69636f6e2d67706c2e7376672e706e67"
59+
alt="GPL 3"
60+
data-canonical-src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/License_icon-gpl.svg/50px-License_icon-gpl.svg.png"
61+
/>
62+
</a>
63+
</div>
64+
<div>
2365
<p>
24-
{t('sicp.developersNote')}
25-
<i>— designer and developer of this Interactive SICP JS edition</i>
66+
All JavaScript programs in this work are licensed under the{' '}
67+
<a href="https://www.gnu.org/licenses/gpl-3.0.en.html" rel="nofollow">
68+
GNU General Public License Version 3
69+
</a>
70+
.
2671
</p>
2772
</div>
28-
);
29-
30-
const bookTitle = (
73+
<br />
3174
<div>
32-
<H1>{t('sicp.title')}</H1>
33-
<H2>{t('sicp.javascriptEdition')}</H2>
75+
<a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" rel="nofollow">
76+
<img src="https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png" alt="CC BY-NC-SA 4.0" />
77+
</a>
3478
</div>
35-
);
36-
37-
const licenses = (
38-
<div className="sicp-licenses">
39-
<div>
40-
<a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="nofollow">
41-
<img src="https://licensebuttons.net/l/by-sa/4.0/88x31.png" alt="CC BY-SA 4.0" />
42-
</a>
43-
</div>
44-
<div>
45-
<p>
46-
This work is licensed under a{' '}
47-
<a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="nofollow">
48-
Creative Commons Attribution-ShareAlike 4.0 International License
49-
</a>
50-
.
51-
</p>
52-
</div>
53-
<br />
54-
<div>
55-
<a href="https://www.gnu.org/licenses/gpl-3.0.en.html" rel="nofollow">
56-
<img
57-
src="https://camo.githubusercontent.com/46d38fe6087a9b9bdf7e45458901b818765b8391/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f372f37392f4c6963656e73655f69636f6e2d67706c2e7376672f353070782d4c6963656e73655f69636f6e2d67706c2e7376672e706e67"
58-
alt="GPL 3"
59-
data-canonical-src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/License_icon-gpl.svg/50px-License_icon-gpl.svg.png"
60-
/>
79+
<div>
80+
<p>
81+
<a
82+
href="https://mitpress.mit.edu/books/structure-and-interpretation-computer-programs-1"
83+
rel="nofollow"
84+
>
85+
Print and Kindle versions of this work{' '}
6186
</a>
62-
</div>
63-
<div>
64-
<p>
65-
All JavaScript programs in this work are licensed under the{' '}
66-
<a href="https://www.gnu.org/licenses/gpl-3.0.en.html" rel="nofollow">
67-
GNU General Public License Version 3
68-
</a>
69-
.
70-
</p>
71-
</div>
72-
<br />
73-
<div>
87+
are published by The MIT Press under a{' '}
7488
<a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" rel="nofollow">
75-
<img src="https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png" alt="CC BY-NC-SA 4.0" />
89+
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
7690
</a>
77-
</div>
78-
<div>
79-
<p>
80-
<a
81-
href="https://mitpress.mit.edu/books/structure-and-interpretation-computer-programs-1"
82-
rel="nofollow"
83-
>
84-
Print and Kindle versions of this work{' '}
85-
</a>
86-
are published by The MIT Press under a{' '}
87-
<a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" rel="nofollow">
88-
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
89-
</a>
90-
.
91-
</p>
92-
</div>
93-
<br />
91+
.
92+
</p>
9493
</div>
95-
);
94+
<br />
95+
</div>
96+
);
9697

98+
const SicpIndexPage: React.FC = () => {
9799
return (
98100
<div className="sicp-index-page">
99101
<div className="sicp-cover">

0 commit comments

Comments
 (0)