-
Notifications
You must be signed in to change notification settings - Fork 64
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 #532 from SebastianJitaru29/feat-emotions
Feat emotions - FrontEnd
- Loading branch information
Showing
22 changed files
with
2,444 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,6 @@ | |
} | ||
} | ||
}, | ||
"etags": {} | ||
"etags": {}, | ||
"dataconnectEmulatorConfig": {} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,4 +78,4 @@ | |
"vue-template-compiler": "^2.6.12", | ||
"vuetify-loader": "^1.6.0" | ||
} | ||
} | ||
} |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[tool.poetry] | ||
name = "ruxailab" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["SebastianJitaru <[email protected]>"] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.12" | ||
httplib2 = "^0.22.0" | ||
idna = "^3.7" | ||
itsdangerous = "^2.2.0" | ||
jinja2 = "^3.1.4" | ||
markupsafe = "^2.1.5" | ||
msgpack = "^1.0.8" | ||
numpy = "^1.26.4" | ||
packaging = "^24.0" | ||
pandas = "^2.2.2" | ||
proto-plus = "^1.23.0" | ||
pyasn1 = "^0.6.0" | ||
pyasn1-modules = "^0.4.0" | ||
pycparser = "^2.22" | ||
pyjwt = "^2.8.0" | ||
pyparsing = "^3.1.2" | ||
python-dateutil = "^2.9.0.post0" | ||
pytz = "^2024.1" | ||
pyyaml = "^6.0.1" | ||
requests = "^2.31.0" | ||
rsa = "^4.9" | ||
six = "^1.16.0" | ||
tabulate = "^0.9.0" | ||
typing-extensions = "^4.11.0" | ||
tzdata = "^2024.1" | ||
uritemplate = "^4.1.1" | ||
urllib3 = "^2.2.1" | ||
watchdog = "^4.0.0" | ||
werkzeug = "^3.0.3" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Empty file.
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,40 @@ | ||
<template> | ||
<v-card class="mx-auto my-4 pa-2" outlined> | ||
<v-simple-table> | ||
<thead> | ||
<tr> | ||
<th class="text-center">COLLABORATOR</th> | ||
<th class="text-center">AVG HAPPINESS</th> | ||
<th class="text-center">DOMINANT EMOTION</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr v-for="collaborator in collaborators" :key="collaborator.name"> | ||
<td class="text-center">{{ collaborator.name }}</td> | ||
<td class="text-center">{{ collaborator.attention }}</td> | ||
<td class="text-center">{{ collaborator.emotion }}</td> </tr> | ||
</tbody> | ||
</v-simple-table> | ||
</v-card> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'SummaryTable', | ||
props: { | ||
collaborators: { | ||
type: Array, | ||
required: true, | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.v-card { | ||
border: 1px solid #f4b700; | ||
} | ||
.text-center { | ||
text-align: center; | ||
} | ||
</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,66 @@ | ||
<template> | ||
<div> | ||
<IntroComp | ||
:colors="['#3498db', '#2e9ecc']" | ||
:title="'Emotions'" | ||
:image="'IntroEmotions.png'" | ||
:main="$t('descriptions.intro.emotions')" | ||
:link="$t('descriptions.intro.invite')" | ||
:items="items" | ||
@linkClicked="emitLinkClicked" | ||
@callFunc="emitCallFunc" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import IntroComp from '@/components/atoms/IntrosComponent' | ||
import i18n from '@/i18n' | ||
export default { | ||
components: { | ||
IntroComp, | ||
}, | ||
computed: { | ||
items() { | ||
return [ | ||
{ | ||
iconColor: '#4bbdaf', | ||
icon: 'mdi-file-document', | ||
title: i18n.t('pages.intros.docTitle'), | ||
subtitle: i18n.t('pages.intros.docSubtitle') + i18n.t('titles.answers'), | ||
func: 'goToDoc', | ||
}, | ||
{ | ||
iconColor: '#4bbdaf', | ||
icon: 'mdi-emoticon-happy', | ||
title: i18n.t('pages.intros.discTitle'), | ||
subtitle: i18n.t('pages.intros.discSubtitle'), | ||
func: 'goToDisc', | ||
}, | ||
] | ||
}, | ||
}, | ||
methods: { | ||
emitLinkClicked() { | ||
this.$emit('linkClicked') | ||
}, | ||
emitCallFunc(func) { | ||
this[func]() | ||
}, | ||
goToDoc() { | ||
this.$router.push('/emotions/documentation').catch(() => {}) | ||
}, | ||
goToDisc() { | ||
window.open('https://discord.gg/MFWNpwTq9q') | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.intro-container { | ||
text-align: center; | ||
padding: 20px; | ||
} | ||
</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,23 @@ | ||
// src/controllers/VideoAnalysisController.js | ||
import Controller from '@/controllers/BaseController'; | ||
import VideoAnalysis from '@/models/VideoAnalysisModel'; | ||
|
||
const baseController = new Controller(); | ||
|
||
export default { | ||
async fetchVideoAnalysisData(docId) { | ||
try { | ||
const doc = await baseController.readOne('VideoAnalysis', docId); | ||
console.log('docid', docId); | ||
if (doc.exists()) { | ||
console.log('doc', doc.data()); | ||
return VideoAnalysis.fromFirestore(doc.data()); | ||
} else { | ||
throw new Error('Document does not exist'); | ||
} | ||
} catch (error) { | ||
console.error('Error fetching video analysis data:', error); | ||
throw error; | ||
} | ||
} | ||
}; |
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,21 @@ | ||
// src/models/VideoAnalysisModel.js | ||
export default class VideoAnalysis { | ||
constructor({ | ||
fragment1 = {}, | ||
fragment2 = {}, | ||
} = {}) { | ||
this.fragment1 = fragment1; | ||
this.fragment2 = fragment2; | ||
} | ||
|
||
static fromFirestore(data) { | ||
return new VideoAnalysis(data); | ||
} | ||
|
||
toFirestore() { | ||
return { | ||
fragment1: this.fragment1, | ||
fragment2: this.fragment2, | ||
}; | ||
} | ||
} |
Oops, something went wrong.