Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
22_23-J 16
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
22_23-J 16
22_23-J 16
Commits
eb3ae399
Commit
eb3ae399
authored
May 18, 2023
by
Dayan Marasinghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui colors
parent
d396644d
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
119 additions
and
18359 deletions
+119
-18359
ExpressBackend/package-lock.json
ExpressBackend/package-lock.json
+10
-4206
emma-frontend/components/patientscreens/consent.js
emma-frontend/components/patientscreens/consent.js
+16
-7
emma-frontend/components/patientscreens/registration/regOne.js
...frontend/components/patientscreens/registration/regOne.js
+22
-2
emma-frontend/components/shared/mainview.js
emma-frontend/components/shared/mainview.js
+37
-12
emma-frontend/package-lock.json
emma-frontend/package-lock.json
+32
-14132
emma-frontend/package.json
emma-frontend/package.json
+2
-0
No files found.
ExpressBackend/package-lock.json
View file @
eb3ae399
This source diff could not be displayed because it is too large. You can
view the blob
instead.
emma-frontend/components/patientscreens/consent.js
View file @
eb3ae399
...
@@ -31,22 +31,23 @@ export default function PatientConsentForm({ navigation, route }) {
...
@@ -31,22 +31,23 @@ export default function PatientConsentForm({ navigation, route }) {
};
};
return
(
return
(
<
ScrollView
style
=
{{
padding
:
10
}}
>
<
ScrollView
style
=
{{
padding
:
10
,
marginTop
:
30
}}
>
<
Text
style
=
{{
fontWeight
:
"
bold
"
,
fontSize
:
20
}}
>
<
Text
style
=
{{
fontWeight
:
"
bold
"
,
fontSize
:
20
}}
>
Consent
Form
for
EMMA
Health
Application
Consent
Form
for
EMMA
Health
Application
{
"
\n
"
}
<
/Text
>
<
/Text
>
<
Text
>
<
Text
>
Please
read
this
consent
form
carefully
before
using
the
EMMA
health
Please
read
this
consent
form
carefully
before
using
the
EMMA
health
application
.
application
.
<
/Text
>
<
/Text
>
<
Text
>
{
"
\n
"
}
Introduction
:
<
/Text
>
<
Text
style
=
{{
textDecorationLine
:
"
underline
"
}}
>
{
"
\n
"
}
Introduction
:
<
/Text
>
<
Text
>
<
Text
>
The
EMMA
(
Emotional
Mental
Health
Assistant
)
application
is
designed
to
The
EMMA
(
Emotional
Mental
Health
Assistant
)
application
is
designed
to
track
and
manage
personal
details
,
emotional
status
,
and
mental
health
track
and
manage
personal
details
,
emotional
status
,
and
mental
health
via
chat
.
By
using
this
application
,
you
consent
to
the
collection
and
via
chat
.
By
using
this
application
,
you
consent
to
the
collection
and
secure
storage
of
your
data
as
described
below
.
secure
storage
of
your
data
as
described
below
.
<
/Text
>
<
/Text
>
<
Text
>
{
"
\n
"
}
Data
Collection
:
<
/Text
>
<
Text
style
=
{{
textDecorationLine
:
"
underline
"
}}
>
{
"
\n
"
}
Data
Collection
:
<
/Text
>
<
Text
>
<
Text
>
{
"
\n
"
}
Personal
Details
:
The
EMMA
app
collects
personal
information
such
{
"
\n
"
}
Personal
Details
:
The
EMMA
app
collects
personal
information
such
as
your
name
,
age
,
gender
,
and
contact
details
.
This
information
is
used
as
your
name
,
age
,
gender
,
and
contact
details
.
This
information
is
used
...
@@ -64,7 +65,7 @@ export default function PatientConsentForm({ navigation, route }) {
...
@@ -64,7 +65,7 @@ export default function PatientConsentForm({ navigation, route }) {
identifying
patterns
,
identifying
triggers
,
and
providing
insights
for
identifying
patterns
,
identifying
triggers
,
and
providing
insights
for
mental
health
management
.
mental
health
management
.
<
/Text
>
<
/Text
>
<
Text
>
{
"
\n
"
}
Data
Storage
and
Security
:
<
/Text
>
<
Text
style
=
{{
textDecorationLine
:
"
underline
"
}}
>
{
"
\n
"
}
Data
Storage
and
Security
:
<
/Text
>
<
Text
>
<
Text
>
{
"
\n
"
}
Data
Encryption
:
All
collected
data
will
be
properly
encrypted
to
{
"
\n
"
}
Data
Encryption
:
All
collected
data
will
be
properly
encrypted
to
ensure
its
security
and
confidentiality
.
ensure
its
security
and
confidentiality
.
...
@@ -79,7 +80,7 @@ export default function PatientConsentForm({ navigation, route }) {
...
@@ -79,7 +80,7 @@ export default function PatientConsentForm({ navigation, route }) {
individuals involved in the maintenance of the EMMA application. Strict
individuals involved in the maintenance of the EMMA application. Strict
access controls will be implemented to prevent unauthorized access.
access controls will be implemented to prevent unauthorized access.
</Text>
</Text>
<Text>{"
\n
"}Purpose of Data Collection:</Text>
<Text
style={{ textDecorationLine: "underline" }}
>{"
\n
"}Purpose of Data Collection:</Text>
<Text>
<Text>
{"
\n
"}User Control: The primary purpose of data collection is to empower
{"
\n
"}User Control: The primary purpose of data collection is to empower
you with control over your own health data. You will have the ability to
you with control over your own health data. You will have the ability to
...
@@ -92,8 +93,16 @@ export default function PatientConsentForm({ navigation, route }) {
...
@@ -92,8 +93,16 @@ export default function PatientConsentForm({ navigation, route }) {
trends, improving diagnostic accuracy, and developing personalized
trends, improving diagnostic accuracy, and developing personalized
treatment plans.
treatment plans.
</Text>
</Text>
<Button title="Agree" onPress={handleAgree} />
{/* <Button title="Agree" onPress={handleAgree}/>
<Button title="Cancel" onPress={handleCancel} />
<Button title="Cancel" onPress={handleCancel} /> */}
<View style={{ marginTop: 10 }}>
<Button title="Agree" onPress={handleAgree} />
</View>
<View style={{ marginTop: 10, marginBottom: 10 }}>
<Button title="Cancel" onPress={handleCancel} color="red" />
</View>
</ScrollView>
</ScrollView>
);
);
}
}
emma-frontend/components/patientscreens/registration/regOne.js
View file @
eb3ae399
import
React
,
{
useState
}
from
"
react
"
;
import
React
,
{
useState
}
from
"
react
"
;
import
{
View
,
TextInput
,
Button
,
StyleSheet
}
from
"
react-native
"
;
import
{
View
,
TextInput
,
Button
,
StyleSheet
,
TouchableHighlight
,
Text
}
from
"
react-native
"
;
import
{
useNavigation
}
from
"
@react-navigation/native
"
;
import
{
useNavigation
}
from
"
@react-navigation/native
"
;
export
default
function
PatientRegOne
()
{
export
default
function
PatientRegOne
()
{
...
@@ -38,7 +38,13 @@ export default function PatientRegOne() {
...
@@ -38,7 +38,13 @@ export default function PatientRegOne() {
onChangeText
=
{(
text
)
=>
setPassword
(
text
)}
onChangeText
=
{(
text
)
=>
setPassword
(
text
)}
secureTextEntry
=
{
true
}
secureTextEntry
=
{
true
}
/
>
/
>
<
Button
title
=
"
Next
"
onPress
=
{
handleNext
}
/
>
{
/* <Button title="Next" onPress={handleNext} color="#703BE7"/> */
}
<
TouchableHighlight
style
=
{
styles
.
button
}
onPress
=
{
handleNext
}
>
<
Text
style
=
{
styles
.
buttonText
}
>
Next
<
/Text
>
<
/TouchableHighlight
>
<
/View
>
<
/View
>
);
);
}
}
...
@@ -58,4 +64,18 @@ const styles = StyleSheet.create({
...
@@ -58,4 +64,18 @@ const styles = StyleSheet.create({
borderWidth
:
1
,
borderWidth
:
1
,
borderRadius
:
5
,
borderRadius
:
5
,
},
},
button
:
{
width
:
"
80%
"
,
height
:
60
,
// Adjust the height value to make the button taller
backgroundColor
:
"
#560CCE
"
,
justifyContent
:
"
center
"
,
alignItems
:
"
center
"
,
borderRadius
:
30
,
// Adjust the border radius value to make the edges rounder
marginTop
:
10
,
},
buttonText
:
{
color
:
"
white
"
,
fontSize
:
16
,
fontWeight
:
"
bold
"
,
},
});
});
emma-frontend/components/shared/mainview.js
View file @
eb3ae399
import
React
from
"
react
"
;
import
React
from
"
react
"
;
import
{
StyleSheet
,
View
,
Text
,
Button
}
from
"
react-native
"
;
import
{
StyleSheet
,
View
,
Text
,
Button
,
TouchableHighlight
}
from
"
react-native
"
;
export
default
function
MainScreen
({
navigation
})
{
export
default
function
MainScreen
({
navigation
})
{
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
buttonContainer
}
>
<
View
style
=
{
styles
.
buttonContainer
}
>
<
Button
<
TouchableHighlight
title
=
"
Login
"
style
=
{[
styles
.
button
,
{
backgroundColor
:
"
#703BE7
"
}]}
underlayColor
=
"
#5E29B7
"
onPress
=
{()
=>
{
onPress
=
{()
=>
{
console
.
log
(
"
Login
"
);
console
.
log
(
"
Login
"
);
navigation
.
navigate
(
"
SharedLogin
"
);
navigation
.
navigate
(
"
SharedLogin
"
);
}}
}}
/
>
>
<
Text
style
=
{
styles
.
buttonText
}
>
Login
<
/Text
>
<
/TouchableHighlight
>
<
View
style
=
{
styles
.
separator
}
/
>
<
View
style
=
{
styles
.
separator
}
/
>
<
Button
title
=
"
Register
"
<
TouchableHighlight
style
=
{[
styles
.
button
,
{
backgroundColor
:
"
#703BE7
"
}]}
underlayColor
=
"
#5E29B7
"
onPress
=
{()
=>
{
onPress
=
{()
=>
{
console
.
log
(
"
Register
"
);
console
.
log
(
"
Register
"
);
navigation
.
navigate
(
"
SharedRegisterScreen
"
);
navigation
.
navigate
(
"
SharedRegisterScreen
"
);
}}
}}
/
>
>
<
Text
style
=
{
styles
.
buttonText
}
>
Register
<
/Text
>
<
/TouchableHighlight
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
);
);
...
@@ -28,14 +37,30 @@ export default function MainScreen({ navigation }) {
...
@@ -28,14 +37,30 @@ export default function MainScreen({ navigation }) {
const
styles
=
StyleSheet
.
create
({
const
styles
=
StyleSheet
.
create
({
container
:
{
container
:
{
flex
:
1
,
flex
:
1
,
alignItems
:
"
center
"
,
//
alignItems: "center",
justifyContent
:
"
center
"
,
justifyContent
:
"
center
"
,
paddingLeft
:
75
},
},
buttonContainer
:
{
//
buttonContainer: {
flexDirection
:
"
row
"
,
//
flexDirection: "row",
marginVertical
:
20
,
//
marginVertical: 20,
},
//
},
separator
:
{
separator
:
{
width
:
10
,
width
:
10
,
height
:
20
},
button
:
{
height
:
60
,
// Adjust the height value to make the button taller
width
:
"
80%
"
,
// Adjust the width value to change the button's width
justifyContent
:
"
center
"
,
alignItems
:
"
center
"
,
backgroundColor
:
"
#703BE7
"
,
borderRadius
:
30
,
// Adjust the border radius value to make the edges rounder
},
buttonText
:
{
color
:
"
white
"
,
fontSize
:
16
,
fontWeight
:
"
bold
"
,
},
},
});
});
emma-frontend/package-lock.json
View file @
eb3ae399
This diff is collapsed.
Click to expand it.
emma-frontend/package.json
View file @
eb3ae399
...
@@ -23,8 +23,10 @@
...
@@ -23,8 +23,10 @@
"react-native-base64"
:
"^0.2.1"
,
"react-native-base64"
:
"^0.2.1"
,
"react-native-crypto-js"
:
"^1.0.0"
,
"react-native-crypto-js"
:
"^1.0.0"
,
"react-native-datepicker"
:
"^1.7.2"
,
"react-native-datepicker"
:
"^1.7.2"
,
"react-native-gesture-handler"
:
"^2.10.0"
,
"react-native-render-html"
:
"^6.3.4"
,
"react-native-render-html"
:
"^6.3.4"
,
"react-native-rsa-native"
:
"^2.0.5"
,
"react-native-rsa-native"
:
"^2.0.5"
,
"react-native-safe-area-context"
:
"^4.5.3"
,
"react-native-simple-radio-button"
:
"^2.7.4"
,
"react-native-simple-radio-button"
:
"^2.7.4"
,
"react-native-toast-message"
:
"^2.1.6"
,
"react-native-toast-message"
:
"^2.1.6"
,
"react-native-webview"
:
"11.26.0"
"react-native-webview"
:
"11.26.0"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment