Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server and client side changes to implement the final project complete #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
36,465 changes: 36,465 additions & 0 deletions sentimentAnalyzeClient/package-lock.json

Large diffs are not rendered by default.

27 changes: 3 additions & 24 deletions sentimentAnalyzeClient/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,13 @@
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />

<title>🤖| Analizador de opiniones</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
6 changes: 3 additions & 3 deletions sentimentAnalyzeClient/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ class App extends React.Component {
let output = data.label;
let color = "white"
switch(output) {
case "positive": color = "black";break;
case "negative": color = "black";break;
default: color = "black";
case "positive": color = "green";break;
case "negative": color = "red";break;
default: color = "yellow";
}
output = <div style={{color:color,fontSize:20}}>{output}</div>
this.setState({sentimentOutput:output});
Expand Down
32 changes: 20 additions & 12 deletions sentimentAnalyzeClient/src/EmotionTable.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
import React from 'react';
import './bootstrap.min.css';



class EmotionTable extends React.Component {
render() {
//Returns the emotions as an HTML table
return (
<div>
<table className="table table-bordered">
<tbody>
{
/*Write code to use the .map method that you worked on in the
Hands-on React lab to extract the emotions. If you are stuck,
please click the instructions to see how to implement a map*/
}
</tbody>
</table>
<div>
<table className="table table-bordered">
<tbody>
{Object.entries(this.props.emotions).map(function (mapentry) {
return (
<tr>
<td>{mapentry[0]}</td>
<td>{mapentry[1]}</td>
</tr>
)
})
}
</tbody>
</table>
</div>
);
);

}

}
export default EmotionTable;
export default EmotionTable;

20,363 changes: 10,435 additions & 9,928 deletions sentimentAnalyzeClient/yarn.lock

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions sentimentAnalyzeServer/node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions sentimentAnalyzeServer/node_modules/.bin/mime.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions sentimentAnalyzeServer/node_modules/.bin/mime.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions sentimentAnalyzeServer/node_modules/.bin/node-gyp-build

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions sentimentAnalyzeServer/node_modules/.bin/node-gyp-build-optional

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions sentimentAnalyzeServer/node_modules/.bin/node-gyp-build-test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions sentimentAnalyzeServer/node_modules/.bin/node-gyp-build-test.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions sentimentAnalyzeServer/node_modules/.bin/node-gyp-build-test.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions sentimentAnalyzeServer/node_modules/.bin/node-gyp-build.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions sentimentAnalyzeServer/node_modules/.bin/node-gyp-build.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions sentimentAnalyzeServer/node_modules/.bin/nodemon

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions sentimentAnalyzeServer/node_modules/.bin/nodemon.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions sentimentAnalyzeServer/node_modules/.bin/nodemon.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading