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
9b87260a
Commit
9b87260a
authored
Aug 25, 2023
by
Muhammadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update version: 0.6.7
parent
f32c9408
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
50 deletions
+63
-50
package.json
package.json
+1
-1
DropDown.jsx
src/components/TailwindComponents/DropDown.jsx
+54
-44
index.jsx
src/components/WidjetButton/index.jsx
+1
-0
index.css
src/index.css
+5
-5
boxDIaler.js
src/lib/boxDIaler.js
+2
-0
No files found.
package.json
View file @
9b87260a
{
{
"name"
:
"boxdialer"
,
"name"
:
"boxdialer"
,
"version"
:
"0.6.
6
"
,
"version"
:
"0.6.
7
"
,
"description"
:
""
,
"description"
:
""
,
"main"
:
"src/boxDialer.js"
,
"main"
:
"src/boxDialer.js"
,
"scripts"
:
{
"scripts"
:
{
...
...
src/components/TailwindComponents/DropDown.jsx
View file @
9b87260a
...
@@ -2,12 +2,19 @@
...
@@ -2,12 +2,19 @@
import
{
Menu
,
Transition
}
from
'
@headlessui/react
'
;
import
{
Menu
,
Transition
}
from
'
@headlessui/react
'
;
import
React
,
{
Fragment
}
from
'
react
'
;
import
React
,
{
Fragment
}
from
'
react
'
;
import
{
styled
}
from
'
styled-components
'
;
function
classNames
(...
classes
)
{
function
classNames
(...
classes
)
{
return
classes
.
filter
(
Boolean
).
join
(
'
'
);
return
classes
.
filter
(
Boolean
).
join
(
'
'
);
}
}
const
Container
=
styled
.
div
`
`
;
const
DropDownTailwind
=
({
reasons
,
reason
,
selectFunc
})
=>
{
const
DropDownTailwind
=
({
reasons
,
reason
,
selectFunc
})
=>
{
return
(
return
(
<
Container
>
<
Menu
as=
'div'
className=
'text-left w-full h-full'
>
<
Menu
as=
'div'
className=
'text-left w-full h-full'
>
<
div
className=
'w-full'
>
<
div
className=
'w-full'
>
<
Menu
.
Button
<
Menu
.
Button
...
@@ -40,7 +47,9 @@ const DropDownTailwind = ({ reasons, reason, selectFunc }) => {
...
@@ -40,7 +47,9 @@ const DropDownTailwind = ({ reasons, reason, selectFunc }) => {
{
({
active
})
=>
(
{
({
active
})
=>
(
<
p
<
p
className=
{
classNames
(
className=
{
classNames
(
active
?
'
bg-gray-100 text-gray-900
'
:
'
text-gray-700
'
,
active
?
'
bg-gray-100 text-gray-900
'
:
'
text-gray-700
'
,
'
block px-5 py-1 text-lg
'
,
'
block px-5 py-1 text-lg
'
,
)
}
>
)
}
>
{
value
}
{
value
}
...
@@ -53,6 +62,7 @@ const DropDownTailwind = ({ reasons, reason, selectFunc }) => {
...
@@ -53,6 +62,7 @@ const DropDownTailwind = ({ reasons, reason, selectFunc }) => {
</
Transition
>
</
Transition
>
)
}
)
}
</
Menu
>
</
Menu
>
</
Container
>
);
);
};
};
...
...
src/components/WidjetButton/index.jsx
View file @
9b87260a
...
@@ -167,6 +167,7 @@ const WidjetButton = ({ data, onSetDnd, position }) => {
...
@@ -167,6 +167,7 @@ const WidjetButton = ({ data, onSetDnd, position }) => {
return
(
return
(
<>
<>
<
WidjetBlock
<
WidjetBlock
className=
'tailwindGlobalCss'
id=
{
'
responsible-button
'
}
id=
{
'
responsible-button
'
}
onClick=
{
()
=>
{
onClick=
{
()
=>
{
phoneModal
?
setPhoneModal
(
false
)
:
setPhoneModal
(
true
);
phoneModal
?
setPhoneModal
(
false
)
:
setPhoneModal
(
true
);
...
...
src/index.css
View file @
9b87260a
@tailwind
base
;
@tailwind
components
;
@tailwind
utilities
;
*
{
*
{
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
/* @tailwind base;
@tailwind components;
@tailwind utilities; */
\ No newline at end of file
src/lib/boxDIaler.js
View file @
9b87260a
...
@@ -528,10 +528,12 @@ export class BoxDialer {
...
@@ -528,10 +528,12 @@ export class BoxDialer {
},
},
});
});
}
}
closeButtonClick
()
{
closeButtonClick
()
{
console
.
log
(
'
closeButtonClick
'
);
console
.
log
(
'
closeButtonClick
'
);
this
.
stopCall
();
this
.
stopCall
();
}
}
transferButtonClick
(
number
)
{
transferButtonClick
(
number
)
{
if
(
this
.
oSipSessionCall
)
{
if
(
this
.
oSipSessionCall
)
{
if
(
this
.
oSipSessionCall
.
transfer
(
number
)
!=
0
)
{
if
(
this
.
oSipSessionCall
.
transfer
(
number
)
!=
0
)
{
...
...
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