Skip to content

Commit

Permalink
refactor: commit before pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianJitaru29 committed Aug 9, 2024
1 parent 3fcd1b2 commit 7c59b1e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
5 changes: 2 additions & 3 deletions src/components/atoms/BarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ export default {
extends: Bar,
props: {
labels: {
type: String,
default: 'Data One',
},
type: Array,
default: () => ['Label 1', 'Label 2', 'Label 3'], },
data: {
type: Array,
default: () => [],
Expand Down
16 changes: 8 additions & 8 deletions src/firebase/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ import { initializeApp } from 'firebase/app'
import { getAnalytics } from 'firebase/analytics'
import {
getAuth,
connectAuthEmulator,
//connectAuthEmulator,
} from 'firebase/auth'
import {
getFirestore,
connectFirestoreEmulator,
//connectFirestoreEmulator,
} from 'firebase/firestore'
import {
getFunctions,
connectFunctionsEmulator,
//connectFunctionsEmulator,
} from 'firebase/functions'
import {
getStorage,
connectStorageEmulator,
//connectStorageEmulator,
} from 'firebase/storage'

const firebaseConfig = {
Expand All @@ -34,9 +34,9 @@ const analytics = getAnalytics(firebaseApp)
const fbFunctions = getFunctions(firebaseApp)
const storage = getStorage(firebaseApp, `gs://${firebaseConfig.storageBucket}`)

connectFirestoreEmulator(db, 'localhost', 8081)
connectAuthEmulator(auth, 'http://localhost:9099')
connectFunctionsEmulator(fbFunctions, 'localhost', 5001)
connectStorageEmulator(storage, '127.0.0.1', 9199)
// connectFirestoreEmulator(db, 'localhost', 8081)
// connectAuthEmulator(auth, 'http://localhost:9099')
// connectFunctionsEmulator(fbFunctions, 'localhost', 5001)
// connectStorageEmulator(storage, '127.0.0.1', 9199)

export { auth, db, analytics, fbFunctions, storage }
6 changes: 4 additions & 2 deletions src/views/admin/VideoAnalysisView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default {
{ text: 'Neutral', value: 'neutral' },
],
collaborators: [
{ name: 'Name 1', attention: '25%', emotion: 'Happy'},
{ name: 'sjd1', attention: '19.57', emotion: 'Surprise'},
],
};
},
Expand Down Expand Up @@ -125,7 +125,9 @@ export default {
},
created() {
const docId = this.$route.params.id;
this.fetchVideoAnalysisData(docId);
console.log(docId); //route sesion id, to be used when fully integrated
this.fetchVideoAnalysisData("nPbTHDp2FlWJ4PPyncWx");
},
methods: {
...mapActions('VideoAnalysis', ['fetchVideoAnalysisData']),
Expand Down

0 comments on commit 7c59b1e

Please sign in to comment.