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
8ff2e615
Commit
8ff2e615
authored
Aug 30, 2023
by
Muhammadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update verison: 0.8.7
parent
182d8a41
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
119 additions
and
17 deletions
+119
-17
package-lock.json
package-lock.json
+2
-2
package.json
package.json
+1
-1
index.jsx
src/components/BxMiniWidjetUi/index.jsx
+7
-4
style.js
src/components/BxMiniWidjetUi/style.js
+8
-5
index.jsx
src/components/DefaultWidjetUi/index.jsx
+1
-3
index.jsx
src/components/DropDown/index.jsx
+27
-0
style.js
src/components/DropDown/style.js
+56
-0
index.jsx
src/components/ModalPhoneNumpad/index.jsx
+9
-2
index.css
src/index.css
+8
-0
No files found.
package-lock.json
View file @
8ff2e615
{
{
"name"
:
"boxdialer"
,
"name"
:
"boxdialer"
,
"version"
:
"0.8.
5
"
,
"version"
:
"0.8.
6
"
,
"lockfileVersion"
:
3
,
"lockfileVersion"
:
3
,
"requires"
:
true
,
"requires"
:
true
,
"packages"
:
{
"packages"
:
{
""
:
{
""
:
{
"name"
:
"boxdialer"
,
"name"
:
"boxdialer"
,
"version"
:
"0.8.
5
"
,
"version"
:
"0.8.
6
"
,
"license"
:
"ISC"
,
"license"
:
"ISC"
,
"dependencies"
:
{
"dependencies"
:
{
"@emotion/react"
:
"^11.11.1"
,
"@emotion/react"
:
"^11.11.1"
,
...
...
package.json
View file @
8ff2e615
{
{
"name"
:
"boxdialer"
,
"name"
:
"boxdialer"
,
"version"
:
"0.8.
6
"
,
"version"
:
"0.8.
7
"
,
"description"
:
""
,
"description"
:
""
,
"main"
:
"src/boxDialer.js"
,
"main"
:
"src/boxDialer.js"
,
"scripts"
:
{
"scripts"
:
{
...
...
src/components/BxMiniWidjetUi/index.jsx
View file @
8ff2e615
...
@@ -21,10 +21,13 @@ const BxMiniWidjetUi = ({
...
@@ -21,10 +21,13 @@ const BxMiniWidjetUi = ({
<
div
className=
'left'
>
<
div
className=
'left'
>
<
p
className=
'title'
>
{
phoneNumber
}
</
p
>
<
p
className=
'title'
>
{
phoneNumber
}
</
p
>
<
div
>
<
div
>
<
BxMiniWidjetUiStyle
.
ReasonTest
className=
'status'
reason=
{
reason
}
>
{
reason
!==
'
free
'
?
(
<
span
>
{
reason
}
</
span
>
<
TimerUi
reason=
{
reason
}
time=
{
leftTime
}
/>
</
BxMiniWidjetUiStyle
.
ReasonTest
>
)
:
(
<
TimerUi
reason=
{
reason
}
time=
{
leftTime
}
/>
<
BxMiniWidjetUiStyle
.
ReasonTest
className=
'status'
reason=
{
reason
}
>
<
span
>
{
reason
}
</
span
>
</
BxMiniWidjetUiStyle
.
ReasonTest
>
)
}
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
'bottom'
>
<
div
className=
'bottom'
>
...
...
src/components/BxMiniWidjetUi/style.js
View file @
8ff2e615
...
@@ -10,11 +10,15 @@ const BxMiniWidjetUiStyle = styled.div`
...
@@ -10,11 +10,15 @@ const BxMiniWidjetUiStyle = styled.div`
padding: 0;
padding: 0;
box-sizing: border-box;
box-sizing: border-box;
}
}
background-color:
${({
status
=
''
})
=>
height: 90px;
status
===
'
pending
'
width: 80px;
?
'
orange
'
:
status
===
'
connected
'
?
'
#a0c13d
'
:
'
#ccc
'
}
;
height: 64px;
width: 64px;
border-radius: 13px;
border-radius: 13px;
background-color: #164e63e6;
cursor: pointer;
cursor: pointer;
color: white;
color: white;
z-index: 999;
z-index: 999;
...
@@ -68,7 +72,6 @@ BxMiniWidjetUiStyle.ReasonTest = styled.div`
...
@@ -68,7 +72,6 @@ BxMiniWidjetUiStyle.ReasonTest = styled.div`
`;
`;
BxMiniWidjetUiStyle.StatusLine = styled.div`
BxMiniWidjetUiStyle.StatusLine = styled.div`
height
:
100
%
;
height
:
100
%
;
background
-
color
:
$
{({
backColor
})
=>
backColor
}
;
border
-
bottom
-
left
-
radius
:
30
px
;
border
-
bottom
-
left
-
radius
:
30
px
;
border
-
bottom
-
right
-
radius
:
30
px
;
border
-
bottom
-
right
-
radius
:
30
px
;
background
-
color
:
$
{({
status
=
''
})
=>
background
-
color
:
$
{({
status
=
''
})
=>
...
...
src/components/DefaultWidjetUi/index.jsx
View file @
8ff2e615
...
@@ -29,9 +29,7 @@ const DefaultWidjetUi = ({
...
@@ -29,9 +29,7 @@ const DefaultWidjetUi = ({
<
DialPadIcon
/>
<
DialPadIcon
/>
</
div
>
</
div
>
<
div
className=
'bottom'
>
<
div
className=
'bottom'
>
<
DefaultWidjetStyle
.
StatusLine
<
DefaultWidjetStyle
.
StatusLine
status=
{
widjetState
}
>
status=
{
widjetState
}
>
<
p
className=
'verison'
>
v
{
widjetVersion
}
</
p
>
<
p
className=
'verison'
>
v
{
widjetVersion
}
</
p
>
</
DefaultWidjetStyle
.
StatusLine
>
</
DefaultWidjetStyle
.
StatusLine
>
</
div
>
</
div
>
...
...
src/components/DropDown/index.jsx
0 → 100644
View file @
8ff2e615
/** @format */
import
React
,
{
useState
}
from
'
react
'
;
import
DropDownStyle
from
'
./style
'
;
const
DropDown
=
({
reasons
,
reason
,
selectFunc
})
=>
{
const
[
visible
,
setVisible
]
=
useState
(
false
);
return
(
<
DropDownStyle
visible=
{
visible
}
onClick=
{
()
=>
setVisible
(
!
visible
)
}
>
<
DropDownStyle
.
Text
>
{
reason
}
</
DropDownStyle
.
Text
>
<
DropDownStyle
.
DropDown
visible=
{
visible
}
className=
{
'
nocopy
'
}
>
{
reasons
.
map
((
value
,
index
)
=>
(
<
div
className=
'select'
key=
{
index
}
onClick=
{
()
=>
selectFunc
(
value
)
}
>
{
value
}
</
div
>
))
}
</
DropDownStyle
.
DropDown
>
<
DropDownStyle
.
Window
visible=
{
visible
}
onClick=
{
()
=>
setVisible
(
false
)
}
/>
</
DropDownStyle
>
);
};
export
default
DropDown
;
src/components/DropDown/style.js
0 → 100644
View file @
8ff2e615
/** @format */
import
styled
from
'
styled-components
'
;
const
DropDownStyle
=
styled
.
div
`
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
`
;
DropDownStyle
.
Text
=
styled
.
div
``
;
DropDownStyle
.
Window
=
styled
.
div
`
display:
${({
visible
})
=>
(
visible
?
'
block
'
:
'
none
'
)}
;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
`
;
DropDownStyle
.
DropDown
=
styled
.
div
`
z-index: 99999999999;
border-radius: 10px;
background-color: #fff;
position: absolute;
bottom: 40px;
left: 50%;
display: flex;
flex-direction: column;
gap: 5px;
width: 150px;
transition: 0.2s;
padding: 10px 0;
.select {
padding: 5px 10px;
white-space: nowrap;
color: #111827;
font-size: 20px;
:hover {
background-color: #e9e9e9;
}
}
${({
visible
})
=>
visible
?
{
opacity
:
'
1
'
,
transform
:
'
scale(1) translate(-50%, 0)
'
,
}
:
{
opacity
:
'
0
'
,
transform
:
'
scale(0.9) translate(-50%, 0)
'
,
}}
`;
export default DropDownStyle;
src/components/ModalPhoneNumpad/index.jsx
View file @
8ff2e615
...
@@ -6,6 +6,7 @@ import numbers from './numbers';
...
@@ -6,6 +6,7 @@ import numbers from './numbers';
import
DropDownTailwind
from
'
../TailwindComponents/DropDown
'
;
import
DropDownTailwind
from
'
../TailwindComponents/DropDown
'
;
import
CallIcon
from
'
@mui/icons-material/Call
'
;
import
CallIcon
from
'
@mui/icons-material/Call
'
;
import
{
toast
}
from
'
react-hot-toast
'
;
import
{
toast
}
from
'
react-hot-toast
'
;
import
DropDown
from
'
../DropDown
'
;
const
ModalPhoneNumpad
=
({
const
ModalPhoneNumpad
=
({
phoneModal
,
phoneModal
,
...
@@ -140,6 +141,7 @@ const ModalPhoneNumpad = ({
...
@@ -140,6 +141,7 @@ const ModalPhoneNumpad = ({
<
ModalPhoneNumpadStyle
.
ButtonArea
>
<
ModalPhoneNumpadStyle
.
ButtonArea
>
{
numbers
?.
map
((
mapItem
)
=>
(
{
numbers
?.
map
((
mapItem
)
=>
(
<
NumberButton
<
NumberButton
className=
'nocopy'
key=
{
mapItem
.
id
}
key=
{
mapItem
.
id
}
onClick=
{
()
=>
{
onClick=
{
()
=>
{
mapItem
.
type
===
'
number
'
&&
mapItem
.
type
===
'
number
'
&&
...
@@ -155,8 +157,13 @@ const ModalPhoneNumpad = ({
...
@@ -155,8 +157,13 @@ const ModalPhoneNumpad = ({
))
}
))
}
{
!
modalState
.
bool
?
(
{
!
modalState
.
bool
?
(
<>
<>
<
NumberButton
style=
{
{
gridColumn
:
'
1/3
'
}
}
>
<
NumberButton
style=
{
{
gridColumn
:
'
1/3
'
}
}
className=
'nocopy'
>
<
DropDownTailwind
{
/* <DropDownTailwind
selectFunc={onSetDnd}
reasons={reasons}
reason={reason}
/> */
}
<
DropDown
selectFunc=
{
onSetDnd
}
selectFunc=
{
onSetDnd
}
reasons=
{
reasons
}
reasons=
{
reasons
}
reason=
{
reason
}
reason=
{
reason
}
...
...
src/index.css
View file @
8ff2e615
.nocopy
{
-webkit-touch-callout
:
none
;
-webkit-user-select
:
none
;
-khtml-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
}
\ No newline at end of file
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