Skip to content
This repository was archived by the owner on May 30, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
652365c
docs(header): add license header to source code
Naylin15 Dec 14, 2017
cadb8dc
docs(getinventory): add param tag
Naylin15 Dec 14, 2017
ba90aff
docs(getInventoryFromDevice): add description
Naylin15 Dec 14, 2017
82bb771
docs(sendPing): add description
Naylin15 Dec 14, 2017
4a25074
docs(saveDevice): add description
Naylin15 Dec 14, 2017
07439ae
docs(wipeDevice): add description
Naylin15 Dec 14, 2017
bbeda98
docs(deleteDevice): add description
Naylin15 Dec 14, 2017
af0637c
docs(unenrollDevice): add description
Naylin15 Dec 14, 2017
1ba258e
docs(requestCurrentGeolocation): add description
Naylin15 Dec 14, 2017
2341008
docs(displayGeolocationPage): add description
Naylin15 Dec 14, 2017
18d5b6a
docs(toggleSelectGeolocation): add param tag adn description
Naylin15 Dec 14, 2017
ae297f1
docs(deleteDevice): add param tag and description
Naylin15 Dec 14, 2017
050ed7d
docs(wipeDevice): add param and description
Naylin15 Dec 14, 2017
c0677b8
docs(updateDevice): add param tag and description
Naylin15 Dec 14, 2017
27233b7
docs(requestCurrentInventory): add param tag and description
Naylin15 Dec 14, 2017
741136d
docs(requestCurrentGeolocation): add param tag and description
Naylin15 Dec 14, 2017
6e3f8df
docs(sendPing): add param tag and description
Naylin15 Dec 14, 2017
2587901
docs(unenrollDevice): add param tag and description
Naylin15 Dec 14, 2017
3020afc
docs(getDevice): add param tag and description
Naylin15 Dec 14, 2017
427154a
docs(getApplication): add param tag and description
Naylin15 Dec 14, 2017
32d3b0a
docs(getApplications): add description
Naylin15 Dec 14, 2017
1c2dfd0
docs(updateApplication): add description and param tag
Naylin15 Dec 14, 2017
05caa31
docs(deleteApplication): add description and param tag
Naylin15 Dec 14, 2017
47e0388
docs(uploadApplication): add description and param tag
Naylin15 Dec 14, 2017
0b71e7d
docs(getComputers): add description
Naylin15 Dec 14, 2017
42f9e9f
docs(getAndroidVersion): add description
Naylin15 Dec 14, 2017
d0c3af2
docs(getInvitations): add description
Naylin15 Dec 14, 2017
c5544f3
docs(getNumberofUsers): add description
Naylin15 Dec 14, 2017
5ca5de2
docs(getNumberOfPolicies): add description
Naylin15 Dec 14, 2017
bade77a
docs(getNumberOfPolicyCategories): add description
Naylin15 Dec 14, 2017
bfa4041
docs(getNumberOfFiles): add description
Naylin15 Dec 14, 2017
482576c
docs(getNumberOfFleets): add description
Naylin15 Dec 14, 2017
a64e60c
docs(getNumberOfApplications): add description
Naylin15 Dec 14, 2017
ef87806
docs(getNumberOfDevices): add description
Naylin15 Dec 14, 2017
b60c29c
docs(getMacAddress): add description
Naylin15 Dec 14, 2017
313e49a
docs(getDevicesByRealName): add description
Naylin15 Dec 14, 2017
e75a39c
docs(getUser): add description
Naylin15 Dec 14, 2017
955cad5
docs(getUsers): add description
Naylin15 Dec 14, 2017
5c2069a
docs(updateUser): add description
Naylin15 Dec 14, 2017
ecea351
docs(deleteUser): add description
Naylin15 Dec 14, 2017
13dc026
docs(attemptRegister): add description and param tag
Naylin15 Dec 14, 2017
c40422d
docs(getDeviceGeolocation): add description and param tag
Naylin15 Dec 14, 2017
ae947bc
docs(enrollNewDevice): add description and param tag
Naylin15 Dec 14, 2017
5ba2420
docs(resendInvitation): add description and param tag
Naylin15 Dec 14, 2017
aa5639c
docs(deleteInvitation): add description and param tag
Naylin15 Dec 14, 2017
28df42b
docs(invitationId): add description and param tag
Naylin15 Dec 14, 2017
cea1b71
docs(deleteDevice): add description
Naylin15 Dec 14, 2017
c43208d
docs(getDevicesData): add description and param tag
Naylin15 Dec 14, 2017
825c5e4
docs(editConfiguration): add description and param tag
Naylin15 Dec 14, 2017
ecbf903
docs(getConfiguration): add description and param tag
Naylin15 Dec 14, 2017
2e06dbc
docs(getConfigurations): add description
Naylin15 Dec 14, 2017
2db63ad
docs(getFile): add description
Naylin15 Dec 14, 2017
d811a3f
docs(getFiles): add description
Naylin15 Dec 14, 2017
ab8032d
docs(updateFile): add description and param tags
Naylin15 Dec 14, 2017
2f5e6c1
docs(deleteFile): add description and param tag
Naylin15 Dec 14, 2017
957950c
docs(uploadFile): add description and param tag
Naylin15 Dec 14, 2017
73b8648
docs(changeLanguage): add description and param tag
Naylin15 Dec 14, 2017
9e0726a
docs(updateUserInformation): add description and param tag
Naylin15 Dec 14, 2017
d409c2f
docs(getUserInformation): add description and param tag
Naylin15 Dec 14, 2017
a6726f9
docs(getPluginVersion): add description
Naylin15 Dec 14, 2017
b9b4707
docs(getGLPiVersion): add description
Naylin15 Dec 14, 2017
d3b4492
docs(getPluginList): add description
Naylin15 Dec 14, 2017
77e55e6
docs(updatePolicy): add description
Naylin15 Dec 14, 2017
c46e597
docs(deletePolicy): add description and param tag
Naylin15 Dec 14, 2017
cfda784
docs(deleteFleet): add description and param tag
Naylin15 Dec 14, 2017
3c38441
docs(updateFleet): add description and param tag
Naylin15 Dec 14, 2017
3204dc5
docs(createFleet): add description and param tag
Naylin15 Dec 14, 2017
03e23f7
docs(getFleetData): add description
Naylin15 Dec 14, 2017
ddf8e74
docs(getFleets): add description
Naylin15 Dec 14, 2017
65fd0c4
docs(getPolicies): add description
Naylin15 Dec 14, 2017
53374de
docs(createPolicies): add description and param tags
Naylin15 Dec 14, 2017
67c41d8
docs(deletePolicies): add description and param tag
Naylin15 Dec 14, 2017
57ffe98
docs(updatePolicies): add description and param tag
Naylin15 Dec 14, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions app/scripts/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/**
* ----------------------------------------------------------------------------
* LICENSE
*
* This file is part of Flyve MDM Web Dashboard.
*
* Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile
* device management software.
*
* Flyve MDM Web Dashboard is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* Flyve MDM Web Dashboard is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* -----------------------------------------------------------------------------
* @author Alexander Salas - asalas@teclib.com
* @copyright Copyright (c) 2017 Flyve MDM
* @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
* @link https://github.com/flyve-mdm/legacy-web-dashboard/
* @link http://www.glpi-project.org/
* @link https://flyve-mdm.com/
* -----------------------------------------------------------------------------
*/

'use strict';
/**
* @ngdoc overview
Expand Down
28 changes: 28 additions & 0 deletions app/scripts/controllers/about.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/**
* ----------------------------------------------------------------------------
* LICENSE
*
* This file is part of Flyve MDM Web Dashboard.
*
* Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile
* device management software.
*
* Flyve MDM Web Dashboard is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* Flyve MDM Web Dashboard is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* -----------------------------------------------------------------------------
* @author Alexander Salas - asalas@teclib.com
* @copyright Copyright (c) 2017 Flyve MDM
* @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
* @link https://github.com/flyve-mdm/legacy-web-dashboard/
* @link http://www.glpi-project.org/
* @link https://flyve-mdm.com/
* -----------------------------------------------------------------------------
*/

'use strict';
/**
* @ngdoc function
Expand Down
28 changes: 28 additions & 0 deletions app/scripts/controllers/accountvalidation.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/**
* ----------------------------------------------------------------------------
* LICENSE
*
* This file is part of Flyve MDM Web Dashboard.
*
* Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile
* device management software.
*
* Flyve MDM Web Dashboard is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* Flyve MDM Web Dashboard is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* -----------------------------------------------------------------------------
* @author Alexander Salas - asalas@teclib.com
* @copyright Copyright (c) 2017 Flyve MDM
* @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
* @link https://github.com/flyve-mdm/legacy-web-dashboard/
* @link http://www.glpi-project.org/
* @link https://flyve-mdm.com/
* -----------------------------------------------------------------------------
*/

'use strict';
/**
* @ngdoc function
Expand Down
28 changes: 28 additions & 0 deletions app/scripts/controllers/applications.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/**
* ----------------------------------------------------------------------------
* LICENSE
*
* This file is part of Flyve MDM Web Dashboard.
*
* Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile
* device management software.
*
* Flyve MDM Web Dashboard is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* Flyve MDM Web Dashboard is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* -----------------------------------------------------------------------------
* @author Alexander Salas - asalas@teclib.com
* @copyright Copyright (c) 2017 Flyve MDM
* @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
* @link https://github.com/flyve-mdm/legacy-web-dashboard/
* @link http://www.glpi-project.org/
* @link https://flyve-mdm.com/
* -----------------------------------------------------------------------------
*/

'use strict';
/**
* @ngdoc function
Expand Down
28 changes: 28 additions & 0 deletions app/scripts/controllers/contact.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/**
* ----------------------------------------------------------------------------
* LICENSE
*
* This file is part of Flyve MDM Web Dashboard.
*
* Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile
* device management software.
*
* Flyve MDM Web Dashboard is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* Flyve MDM Web Dashboard is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* -----------------------------------------------------------------------------
* @author Alexander Salas - asalas@teclib.com
* @copyright Copyright (c) 2017 Flyve MDM
* @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
* @link https://github.com/flyve-mdm/legacy-web-dashboard/
* @link http://www.glpi-project.org/
* @link https://flyve-mdm.com/
* -----------------------------------------------------------------------------
*/

'use strict';
/**
* @ngdoc function
Expand Down
28 changes: 28 additions & 0 deletions app/scripts/controllers/dashboard.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/**
* ----------------------------------------------------------------------------
* LICENSE
*
* This file is part of Flyve MDM Web Dashboard.
*
* Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile
* device management software.
*
* Flyve MDM Web Dashboard is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* Flyve MDM Web Dashboard is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* -----------------------------------------------------------------------------
* @author Alexander Salas - asalas@teclib.com
* @copyright Copyright (c) 2017 Flyve MDM
* @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
* @link https://github.com/flyve-mdm/legacy-web-dashboard/
* @link http://www.glpi-project.org/
* @link https://flyve-mdm.com/
* -----------------------------------------------------------------------------
*/

'use strict';
/**
* @ngdoc function
Expand Down
71 changes: 71 additions & 0 deletions app/scripts/controllers/device.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/**
* ----------------------------------------------------------------------------
* LICENSE
*
* This file is part of Flyve MDM Web Dashboard.
*
* Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile
* device management software.
*
* Flyve MDM Web Dashboard is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* Flyve MDM Web Dashboard is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* -----------------------------------------------------------------------------
* @author Alexander Salas - asalas@teclib.com
* @copyright Copyright (c) 2017 Flyve MDM
* @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
* @link https://github.com/flyve-mdm/legacy-web-dashboard/
* @link http://www.glpi-project.org/
* @link https://flyve-mdm.com/
* -----------------------------------------------------------------------------
*/

'use strict';
/**
* @ngdoc function
Expand Down Expand Up @@ -109,6 +137,11 @@ angular.module('FlyveMDM')
$scope.geolocationsLoading = false;
});
};

/**
* Get the inventory of the device
* @param {*} toast
*/
function getInventory(toast) {
$scope.lock_inventory = false;
InventoryFac.getComputer($scope.agent.computers_id).then(function (aComputer) {
Expand All @@ -127,6 +160,10 @@ angular.module('FlyveMDM')
$scope.no_inventory = true;
});
}

/**
* Get the inventory of the device when the user requests it
*/
$scope.getInventoryFromDevice = function () {
$scope.lock_inventory = true;
var request = AgentFac.requestCurrentInventory($scope.agent.id);
Expand Down Expand Up @@ -177,6 +214,10 @@ angular.module('FlyveMDM')
$scope.displayedApplications = [];
$scope.stCtrl.slice(0, $scope.stCtrl.tableState().pagination.number);
};

/**
* Sends a ping to the device to check connectivity
*/
$scope.sendPing = function () {
$scope.pingSendingStatus = 'Ping sent as of ' + moment().format('dddd, MMMM Do YYYY, h:mm:ss a');
$scope.pingReplyStatus = '';
Expand All @@ -195,6 +236,10 @@ angular.module('FlyveMDM')
});
Notifications.loading("Echo request", request.cancel);
};

/**
* Save the changes made to the device
*/
$scope.saveDevice = function () {
$scope.lock_save_device = true;
var aName = (device_name !== $scope.agent.name);
Expand Down Expand Up @@ -238,6 +283,10 @@ angular.module('FlyveMDM')
.targetEvent(ev)
);
};

/**
* Erase the data storaged in the device
*/
$scope.wipeDevice = function () {
$mdDialog.show(
$mdDialog.confirm()
Expand All @@ -254,6 +303,10 @@ angular.module('FlyveMDM')
});
});
};

/**
* Deletes the device from the dashboard
*/
$scope.deleteDevice = function () {
$mdDialog.show(
$mdDialog.confirm()
Expand All @@ -270,6 +323,10 @@ angular.module('FlyveMDM')
});
});
};

/**
* Unenrolls the device from the Dashboard
*/
$scope.unenrollDevice = function () {
$mdDialog.show(
$mdDialog.confirm()
Expand All @@ -286,6 +343,10 @@ angular.module('FlyveMDM')
});
});
};

/**
* Request the current Geolocation of the device
*/
$scope.requestCurrentGeolocation = function () {
$scope.lock_geolocation = true;
var request = AgentFac.requestCurrentGeolocation($scope.agent.id);
Expand All @@ -300,13 +361,23 @@ angular.module('FlyveMDM')
});
Notifications.loading("Current geolocation in progress...", request.cancel);
};

/**
* Display the map pages where the device was located
* @param n_page
*/
$scope.displayGeolocationPage = function (n_page) {
$scope.currentOpenedPage = n_page;
n_page--;
var start = (n_page * nGeolocationsPerPage);
var stop = start + nGeolocationsPerPage;
getDeviceGeolocations(start, stop);
};

/**
* Display the device in the map when selected an option
* @param aGeolocation
*/
$scope.toggleSelectGeolocation = function (aGeolocation) {
var foundIndex = false;
if ((foundIndex = $scope.isSelectedGeolocation(aGeolocation)) === false) {
Expand Down
28 changes: 28 additions & 0 deletions app/scripts/controllers/devices.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/**
* ----------------------------------------------------------------------------
* LICENSE
*
* This file is part of Flyve MDM Web Dashboard.
*
* Flyve MDM Web Dashboard is a subproject of Flyve MDM. Flyve MDM is a mobile
* device management software.
*
* Flyve MDM Web Dashboard is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* Flyve MDM Web Dashboard is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* -----------------------------------------------------------------------------
* @author Alexander Salas - asalas@teclib.com
* @copyright Copyright (c) 2017 Flyve MDM
* @license AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
* @link https://github.com/flyve-mdm/legacy-web-dashboard/
* @link http://www.glpi-project.org/
* @link https://flyve-mdm.com/
* -----------------------------------------------------------------------------
*/

'use strict';
/**
* @ngdoc function
Expand Down
Loading