Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BoxDialer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
BoxDialer
Commits
851b9fe7
Commit
851b9fe7
authored
Sep 12, 2023
by
Muhammadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.5.8
parent
0ff5beac
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
5 deletions
+53
-5
package.json
package.json
+1
-1
index.jsx
src/components/SecondNotifSip/index.jsx
+39
-0
boxDIaler.js
src/lib/boxDIaler.js
+1
-3
index.jsx
src/root/index.jsx
+12
-1
No files found.
package.json
View file @
851b9fe7
{
"name"
:
"boxdialer"
,
"version"
:
"1.5.
7
"
,
"version"
:
"1.5.
8
"
,
"description"
:
""
,
"main"
:
"src/boxDialer.js"
,
"scripts"
:
{
...
...
src/components/SecondNotifSip/index.jsx
0 → 100644
View file @
851b9fe7
/** @format */
import
React
from
'
react
'
;
import
styled
from
'
styled-components
'
;
const
Block
=
styled
.
div
`
border: 1px solid red;
width: 300px;
height: 60px;
background-color: #c9d5d9;
border-radius: 10px;
padding: 10px;
position: fixed;
transition: 1s;
top: 20px;
right: -340px;
animation:
${({
secondLine
})
=>
(
secondLine
?
'
anim 5s
'
:
''
)}
;
@keyframes anim {
0% {
right: -340px;
}
5% {
right: 20px;
}
95% {
right: 20px;
}
100% {
right: -340px;
}
}
`
;
const
SecondNotifSip
=
({
secondLine
})
=>
{
console
.
log
(
secondLine
,
'
secondLine
'
);
return
<
Block
secondLine=
{
secondLine
}
></
Block
>;
};
export
default
SecondNotifSip
;
src/lib/boxDIaler.js
View file @
851b9fe7
...
...
@@ -345,9 +345,7 @@ export class BoxDialer {
break
;
case
'
stack_i_new_call
'
:
if
(
!!!
this
.
oSipSessionCall
.
o_session
.
o_stream_remote
.
id
)
{
this
.
onSipStateChange
.
secondLine
(
false
);
}
if
(
this
.
oSipSessionCall
.
o_session
.
o_stream_remote
.
id
)
{
console
.
log
(
'
oSipSessionCall__
'
,
'
SECOND_line
'
);
this
.
onSipStateChange
.
secondLine
(
true
);
...
...
src/root/index.jsx
View file @
851b9fe7
...
...
@@ -6,6 +6,7 @@ import DefaultWidjetUi from '../components/DefaultWidjetUi';
import
ModalPhoneNumpad
from
'
../components/ModalPhoneNumpad
'
;
import
Modal
from
'
../components/Modal
'
;
import
BxMiniWidjetUi
from
'
../components/BxMiniWidjetUi
'
;
import
SecondNotifSip
from
'
../components/SecondNotifSip
'
;
const
Root
=
({
data
,
onSetDnd
})
=>
{
let
localValue
=
localStorage
.
getItem
(
'
activeValue
'
)
||
false
;
...
...
@@ -36,7 +37,15 @@ const Root = ({ data, onSetDnd }) => {
const
[
secondLine
,
setSecondLine
]
=
useState
(
false
);
const
boxDialer
=
window
.
BoxDialer
;
console
.
log
(
secondLine
,
'
secondLine
'
);
useEffect
(()
=>
{
if
(
secondLine
)
{
setTimeout
(()
=>
{
setSecondLine
(
false
);
},
3000
);
}
},
[
secondLine
]);
useEffect
(()
=>
{
if
(
data
&&
data
?.
number
)
{
boxDialer
.
setSipStateChangeCallback
(
setDynamicValue
,
'
dynamicValue
'
);
...
...
@@ -130,6 +139,8 @@ const Root = ({ data, onSetDnd }) => {
:
modalState
.
callFromName
}
/>
<
SecondNotifSip
secondLine=
{
secondLine
}
/>
</>
);
};
...
...
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