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
ea5e3758
Commit
ea5e3758
authored
Jul 13, 2016
by
Juorder Gonzalez
Committed by
Juorder Antonio
Jul 13, 2016
Browse files
Options
Browse Files
Download
Plain Diff
roll back to index.jsx old version
parents
d845f4e3
8f51623d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
24 deletions
+5
-24
index.jsx
src/index.jsx
+4
-18
client.jsx
src/utils/client.jsx
+1
-6
No files found.
src/index.jsx
View file @
ea5e3758
...
@@ -24,9 +24,6 @@ import DistributionLists from './components/distribution/distribution_lists.jsx'
...
@@ -24,9 +24,6 @@ import DistributionLists from './components/distribution/distribution_lists.jsx'
import
EditDistributionList
from
'./components/distribution/edit_distribution_lists.jsx'
;
import
EditDistributionList
from
'./components/distribution/edit_distribution_lists.jsx'
;
import
SearchView
from
'./components/search/search.jsx'
;
import
SearchView
from
'./components/search/search.jsx'
;
import
SalesForm
from
'./components/sales/sales.jsx'
;
import
SalesForm
from
'./components/sales/sales.jsx'
;
import
deleteMassive
from
'./components/massive/masive_delete.jsx'
;
import
ErrorsFromActions
from
'./components/errors_from_action.jsx'
;
import
Template404
from
'./components/404/404.jsx'
;
import
*
as
Client
from
'./utils/client.jsx'
;
import
*
as
Client
from
'./utils/client.jsx'
;
import
*
as
Utils
from
'./utils/utils.jsx'
;
import
*
as
Utils
from
'./utils/utils.jsx'
;
...
@@ -49,15 +46,14 @@ const notFoundParams = {
...
@@ -49,15 +46,14 @@ const notFoundParams = {
function
preRenderSetup
(
callwhendone
)
{
function
preRenderSetup
(
callwhendone
)
{
const
d1
=
Client
.
getClientConfig
(
const
d1
=
Client
.
getClientConfig
(
(
data
)
=>
{
(
data
)
=>
{
const
config
=
data
.
result
;
if
(
!
config
)
{
if
(
!
data
)
{
return
;
return
;
}
}
global
.
window
.
manager_config
=
config
;
global
.
window
.
manager_config
=
data
;
if
(
config
.
debug
)
{
if
(
data
.
debug
)
{
global
.
window
.
Client
=
Client
;
global
.
window
.
Client
=
Client
;
global
.
window
.
Utils
=
Utils
;
global
.
window
.
Utils
=
Utils
;
}
}
...
@@ -124,7 +120,7 @@ function renderRootComponent() {
...
@@ -124,7 +120,7 @@ function renderRootComponent() {
>
>
<
Route
<
Route
path=
'error'
path=
'error'
component=
{
ErrorPage
||
Template404
}
component=
{
ErrorPage
}
/>
/>
<
Route
<
Route
component=
{
LoggedIn
}
component=
{
LoggedIn
}
...
@@ -218,16 +214,6 @@ function renderRootComponent() {
...
@@ -218,16 +214,6 @@ function renderRootComponent() {
path=
'sales/:domainId/mailboxes'
path=
'sales/:domainId/mailboxes'
component=
{
SalesForm
}
component=
{
SalesForm
}
/>
/>
<
Route
path=
'massive'
component=
{
deleteMassive
}
/>
<
Route
path=
'errorsFromAction'
component=
{
ErrorsFromActions
}
/>
</
Route
>
</
Route
>
<
Route
component=
{
NotLoggedIn
}
>
<
Route
component=
{
NotLoggedIn
}
>
<
IndexRedirect
to=
'login'
/>
<
IndexRedirect
to=
'login'
/>
...
...
src/utils/client.jsx
View file @
ea5e3758
...
@@ -75,13 +75,8 @@ function initZimbra() {
...
@@ -75,13 +75,8 @@ function initZimbra() {
export
function
getClientConfig
(
success
,
error
)
{
export
function
getClientConfig
(
success
,
error
)
{
return
$
.
ajax
({
return
$
.
ajax
({
url
:
'
https://ventasparse-ventas.hub.zboxapp.com/parse/functions/getConfigManager
'
,
url
:
'
/config/config.json
'
,
dataType
:
'json'
,
dataType
:
'json'
,
method
:
'POST'
,
headers
:
{
'X-Parse-Application-Id'
:
'salesZboxManagerApp'
},
data
:
{
target
:
'manager'
},
success
,
success
,
error
:
function
onError
(
xhr
,
status
,
err
)
{
error
:
function
onError
(
xhr
,
status
,
err
)
{
var
e
=
handleError
(
'getClientConfig'
,
err
);
var
e
=
handleError
(
'getClientConfig'
,
err
);
...
...
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