From 2d96b9dbdb96ab1e3ed3bffdece6ac4e5b23d2a4 Mon Sep 17 00:00:00 2001 From: sarross88 <94658493+sarross88@users.noreply.github.com> Date: Thu, 21 Nov 2024 22:38:26 -0500 Subject: [PATCH 1/2] changed file name and added more data --- data.jsx => data.js | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) rename data.jsx => data.js (92%) diff --git a/data.jsx b/data.js similarity index 92% rename from data.jsx rename to data.js index 93331fd..537c579 100644 --- a/data.jsx +++ b/data.js @@ -60,10 +60,11 @@ const drugData = [ class: 'Bronchodilators', quantity: '400', expiration: '03/25/2025', - batch: '1', + lot: '1', id: '112233', storeId: '1234567', employeeId: 'inventorymanager1234567', + ndc: '3847762793088899', }, { name: 'salmeterol', @@ -71,10 +72,11 @@ const drugData = [ class: 'bronchodilators', quantity: '200', expiration: '04/11/2025', - batch: '2', + lot: '2', id: '334455', storeId: '1234567', employeeId: 'inventorymanager1234567', + ndc: '12039493890', }, { name: 'Coumadin', @@ -82,10 +84,11 @@ const drugData = [ class: 'Anticoagulants', quantity: '100', expiration: '02/14/2025', - batch: '3', + lot: '3', id: '445566', storeId: '1234567', employeeId: 'inventorymanager1234567', + ndc: '345456575322', }, { name: 'Tamiflu', @@ -93,10 +96,11 @@ const drugData = [ class: 'Antiviral', quantity: '50', expiration: '01/20/2025', - batch: '4', + lot: '4', id: '556677', storeId: '1234567', employeeId: 'inventorymanager1234567', + ndc: '23789477088734', }, { name: 'Cymbalta', @@ -104,10 +108,11 @@ const drugData = [ class: 'Antidepressants', quantity: '06', expiration: '01/05/2025', - batch: '5', + lot: '5', id: '667788', storeId: '1234567', employeeId: 'inventorymanager1234567', + ndc: '347373877658', }, { name: 'Prozac', @@ -115,10 +120,11 @@ const drugData = [ class: 'Antidepressant', quantity: '10', expiration: '01/15/2025', - batch: '6', + lot: '6', id: '889900', storeId: '1234567', employeeId: 'inventorymanager1234567', + ndc: '34737387765800', }, ] const drugFormData = [ @@ -138,7 +144,8 @@ const drugFormData = [ ], quantity: '', expiration: '', - batch: '', + lot: '', + ndc: '', }, ] From fc465583e5c7ff4e0a13baf59229e316c58111d2 Mon Sep 17 00:00:00 2001 From: GinaCastromonte <123599985+GinaCastromonte@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:23:32 -0500 Subject: [PATCH 2/2] prettier issues resolved --- data.js | 308 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 154 insertions(+), 154 deletions(-) diff --git a/data.js b/data.js index 537c579..3722c08 100644 --- a/data.js +++ b/data.js @@ -1,164 +1,164 @@ const storeInfo = [ - { - name: 'DrugStore1', - id: '1234567', - address: '1234 Walgreens Drive, Durham, NC 27519', - storeRoles: ['Admin', 'Inventory Manager', 'Clerk'], - }, - { - name: 'DrugStore2', - id: '123456788', - address: '122 Harris Drive, Durham, NC 27519', - storeRoles: ['Admin', 'Inventory Manager', 'Clerk'], - }, -] + { + name: 'DrugStore1', + id: '1234567', + address: '1234 Walgreens Drive, Durham, NC 27519', + storeRoles: ['Admin', 'Inventory Manager', 'Clerk'], + }, + { + name: 'DrugStore2', + id: '123456788', + address: '122 Harris Drive, Durham, NC 27519', + storeRoles: ['Admin', 'Inventory Manager', 'Clerk'], + }, +]; const userInfo = [ - { - firstName: 'John', - lastName: 'Doe', - email: 'johndoe@gmail.com', - role: 'Admin', - id: 'admin1234567', - storeID: '1234567', - password: 'jd1234567', - }, - { - firstName: 'Mary', - lastName: 'Sue', - email: 'marysue@gmail.com', - role: 'Inventory Manager', - id: 'inventorymanager1234567', - storeID: '1234567', - password: 'ms1234567', - }, - { - firstName: 'Mark', - lastName: 'Mayhem', - email: 'markmayhem@gmail.com', - role: 'Clerk', - id: 'clerk1234567', - storeID: '1234567', - password: 'mm1234567', - }, - { - firstName: 'Miles', - lastName: 'Dhean', - email: 'milesDhean@gmail.com', - role: 'Clerk', - id: 'clerk123456789', - storeID: '1234567', - password: 'md1234567', - }, -] + { + firstName: 'John', + lastName: 'Doe', + email: 'johndoe@gmail.com', + role: 'Admin', + id: 'admin1234567', + storeID: '1234567', + password: 'jd1234567', + }, + { + firstName: 'Mary', + lastName: 'Sue', + email: 'marysue@gmail.com', + role: 'Inventory Manager', + id: 'inventorymanager1234567', + storeID: '1234567', + password: 'ms1234567', + }, + { + firstName: 'Mark', + lastName: 'Mayhem', + email: 'markmayhem@gmail.com', + role: 'Clerk', + id: 'clerk1234567', + storeID: '1234567', + password: 'mm1234567', + }, + { + firstName: 'Miles', + lastName: 'Dhean', + email: 'milesDhean@gmail.com', + role: 'Clerk', + id: 'clerk123456789', + storeID: '1234567', + password: 'md1234567', + }, +]; //CLASS IS THERAPEUTIC CLASS const drugData = [ - { - name: 'Albuterol', - generic: 'albuterol sulfate', - class: 'Bronchodilators', - quantity: '400', - expiration: '03/25/2025', - lot: '1', - id: '112233', - storeId: '1234567', - employeeId: 'inventorymanager1234567', - ndc: '3847762793088899', - }, - { - name: 'salmeterol', - generic: 'salmeterol', - class: 'bronchodilators', - quantity: '200', - expiration: '04/11/2025', - lot: '2', - id: '334455', - storeId: '1234567', - employeeId: 'inventorymanager1234567', - ndc: '12039493890', - }, - { - name: 'Coumadin', - generic: 'Warfarin', - class: 'Anticoagulants', - quantity: '100', - expiration: '02/14/2025', - lot: '3', - id: '445566', - storeId: '1234567', - employeeId: 'inventorymanager1234567', - ndc: '345456575322', - }, - { - name: 'Tamiflu', - generic: 'Oseltamivir', - class: 'Antiviral', - quantity: '50', - expiration: '01/20/2025', - lot: '4', - id: '556677', - storeId: '1234567', - employeeId: 'inventorymanager1234567', - ndc: '23789477088734', - }, - { - name: 'Cymbalta', - generic: 'duloxetine', - class: 'Antidepressants', - quantity: '06', - expiration: '01/05/2025', - lot: '5', - id: '667788', - storeId: '1234567', - employeeId: 'inventorymanager1234567', - ndc: '347373877658', - }, - { - name: 'Prozac', - generic: 'fluoxetine', - class: 'Antidepressant', - quantity: '10', - expiration: '01/15/2025', - lot: '6', - id: '889900', - storeId: '1234567', - employeeId: 'inventorymanager1234567', - ndc: '34737387765800', - }, -] + { + name: 'Albuterol', + generic: 'albuterol sulfate', + class: 'Bronchodilators', + quantity: '400', + expiration: '03/25/2025', + lot: '1', + id: '112233', + storeId: '1234567', + employeeId: 'inventorymanager1234567', + ndc: '3847762793088899', + }, + { + name: 'salmeterol', + generic: 'salmeterol', + class: 'bronchodilators', + quantity: '200', + expiration: '04/11/2025', + lot: '2', + id: '334455', + storeId: '1234567', + employeeId: 'inventorymanager1234567', + ndc: '12039493890', + }, + { + name: 'Coumadin', + generic: 'Warfarin', + class: 'Anticoagulants', + quantity: '100', + expiration: '02/14/2025', + lot: '3', + id: '445566', + storeId: '1234567', + employeeId: 'inventorymanager1234567', + ndc: '345456575322', + }, + { + name: 'Tamiflu', + generic: 'Oseltamivir', + class: 'Antiviral', + quantity: '50', + expiration: '01/20/2025', + lot: '4', + id: '556677', + storeId: '1234567', + employeeId: 'inventorymanager1234567', + ndc: '23789477088734', + }, + { + name: 'Cymbalta', + generic: 'duloxetine', + class: 'Antidepressants', + quantity: '06', + expiration: '01/05/2025', + lot: '5', + id: '667788', + storeId: '1234567', + employeeId: 'inventorymanager1234567', + ndc: '347373877658', + }, + { + name: 'Prozac', + generic: 'fluoxetine', + class: 'Antidepressant', + quantity: '10', + expiration: '01/15/2025', + lot: '6', + id: '889900', + storeId: '1234567', + employeeId: 'inventorymanager1234567', + ndc: '34737387765800', + }, +]; const drugFormData = [ - { - name: '', - generic: '', - class: [ - 'Analgesics', - 'Antibiotics', - 'Antidepressants', - 'Antipsychotics', - 'Antihypertensives', - 'Anticoagulants', - 'Bronchodilators', - 'Diruretics', - 'Antivirals', - ], - quantity: '', - expiration: '', - lot: '', - ndc: '', - }, -] + { + name: '', + generic: '', + class: [ + 'Analgesics', + 'Antibiotics', + 'Antidepressants', + 'Antipsychotics', + 'Antihypertensives', + 'Anticoagulants', + 'Bronchodilators', + 'Diruretics', + 'Antivirals', + ], + quantity: '', + expiration: '', + lot: '', + ndc: '', + }, +]; const drugClasses = [ - 'Analgesics', - 'Antibiotics', - 'Antidepressants', - 'Antipsychotics', - 'Antihypertensives', - 'Anticoagulants', - 'Bronchodilators', - 'Diruretics', - 'Antivirals', -] + 'Analgesics', + 'Antibiotics', + 'Antidepressants', + 'Antipsychotics', + 'Antihypertensives', + 'Anticoagulants', + 'Bronchodilators', + 'Diruretics', + 'Antivirals', +]; -export { drugClasses, drugFormData, drugData, storeInfo, userInfo } +export { drugClasses, drugFormData, drugData, storeInfo, userInfo };