Skip to content

Commit

Permalink
change firebase fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhou committed Apr 18, 2024
1 parent 01a9199 commit 544a096
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 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-c1d06e59.js"></script>
<script type="module" crossorigin src="/thresh/assets/index-00e153d4.js"></script>
</head>
<body class="sans-serif">
<div id="app"></div>
Expand Down
4 changes: 2 additions & 2 deletions dist/lang/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ buttons:
show_context_label: "Show Context"
hide_context_label: "Hide Context"
hit_box:
hit_label: "Hit"
hit_label: "Task"
annotation_editor:
add_edit_header: "Adding an Edit"
select_edit_header: "Select the Edit Category."
Expand All @@ -45,7 +45,7 @@ annotation_viewer:
questions:
binary_yes: "Yes"
binary_no: "No"
likert_1: "1 - minor"
likert_1: "1 - a little"
likert_2: "2 - somewhat"
likert_3: "3 - a lot"
textbox_placeholder: "Write your answer..."
18 changes: 10 additions & 8 deletions src/components/hitbox/HitBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ export default {
projectId: this.config.database.project_id,
});
const collection = this.config.database.collection || 'thresh';
const doc_id = 'progress';
const collection = this.config.database.collection || 'thresh_progress';
const doc_id = 'annotations';
// Get Prolific information if it exists
// if (this.config.crowdsource == "prolific") {
Expand Down Expand Up @@ -281,8 +281,9 @@ export default {
projectId: this.config.database.project_id,
});
const collection = this.config.database.collection || 'thresh';
const doc_id = 'progress';
const collection = this.config.database.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 @@ -291,11 +292,11 @@ export default {
"completion_code": this.config.prolific_completion_code || null,
"cnet_id": params.get("CNET_ID") || null,
"exp_id": params.get("EXP_ID") || null,
"session_id": params.get("SESSION_ID") || null
"session_id": params.get("SESSION_ID") || null,
}
// }
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 All @@ -321,6 +322,7 @@ export default {
const collection = this.config.database.collection || 'thresh';
const doc_id = this.config.database.document || 'annotations';
const domain = this.config.database.domain || '';
// const field_id = this.config.database.field;
// Get Prolific information if it exists
Expand All @@ -329,10 +331,10 @@ export default {
"completion_code": this.config.prolific_completion_code || null,
"cnet_id": params.get("CNET_ID") || null,
"exp_id": params.get("EXP_ID") || null,
"session_id": params.get("SESSION_ID") || null
"session_id": params.get("SESSION_ID") || null,
}
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

0 comments on commit 544a096

Please sign in to comment.