Skip to content

Commit

Permalink
Merge branch 'ref-photodiode_spot' into ref-fixation
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertGemmaJr committed Dec 13, 2023
2 parents d9c6494 + 3e446e6 commit 38a5f0a
Show file tree
Hide file tree
Showing 33 changed files with 1,619 additions and 1,437 deletions.
4 changes: 1 addition & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ psiturkit/*_turk
/.vscode
/.env
.env
/.pnp
.pnp.js
.gitignore
.DS_Store
.gitignore
**/firebase-service-account.json
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ module.exports = {
},
plugins: ["react"],
rules: {
"react/prop-types": "off", // TODO: These should be added so the rule can be removed
"no-unused-vars": "warn",
"react/prop-types": "off", // TODO #223: These should be added so the rule can be removed
"import/order": "warn",
},
settings: {
Expand Down
8 changes: 8 additions & 0 deletions assets/icons/hexagon-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/icon.icns
Binary file not shown.
Binary file added assets/icons/icon.ico
Binary file not shown.
Binary file added assets/icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/icons/mac/icon.icns
Binary file not shown.
Binary file removed assets/icons/win/icon.ico
Binary file not shown.
3 changes: 2 additions & 1 deletion env/.env.clinic
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
IMAGE_INLINE_SIZE_LIMIT=0
REACT_APP_USE_EEG="true"
REACT_APP_USE_PHOTODIODE="true"
REACT_APP_VOLUME="true"
REACT_APP_VOLUME="true"
REACT_APP_VIDEO="true"
26 changes: 15 additions & 11 deletions firestore.rules
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
// participantID must be in the registered_participants array in the registered_studies/{studyID} document
match /participant_responses/{studyID}/participants/{participantID} {
allow create, read:
if participantID in get(/databases/$(database)/documents/registered_studies/$(studyID)).data.registered_participants;
// participantID must be in the registered_participants array in the registered_studies/{studyID} document
match /participant_responses/{studyID}/participants/{participantID} {
allow create, read:
// Allows any combination of studyID and participantID to be created in Firebase
if true
// Forces participantID and studyID to already be in Firebase to log in
// if participantID in get(/databases/$(database)/documents/registered_studies/$(studyID)).data.registered_participants;
// TODO: Discusssion post about use cases for the different rules

// experimentID must be in the data subcollection
match /data/{experimentID} {
allow create, read: if true
// experimentID must be in the data subcollection
match /data/{experimentID} {
allow create, read: if true

// trialID must be in the trials subcollection
match /trials/{trialID} {
allow create, read: if true
}
// trialID must be in the trials subcollection
match /trials/{trialID} {
allow create, read: if true
}
}
}
}
}
50 changes: 50 additions & 0 deletions forge.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/**
* Configuration file for Electron Forge
*/
module.exports = {
packagerConfig: {
asar: true,
icon: "assets/icons/icon",
},
makers: [
{
// zip files
name: "@electron-forge/maker-zip",
},
{
// Linux Distribution
name: "@electron-forge/maker-deb",
config: {
options: {
icon: "assets/icons/icon.png",
},
},
},
{
// Mac Distribution
name: "@electron-forge/maker-dmg",
config: {
icon: "assets/icons/icon.icns",
overwrite: true,
},
},
{
// Windows Distribution
name: "@electron-forge/maker-squirrel",
config: {
iconUrl: "https://raw.githubusercontent.com/brown-ccv/honeycomb/main/assets/icons/icon.ico",
setupIcon: "assets/icons/icon.ico",
// TODO #282: Certificates on mac and windows will prefect antivirus issues
// certificateFile: "./cert.pfx",
// certificatePassword: process.env.CERTIFICATE_PASSWORD,
},
},
],
plugins: [
{
// https://www.electronforge.io/config/plugins/auto-unpack-natives
name: "@electron-forge/plugin-auto-unpack-natives",
config: {},
},
],
};
Loading

0 comments on commit 38a5f0a

Please sign in to comment.