Removes config/default.

This commit is contained in:
Aaron Louie 2020-09-14 13:54:03 -04:00
parent 3e56f7dbfe
commit 9503e7eae1
3 changed files with 5 additions and 33 deletions

1
.gitignore vendored
View File

@ -669,3 +669,4 @@ buck-out/
web-build/
*.hprof
config/default.tsx

View File

@ -1,29 +0,0 @@
import {AppDefaults} from '../models/Default';
import {CameraType} from '../models/ElementProps';
// Firebase project config from https://console.firebase.google.com > Project Settings > General > Your apps > Web App
export const firebaseConfig = {
apiKey: 'api_key_goes_here',
authDomain: 'uva-covid19-testing-kiosk.firebaseapp.com',
databaseURL: 'https://uva-covid19-testing-kiosk.firebaseio.com',
projectId: 'project_id_goes_here',
storageBucket: 'uva-covid19-testing-kiosk.appspot.com',
messagingSenderId: 'sender_id_goes_here',
appId: 'app_id_goes_here',
};
// Default form field and data values
export const defaults: AppDefaults = {
countsCollection: 'counts', // Name of collection for Line Counts in Firebase.
samplesCollection: 'samples', // Name of collection for Line Counts in Firebase.
dateEncodedFormat: 'yyyyMMddHHmm', // Format for dates when encoded in IDs for database records.
dateDisplayFormat: 'MM/dd/yyyy, hh:mm aa', // Format for dates when displayed to user.
numCopies: 2, // Default number of copies of labels to print. Can be overridden by user setting.
cameraType: 'back' as CameraType, // Which camera to use for capturing bar codes. Can be overridden by user setting.
locationId: '0000', // Default location ID. Can be overridden by user setting.
lineCountRegex: /^[\d]{4}-[\d]{12}$/, // ID format for Line Count records.
qrCodeRegex: /^[\d]{9}-[a-zA-Z]+-[\d]{12}-[\d]{4}$/, // ID format for QR Code records.
barCodeNumLength: 9, // Number of digits in Bar Code.
barCodeRegex: /^[\d]{14}$|^[\d]{9}$/, // Pattern for Bar Code data. Scanned barcodes will be either 9 or 14 digits long.
// Manually-entered ID numbers will be exactly 9 digits long.
}

View File

@ -7,13 +7,13 @@ import {CameraType} from '../models/ElementProps';
// Firebase project config from https://console.firebase.google.com > Project Settings > General > Your apps > Web App
export const firebaseConfig = {
apiKey: 'api_key_goes_here',
apiKey: 'API_KEY_GOES_HERE',
authDomain: 'uva-covid19-testing-kiosk.firebaseapp.com',
databaseURL: 'https://uva-covid19-testing-kiosk.firebaseio.com',
projectId: 'project_id_goes_here',
projectId: 'uva-covid19-testing-kiosk',
storageBucket: 'uva-covid19-testing-kiosk.appspot.com',
messagingSenderId: 'sender_id_goes_here',
appId: 'app_id_goes_here',
messagingSenderId: 'MESSAGING_SENDER_ID_GOES_HERE',
appId: 'APP_ID_GOES_HERE',
};
// Default form field and data values