Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
Easy Quest - Smart Recruitment Tool with AI
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 36
Easy Quest - Smart Recruitment Tool with AI
Commits
7af15089
Commit
7af15089
authored
Apr 13, 2023
by
Dakshina Weerasiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Facial expressions
parent
c88ebc61
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
277 additions
and
32 deletions
+277
-32
src/common/config.ts
src/common/config.ts
+30
-0
src/common/lib/api.ts
src/common/lib/api.ts
+1
-1
src/common/lib/util.ts
src/common/lib/util.ts
+1
-0
src/common/saga/user.ts
src/common/saga/user.ts
+6
-0
src/common/types.ts
src/common/types.ts
+22
-1
src/components/Application/Interview.tsx
src/components/Application/Interview.tsx
+217
-30
No files found.
src/common/config.ts
View file @
7af15089
...
...
@@ -24,3 +24,33 @@ const FIREBASE_CONFIG = {
const
app
=
initializeApp
(
FIREBASE_CONFIG
);
export
const
fileStorage
=
getStorage
(
app
);
export
const
emotionsData
=
[
{
angry
:
0.01
,
disgust
:
0.0
,
fear
:
0.2
,
happy
:
0.18
,
sad
:
0.02
,
surprise
:
0.4
,
neutral
:
0.19
,
},
{
angry
:
0.02
,
disgust
:
0.1
,
fear
:
0.3
,
happy
:
0.28
,
sad
:
0.03
,
surprise
:
1.4
,
neutral
:
0.29
,
},
{
angry
:
1.02
,
disgust
:
0.2
,
fear
:
1.3
,
happy
:
2.28
,
sad
:
0.3
,
surprise
:
2.4
,
neutral
:
0.5
,
},
];
src/common/lib/api.ts
View file @
7af15089
...
...
@@ -43,7 +43,7 @@ export const request = (
data
,
params
,
headers
,
timeout
:
3
0000
,
timeout
:
9
0000
,
})
.
then
(
async
(
response
:
AxiosResponse
)
=>
{
logger
(
"
RESPONSE:
"
,
response
);
...
...
src/common/lib/util.ts
View file @
7af15089
...
...
@@ -66,6 +66,7 @@ export const getStatusColor = (status?: ApplicationType["status"]) => {
};
export
const
getAddress
=
(
address
:
AddressType
)
=>
{
if
(
!
address
)
return
""
;
return
`
${
address
.
addressLine
}
,
${
address
.
city
}
,
${
address
.
country
}
`
;
};
...
...
src/common/saga/user.ts
View file @
7af15089
...
...
@@ -57,6 +57,12 @@ function* applyForJob({
candidate
:
profile
.
_id
,
job
:
payload
,
status
:
"
Pending
"
,
interview
:
{
date
:
""
,
time
:
""
,
link
:
""
,
voiceVerification
:
"
Pending
"
,
},
},
resumeUrl
:
profile
.
resume
,
}
...
...
src/common/types.ts
View file @
7af15089
...
...
@@ -147,9 +147,30 @@ export type ApplicationType = {
time
:
string
;
link
:
string
;
videoRef
?:
string
;
voiceVerification
?:
string
;
};
};
export
type
EmotionsPayloadType
=
{
angry
:
number
;
disgust
:
number
;
fear
:
number
;
happy
:
number
;
sad
:
number
;
surprise
:
number
;
neutral
:
number
;
};
export
type
EmotionsType
=
{
data
:
[
{
box
:
number
[];
emotions
:
EmotionsPayloadType
;
}
];
end
:
boolean
;
};
//PAYLOADS
export
type
SignUpPayload
=
{
passwords
:
string
[];
...
...
@@ -201,7 +222,7 @@ export type ApplicationPayloadType = {
time
:
string
;
link
:
string
;
videoRef
?:
string
;
voiceVerification
?:
number
;
voiceVerification
?:
string
;
};
score
:
{
primary
:
number
;
...
...
src/components/Application/Interview.tsx
View file @
7af15089
This diff is collapsed.
Click to expand it.
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