Skip to content

Commit de867ad

Browse files
authored
Merge pull request #104 from code-dot-org/cleanup
Cleanup unused activities/code
2 parents 70b0d31 + edf9af1 commit de867ad

20 files changed

+2
-1296
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"author": "",
2525
"license": "Apache-2.0",
2626
"devDependencies": {
27-
"@code-dot-org/p5.play": "^1.3.12-cdo",
2827
"@tensorflow-models/knn-classifier": "^0.2.2",
2928
"@tensorflow-models/mobilenet": "^0.2.2",
3029
"@tensorflow/tfjs": "^0.13.0",
-21.7 KB
Binary file not shown.

public/images/pipes-background.png

-503 KB
Binary file not shown.
-158 KB
Binary file not shown.
-627 KB
Loading

src/MLActivities.jsx

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import React from 'react';
22
import RPS from './activities/rps/RPS';
33
import ImageRecognition from './activities/imageRecognition/ImageRecognition';
4-
import CreatureCreator from './activities/creatureCreator/CreatureCreator';
5-
import PondCreator from './activities/hoc2019/PondCreator';
6-
import SpritesheetFish from './activities/hoc2019/SpritesheetFish';
74
import Button from 'react-bootstrap/lib/Button';
85
import Row from 'react-bootstrap/lib/Row';
96
import Col from 'react-bootstrap/lib/Col';
@@ -13,15 +10,12 @@ import Panel from 'react-bootstrap/lib/Panel';
1310
const Activity = Object.freeze({
1411
None: 0,
1512
RPS: 1,
16-
ImageRecognition: 2,
17-
CreatureCreator: 3,
18-
PondCreator: 4,
19-
SpritesheetFish: 5
13+
ImageRecognition: 2
2014
});
2115

2216
module.exports = class MLActivities extends React.Component {
2317
state = {
24-
currentActivity: Activity.PondCreator
18+
currentActivity: Activity.None
2519
};
2620

2721
render() {
@@ -59,33 +53,6 @@ module.exports = class MLActivities extends React.Component {
5953
>
6054
Pick Image Recognition Activity
6155
</Button>
62-
<Button
63-
onClick={() =>
64-
this.setState({
65-
currentActivity: Activity.CreatureCreator
66-
})
67-
}
68-
>
69-
Pick Creature Creator
70-
</Button>
71-
<Button
72-
onClick={() =>
73-
this.setState({
74-
currentActivity: Activity.PondCreator
75-
})
76-
}
77-
>
78-
Pick Pond Creator
79-
</Button>
80-
<Button
81-
onClick={() =>
82-
this.setState({
83-
currentActivity: Activity.SpritesheetFish
84-
})
85-
}
86-
>
87-
Pick Spritesheet Fish
88-
</Button>
8956
</div>
9057
)}
9158
{this.state.currentActivity === Activity.RPS && (
@@ -98,21 +65,6 @@ module.exports = class MLActivities extends React.Component {
9865
<ImageRecognition />
9966
</Panel>
10067
)}
101-
{this.state.currentActivity === Activity.CreatureCreator && (
102-
<Panel>
103-
<CreatureCreator />
104-
</Panel>
105-
)}
106-
{this.state.currentActivity === Activity.PondCreator && (
107-
<Panel>
108-
<PondCreator />
109-
</Panel>
110-
)}
111-
{this.state.currentActivity === Activity.SpritesheetFish && (
112-
<Panel>
113-
<SpritesheetFish />
114-
</Panel>
115-
)}
11668
</Col>
11769
<Col xs={2} />
11870
</Row>

src/activities/creatureCreator/CreatureCreator.jsx

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

src/activities/hoc2019/FishGrid.jsx

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

0 commit comments

Comments
 (0)