Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zimbra-admin-api-js
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Public
zimbra-admin-api-js
Commits
21b45111
Commit
21b45111
authored
Feb 27, 2017
by
Juorder Gonzalez
Committed by
GitHub
Feb 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #287 from ZBoxApp/manager_performance
Manager performance
parents
914fed4c
a1127cde
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
169 additions
and
387 deletions
+169
-387
package.json
package.json
+1
-1
sales.jsx
src/components/sales/sales.jsx
+143
-385
client.jsx
src/utils/client.jsx
+25
-1
No files found.
package.json
View file @
21b45111
...
...
@@ -15,7 +15,7 @@
"
js-powerdns
"
:
"
ZBoxApp/js-powerdns
"
,
"
keymirror
"
:
"
0.1.1
"
,
"
lodash
"
:
"
^4.11.1
"
,
"
moment
"
:
"
^2.13.
0
"
,
"
moment
"
:
"
^2.13.
x
"
,
"
node-sass
"
:
"
^3.8.0
"
,
"
nprogress
"
:
"
^0.2.0
"
,
"
object-assign
"
:
"
4.0.1
"
,
...
...
src/components/sales/sales.jsx
View file @
21b45111
This diff is collapsed.
Click to expand it.
src/utils/client.jsx
View file @
21b45111
...
...
@@ -75,7 +75,7 @@ function initZimbra() {
export
function
getClientConfig
(
success
,
error
)
{
return
$
.
ajax
({
url
:
'https://manager
-api.zboxapp.com
/parse/functions/getConfigManager'
,
url
:
'https://manager
.zboxapp.com/ventas_api
/parse/functions/getConfigManager'
,
//url: './config/config.json',
dataType
:
'json'
,
method
:
'POST'
,
...
...
@@ -845,6 +845,30 @@ export function getPrices(data, success, error) {
});
}
export
function
requestMailboxes
(
data
,
success
,
error
)
{
const
appId
=
window
.
manager_config
.
salesAPI
.
appId
;
const
endpoints
=
window
.
manager_config
.
salesAPI
;
const
url
=
endpoints
.
base
+
endpoints
.
requestSale
;
$
.
ajax
({
url
:
url
,
method
:
'POST'
,
data
:
data
,
contentType
:
'application/json'
,
headers
:
{
'X-Parse-Application-Id'
:
appId
,
'X-Parse-REST-API-Key'
:
'master'
},
dataType
:
'json'
,
success
:
function
onSuccess
(
response
)
{
success
(
response
);
},
error
:
function
onError
(
err
)
{
error
(
err
.
responseJSON
||
err
);
}
});
}
export
function
makeSale
(
data
,
success
,
error
)
{
const
appId
=
window
.
manager_config
.
salesAPI
.
appId
;
const
endpoints
=
window
.
manager_config
.
salesAPI
;
...
...
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