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
41c692c1
Commit
41c692c1
authored
Dec 15, 2023
by
Muhammadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2c70425d
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
842 additions
and
1045 deletions
+842
-1045
index.jsx
src/components/CallHistoryInputDropdown/index.jsx
+0
-1
index.jsx
src/components/Modal/index.jsx
+0
-7
index.jsx
src/components/ModalPhoneNumpad/index.jsx
+2
-9
style.js
src/components/ModalPhoneNumpad/style.js
+0
-1
index.jsx
src/components/setting/index.jsx
+0
-2
index.jsx
src/components/settingComponents/fixComponent/index.jsx
+0
-2
boxDIaler.js
src/lib/boxDIaler.js
+840
-1014
index.jsx
src/root/index.jsx
+0
-9
No files found.
src/components/CallHistoryInputDropdown/index.jsx
View file @
41c692c1
...
@@ -43,7 +43,6 @@ const CallHistoryInputDropdown = ({
...
@@ -43,7 +43,6 @@ const CallHistoryInputDropdown = ({
.
scrollTo
(
document
.
getElementById
(
'
numbersDiv
'
).
scrollWidth
,
0
);
.
scrollTo
(
document
.
getElementById
(
'
numbersDiv
'
).
scrollWidth
,
0
);
},
[
inputValue
]);
},
[
inputValue
]);
console
.
log
(
'
input_modal:
'
,
modal
,
numberSelectHistory
);
document
.
querySelector
(
'
body
'
).
addEventListener
(
'
click
'
,
function
(
e
)
{
document
.
querySelector
(
'
body
'
).
addEventListener
(
'
click
'
,
function
(
e
)
{
if
(
modal
)
setModal
(
false
);
if
(
modal
)
setModal
(
false
);
});
});
...
...
src/components/Modal/index.jsx
View file @
41c692c1
...
@@ -13,7 +13,6 @@ import DialpadIcon from '@mui/icons-material/Dialpad';
...
@@ -13,7 +13,6 @@ import DialpadIcon from '@mui/icons-material/Dialpad';
import
CallCardDropDown
from
'
../CallCardDropDown
'
;
import
CallCardDropDown
from
'
../CallCardDropDown
'
;
import
ModalNumpad
from
'
../ModalNumpad
'
;
import
ModalNumpad
from
'
../ModalNumpad
'
;
import
{
useConfigHoldMute
}
from
"
../../storage
"
import
{
useConfigHoldMute
}
from
"
../../storage
"
// import { contextModalEventProperty } from '../../context/modalEventProperty';
const
Modal
=
({
children
,
hidden
,
hangupButton
,
phoneNumber
,
callType
})
=>
{
const
Modal
=
({
children
,
hidden
,
hangupButton
,
phoneNumber
,
callType
})
=>
{
const
boxDialer
=
window
.
BoxDialer
;
const
boxDialer
=
window
.
BoxDialer
;
...
@@ -24,7 +23,6 @@ const Modal = ({ children, hidden, hangupButton, phoneNumber, callType }) => {
...
@@ -24,7 +23,6 @@ const Modal = ({ children, hidden, hangupButton, phoneNumber, callType }) => {
const
[
transferModel
,
setTransferModel
]
=
useState
(
true
);
const
[
transferModel
,
setTransferModel
]
=
useState
(
true
);
const
[
numpadModal
,
setNumpadModal
]
=
useState
(
false
);
const
[
numpadModal
,
setNumpadModal
]
=
useState
(
false
);
console
.
log
(
'
callType_modal:
'
,
callType
)
useEffect
(()
=>
{
useEffect
(()
=>
{
setModalHidden
(
hidden
);
setModalHidden
(
hidden
);
...
@@ -172,11 +170,6 @@ const Modal = ({ children, hidden, hangupButton, phoneNumber, callType }) => {
...
@@ -172,11 +170,6 @@ const Modal = ({ children, hidden, hangupButton, phoneNumber, callType }) => {
<
div
className=
'round'
></
div
>
<
div
className=
'round'
></
div
>
<
p
className=
'name'
>
No name
</
p
>
<
p
className=
'name'
>
No name
</
p
>
</
ModalContainer
.
Head
>
</
ModalContainer
.
Head
>
{
/* <hr />
<ModalContainer.Body rollUp={rollUp}></ModalContainer.Body>
<hr />
<ModalContainer.Bottom rollUp={rollUp}></ModalContainer.Bottom>
<hr /> */
}
{
selectModalType
(
callType
)
}
{
selectModalType
(
callType
)
}
</
ModalContainer
>
</
ModalContainer
>
<
div
className=
'rollUpVesion'
>
<
div
className=
'rollUpVesion'
>
...
...
src/components/ModalPhoneNumpad/index.jsx
View file @
41c692c1
...
@@ -186,9 +186,7 @@ const ModalPhoneNumpad = ({
...
@@ -186,9 +186,7 @@ const ModalPhoneNumpad = ({
},
[
handleKeyUp
]);
},
[
handleKeyUp
]);
// `${Data.getHours()}:${Data.getMinutes()} ${Data.getDate()}.${Data.getMonth()+1}.${Data.getFullYear()}`
// `${Data.getHours()}:${Data.getMinutes()} ${Data.getDate()}.${Data.getMonth()+1}.${Data.getFullYear()}`
const
callButton
=
()
=>
{
const
callButton
=
()
=>
{
// inset if ----------
// -------------------
var
currentTime
=
new
Date
();
var
currentTime
=
new
Date
();
if
(
dynamicValue
===
'
connected
'
)
{
if
(
dynamicValue
===
'
connected
'
)
{
if
(
if
(
...
@@ -196,8 +194,7 @@ const ModalPhoneNumpad = ({
...
@@ -196,8 +194,7 @@ const ModalPhoneNumpad = ({
call_history
.
slice
(
-
1
)[
0
]?.
value
!=
inputValue
call_history
.
slice
(
-
1
)[
0
]?.
value
!=
inputValue
)
{
)
{
let
newCallsStringify
=
JSON
.
stringify
([
let
newCallsStringify
=
JSON
.
stringify
([
...
call_history
,
...
call_history
,
{
{
value
:
inputValue
,
value
:
inputValue
,
time
:
`
${
currentTime
.
getHours
()}
:
${
currentTime
.
getMinutes
()}
${
currentTime
.
getDate
()}
.
${
currentTime
.
getMonth
()}
.
${
currentTime
.
getFullYear
()}
`
,
time
:
`
${
currentTime
.
getHours
()}
:
${
currentTime
.
getMinutes
()}
${
currentTime
.
getDate
()}
.
${
currentTime
.
getMonth
()}
.
${
currentTime
.
getFullYear
()}
`
,
},
},
...
@@ -213,6 +210,7 @@ const ModalPhoneNumpad = ({
...
@@ -213,6 +210,7 @@ const ModalPhoneNumpad = ({
},
},
});
});
}
}
};
};
const
selectFunc
=
(
e
)
=>
{
const
selectFunc
=
(
e
)
=>
{
setInputValue
(
e
);
setInputValue
(
e
);
...
@@ -287,7 +285,6 @@ const ModalPhoneNumpad = ({
...
@@ -287,7 +285,6 @@ const ModalPhoneNumpad = ({
<
p
className=
'call_text'
>
{
translator
.
translate
(
'
CALL
'
)
}
</
p
>
<
p
className=
'call_text'
>
{
translator
.
translate
(
'
CALL
'
)
}
</
p
>
</
div
>
</
div
>
<
div
className=
'right'
onClick=
{
()
=>
setExNum
(
!
exNum
)
}
>
<
div
className=
'right'
onClick=
{
()
=>
setExNum
(
!
exNum
)
}
>
{
/* <KeyboardControlKeyIcon className='icon' /> */
}
<
div
className=
'icon'
></
div
>
<
div
className=
'icon'
></
div
>
</
div
>
</
div
>
</
NumberButton
.
CallButton
>
</
NumberButton
.
CallButton
>
...
@@ -310,10 +307,6 @@ const ModalPhoneNumpad = ({
...
@@ -310,10 +307,6 @@ const ModalPhoneNumpad = ({
))
}
))
}
</
NumberButton
.
CallButtonModalInset
>
</
NumberButton
.
CallButtonModalInset
>
</
NumberButton
.
CallButtonModal
>
</
NumberButton
.
CallButtonModal
>
{
/* <ModalPhoneNumpadStyle.Window
visiblevalue={exNum}
onClick={() => setExNum(false)}
/> */
}
</
NumberButton
>
</
NumberButton
>
</>
</>
)
:
(
)
:
(
...
...
src/components/ModalPhoneNumpad/style.js
View file @
41c692c1
...
@@ -17,7 +17,6 @@ const ModalPhoneNumpadStyle = styled.div`
...
@@ -17,7 +17,6 @@ const ModalPhoneNumpadStyle = styled.div`
bottom: 120px;
bottom: 120px;
transition:
${({
switchAnim
})
=>
transition:
${({
switchAnim
})
=>
typeof
switchAnim
!==
'
undefined
'
?
(
switchAnim
?
'
0.2s
'
:
'
0s
'
)
:
'
0.2s
'
}
;
typeof
switchAnim
!==
'
undefined
'
?
(
switchAnim
?
'
0.2s
'
:
'
0s
'
)
:
'
0.2s
'
}
;
${({
switchAnim
})
=>
console
.
log
(
'
switchAnim:
'
,
switchAnim
)}
z-index: 9999;
z-index: 9999;
${({
hiddenValue
,
position
,
variant
})
=>
${({
hiddenValue
,
position
,
variant
})
=>
hiddenValue
hiddenValue
...
...
src/components/setting/index.jsx
View file @
41c692c1
...
@@ -32,8 +32,6 @@ const SettingComponent = ({
...
@@ -32,8 +32,6 @@ const SettingComponent = ({
setSettingPage
(
count
)
setSettingPage
(
count
)
}
}
console
.
log
(
'
elem:
'
,
elem
)
useEffect
(()
=>
{
useEffect
(()
=>
{
console
.
log
(
'
settingPage:
'
,
settingPage
)
console
.
log
(
'
settingPage:
'
,
settingPage
)
if
(
elem
){
if
(
elem
){
...
...
src/components/settingComponents/fixComponent/index.jsx
View file @
41c692c1
...
@@ -10,8 +10,6 @@ const FixComponent = () => {
...
@@ -10,8 +10,6 @@ const FixComponent = () => {
const
useColorConfigStore
=
useColorConfig
((
store
)
=>
store
)
const
useColorConfigStore
=
useColorConfig
((
store
)
=>
store
)
console
.
log
(
'
useColorConfig client:
'
,
useColorConfigStore
.
state
.
autoAnswer
)
const
marks
=
[
const
marks
=
[
{
{
value
:
1
,
value
:
1
,
...
...
src/lib/boxDIaler.js
View file @
41c692c1
This diff is collapsed.
Click to expand it.
src/root/index.jsx
View file @
41c692c1
...
@@ -11,7 +11,6 @@ import InnerCaller from '../components/InnerCaller';
...
@@ -11,7 +11,6 @@ import InnerCaller from '../components/InnerCaller';
import
{
useConfigHoldMute
}
from
"
../storage
"
import
{
useConfigHoldMute
}
from
"
../storage
"
import
SettingComponent
from
"
../components/setting
"
import
SettingComponent
from
"
../components/setting
"
import
{
useColorConfig
}
from
"
../storage/globalColorConfig
"
import
{
useColorConfig
}
from
"
../storage/globalColorConfig
"
// import { contextModalEventProperty } from '../context/modalEventProperty';
const
Root
=
({
wsphonedata
,
onSetDnd
,
setWsphonedata
,
callMethod
})
=>
{
const
Root
=
({
wsphonedata
,
onSetDnd
,
setWsphonedata
,
callMethod
})
=>
{
const
boxDialer
=
window
.
BoxDialer
;
const
boxDialer
=
window
.
BoxDialer
;
...
@@ -178,14 +177,6 @@ const Root = ({wsphonedata, onSetDnd, setWsphonedata, callMethod}) => {
...
@@ -178,14 +177,6 @@ const Root = ({wsphonedata, onSetDnd, setWsphonedata, callMethod}) => {
extnums=
{
wsphonedata
.
extnums
}
extnums=
{
wsphonedata
.
extnums
}
/>
/>
{
/*
incoming
outgoing
connectingIncoming
connectingOutgoing
connected
*/
}
<
Modal
<
Modal
className=
'tailwindGlobalCss'
className=
'tailwindGlobalCss'
hidden=
{
modalState
.
bool
}
hidden=
{
modalState
.
bool
}
...
...
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