You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/08/04 21:57:59 UTC
[29/54] [abbrv] [partial] more updates to look and feel
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/archive/templates/apigee.ui.panels.user.graph.html
----------------------------------------------------------------------
diff --git a/deleted/archive/templates/apigee.ui.panels.user.graph.html b/deleted/archive/templates/apigee.ui.panels.user.graph.html
deleted file mode 100644
index 4c55f9b..0000000
--- a/deleted/archive/templates/apigee.ui.panels.user.graph.html
+++ /dev/null
@@ -1,80 +0,0 @@
-<div class="console-section">
- <div class="well thingy">
- {{if picture}}<img src="${picture}" class="user-profile-picture" />{{/if}}
- <div class="title">
- {{if path}}<a href="" onclick="Usergrid.console.pageOpenQueryExplorer('${path}'); return false;">{{/if}}${name}{{if path}}</a>{{/if}}
- </div>
- <div class="bar">
- <a class="btn btn-primary" data-toggle="modal" href="#dialog-form-follow-user">Follow User</a>
- <input type="hidden" value="${username}" id="search-follow-username" name="search-follow-userid">
- </div>
- </div>
-
- <div class="console-section-contents">
- <div class="user-roles-title">Following </div>
- <div class="user-panel-section">
- {{if following}}
- {{if following.length > 0}}
- <div class="query-result-row entity_list_item" id="users-roles-following-table">
- <table class="table table-bordered">
- <tbody>
- {{each following}}
- <tr class="zebraRows">
- <td class="query-result-td-header-name">
- <div class="query-result-header-name query-result-picture-vert-offset">
- {{if path}}
- <a href="" onclick="Usergrid.console.pageOpenUserProfile('${username}'); return false;">
- <span class="user-role-row-name">${username}</span>
- <span class="user-role-row-title"><a href="mailto:${email}">${email}</a></span>
- </a>
- {{/if}}
- </div>
- </td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- {{/if}}
- {{else}}
- <div class="panel-section-message">Not following anyone</div>
- {{/if}}
- <br/>
- </div>
- <div id="user-panel-following-curl-container" class="curl-container">
- </div>
- <br/>
- <div class="user-roles-title">Followers </div>
- <div class="user-panel-section">
- {{if followers}}
- {{if followers.length > 0}}
- <div class="query-result-row entity_list_item" id="users-roles-followed-table">
- <table class="table table-bordered">
- <tbody>
- {{each followers}}
- <tr class="zebraRows">
- <td class="query-result-td-header-name">
- <div class="query-result-header-name query-result-picture-vert-offset">
- {{if path}}
- <a href="" onclick="Usergrid.console.pageOpenUserProfile('${username}'); return false;">
- <span class="user-role-row-name">${username}</span>
- <span class="user-role-row-title"><a href="mailto:${email}">${email}</a></span>
- </a>
- {{/if}}
- </div>
- </td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- </div>
- {{/if}}
- {{else}}
- <div class="panel-section-message">No followers</div>
- {{/if}}
- <br/>
- </div>
- <div id="user-panel-followers-curl-container" class="curl-container">
- </div>
- </div>
-</div>
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/archive/templates/apigee.ui.panels.user.memberships.html
----------------------------------------------------------------------
diff --git a/deleted/archive/templates/apigee.ui.panels.user.memberships.html b/deleted/archive/templates/apigee.ui.panels.user.memberships.html
deleted file mode 100644
index fa0420a..0000000
--- a/deleted/archive/templates/apigee.ui.panels.user.memberships.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<div class="console-section">
- <div class="well thingy">
- {{if picture}}<img src="${picture}" class="user-profile-picture" />{{/if}}
- <div class="title">
- {{if path}}<a href="" onclick="Usergrid.console.pageOpenQueryExplorer('${path}'); return false;">{{/if}}${name}{{if path}}</a>{{/if}}
- </div>
- <div class="bar">
- <a class="btn " data-toggle="modal" onclick="Usergrid.console.removeUserFromGroup('${username}'); return false;">Remove</a>
- <a style="margin-right: 15px;" class="btn btn-primary" data-toggle="modal" href="#dialog-form-add-group-to-user">Add to a Group</a>
- <input type="hidden" value="${username}" id="search-group-userid" name="search-group-userid">
- </div>
- </div>
-
- {{if memberships}}
- <table class="table" style="margin-top: 30px">
- <tbody>
- <tr class="zebraRows users-row">
- <td class="checkboxo">
- <input type="checkbox" onclick="Usergrid.console.selectAllEntities(this);" />
- </td>
- <td class="user-details bold-header">
- Group Name
- </td>
- </tr>
- {{each memberships}}
- <tr class="zebraRows users-row">
- <td class="checkboxo"><input type="checkbox" name="${name}" class="listItem" value="${$value.uuid}" /></td>
- <td class="details">
- <a href="#" onclick="Usergrid.console.pageOpenGroupProfile('${$value.path}'); return false;">${$value.path}</a>
- </td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- {{else}}
- <div class="panel-section-message">no group memberships</div>
- {{/if}}
-</div>
-<div id="user-panel-memberships-curl-container" class="curl-container">
-</div>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/archive/templates/apigee.ui.panels.user.permissions.html
----------------------------------------------------------------------
diff --git a/deleted/archive/templates/apigee.ui.panels.user.permissions.html b/deleted/archive/templates/apigee.ui.panels.user.permissions.html
deleted file mode 100644
index c69407c..0000000
--- a/deleted/archive/templates/apigee.ui.panels.user.permissions.html
+++ /dev/null
@@ -1,105 +0,0 @@
-<div class="console-section">
- <div class="well thingy">
- {{if picture}}<img src="${picture}" class="user-profile-picture" />{{/if}}
- <div class="title">
- {{if path}}<a href="" onclick="Usergrid.console.pageOpenQueryExplorer('${path}'); return false;">{{/if}}
- ${name}
- {{if path}}</a>{{/if}}
- </div>
- <div class="bar">
- <a class="btn" data-toggle="modal" href="#" onclick="Usergrid.console.deleteUsersFromRoles('${username}'); return false;"> Remove </a>
- <a style="margin-right: 15px;" class="btn btn-primary" data-toggle="modal" href="#dialog-form-add-user-to-role"> Add role</a>
- </div>
- </div>
- <div class="console-section-contents">
- <div class="user-panel-section">
- <div class="user-roles-title">Roles </div>
- {{if roles}}
- {{if roles.length > 0}}
- <table class="table table-bordered users-permissions-response-table">
- <tbody>
- <tr class="zebraRows users-row">
- <td class="checkboxo">
- <input type="checkbox" onclick="Usergrid.console.selectAllEntities(this);" />
- </td>
- <td class="user-details bold-header">
- Group Name
- </td>
- </tr>
-
- {{each roles}}
- <tr class="zebraRows users-row">
- <td class="checkboxo"><input type="checkbox" name="${title}" class="listItem" value="${name}" /></td>
- <td class="details">
- {{if path}}<a href="" onclick="Usergrid.console.pageOpenRole('${name}', '${title}'); return false;">{{/if}}
- ${title}
- (${name})
- {{if path}}</a>{{/if}}
- </td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- {{/if}}
- {{else}}
- <div class="panel-section-message">No Roles</div>
- {{/if}}
- <br/>
- <div id="user-panel-roles-curl-container" class="curl-container">
- </div>
- <div class="user-roles-title">Permissions </div>
- <h4>Add Permission Rule</h4>
- <form id="role-permissions-form" action="" onsubmit="Usergrid.console.addUserPermission('${username}'); return false;" class="well form-inline" autocomplete="off">
- Path: <input id="user-permission-path-entry-input" type="text" name="path" value="/" />
- <label class="checkbox">
- <input id="user-permission-op-get-checkbox" type="checkbox" name="get" value="get"/>
- get </label>
- <label class="checkbox">
- <input id="user-permission-op-post-checkbox" type="checkbox" name="post" value="post"/>
- post </label>
- <label class="checkbox">
- <input id="user-permission-op-put-checkbox" type="checkbox" name="put" value="put"/>
- put </label>
- <label class="checkbox">
- <input id="user-permission-op-delete-checkbox" type="checkbox" name="delete" value="delete"/>
- delete </label>
- <button type="submit" class="btn btn-primary"><i class="icon-plus-sign icon-white"></i> Add</button >
- </form>
- <br/>
- <h4>Permission Rules</h4>
- {{if permissions}}
- <table id="role-permissions-table" data-permission="${$index}" class="table table-striped table-bordered table-condensed">
- <thead>
- <tr>
- <th>Path</th>
- <th class="role-permission-op">Get</th>
- <th class="role-permission-op">Post</th>
- <th class="role-permission-op">Put</th>
- <th class="role-permission-op">Delete</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- {{each permissions}}
- <tr>
- <td class="role-permission-path">${$value.path}</td>
- <td class="role-permission-op">{{if $value.ops.get}}<i class="icon-ok"></i>{{/if}}</td>
- <td class="role-permission-op">{{if $value.ops.post}}<i class="icon-ok"></i>{{/if}}</td>
- <td class="role-permission-op">{{if $value.ops.put}}<i class="icon-ok"></i>{{/if}}</td>
- <td class="role-permission-op">{{if $value.ops.delete}}<i class="icon-ok"></i>{{/if}}</td>
- <td class="role-permission-delete">
- <a onclick="Usergrid.console.deleteUserPermission('${username}', '${$value.perm}'); return false;" href="#" class="btn btn-danger"><i class="icon-trash icon-white"></i> Remove</a>
- </td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- {{else}}
- <div class="alert">No Permissions</div>
- {{/if}}
- <div id="user-panel-permissions-curl-container" class="curl-container">
- </div>
- </div>
- </div>
-</div>
-<input type="hidden" name="role-form-username" id="role-form-username" value="${$data.entity.username}"/>
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/archive/templates/apigee.ui.panels.user.profile.html
----------------------------------------------------------------------
diff --git a/deleted/archive/templates/apigee.ui.panels.user.profile.html b/deleted/archive/templates/apigee.ui.panels.user.profile.html
deleted file mode 100644
index 3784e33..0000000
--- a/deleted/archive/templates/apigee.ui.panels.user.profile.html
+++ /dev/null
@@ -1,113 +0,0 @@
-<div class="alert messages" style="display: none;"></div>
-<div class="console-section">
- <div class="well thingy">
- <img src="${picture}" class="gravatar50" />
- <div class="title">
- {{if path}}<a href="" onclick="Usergrid.console.pageOpenQueryExplorer('${path}'); return false;">{{/if}}${name}{{if path}}</a>{{/if}}
- </div>
- <div class="bar">
- <a style="margin-right: 15px;" class="btn btn-primary" onclick="Usergrid.console.saveUserProfile('${username}'); return false;">Save User</a>
- </div>
- </div>
- <h3>Edit</h3>
- <div class="query-result-form"></div>
- <div class="content-container">
- <h3>Contents</h3>
- <table class="table">
- <tbody>
- <tr class="zebraRows">
- <td>UUID</td>
- <td>${entity.uuid}</td>
- </tr>
- <tr class="zebraRows">
- <td>Type</td>
- <td>${entity.type}</td>
- </tr>
- <tr class="zebraRows">
- <td>
- Created
- </td>
- <td>
- <a href="#" class="toggleableSP">${dateToString(entity.created)}</a>
- <a href="#" class="toggleableSP hide">${entity.created}</a>
- </td>
- </tr>
- <tr class="zebraRows">
- <td>
- Modified
- </td>
- <td>
- <a href="#" class="toggleableSP">${dateToString(entity.modified)}</a>
- <a href="#" class="toggleableSP hide">${entity.modified}</a>
- </td>
- </tr>
- <tr class="zebraRows">
- <td>Activated</td>
- <td>${entity.activated}</td>
- </tr>
- <tr class="zebraRows">
- <td>Email</td>
- <td>${entity.email}</td>
- </tr>
- <tr class="zebraRows">
- <td>Name</td>
- <td>${entity.name}</td>
- </tr>
- <tr class="zebraRows">
- <td>Picture</td>
- <td>${entity.picture}</td>
- </tr>
- <tr class="zebraRows">
- <td>Username</td>
- <td>${entity.username}</td>
- </tr>
- <tr class="zebraRows">
- <td>Path</td>
- <td><a href="#" onclick="Usergrid.console.pageOpenQueryExplorer('${path}'); return false;">${path}</a></td>
- </tr>
- <tr class="zebraRows">
- <td>Sets</td>
- <td>
- <table class="table table-striped">
- <tbody>
- {{each metadata.sets}}
- <tr>
- <td>
- ${$index}
- </td>
- <td>
- <a href="#" onclick="Usergrid.console.pageOpenQueryExplorer('${$value}'); return false;">${$value}</a>
- </td>
- </tr>
- {{/each}}
- <tbody>
- </table>
- </td>
- </tr>
- <tr class="zebraRows">
- <td>Collections</td>
- <td>
- <table class="table table-striped">
- <tbody>
- {{each metadata.collections}}
- <tr>
- <td>
- ${$index}
- </td>
- <td>
- <a href="#" onclick="Usergrid.console.pageOpenQueryExplorer('${$value}'); return false;">${$value}</a>
- </td>
- </tr>
- {{/each}}
- <tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- <h3>JSON</h3>
- <pre class="query-result-json-inner">${JSON.stringify(entity, null, " ")}</pre>
- </div>
-</div>
-<div id="user-panel-profile-curl-container" class="curl-container">
-</div>
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/archive/templates/apigee.ui.role.groups.table_rows.html
----------------------------------------------------------------------
diff --git a/deleted/archive/templates/apigee.ui.role.groups.table_rows.html b/deleted/archive/templates/apigee.ui.role.groups.table_rows.html
deleted file mode 100644
index 9fd867c..0000000
--- a/deleted/archive/templates/apigee.ui.role.groups.table_rows.html
+++ /dev/null
@@ -1,44 +0,0 @@
-
-<div class="console-section">
- <div class="well thingy">
- <span class="title">Groups</span>
- <div class="bar">
- <a class="btn" data-toggle="modal" href="#" onclick="Usergrid.console.removeGroupFromRole('${roleName}', '${roleTitle}'); return false;"> Remove </a>
- <a style="margin-right: 15px;" class="btn btn-primary" data-toggle="modal" href="#dialog-form-add-group-to-role"> Add </a>
- </div>
- </div>
-
-
- {{if entities.length > 0}}
- <table class="table" style="margin-top: 30px">
- <tbody>
- <tr class="zebraRows users-row">
- <td class="checkboxo">
- <input type="checkbox" onclick="Usergrid.console.selectAllEntities(this);" />
- </td>
- <td class="user-details bold-header">
- Group Title
- </td>
- <td class="user-details bold-header">
- Group Path
- </td>
- </tr>
- {{each entities}}
- <tr class="zebraRows users-row">
- <td class="checkboxo"><input type="checkbox" name="${path}" class="listItem" value="${path}" /></td>
- <td class="details">
- <a href="" onclick="Usergrid.console.pageOpenGroupProfile('${path}'); return false;">${title}</a>
- </td>
- <td class="details">
- <a href="" onclick="Usergrid.console.pageOpenGroupProfile('${path}'); return false;">${path}</a>
- </td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- {{else}}
- <div class="panel-section-message">No Group Memberships</div>
- {{/if}}
-</div>
-<div id="group-panel-memberships-curl-container" class="curl-container">
-</div>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/archive/templates/apigee.ui.roles.table_rows.html
----------------------------------------------------------------------
diff --git a/deleted/archive/templates/apigee.ui.roles.table_rows.html b/deleted/archive/templates/apigee.ui.roles.table_rows.html
deleted file mode 100644
index 8a227aa..0000000
--- a/deleted/archive/templates/apigee.ui.roles.table_rows.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-<tr class="zebraRows roles-row">
- <td class="checkboxo">
- <input type="checkbox" class="listItem" name="${title}" value="${name}"/>
- </td>
- <td class="details">
- <a href="#" class="list-link" onclick="Usergrid.console.pageOpenRole('${name}', '${title}'); return false;">${title}</a>
- </td>
- <td class="details">
- <a href="#" class="list-link" onclick="Usergrid.console.pageOpenRole('${name}', '${title}'); return false;">${name}</a>
- </td>
- <td class="view-details">
- <a href="" onclick="Usergrid.console.pageOpenRole('${name}', '${title}'); return false;" class="view-details">View Details</a>
- </td>
-</tr>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/archive/templates/apigee.ui.users.table_rows.html
----------------------------------------------------------------------
diff --git a/deleted/archive/templates/apigee.ui.users.table_rows.html b/deleted/archive/templates/apigee.ui.users.table_rows.html
deleted file mode 100644
index 2c62f55..0000000
--- a/deleted/archive/templates/apigee.ui.users.table_rows.html
+++ /dev/null
@@ -1,18 +0,0 @@
-
-<tr class="zebraRows users-row">
- <td class="checkboxo">
- <input class="listItem" type="checkbox" name="${name}" value="${uuid}" />
- </td>
- <td class="gravatar50-td">
- <a href="" onclick="Usergrid.console.pageOpenUserProfile('${username}'); return false;"><img src="${picture}" class="gravatar50"/></a>
- </td>
- <td class="details">
- <a href="" class="list-link" onclick="Usergrid.console.pageOpenUserProfile('${username}'); return false;">${username}</a>
- </td>
- <td class="details">
- <a href="" class="list-link" onclick="Usergrid.console.pageOpenUserProfile('${username}'); return false;">${name}</a>
- </td>
- <td class="view-details">
- <a href="" onclick="Usergrid.console.pageOpenUserProfile('${username}'); return false;" class="view-details">View Details</a>
- </td>
-</tr>
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/archive/templates/test/modalForm2.html
----------------------------------------------------------------------
diff --git a/deleted/archive/templates/test/modalForm2.html b/deleted/archive/templates/test/modalForm2.html
deleted file mode 100644
index c786ee8..0000000
--- a/deleted/archive/templates/test/modalForm2.html
+++ /dev/null
@@ -1,32 +0,0 @@
-Modal-link
-<a class="" data-toggle="modal" href="#dialog-form-new-admin"><i class="icon-plus"></i> New Administrator</a>
-
-Modal-form
-<form id="dialog-form-new-admin" class="modal hide fade">
- <div class="modal-header">
- <a class="close" data-dismiss="modal">x</a>
- <h4>Create new administrator</h4>
- </div>
- <div class="modal-body">
- <p class="validateTips"></p>
-
- <fieldset>
- <div class="control-group">
- <label for="new-admin-email">Email</label>
- <div class="controls">
- <input type="text" name="email" id="new-admin-email" value="" class="input-xlarge"/>
- <p class="help-block hide"></p>
- </div>
- </div>
- <div class="control-group">
- <div class="controls">
- <p class="help-block hide"></p>
- </div>
- </div>
- </fieldset>
- </div>
- <div class="modal-footer">
- <input type="submit" class="btn btn-usergrid" value="Create"/>
- <input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
- </div>
-</form>
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/archive/test/autocomplete.html
----------------------------------------------------------------------
diff --git a/deleted/archive/test/autocomplete.html b/deleted/archive/test/autocomplete.html
deleted file mode 100644
index c58cbeb..0000000
--- a/deleted/archive/test/autocomplete.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
- <title></title>
- <link rel="stylesheet" type="text/css" href="../bootstrap/css/bootstrap.min.css"/>
- <script src="http://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script>
- <script src="../bootstrap/js/bootstrap-typeahead.js" type="text/javascript"></script>
- <script src="../bootstrap/js/bootstrap-modal.js" type="text/javascript"></script>
-</head>
-<body>
-
-
-<input type="text" id="campo">
-<script type="text/javascript">
- $(document).ready(Init);
- function Init(){
- var campo = $("#campo");
- campo.typeahead({source:[]});
- campo.data('typeahead').source = ["david","oscar","roberto","claudia"];
- }
-</script>
-
-</body>
-</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/archive/test/modalForm.html
----------------------------------------------------------------------
diff --git a/deleted/archive/test/modalForm.html b/deleted/archive/test/modalForm.html
deleted file mode 100644
index c786ee8..0000000
--- a/deleted/archive/test/modalForm.html
+++ /dev/null
@@ -1,32 +0,0 @@
-Modal-link
-<a class="" data-toggle="modal" href="#dialog-form-new-admin"><i class="icon-plus"></i> New Administrator</a>
-
-Modal-form
-<form id="dialog-form-new-admin" class="modal hide fade">
- <div class="modal-header">
- <a class="close" data-dismiss="modal">x</a>
- <h4>Create new administrator</h4>
- </div>
- <div class="modal-body">
- <p class="validateTips"></p>
-
- <fieldset>
- <div class="control-group">
- <label for="new-admin-email">Email</label>
- <div class="controls">
- <input type="text" name="email" id="new-admin-email" value="" class="input-xlarge"/>
- <p class="help-block hide"></p>
- </div>
- </div>
- <div class="control-group">
- <div class="controls">
- <p class="help-block hide"></p>
- </div>
- </div>
- </fieldset>
- </div>
- <div class="modal-footer">
- <input type="submit" class="btn btn-usergrid" value="Create"/>
- <input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
- </div>
-</form>
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/charts/chart-controller.js
----------------------------------------------------------------------
diff --git a/deleted/charts/chart-controller.js b/deleted/charts/chart-controller.js
deleted file mode 100644
index 66368d5..0000000
--- a/deleted/charts/chart-controller.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict'
-
-AppServices.Controllers.controller('ChartCtrl', [ '$scope', '$location', function ( $scope, $location) {
-
-
-}]);
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/charts/chart-directives.js
----------------------------------------------------------------------
diff --git a/deleted/charts/chart-directives.js b/deleted/charts/chart-directives.js
deleted file mode 100644
index 6ea1a9f..0000000
--- a/deleted/charts/chart-directives.js
+++ /dev/null
@@ -1,141 +0,0 @@
-'use strict';
-
-AppServices.Directives.directive('chart', function ($rootScope) {
- return {
- restrict: 'E',
- scope: {
- chartdata: '=chartdata'
- },
- template: '<div></div>',
- replace: true,
- controller: function($scope, $element) {
-
-
- },
- link: function (scope, element, attrs) {
- //we need scope.watch because the value is not populated yet
- //http://stackoverflow.com/questions/14619884/angularjs-passing-object-to-directive
- scope.$watch('chartdata', function(chartdata,oldchartdata) {
-
- if(chartdata){
- //set chart defaults through tag attributes
- var chartsDefaults = {
- chart: {
- renderTo: element[0],
- type: attrs.type || null,
- height: attrs.height || null,
- width: attrs.width || null,
- reflow: true,
- animation: false,
- zoomType: 'x'
-// events: {
-// redraw: resize,
-// load: resize
-// }
- }
- }
-
- if(attrs.type === 'pie'){
- chartsDefaults.chart.margin = [0, 0, 0, 0];
- chartsDefaults.chart.spacingLeft = 0;
- chartsDefaults.chart.spacingRight = 0;
- chartsDefaults.chart.spacingTop = 0;
- chartsDefaults.chart.spacingBottom = 0;
-
- if(attrs.titleimage){
- chartdata.title.text = '<img src=\"'+ attrs.titleimage +'\">';
- }
-
- if(attrs.titleicon){
- chartdata.title.text = '<i class=\"pictogram ' + attrs.titleiconclass + '\">' + attrs.titleicon + '</i>';
- }
-
- if(attrs.titlecolor){
- chartdata.title.style.color = attrs.titlecolor;
- }
-
- if(attrs.titleimagetop){
- chartdata.title.style.marginTop = attrs.titleimagetop;
- }
-
- if(attrs.titleimageleft){
- chartdata.title.style.marginLeft = attrs.titleimageleft;
- }
-
- }
-
- if(attrs.type === 'line'){
- chartsDefaults.chart.marginTop = 30;
- chartsDefaults.chart.spacingTop = 50;
-// chartsDefaults.chart.zoomType = null;
- }
-
- if(attrs.type === 'column'){
- chartsDefaults.chart.marginBottom = 80;
-// chartsDefaults.chart.spacingBottom = 50;
-// chartsDefaults.chart.zoomType = null;
- }
-
- if(attrs.type === 'area'){
- chartsDefaults.chart.spacingLeft = 0;
- chartsDefaults.chart.spacingRight = 0;
- chartsDefaults.chart.marginLeft = 0;
- chartsDefaults.chart.marginRight = 0;
- }
-
- Highcharts.setOptions({
- global : {
- useUTC : false
- },
- chart: {
- style: {
- fontFamily: 'marquette-light, Helvetica, Arial, sans-serif'
- }
- }
- });
-
- // scope.$parent.$watch('apptest.step',function(step){
- // xAxis1.labels.step = step
- // renderChart(chartsDefaults,chartdata);
- // })
-
- if(attrs.type === 'line'){
- //------line charts
- var xAxis1 = chartdata.xAxis[0];
-
- //check for previous setting from service layer or json template... if it doesn't exist use the attr value
- if(!xAxis1.labels.formatter){
- xAxis1.labels.formatter = new Function(attrs.xaxislabel);
- }
- if(!xAxis1.labels.step){
- xAxis1.labels.step = attrs.xaxisstep;
- }
- //end check
- }
-
-
-
-
-
- //pull any stringified from template JS and eval it
- if(chartdata.tooltip){
- if(typeof chartdata.tooltip.formatter === 'string'){
- chartdata.tooltip.formatter = new Function(chartdata.tooltip.formatter);
- }
- }
-
- renderChart(chartsDefaults,chartdata);
- }
-
- },true)
- }
- }
-
-});
-
-
-function renderChart(chartsDefaults,chartdata,attrs){
- var newSettings = {};
- $.extend(true, newSettings, chartsDefaults, chartdata);
- var chart = new Highcharts.Chart(newSettings);
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/charts/chart-service.js
----------------------------------------------------------------------
diff --git a/deleted/charts/chart-service.js b/deleted/charts/chart-service.js
deleted file mode 100644
index df04217..0000000
--- a/deleted/charts/chart-service.js
+++ /dev/null
@@ -1,494 +0,0 @@
-AppServices.Services.factory('charts', function () {
-
- var lineChart,
- areaChart,
- paretoChart,
- pieChart,
- pieCompare,
- xaxis,
- seriesIndex;
-
- return {
- convertLineChart: function (chartData, chartTemplate, dataDescription, settings, currentCompare) {
-
- lineChart = chartTemplate;
-// console.log('chartData',chartData[0])
- if (typeof chartData[0] === 'undefined') {
- chartData[0] = {};
- chartData[0].datapoints = []
- }
- var dataPoints = chartData[0].datapoints,
- dPLength = dataPoints.length,
- label;
-
- if(currentCompare === 'YESTERDAY'){
-// lineChart = chartTemplate;
- seriesIndex = dataDescription.dataAttr.length;
- label = 'Yesterday ';
- }
- else if(currentCompare === 'LAST_WEEK'){
-// lineChart = chartTemplate;
- seriesIndex = dataDescription.dataAttr.length;
- label = 'Last Week ';
- }else{
- lineChart = chartTemplate;
-
- seriesIndex = 0;
- lineChart.series = [];
- label = '';
- }
- xaxis = lineChart.xAxis[0];
- xaxis.categories = [];
-
-
-
- //the next 2 setting options are provided in the timeFormat dropdown, so we must inspect them here
- if (settings.xaxisformat) {
- xaxis.labels.formatter = new Function(settings.xaxisformat);
- }
- if (settings.step) {
- xaxis.labels.step = settings.step;
- }
- //end check
-
- for (var i = 0; i < dPLength; i++) {
- var dp = dataPoints[i];
- xaxis.categories.push(dp.timestamp);
- }
-
- //check to see if there are multiple "chartGroupNames" in the object, otherwise "NA" will go to the else
- if(chartData.length > 1){
-
- for (var l = 0; l < chartData.length; l++){
-
- if(chartData[l].chartGroupName){
-
- dataPoints = chartData[l].datapoints;
-// dPLength = dataPoints.length;
-
- lineChart.series[l] = {};
- lineChart.series[l].data = [];
- lineChart.series[l].name = chartData[l].chartGroupName;
- lineChart.series[l].yAxis = 0;
- lineChart.series[l].type = 'line';
- lineChart.series[l].color = dataDescription.colors[i];
- lineChart.series[l].dashStyle = 'solid';
-
- lineChart.series[l].yAxis.title.text = dataDescription.yAxisLabels;
-
- plotData(l,dPLength,dataPoints,dataDescription.detailDataAttr,true)
- }
- }
- }else{
-
- var steadyCounter = 0;
-
- //loop over incoming data members for axis setup... create empty arrays and settings ahead of time
- //the seriesIndex is for the upcoming compare options - if compare is clicked... if it isn't just use 0 :/
- for (var i = seriesIndex;i < (dataDescription.dataAttr.length + (seriesIndex > 0 ? seriesIndex : 0)); i++) {
- var yAxisIndex = dataDescription.multiAxis ? steadyCounter : 0;
- lineChart.series[i] = {};
- lineChart.series[i].data = [];
- lineChart.series[i].name = label + dataDescription.labels[steadyCounter];
- lineChart.series[i].yAxis = yAxisIndex;
- lineChart.series[i].type = 'line';
- lineChart.series[i].color = dataDescription.colors[i];
- lineChart.series[i].dashStyle = 'solid';
-
- lineChart.yAxis[yAxisIndex].title.text = dataDescription.yAxisLabels[(dataDescription.yAxisLabels > 1 ? steadyCounter : 0)];
- steadyCounter++;
- }
-
- plotData(seriesIndex,dPLength,dataPoints,dataDescription.dataAttr,false)
- }
-
- function plotData(counter,dPLength,dataPoints,dataAttrs,detailedView){
- //massage the data... happy ending
- for (var i = 0; i < dPLength; i++) {
- var dp = dataPoints[i];
-
- var localCounter = counter;
- //loop over incoming data members
- for (var j = 0; j < dataAttrs.length; j++) {
- if(typeof dp === 'undefined'){
- lineChart.series[localCounter].data.push([i, 0]);
- }else{
- lineChart.series[localCounter].data.push([i, dp[dataAttrs[j]]]);
- }
- if(!detailedView){
- localCounter++;
- }
-
- }
-
- }
- }
- return lineChart;
- },
-
- convertAreaChart: function (chartData, chartTemplate, dataDescription, settings, currentCompare) {
-
- areaChart = angular.copy(areaChart);
-// console.log('chartData',chartData[0])
- if (typeof chartData[0] === 'undefined') {
- chartData[0] = {};
- chartData[0].datapoints = []
- }
- var dataPoints = chartData[0].datapoints,
- dPLength = dataPoints.length,
- label;
-
- if(currentCompare === 'YESTERDAY'){
-// areaChart = chartTemplate;
- seriesIndex = dataDescription.dataAttr.length;
- label = 'Yesterday ';
- }
- else if(currentCompare === 'LAST_WEEK'){
-// areaChart = chartTemplate;
- seriesIndex = dataDescription.dataAttr.length;
- label = 'Last Week ';
- }else{
- areaChart = chartTemplate;
-
- seriesIndex = 0;
- areaChart.series = [];
- label = '';
- }
- xaxis = areaChart.xAxis[0];
- xaxis.categories = [];
-
-
-
- //the next 2 setting options are provided in the timeFormat dropdown, so we must inspect them here
- if (settings.xaxisformat) {
- xaxis.labels.formatter = new Function(settings.xaxisformat);
- }
- if (settings.step) {
- xaxis.labels.step = settings.step;
- }
- //end check
-
- for (var i = 0; i < dPLength; i++) {
- var dp = dataPoints[i];
- xaxis.categories.push(dp.timestamp);
- }
-
- //check to see if there are multiple "chartGroupNames" in the object, otherwise "NA" will go to the else
- if(chartData.length > 1){
-
- for (var l = 0; l < chartData.length; l++){
-
- if(chartData[l].chartGroupName){
-
- dataPoints = chartData[l].datapoints;
-// dPLength = dataPoints.length;
-
- areaChart.series[l] = {};
- areaChart.series[l].data = [];
- areaChart.series[l].fillColor = dataDescription.areaColors[l];
- areaChart.series[l].name = chartData[l].chartGroupName;
- areaChart.series[l].yAxis = 0;
- areaChart.series[l].type = 'area';
- areaChart.series[l].pointInterval = 1;
- areaChart.series[l].color = dataDescription.colors[l];
- areaChart.series[l].dashStyle = 'solid';
-
- areaChart.series[l].yAxis.title.text = dataDescription.yAxisLabels;
-
- plotData(l,dPLength,dataPoints,dataDescription.detailDataAttr,true)
- }
- }
- }else{
-
- var steadyCounter = 0;
-
- //loop over incoming data members for axis setup... create empty arrays and settings ahead of time
- //the seriesIndex is for the upcoming compare options - if compare is clicked... if it isn't just use 0 :/
- for (var i = seriesIndex;i < (dataDescription.dataAttr.length + (seriesIndex > 0 ? seriesIndex : 0)); i++) {
- var yAxisIndex = dataDescription.multiAxis ? steadyCounter : 0;
- areaChart.series[i] = {};
- areaChart.series[i].data = [];
- areaChart.series[i].fillColor = dataDescription.areaColors[i];
- areaChart.series[i].name = label + dataDescription.labels[steadyCounter];
- areaChart.series[i].yAxis = yAxisIndex;
- areaChart.series[i].type = 'area';
- areaChart.series[i].pointInterval = 1;
- areaChart.series[i].color = dataDescription.colors[i];
- areaChart.series[i].dashStyle = 'solid';
-
- areaChart.yAxis[yAxisIndex].title.text = dataDescription.yAxisLabels[(dataDescription.yAxisLabels > 1 ? steadyCounter : 0)];
- steadyCounter++;
- }
-
- plotData(seriesIndex,dPLength,dataPoints,dataDescription.dataAttr,false)
- }
-
- function plotData(counter,dPLength,dataPoints,dataAttrs,detailedView){
- //massage the data... happy ending
- for (var i = 0; i < dPLength; i++) {
- var dp = dataPoints[i];
-
- var localCounter = counter;
- //loop over incoming data members
- for (var j = 0; j < dataAttrs.length; j++) {
- if(typeof dp === 'undefined'){
- areaChart.series[localCounter].data.push(0);
- }else{
- areaChart.series[localCounter].data.push(dp[dataAttrs[j]]);
- }
- if(!detailedView){
- localCounter++;
- }
-
- }
-
- }
- }
- return areaChart;
- },
-
- convertParetoChart: function (chartData, chartTemplate, dataDescription, settings, currentCompare) {
-
- paretoChart = chartTemplate;
-
- if (typeof chartData === 'undefined') {
- chartData = [];
- }
-
- var label,
- cdLength = chartData.length,
- compare = false,
- allParetoOptions = [],
- stackedBar = false;
-
- seriesIndex = 0;
-
- function getPreviousData(){
- for(var i = 0;i < chartTemplate.series[0].data.length;i++){
- //pulling the "now" values for comparison later, assuming they will be in the 0 index :)
- allParetoOptions.push(chartTemplate.xAxis.categories[i])
- }
- }
-
- if(typeof dataDescription.dataAttr[1] === 'object'){
- stackedBar = true;
- }
-
- if(currentCompare === 'YESTERDAY'){
- label = 'Yesterday ';
- compare = true;
- if(stackedBar){
- seriesIndex = dataDescription.dataAttr[1].length;
- }
- getPreviousData()
- }
- else if(currentCompare === 'LAST_WEEK'){
- label = 'Last Week ';
- compare = true;
- if(stackedBar){
- seriesIndex = dataDescription.dataAttr[1].length;
- }
- seriesIndex =
- getPreviousData()
- }else{
- compare = false;
- label = '';
- paretoChart.xAxis.categories = [];
- paretoChart.series = [];
- paretoChart.series[0] = {};
- paretoChart.series[0].data = [];
- paretoChart.legend.enabled = false;
- }
-
- paretoChart.plotOptions.series.borderColor = dataDescription.borderColor;
-
-
- //create a basic compare series (more advanced needed for stacked bar)
- if(compare && !stackedBar){
- paretoChart.series[1] = {};
- paretoChart.series[1].data = [];
- //repopulate array with 0 values based on length of NOW data
- for(var i = 0; i < allParetoOptions.length; i++) {
- paretoChart.series[1].data.push(0);
- }
- paretoChart.legend.enabled = true;
-// paretoChart.series[1].name = label;
-// paretoChart.series[0].name = "Now";
- }
-
- for (var i = 0; i < cdLength; i++) {
- var bar = chartData[i];
-
- if(!compare){
- paretoChart.xAxis.categories.push(bar[dataDescription.dataAttr[0]]);
-
- //if we send multiple attributes to be plotted, assume it's a stacked bar for now
- if(typeof dataDescription.dataAttr[1] === 'object'){
- createStackedBar(dataDescription,paretoChart,paretoChart.series.length);
- }else{
- paretoChart.series[0].data.push(bar[dataDescription.dataAttr[1]]);
- paretoChart.series[0].name = dataDescription.labels[0];
- paretoChart.series[0].color = dataDescription.colors[0];
- }
-
- }else{
-
- //check if this is a stacked bar
-
-
- var newLabel = bar[dataDescription.dataAttr[0]],
- newValue = bar[dataDescription.dataAttr[1]],
- previousIndex = allParetoOptions.indexOf(newLabel);
-
- //make sure this label existed in the NOW data
- if(previousIndex > -1){
- if(typeof dataDescription.dataAttr[1] === 'object'){
- createStackedBar(dataDescription,paretoChart,paretoChart.series.length);
- }else{
- paretoChart.series[1].data[previousIndex] = newValue;
- paretoChart.series[1].name = (label !== '' ? label + ' ' + dataDescription.labels[0] : dataDescription.labels[0]);
- paretoChart.series[1].color = dataDescription.colors[1];
- }
- }else{
- //not found for comparison
- }
-
-
- }
-
- }
-
- function createStackedBar(dataDescription,paretoChart,startingPoint){
-
- paretoChart.plotOptions = {
- series: {
- shadow: false,
- borderColor: dataDescription.borderColor,
- borderWidth: 1
- },
- column: {
- stacking: 'normal',
- dataLabels: {
- enabled: true,
- color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'
- }
- }
- };
-
- var start = dataDescription.dataAttr[1].length,
- steadyCounter = 0,
- stackName = label;
-
- if(compare){
- paretoChart.legend.enabled = true;
- }
-
- for (var f = seriesIndex; f < (start + seriesIndex); f++) {
- if(!paretoChart.series[f]){
- paretoChart.series[f] = {'data':[]}
- }
- paretoChart.series[f].data.push(bar[dataDescription.dataAttr[1][steadyCounter]]);
- paretoChart.series[f].name = (label !== '' ? label + ' ' + dataDescription.labels[steadyCounter] : dataDescription.labels[steadyCounter]);
- paretoChart.series[f].color = dataDescription.colors[f];
- paretoChart.series[f].stack = label;
- steadyCounter++
- }
-
-
- }
-
- return paretoChart;
- },
-
- convertPieChart: function (chartData, chartTemplate, dataDescription, settings, currentCompare) {
-
- var label,
- cdLength = chartData.length,
- compare = false;
-
- pieChart = chartTemplate;
-
- if(currentCompare === 'YESTERDAY'){
- label = 'Yesterday ';
- compare = false; //override for now to false
- }
- else if(currentCompare === 'LAST_WEEK'){
- label = 'Last Week ';
- compare = false; //override for now to false
- }else{
- compare = false;
-
- pieChart.series[0].data = [];
-
- if (pieChart.series[0].dataLabels) {
- if(typeof pieChart.series[0].dataLabels.formatter === 'string'){
- pieChart.series[0].dataLabels.formatter = new Function(pieChart.series[0].dataLabels.formatter);
- }
- }
-
- }
-
- pieChart.plotOptions.pie.borderColor = dataDescription.borderColor;
-
- if(compare){
- pieChart.series[1].data = [];
- if (pieChart.series[1].dataLabels) {
- if(typeof pieChart.series[1].dataLabels.formatter === 'string'){
- pieChart.series[1].dataLabels.formatter = new Function(pieChart.series[1].dataLabels.formatter);
- }
- }
- }
-
- var tempArray = [];
- for (var i = 0; i < cdLength; i++) {
- var pie = chartData[i];
-
- tempArray.push({
- name:pie[dataDescription.dataAttr[0]],
- y:pie[dataDescription.dataAttr[1]],
- color:''
- });
-
- }
-
-
- //sort by name prop so we can have a good looking comparison donut
- sortJsonArrayByProperty(tempArray,'name');
- //add colors so they match up
- for (var i = 0; i < tempArray.length; i++) {
- tempArray[i].color = dataDescription.colors[i];
- }
-
- if(!compare){
- pieChart.series[0].data = tempArray;
- }else{
- pieChart.series[1].data = tempArray;
- }
-
- return pieChart;
- }
- }
-
-
- function sortJsonArrayByProperty(objArray, prop, direction){
- if (arguments.length<2) throw new Error("sortJsonArrayByProp requires 2 arguments");
- var direct = arguments.length>2 ? arguments[2] : 1; //Default to ascending
-
- if (objArray && objArray.constructor===Array){
- var propPath = (prop.constructor===Array) ? prop : prop.split(".");
- objArray.sort(function(a,b){
- for (var p in propPath){
- if (a[propPath[p]] && b[propPath[p]]){
- a = a[propPath[p]];
- b = b[propPath[p]];
- }
- }
- // convert numeric strings to integers
- a = a.match(/^\d+$/) ? +a : a;
- b = b.match(/^\d+$/) ? +b : b;
- return ( (a < b) ? -1*direct : ((a > b) ? 1*direct : 0) );
- });
- }
- }
-
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/charts/highcharts.json
----------------------------------------------------------------------
diff --git a/deleted/charts/highcharts.json b/deleted/charts/highcharts.json
deleted file mode 100644
index 817befc..0000000
--- a/deleted/charts/highcharts.json
+++ /dev/null
@@ -1,329 +0,0 @@
-{
- "pie": {
- "colors": [
- "#828282",
- "#9b9b9b",
- "#bababa",
- "#c5c5c5",
- "#828282",
- "#9b9b9b",
- "#bababa",
- "#c5c5c5"
- ],
- "credits": {
- "enabled": false
- },
- "title": {
- "text": "",
- "verticalAlign": "middle",
- "floating": "true",
- "useHTML": true,
- "style":{
- "fontSize": "49px",
- "color": "#ff0303",
- "marginTop": "",
- "marginLeft": ""
- }
- },
- "tooltip": {
- "percentageDecimals": 0,
- "valueSuffix": "%",
- "formatter": "return '<span style=\"font-weight:bold; font-size:14px;color:' + this.point.series.color + '\">'+ (this.point.name || this.series.name) +': ' + Highcharts.numberFormat(this.y, 2) + '%</span><br />'",
- "borderRadius" : 0
- },
- "plotOptions": {
- "pie": {
- "shadow": false,
- "center": ["50%","45%"],
- "size":"100%",
- "borderWidth": 0,
- "borderColor": "#fff",
- "animation": {"duration":400}
- }
- },
- "series": [
- {
- "name": "",
- "data": [],
- "size": "90%",
- "innerSize": "45%",
- "dataLabels": {
- "formatter": "return this.y > 5 ? this.point.name : null;",
- "color": "#fff",
- "distance": -30,
- "style": {
- "fontFamily": "marquette-regular, Helvetica, Arial, sans-serif",
- "fontSize": "11px"
- }
- }
- },
- {
- "name": "",
- "data": [],
- "size": "80%",
- "innerSize": "60%",
- "dataLabels": {
- "formatter": "return this.y > 1 ? '<b>'+ this.point.name +':</b> '+ Highcharts.numberFormat(this.y, 2) +'%' : null;"
- }
- }
- ]
- },
-
-
- "line": {
-
- "title": {
- "text": ""
- },
- "tooltip": {
- "formatter": "return '<span style=\"font-weight:bold;font-size:14px;color:' + this.point.series.color + '\">'+ this.y +' ' + (this.point.name || this.series.name) + '</span><br />'+Highcharts.dateFormat('%A %H:%M', this.x) + '<br />'",
- "borderRadius" : 0
- },
- "xAxis": [
- {
- "type": "datetime",
- "labels": {
- "formatter": "",
- "rotation": 65,
- "style": {
- "fontSize": "13px"
- },
- "align": "left",
- "step": "3"
- }
- }
- ],
- "yAxis": [
- {
- "title": {
- "text": ""
- },
- "min": 0,
- "labels":{
- "align":"left",
- "x":3,
- "y":16
- },
- "showFirstLabel": false
- },
- {
- "title": {
- "text": ""
- },
- "min": 0,
- "opposite": true,
- "labels":{
- "align":"right",
- "x":-3,
- "y":16
- },
- "showFirstLabel": false
- }
- ],
- "series": [],
- "legend": {
- "align": "right",
- "verticalAlign": "top",
- "floating": true,
- "borderWidth": 0,
- "y": -50,
- "itemStyle": {"fontSize": "14px"}
- },
- "plotOptions": {
- "series": {
- "lineWidth": 2,
- "marker": {
- "enabled": true,
- "radius": 2,
- "lineWidth": 1,
- "fillColor": "white",
- "lineColor": null
- },
- "animation": {"duration":400}
- }
- },
- "colors": [
- "#4572A7",
- "#AA4643",
- "#89A54E",
- "#80699B",
- "#3D96AE",
- "#DB843D",
- "#92A8CD",
- "#A47D7C",
- "#B5CA92"
- ],
- "credits": {
- "enabled": false
- }
-
- },
-
- "pareto": {
- "chart": {
- "defaultSeriesType": "column"
- },
- "title": {
- "text": ""
- },
- "legend": {
- "enabled": true
- },
- "plotOptions": {
- "series": {
- "shadow": false,
- "borderColor": "#fff",
- "borderWidth": 2
- }
- },
- "tooltip": {
- "percentageDecimals": 0,
- "formatter": "return this.x + '<br/>' + '<span style=\"font-weight:bold;font-size:14px;color:' + this.point.series.color + '\">'+ this.y + ' ' + (this.point.name || this.series.name) + '</span><br />'",
- "borderRadius" : 0
- },
- "xAxis": {
- "categories": [],
- "lineColor": "#999",
- "lineWidth": 1,
- "tickColor": "#666",
- "tickLength": 1,
- "labels": {
- "formatter": "",
- "rotation": 65,
- "style": {
- "fontSize": "10px"
- },
- "align": "left"
- }
- },
- "yAxis": [
- {
- "min": 0,
- "lineColor": "#999",
- "lineWidth": 1,
- "tickColor": "#666",
- "tickWidth": 1,
- "tickLength": 1,
- "gridLineColor": "#ddd",
- "title": {
- "text": "",
- "style": {
- "color": "#000"
- }
- }
- }
-
- ],
- "credits": {
- "enabled": false
- },
- "colors": [
- "#828282",
- "#9b9b9b",
- "#bababa",
- "#c5c5c5",
- "#828282",
- "#9b9b9b",
- "#bababa",
- "#c5c5c5"
- ]
- },
-
- "area": {
-
- "title": {
- "text": ""
- },
- "tooltip": {
- "formatter": "return '<span style=\"font-weight:bold;font-size:14px;color:' + this.point.series.color + '\">'+ this.y +' ' + (this.point.name || this.series.name) + '</span><br />'+Highcharts.dateFormat('%A %H:%M', this.x) + '<br />'",
- "borderRadius" : 0
- },
- "xAxis": [
- {
- "type": "datetime",
- "maxZoom": 1,
- "labels": {
- "formatter": "",
- "rotation": 65,
- "style": {
- "fontSize": "13px"
- },
- "align": "left",
- "step": "3"
- }
- }
- ],
- "yAxis": [
- {
- "title": {
- "text": ""
- },
- "min": 0,
- "labels":{
- "align":"left",
- "x":3,
- "y":16
- },
- "showFirstLabel": false
- },
- {
- "title": {
- "text": ""
- },
- "min": 0,
- "opposite": true,
- "labels":{
- "align":"right",
- "x":-3,
- "y":16
- },
- "showFirstLabel": false
- }
- ],
- "series": [],
- "legend": {
- "align": "right",
- "verticalAlign": "top",
- "floating": true,
- "borderWidth": 0,
- "itemStyle": {"fontSize": "14px"}
- },
- "plotOptions": {
- "area": {
- "stacking": "normal",
- "lineWidth": 1,
- "marker": {
- "enabled": false
- },
- "threshold": null,
- "shadow": false,
- "animation": {"duration":400}
- },
- "series": {
- "lineWidth": 1,
- "marker": {
- "radius": 2,
- "lineWidth": 1,
- "fillColor": "white",
- "lineColor": null
- },
- "animation": {"duration":400}
- }
- },
- "colors": [
- "#4572A7",
- "#AA4643",
- "#89A54E",
- "#80699B",
- "#3D96AE",
- "#DB843D",
- "#92A8CD",
- "#A47D7C",
- "#B5CA92"
- ],
- "credits": {
- "enabled": false
- }
-
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/charts/sparklines.js
----------------------------------------------------------------------
diff --git a/deleted/charts/sparklines.js b/deleted/charts/sparklines.js
deleted file mode 100644
index 29551c5..0000000
--- a/deleted/charts/sparklines.js
+++ /dev/null
@@ -1,2 +0,0 @@
-$('.sessions-bar').sparkline([ 3, 5, 6, 3, 4, 5, 6, 7, 8, 4, 3, 5, 6, 3, 4, 5, 6, 7, 8, 4, 3, 5, 6, 3, 4, 5, 6, 7, 8, 4, 3, 5, 6, 3, 4, 5, 6, 7, 8, 4, 3, 5, 6, 3, 4, 5, 6, 7, 8, 4, 3, 5, 6, 3, 4, 5, 6, 7, 8, 1 ], {type: 'bar', barColor: '#c5c5c5', width: '800px', height: 100, barWidth: 12, barSpacing: '1px'});
-// $('.sessions-bar canvas').width('100%')
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/coming_soon.html
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/coming_soon.html b/deleted/dist-cov/usergrid-portal/archive/coming_soon.html
deleted file mode 100644
index ae609d3..0000000
--- a/deleted/dist-cov/usergrid-portal/archive/coming_soon.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<body>
-<div id="fullContainer">
- <div class="navbar navbar-fixed-top">
- <h1 class="apigee"><a href="https://apigee.com" target="_blank"><img src="images/apigee-logo.png">apigee</a></h1>
- <h2 id="ActualPage1">App Services Admin Portal</h2>
- <ul id="loginMenu" class="nav secondary-nav">
- <li><a id="login-link" href="#"><i class="icon-user"></i> Login</a></li>
- <li><a id="signup-link" href="#">Sign Up</a></li>
- <li><a id="forgot-password-link" href="#"><i class="icon-lock"></i> Forgot Password</a></li>
- </ul>
- </div>
- <div id="coming_soon">
- <div class="huge">
- Coming Soon
- </div>
- <br />
- <div class="bigbig">
- Thanks for checking us out, we're almost ready!
- </div>
- <div class="big">
- Find out more about App Services <a href="#"><strong>here</strong></a>
- </div>
- </div>
- <footer>
- <div class="container-fluid">
- <span id="copyright" class="pull-right">© 2012 Apigee Corp. All rights reserved.</span>
- </div>
- </footer>
-</div>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/config.js
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/config.js b/deleted/dist-cov/usergrid-portal/archive/config.js
deleted file mode 100644
index 9cebdac..0000000
--- a/deleted/dist-cov/usergrid-portal/archive/config.js
+++ /dev/null
@@ -1,72 +0,0 @@
-var Usergrid = Usergrid || {};
-
-Usergrid.showNotifcations = true;
-
-
-// used only if hostname does not match a real server name
-Usergrid.overrideUrl = 'https://api.usergrid.com/';
-
-Usergrid.options = {
- client:{
- requiresDeveloperKey:false
- // apiKey:'123456'
- },
- showAutoRefresh:true,
- autoUpdateTimer:61, //seconds
- menuItems:[
- {path:'#!/org-overview', active:true,pic:'🕪',title:'Org Administration'},
- {path:'#!/getting-started/setup',pic:'🚀',title:'Getting Started'},
- {path:'#!/app-overview/summary',pic:'',title:'App Overview',
- items:[
- {path:'#!/app-overview/summary',pic:'📱',title:'Summary'}
- ]
- },
- {
- path:'#!/users',pic:'👤',title:'Users',
- items:[
- {path:'#!/users',pic:'👤',title:'Users'},
- {path:'#!/groups',pic:'👥',title:'Groups'},
- {path:'#!/roles',pic:'',title:'Roles'}
- ]
- },
- {
- path:'#!/data',pic:'📸',title:'Data',
- items:[
- {path:'#!/data',pic:'📾',title:'Collections'}
- ]
- },
- {
- path:'#!/activities',pic:'',title:'Activities'
- },
- {path:'#!/shell',pic:'⌨',title:'Shell'}
- ]
-};
-
-Usergrid.regex = {
- appNameRegex: new RegExp("^[0-9a-zA-Z.-]{3,25}$"),
- usernameRegex: new RegExp("^[0-9a-zA-Z\.\_-]{4,25}$"),
- nameRegex: new RegExp("^([0-9a-zA-Z@#$%^&!?;:.,'\"~*-:+_\[\\](){}/\\ |]{3,60})+$"),
- roleNameRegex: new RegExp("^([0-9a-zA-Z./-]{3,25})+$"),
- emailRegex: new RegExp("^(([0-9a-zA-Z]+[_\+.-]?)+@[0-9a-zA-Z]+[0-9,a-z,A-Z,.,-]*(.){1}[a-zA-Z]{2,4})+$"),
- passwordRegex: /(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/,
- pathRegex: new RegExp("^/[a-zA-Z0-9\.\*_~-]+(\/[a-zA-Z0-9\.\*_~-]+)*$"),
- titleRegex: new RegExp("[a-zA-Z0-9.!-?]+[\/]?"),
- urlRegex: new RegExp("^(http?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$"),
- zipRegex: new RegExp("^[0-9]{5}(?:-[0-9]{4})?$"),
- countryRegex: new RegExp("^[A-Za-z ]{3,100}$"),
- stateRegex: new RegExp("^[A-Za-z ]{2,100}$"),
- collectionNameRegex: new RegExp("^[0-9a-zA-Z_.]{3,25}$"),
- appNameRegexDescription: "This field only allows : A-Z, a-z, 0-9, dot, and dash and must be between 3-25 characters.",
- usernameRegexDescription: "This field only allows : A-Z, a-z, 0-9, dot, underscore and dash. Must be between 4 and 15 characters.",
- nameRegexDescription: "Please enter a valid name. Must be betwee 3 and 60 characters.",
- roleNameRegexDescription: "Role only allows : /, a-z, 0-9, dot, and dash. Must be between 3 and 25 characters.",
- emailRegexDescription: "Please enter a valid email.",
- passwordRegexDescription: "Password must contain at least 1 upper and lower case letter, one number or special character and be at least 8 characters.",
- pathRegexDescription: "Path must begin with a slash, path only allows: /, a-z, 0-9, dot, and dash, paths of the format: /path/ or /path//path are not allowed",
- titleRegexDescription: "Please enter a valid title.",
- urlRegexDescription: "Please enter a valid url",
- zipRegexDescription: "Please enter a valid zip code.",
- countryRegexDescription: "Sorry only alphabetical characters or spaces are allowed. Must be between 3-100 characters.",
- stateRegexDescription: "Sorry only alphabetical characters or spaces are allowed. Must be between 2-100 characters.",
- collectionNameRegexDescription: "Collection name only allows : a-z A-Z 0-9. Must be between 3-25 characters."
-};
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png
deleted file mode 100644
index 6348115..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_100_deedf7_40x100.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_100_deedf7_40x100.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_100_deedf7_40x100.png
deleted file mode 100644
index 85aaedf..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_100_deedf7_40x100.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_100_e4f1fb_40x100.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_100_e4f1fb_40x100.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_100_e4f1fb_40x100.png
deleted file mode 100644
index 5a501f8..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_100_e4f1fb_40x100.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_100_f2f5f7_40x100.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_100_f2f5f7_40x100.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_100_f2f5f7_40x100.png
deleted file mode 100644
index f0d20dd..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_100_f2f5f7_40x100.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_15_cd0a0a_40x100.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_15_cd0a0a_40x100.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_15_cd0a0a_40x100.png
deleted file mode 100644
index 7680b54..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_15_cd0a0a_40x100.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_50_3baae3_40x100.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_50_3baae3_40x100.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_50_3baae3_40x100.png
deleted file mode 100644
index a966891..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_50_3baae3_40x100.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_80_d7ebf9_40x100.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_80_d7ebf9_40x100.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_80_d7ebf9_40x100.png
deleted file mode 100644
index 3f3d137..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_flat_80_d7ebf9_40x100.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_highlight-hard_70_000000_1x100.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_highlight-hard_70_000000_1x100.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_highlight-hard_70_000000_1x100.png
deleted file mode 100644
index d588297..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_highlight-hard_70_000000_1x100.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_highlight-soft_25_ffef8f_1x100.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_highlight-soft_25_ffef8f_1x100.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_highlight-soft_25_ffef8f_1x100.png
deleted file mode 100644
index 54aff0c..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-bg_highlight-soft_25_ffef8f_1x100.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_000000_256x240.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_000000_256x240.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_000000_256x240.png
deleted file mode 100644
index 7c211aa..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_000000_256x240.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_2694e8_256x240.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_2694e8_256x240.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_2694e8_256x240.png
deleted file mode 100644
index e62b8f7..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_2694e8_256x240.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_2e83ff_256x240.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_2e83ff_256x240.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_2e83ff_256x240.png
deleted file mode 100644
index 09d1cdc..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_2e83ff_256x240.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_3d80b3_256x240.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_3d80b3_256x240.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_3d80b3_256x240.png
deleted file mode 100644
index 52c3cc6..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_3d80b3_256x240.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_72a7cf_256x240.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_72a7cf_256x240.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_72a7cf_256x240.png
deleted file mode 100644
index 0d20b73..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_72a7cf_256x240.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/11243eff/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_ffffff_256x240.png
----------------------------------------------------------------------
diff --git a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_ffffff_256x240.png b/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_ffffff_256x240.png
deleted file mode 100644
index 42f8f99..0000000
Binary files a/deleted/dist-cov/usergrid-portal/archive/css/custom-theme/images/ui-icons_ffffff_256x240.png and /dev/null differ