Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
240
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
U.D.C.S.WIJESOORIYA
240
Commits
3ffcde55
Commit
3ffcde55
authored
Oct 09, 2022
by
Malsha Rathnasiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
6beb123f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
26 deletions
+27
-26
MobileApp/api/constants.js
MobileApp/api/constants.js
+1
-1
MobileApp/screens/TabOneScreen.jsx
MobileApp/screens/TabOneScreen.jsx
+1
-0
MobileApp/screens/loginScreen.js
MobileApp/screens/loginScreen.js
+25
-25
backend/db.sqlite3
backend/db.sqlite3
+0
-0
backend/db_old4.sqlite3
backend/db_old4.sqlite3
+0
-0
No files found.
MobileApp/api/constants.js
View file @
3ffcde55
// export const BACKEND_URL = "http://192.168.8.103:8000"
import
{
Platform
}
from
'
react-native
'
export
const
BACKEND_ADDRESS
=
Platform
.
OS
==
'
web
'
?
"
http://127.0.0.1:8000
"
:
"
https
//9845-112-134-223-169.ap
.ngrok.io
"
export
const
BACKEND_ADDRESS
=
Platform
.
OS
==
'
web
'
?
"
http://127.0.0.1:8000
"
:
"
https
://c881-2402-4000-2280-1401-f8b7-3e41-83a-2250.in
.ngrok.io
"
export
const
BACKEND_URL
=
`
${
BACKEND_ADDRESS
}
`
MobileApp/screens/TabOneScreen.jsx
View file @
3ffcde55
...
...
@@ -62,6 +62,7 @@ export default function ChatScreen({ navigation }) {
}
useEffect
(()
=>
{
if
(
chatDetails
)
{
loadChats
();
setLoading
(
false
)
}
},
[
chatDetails
])
...
...
MobileApp/screens/loginScreen.js
View file @
3ffcde55
...
...
@@ -9,6 +9,31 @@ import { screenWidth, styles } from '../util/styles';
import
TTS_logo
from
'
../assets/images/TTS_logo.jpeg
'
export
const
LoginScreen
=
({
onLogin
,
navigation
})
=>
{
return
(
<
ScrollView
style
=
{
styles
.
loginScreenContainer
}
>
<
View
style
=
{{
alignContent
:
'
center
'
,
justifyContent
:
'
center
'
}}
>
<
Image
source
=
{
TTS_logo
}
style
=
{{
height
:
screenWidth
-
30
,
width
:
screenWidth
-
30
,
margin
:
'
auto
'
}}
/
>
<
/View
>
<
Text
style
=
{{
padding
:
10
,
textAlign
:
'
center
'
,
// fontWeight: 'bold',
fontSize
:
40
}}
>
Login
<
/Text
>
<
View
style
=
{{
flexDirection
:
'
row
'
,
padding
:
10
,
justifyContent
:
'
center
'
}}
>
<
Text
style
=
{{
textAlign
:
'
center
'
}}
>
Don
'
t have an account? </Text>
<Text style={{ fontWeight:
'
bold
'
, textAlign:
'
center
'
, }} onPress={() => navigation.replace(
'
Signup
'
)}>Sign up</Text>
</View>
<View style={styles.formContainer}>
<LoginForm onLogin={onLogin} />
</View>
</ScrollView>
);
}
const LoginForm = ({ onLogin, navigation }) => {
var passwordInput
...
...
@@ -71,28 +96,3 @@ const LoginForm = ({ onLogin, navigation }) => {
// define your styles
)
}
export
const
LoginScreen
=
({
onLogin
,
navigation
})
=>
{
return
(
<
ScrollView
style
=
{
styles
.
loginScreenContainer
}
>
<
View
style
=
{{
alignContent
:
'
center
'
,
justifyContent
:
'
center
'
}}
>
<
Image
source
=
{
TTS_logo
}
style
=
{{
height
:
screenWidth
-
30
,
width
:
screenWidth
-
30
,
margin
:
'
auto
'
}}
/
>
<
/View
>
<
Text
style
=
{{
padding
:
10
,
textAlign
:
'
center
'
,
// fontWeight: 'bold',
fontSize
:
40
}}
>
Login
<
/Text
>
<
View
style
=
{{
flexDirection
:
'
row
'
,
padding
:
10
,
justifyContent
:
'
center
'
}}
>
<
Text
style
=
{{
textAlign
:
'
center
'
}}
>
Don
'
t have an account? </Text>
<Text style={{ fontWeight:
'
bold
'
, textAlign:
'
center
'
, }} onPress={() => navigation.replace(
'
Signup
'
)}>Sign up</Text>
</View>
<View style={styles.formContainer}>
<LoginForm onLogin={onLogin} />
</View>
</ScrollView>
);
}
\ No newline at end of file
backend/db.sqlite3
View file @
3ffcde55
No preview for this file type
backend/db_old4.sqlite3
0 → 100644
View file @
3ffcde55
File added
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