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
1f558f03
Commit
1f558f03
authored
Aug 21, 2023
by
Muhammadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed warnings
parent
b37e426d
Pipeline
#231
canceled with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
17 deletions
+25
-17
package.json
package.json
+1
-1
DropDown.jsx
src/components/TailwindComponents/DropDown.jsx
+2
-2
index.jsx
src/components/WidjetButton/index.jsx
+12
-10
index.html
src/index.html
+1
-1
index.js
src/index.js
+9
-3
No files found.
package.json
View file @
1f558f03
{
"name"
:
"boxdialer"
,
"version"
:
"
1.0.0
"
,
"version"
:
"
0.0.1
"
,
"description"
:
""
,
"main"
:
"index.js"
,
"scripts"
:
{
...
...
src/components/TailwindComponents/DropDown.jsx
View file @
1f558f03
...
...
@@ -35,8 +35,8 @@ const DropDownTailwind = ({ reasons, reason, selectFunc }) => {
leaveTo=
'transform opacity-0 scale-95'
>
<
Menu
.
Items
className=
'absolute left-1 z-10 mt-2 w-56 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none'
>
<
div
className=
'py-3 flex flex-col'
>
{
reasons
.
map
((
value
)
=>
(
<
Menu
.
Item
onClick=
{
()
=>
selectFunc
(
value
)
}
>
{
reasons
.
map
((
value
,
index
)
=>
(
<
Menu
.
Item
onClick=
{
()
=>
selectFunc
(
value
)
}
key=
{
index
}
>
{
({
active
})
=>
(
<
p
className=
{
classNames
(
...
...
src/components/WidjetButton/index.jsx
View file @
1f558f03
...
...
@@ -17,16 +17,18 @@ import DropDownTailwind from '../TailwindComponents/DropDown';
import
TimerUi
from
'
../TimerUi
'
;
const
WidjetButton
=
({
data
,
onSetDnd
})
=>
{
data
=
{
iscloud
:
true
,
number
:
'
4003
'
,
wsurl
:
'
cld.alovoice.uz:61040
'
,
server_id
:
40
,
secret
:
'
26a830
'
,
reason
:
'
free
'
,
lefttime
:
231461
,
reasons
:
[
'
free
'
,
'
outcalls
'
,
'
home
'
,
'
totop
'
],
};
if
(
!
data
)
{
data
=
{
iscloud
:
true
,
number
:
'
4003
'
,
wsurl
:
'
cld.alovoice.uz:61040
'
,
server_id
:
40
,
secret
:
'
26a830
'
,
reason
:
'
free
'
,
lefttime
:
231461
,
reasons
:
[
'
free
'
,
'
outcalls
'
,
'
home
'
,
'
totop
'
],
};
}
if
(
window
?.
alovoice_wsphone
)
{
data
=
window
.
alovoice_wsphone
;
...
...
src/index.html
View file @
1f558f03
...
...
@@ -9,6 +9,6 @@
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div
id=
"
app
"
></div>
<div
id=
"
boxdialer
"
></div>
</body>
</html>
src/index.js
View file @
1f558f03
/** @format */
import
React
from
'
react
'
;
import
ReactDOM
from
'
react-dom
'
;
// import ReactDOM from 'react-dom';
import
{
render
}
from
'
react-dom
'
;
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
();
ReactDOM
.
render
(
const
container
=
document
.
getElementById
(
'
boxdialer
'
);
const
root
=
createRoot
(
container
);
root
.
render
(
<
React
.
StrictMode
>
<
Toaster
/>
<
WidjetButton
/>
<
/React.StrictMode>
,
document
.
getElementById
(
'
app
'
),
);
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