Skip to content

Commit 6178476

Browse files
AnthonytorreroAnthonytorrero
authored andcommitted
cleaned up some code on server.js and updated README
1 parent 7a1099d commit 6178476

File tree

4 files changed

+5
-56
lines changed

4 files changed

+5
-56
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Download for [MacOS](https://github.com/team-reactype/ReacType/releases), [Windo
1616

1717
- **Mac users**: After opening the dmg and dragging ReacType into your Applications folder, ctrl+click the icon and select 'Open' from the context menu to run the app. This extra step is necessary since we don't have an Apple developer license yet.
1818

19-
- **Windows users**: Install the application by running ReacType Setup 5.0.0.exe.
19+
- **Windows users**: Install the application by running ReacType Setup 6.0.0.exe.
2020

2121
- **Linux users**: Run the application as a super user in order to read and write files.
2222

@@ -44,14 +44,16 @@ Download for [MacOS](https://github.com/team-reactype/ReacType/releases), [Windo
4444

4545
**New with version 6.0:**
4646

47-
### Dashboard
47+
### Features
4848

4949
- **Dashboard**: Click the 'Dashboard' button to view the Public Dashboard and User Dashboard.
5050
- **Like**: Like other people's templates by clicking on the star icon.
5151
- **Comment**: Comment on other templates by typing in the input field and clicking the comment icon.
5252
- **Download**: Save any public template by clicking the download icon to save a copy as your own.
5353
- **Publish**: Publish any template to the Public Dashboard for other users to download, like, or comment on. Click again to unpublish projects.
5454
- **Sort By**: Click the 'Sort By' button to choose different metrics to sort the Public Dashboard by.
55+
- **Form Nesting**: Nesting within form tags is now fully functional
56+
- **Added Undo and Redo functionality**
5557

5658
### Keyboard Shortcuts
5759

app/src/Dashboard/styles.css

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
/* @import url('https://fonts.googleapis.com/css2?family=Cabin&family=Oswald&display=swap');
2-
3-
4-
5-
$primary-black: #22292f;
6-
$secondary-black: #606f7b;
7-
$teriary-grey: #f0f0f0;
8-
$light-grey: #bfcbd4;
9-
$light-blue: #759cc9;
10-
$button-blue: #24BCFF; */
11-
12-
13-
/* .project{
14-
display: flex;
15-
flex-direction: column;
16-
background-color: white;
17-
color: #606f7b;
18-
align-items: center;
19-
height: 300px;
20-
justify-content: min;
21-
width: 250px;
22-
} */
231

242
.project {
253
display: flex;
@@ -34,25 +12,7 @@ $button-blue: #24BCFF; */
3412
justify-content: space-between;
3513
}
3614

37-
38-
/* .form , .project{
39-
display: flex;
40-
flex-direction: column;
41-
background-color: white;
42-
border: 1px solid #f0f0f0;
43-
box-shadow: 0 0 5px rgba(0,0,0,0.3);
44-
margin: 5px;
45-
border-radius: 5px;
46-
color: #606f7b;
47-
align-items: center;
48-
height: 300px;
49-
justify-content: min;
50-
width: 250px;
51-
} */
52-
53-
5415
.dashboardContainer {
55-
/* overflow: scroll; */
5616
height: 100%;
5717
}
5818

@@ -120,10 +80,3 @@ $button-blue: #24BCFF; */
12080
h1 {
12181
text-align: center;
12282
}
123-
/* .projectContainer {
124-
display: flex;
125-
flex-direction: row;
126-
align-items: center;
127-
justify-content: center;
128-
width: 100%;
129-
} */

app/src/helperFunctions/renderChildren.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const renderChildren = (children: ChildElement[]) => {
5757
/>
5858
);
5959
}
60-
else if (type === 'HTML Element' && typeId === 1000 /* || typeId === 2 */) {
60+
else if (type === 'HTML Element' && typeId === 1000 ) {
6161
return (
6262
<SeparatorChild
6363
childId={childId}

server/server.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,6 @@ const server = new ApolloServer({ typeDefs, resolvers });
7979
server.applyMiddleware({ app });
8080
/** ****************************************************************** */
8181

82-
// app.use(express.static(path.resolve(__dirname, '../app/dist')));
83-
84-
app.get('/', (req, res) => {
85-
return res.status(200).sendFile(path.resolve(__dirname, '../app/dist/index-prod.html'));
86-
});
87-
8882
app.post(
8983
'/signup',
9084
userController.createUser,

0 commit comments

Comments
 (0)