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
Hide 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 = ({
.
scrollTo
(
document
.
getElementById
(
'
numbersDiv
'
).
scrollWidth
,
0
);
},
[
inputValue
]);
console
.
log
(
'
input_modal:
'
,
modal
,
numberSelectHistory
);
document
.
querySelector
(
'
body
'
).
addEventListener
(
'
click
'
,
function
(
e
)
{
if
(
modal
)
setModal
(
false
);
});
...
...
src/components/Modal/index.jsx
View file @
41c692c1
...
...
@@ -13,7 +13,6 @@ import DialpadIcon from '@mui/icons-material/Dialpad';
import
CallCardDropDown
from
'
../CallCardDropDown
'
;
import
ModalNumpad
from
'
../ModalNumpad
'
;
import
{
useConfigHoldMute
}
from
"
../../storage
"
// import { contextModalEventProperty } from '../../context/modalEventProperty';
const
Modal
=
({
children
,
hidden
,
hangupButton
,
phoneNumber
,
callType
})
=>
{
const
boxDialer
=
window
.
BoxDialer
;
...
...
@@ -24,7 +23,6 @@ const Modal = ({ children, hidden, hangupButton, phoneNumber, callType }) => {
const
[
transferModel
,
setTransferModel
]
=
useState
(
true
);
const
[
numpadModal
,
setNumpadModal
]
=
useState
(
false
);
console
.
log
(
'
callType_modal:
'
,
callType
)
useEffect
(()
=>
{
setModalHidden
(
hidden
);
...
...
@@ -172,11 +170,6 @@ const Modal = ({ children, hidden, hangupButton, phoneNumber, callType }) => {
<
div
className=
'round'
></
div
>
<
p
className=
'name'
>
No name
</
p
>
</
ModalContainer
.
Head
>
{
/* <hr />
<ModalContainer.Body rollUp={rollUp}></ModalContainer.Body>
<hr />
<ModalContainer.Bottom rollUp={rollUp}></ModalContainer.Bottom>
<hr /> */
}
{
selectModalType
(
callType
)
}
</
ModalContainer
>
<
div
className=
'rollUpVesion'
>
...
...
src/components/ModalPhoneNumpad/index.jsx
View file @
41c692c1
...
...
@@ -186,9 +186,7 @@ const ModalPhoneNumpad = ({
},
[
handleKeyUp
]);
// `${Data.getHours()}:${Data.getMinutes()} ${Data.getDate()}.${Data.getMonth()+1}.${Data.getFullYear()}`
const
callButton
=
()
=>
{
// inset if ----------
// -------------------
var
currentTime
=
new
Date
();
if
(
dynamicValue
===
'
connected
'
)
{
if
(
...
...
@@ -196,8 +194,7 @@ const ModalPhoneNumpad = ({
call_history
.
slice
(
-
1
)[
0
]?.
value
!=
inputValue
)
{
let
newCallsStringify
=
JSON
.
stringify
([
...
call_history
,
{
...
call_history
,
{
value
:
inputValue
,
time
:
`
${
currentTime
.
getHours
()}
:
${
currentTime
.
getMinutes
()}
${
currentTime
.
getDate
()}
.
${
currentTime
.
getMonth
()}
.
${
currentTime
.
getFullYear
()}
`
,
},
...
...
@@ -213,6 +210,7 @@ const ModalPhoneNumpad = ({
},
});
}
};
const
selectFunc
=
(
e
)
=>
{
setInputValue
(
e
);
...
...
@@ -287,7 +285,6 @@ const ModalPhoneNumpad = ({
<
p
className=
'call_text'
>
{
translator
.
translate
(
'
CALL
'
)
}
</
p
>
</
div
>
<
div
className=
'right'
onClick=
{
()
=>
setExNum
(
!
exNum
)
}
>
{
/* <KeyboardControlKeyIcon className='icon' /> */
}
<
div
className=
'icon'
></
div
>
</
div
>
</
NumberButton
.
CallButton
>
...
...
@@ -310,10 +307,6 @@ const ModalPhoneNumpad = ({
))
}
</
NumberButton
.
CallButtonModalInset
>
</
NumberButton
.
CallButtonModal
>
{
/* <ModalPhoneNumpadStyle.Window
visiblevalue={exNum}
onClick={() => setExNum(false)}
/> */
}
</
NumberButton
>
</>
)
:
(
...
...
src/components/ModalPhoneNumpad/style.js
View file @
41c692c1
...
...
@@ -17,7 +17,6 @@ const ModalPhoneNumpadStyle = styled.div`
bottom: 120px;
transition:
${({
switchAnim
})
=>
typeof
switchAnim
!==
'
undefined
'
?
(
switchAnim
?
'
0.2s
'
:
'
0s
'
)
:
'
0.2s
'
}
;
${({
switchAnim
})
=>
console
.
log
(
'
switchAnim:
'
,
switchAnim
)}
z-index: 9999;
${({
hiddenValue
,
position
,
variant
})
=>
hiddenValue
...
...
src/components/setting/index.jsx
View file @
41c692c1
...
...
@@ -32,8 +32,6 @@ const SettingComponent = ({
setSettingPage
(
count
)
}
console
.
log
(
'
elem:
'
,
elem
)
useEffect
(()
=>
{
console
.
log
(
'
settingPage:
'
,
settingPage
)
if
(
elem
){
...
...
src/components/settingComponents/fixComponent/index.jsx
View file @
41c692c1
...
...
@@ -10,8 +10,6 @@ const FixComponent = () => {
const
useColorConfigStore
=
useColorConfig
((
store
)
=>
store
)
console
.
log
(
'
useColorConfig client:
'
,
useColorConfigStore
.
state
.
autoAnswer
)
const
marks
=
[
{
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';
import
{
useConfigHoldMute
}
from
"
../storage
"
import
SettingComponent
from
"
../components/setting
"
import
{
useColorConfig
}
from
"
../storage/globalColorConfig
"
// import { contextModalEventProperty } from '../context/modalEventProperty';
const
Root
=
({
wsphonedata
,
onSetDnd
,
setWsphonedata
,
callMethod
})
=>
{
const
boxDialer
=
window
.
BoxDialer
;
...
...
@@ -178,14 +177,6 @@ const Root = ({wsphonedata, onSetDnd, setWsphonedata, callMethod}) => {
extnums=
{
wsphonedata
.
extnums
}
/>
{
/*
incoming
outgoing
connectingIncoming
connectingOutgoing
connected
*/
}
<
Modal
className=
'tailwindGlobalCss'
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