-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove frontend; implement frontend in django
- Loading branch information
1 parent
d50491e
commit 7d64901
Showing
23 changed files
with
71 additions
and
11,236 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
applications/backend/django_server/news/templates/home.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html lang=""> | ||
<head> | ||
<title>Folio Feed</title> | ||
</head> | ||
<body> | ||
<h1>Folio Feed</h1> | ||
|
||
<p>Your Tickers:</p> | ||
<ul> | ||
{% for ticker in tickers %} | ||
<li>{{ ticker }}</li> | ||
{% endfor %} | ||
</ul> | ||
|
||
<p>Here is news analysis for {{date}}:</p> | ||
{% for analysis in analysis_items %} | ||
<h2><a href="{% url 'news' analysis.symbol date %}">{{ analysis.symbol }}</a></h2> | ||
<p>Avg Sentiment: {{ analysis.average_sentiment }}</p> | ||
<p>Number of Articles: {{ analysis.total_news }}</p> | ||
<p>Number of Positive Articles: {{ analysis.positive_news }}</p> | ||
<p>Number of Negative Articles: {{ analysis.negative_news }}</p> | ||
<p>Number of Neutral Articles: {{ analysis.neutral_news }}</p> | ||
<p> Need Attention: {{analysis.need_attention}}</p> | ||
{% endfor %} | ||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
applications/backend/django_server/news/templates/news.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<h1>{{symbol}} on {{date}}</h1> | ||
|
||
{% for item in news %} | ||
<h2>{{item.headline}}</h2> | ||
<img src="{{item.img_src_url}}"/> | ||
<p>{{item.summary}} <a href="{{item.src_url}}">{{more}}</a></p> | ||
<p>Sentiment: {{item.sentiment}}</p> | ||
<p>Need Attention: {{item.need_attention}}</p> | ||
<p>Why ? {{item.reason}}</p> | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.