Skip to content

Commit

Permalink
fix issues with syncing progress and Vue warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhou committed Apr 18, 2024
1 parent 083e2b7 commit e4b4235
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" href="/thresh/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<script type="module" crossorigin src="/thresh/assets/index-00e153d4.js"></script>
<script type="module" crossorigin src="/thresh/assets/index-fc3d6247.js"></script>
</head>
<body class="sans-serif">
<div id="app"></div>
Expand Down
3 changes: 2 additions & 1 deletion src/components/common/Instructions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export default {
<template>
<main>
<section v-if="config.instructions && config.prepend_instructions">
<vue-markdown :source=config.instructions :options="options" class="mt0 mb0" />
<!-- <vue-markdown :source=config.instructions :options="options" class="mt0 mb0" /> -->
<vue-markdown :source=config.instructions class="mt0 mb0" />
<br /><hr /><br />
</section>

Expand Down
9 changes: 5 additions & 4 deletions src/components/hitbox/HitBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ export default {
projectId: this.config.database.project_id,
});
const collection = this.config.database.collection || 'thresh_progress';
const collection ='thresh_progress';
const doc_id = 'annotations';
const domain = this.config.database.domain || '';
// Get Prolific information if it exists
// if (this.config.crowdsource == "prolific") {
Expand All @@ -244,8 +245,8 @@ export default {
}
// }
const field_id = prolific.cnet_id + "_" + prolific.exp_id + "_" + prolific.session_id;//this.config.database.field;
const field_id = domain + '_' + prolific.cnet_id;
const db = getFirestore(firebaseApp);
const docRef = doc(db, collection, doc_id);
Expand Down Expand Up @@ -281,7 +282,7 @@ export default {
projectId: this.config.database.project_id,
});
const collection = this.config.database.collection || 'thresh_progress';
const collection = 'thresh_progress';
const doc_id = 'annotations';
const domain = this.config.database.domain || '';
Expand Down

0 comments on commit e4b4235

Please sign in to comment.