-
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.
Merge pull request #71 from LS-LEDA/dev
Sentiment Analysis
- Loading branch information
Showing
24 changed files
with
677 additions
and
88 deletions.
There are no files selected for viewing
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 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,36 @@ | ||
export const overallSentimentChartData = { | ||
type: 'doughnut', | ||
data: { | ||
labels: [ | ||
"Positive", | ||
"Neutral", | ||
"Negative", | ||
], | ||
datasets: [{ | ||
label: '', | ||
data: [], | ||
backgroundColor: [ | ||
'rgba(66, 196, 158, 0.6)', | ||
'rgba(233, 196, 106, 0.6)', | ||
'rgba(225, 86, 86, 0.6)', | ||
], | ||
borderColor: [ | ||
'rgba(66, 196, 158, 1)', | ||
'rgba(233, 196, 106, 1)', | ||
'rgba(225, 86, 86, 1)', | ||
], | ||
borderWidth: 2 | ||
}] | ||
}, | ||
options: { | ||
responsive: true, | ||
plugins: { | ||
legend: { | ||
display: true, | ||
position: 'right', | ||
}, | ||
} | ||
} | ||
} | ||
|
||
export default overallSentimentChartData; |
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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<template> | ||
<div class="flex w-full h-auto gap-x-3 hover:cursor-pointer"> | ||
<!-- Profile Logo --> | ||
<div class="flex rounded-xl bg-blue-300 h-16 w-1/12"> | ||
<svg-icon class="w-full h-full" type="mdi" :path="profile_icon"/> | ||
</div> | ||
|
||
<!-- Message Box --> | ||
<div class="flex flex-col w-full bg-blue-200 rounded-xl p-10 text-justify border-r-8" | ||
:class="border_color()"> | ||
<div class="flex justify-between"> | ||
<div class="text-gray-500 font-bold"> @{{ messages.username }} </div> | ||
<div class="text-gray-400"> {{ messages.created }} </div> | ||
</div> | ||
<div> {{ messages.message }} </div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import SvgIcon from "@jamescoyle/vue-icon"; | ||
import {mdiAccount} from "@mdi/js"; | ||
export default { | ||
name: "SentimentChatCard", | ||
components: { | ||
SvgIcon | ||
}, | ||
props: ['messages'], | ||
data() { | ||
return { | ||
profile_icon: mdiAccount, | ||
} | ||
}, | ||
methods: { | ||
border_color: function () { | ||
switch (this.messages.sentiment){ | ||
case "positive": | ||
return 'border-green-500'; | ||
case "negative": | ||
return 'border-red-500'; | ||
default: | ||
return 'border-yellow-500'; | ||
} | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
</style> |
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,33 @@ | ||
<template> | ||
<div class="flex flex-col rounded-lg bg-white w-full h-full p-10"> | ||
<div class="font-extrabold uppercase"> Forum File Data </div> | ||
<div class="flex flex-col"> | ||
<!-- Forum message file name --> | ||
<div class="flex justify-between"> | ||
<div class="font-bold"> File name </div> | ||
<div class="flex"> {{ file_name }} </div> | ||
</div> | ||
<!-- Forum total messages --> | ||
<div class="flex justify-between"> | ||
<div class="font-bold"> Messages </div> | ||
<div> {{ messages }} </div> | ||
</div> | ||
<!-- Forum total users --> | ||
<div class="flex justify-between"> | ||
<div class="font-bold"> Users </div> | ||
<div> {{ users }} </div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "SentimentFileCard", | ||
props: ['file_name', 'messages', 'users'] | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
</style> |
Oops, something went wrong.