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
527616c0
Commit
527616c0
authored
Aug 24, 2023
by
Muhammadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
verison: 0.5.4
parent
901e0499
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
12 deletions
+22
-12
package.json
package.json
+1
-1
style.js
src/components/Modal/style.js
+1
-1
index.jsx
src/components/WidjetButton/index.jsx
+2
-0
index.js
src/index.js
+0
-1
boxDIaler.js
src/lib/boxDIaler.js
+18
-9
No files found.
package.json
View file @
527616c0
{
"name"
:
"boxdialer"
,
"version"
:
"0.5.
3
"
,
"version"
:
"0.5.
4
"
,
"description"
:
""
,
"main"
:
"src/boxDialer.js"
,
"scripts"
:
{
...
...
src/components/Modal/style.js
View file @
527616c0
...
...
@@ -13,7 +13,7 @@ const MainBlock = styled.div`
transition
:
'
0.3s
'
,
width
:
'
175px
'
,
height
:
'
45px
'
,
bottom
:
'
1
70
px
'
,
bottom
:
'
1
15
px
'
,
left
:
'
50px
'
,
borderRadius
:
'
50px
'
,
display
:
'
flex
'
,
...
...
src/components/WidjetButton/index.jsx
View file @
527616c0
...
...
@@ -16,6 +16,7 @@ import CallIcon from '@mui/icons-material/Call';
import
{
toast
}
from
'
react-hot-toast
'
;
import
DropDownTailwind
from
'
../TailwindComponents/DropDown
'
;
import
TimerUi
from
'
../TimerUi
'
;
import
'
../../index.css
'
;
const
WidjetButton
=
({
data
,
onSetDnd
})
=>
{
if
(
!
data
)
{
...
...
@@ -32,6 +33,7 @@ const WidjetButton = ({ data, onSetDnd }) => {
}
if
(
window
?.
alovoice_wsphone
)
{
// data = window.alovoice_wsphone; // если window.alovoice_wsphone то кроме numpad не какой UI не должен работать
data
=
window
.
alovoice_wsphone
;
onSetDnd
=
window
.
alovoice_onsetdnd
;
// console.log(
...
...
src/index.js
View file @
527616c0
...
...
@@ -7,7 +7,6 @@ import { createRoot } from 'react-dom/client';
import
{
Toaster
}
from
'
react-hot-toast
'
;
import
WidjetButton
from
'
./components/WidjetButton/index
'
;
import
{
BoxDialer
}
from
'
./lib/boxDIaler
'
;
import
'
./index.css
'
;
window
.
BoxDialer
=
new
BoxDialer
();
...
...
src/lib/boxDIaler.js
View file @
527616c0
...
...
@@ -216,28 +216,37 @@ export class BoxDialer {
this
.
oSipSessionRegister
.
register
();
}
callBxMethods
({
bxMethodName
,
bxFuncParams
,
callback
})
{
if
(
window
.
BX24
&&
window
.
BX24
.
placement
)
{
window
?.
BX24
.
placement
.
call
(
bxMethodName
,
bxFuncParams
,
callback
);
}
else
if
(
window
.
alovoicePhone
&&
window
.
alovoicePhone
.
callMethods
)
{
window
.
alovoicePhone
.
callMethods
[
bxMethodName
](
bxFuncParams
,
callback
);
}
}
setGuiPhoneState
({
stateCode
,
funcName
,
funcParam
})
{
if
(
typeof
window
?.
BX24
!==
'
undefined
'
)
{
let
bxStateCod
e
=
''
;
let
uiStat
e
=
''
;
switch
(
stateCode
)
{
case
'
i_new_call
'
:
bxStateCod
e
=
'
incoming
'
;
uiStat
e
=
'
incoming
'
;
break
;
case
'
connected
'
:
bxStateCode
=
'
'
;
uiState
=
'
connected
'
;
break
;
default
:
break
;
}
window
?.
BX24
.
placement
.
call
(
'
CallCardSetUiState
'
,
{
uiState
:
bxStateCod
e
},
(
e
)
=>
{
this
.
bxLog
(
'
CallCardSetUiState
'
,
e
);
this
.
callBxMethods
({
bxMethodName
:
'
CallCardSetUiState
'
,
bxFuncParams
:
{
uiStat
e
},
callback
:
(
e
)
=>
{
console
.
log
(
e
,
`CallCardSetUiState method done
${
e
}
`
);
},
);
});
}
else
{
if
(
this
.
onSipStateChange
[
funcName
]
!==
'
undefined
'
)
{
this
.
onSipStateChange
[
funcName
](
funcParam
);
...
...
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