diff options
author | Abyss777 <abyss@fox5.ru> | 2017-09-12 17:39:43 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-09-13 13:51:35 +0500 |
commit | a5d36c62facad98c409b9fcd4f8b92c3d47601ab (patch) | |
tree | 368a2ed169c1457a1cc2dd69a811f2dccc59ce04 /web/app/view/permissions | |
parent | 31a6fed66b4f077d2b6443fdd34229befe8777c3 (diff) | |
download | trackermap-web-a5d36c62facad98c409b9fcd4f8b92c3d47601ab.tar.gz trackermap-web-a5d36c62facad98c409b9fcd4f8b92c3d47601ab.tar.bz2 trackermap-web-a5d36c62facad98c409b9fcd4f8b92c3d47601ab.zip |
Implement Saved Commands
Diffstat (limited to 'web/app/view/permissions')
-rw-r--r-- | web/app/view/permissions/Calendars.js (renamed from web/app/view/permissions/UserCalendars.js) | 4 | ||||
-rw-r--r-- | web/app/view/permissions/ComputedAttributes.js (renamed from web/app/view/permissions/DeviceAttributes.js) | 4 | ||||
-rw-r--r-- | web/app/view/permissions/DeviceDrivers.js | 44 | ||||
-rw-r--r-- | web/app/view/permissions/DeviceGeofences.js | 37 | ||||
-rw-r--r-- | web/app/view/permissions/Devices.js (renamed from web/app/view/permissions/UserDevices.js) | 4 | ||||
-rw-r--r-- | web/app/view/permissions/Drivers.js (renamed from web/app/view/permissions/UserDrivers.js) | 4 | ||||
-rw-r--r-- | web/app/view/permissions/Geofences.js (renamed from web/app/view/permissions/UserGeofences.js) | 4 | ||||
-rw-r--r-- | web/app/view/permissions/GroupAttributes.js | 49 | ||||
-rw-r--r-- | web/app/view/permissions/GroupDrivers.js | 44 | ||||
-rw-r--r-- | web/app/view/permissions/GroupGeofences.js | 37 | ||||
-rw-r--r-- | web/app/view/permissions/Groups.js (renamed from web/app/view/permissions/UserGroups.js) | 4 | ||||
-rw-r--r-- | web/app/view/permissions/SavedCommands.js (renamed from web/app/view/permissions/UserAttributes.js) | 20 | ||||
-rw-r--r-- | web/app/view/permissions/Users.js (renamed from web/app/view/permissions/UserUsers.js) | 4 |
13 files changed, 26 insertions, 233 deletions
diff --git a/web/app/view/permissions/UserCalendars.js b/web/app/view/permissions/Calendars.js index 54ecfc22..ff2796bb 100644 --- a/web/app/view/permissions/UserCalendars.js +++ b/web/app/view/permissions/Calendars.js @@ -16,9 +16,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.permissions.UserCalendars', { +Ext.define('Traccar.view.permissions.Calendars', { extend: 'Traccar.view.permissions.Base', - xtype: 'userCalendarsView', + xtype: 'linkCalendarsView', requires: [ 'Ext.grid.filters.Filters' diff --git a/web/app/view/permissions/DeviceAttributes.js b/web/app/view/permissions/ComputedAttributes.js index c7755f09..800717ce 100644 --- a/web/app/view/permissions/DeviceAttributes.js +++ b/web/app/view/permissions/ComputedAttributes.js @@ -16,9 +16,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.permissions.DeviceAttributes', { +Ext.define('Traccar.view.permissions.ComputedAttributes', { extend: 'Traccar.view.permissions.Base', - xtype: 'deviceAttributesView', + xtype: 'linkComputedAttributesView', requires: [ 'Ext.grid.filters.Filters' diff --git a/web/app/view/permissions/DeviceDrivers.js b/web/app/view/permissions/DeviceDrivers.js deleted file mode 100644 index d3aa20b6..00000000 --- a/web/app/view/permissions/DeviceDrivers.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2017 Anton Tananaev (anton@traccar.org) - * Copyright 2017 Andrey Kunitsyn (andrey@traccar.org) - * - * This program 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. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -Ext.define('Traccar.view.permissions.DeviceDrivers', { - extend: 'Traccar.view.permissions.Base', - xtype: 'deviceDriversView', - - requires: [ - 'Ext.grid.filters.Filters' - ], - - plugins: 'gridfilters', - - columns: { - items: [{ - text: Strings.sharedName, - dataIndex: 'name', - flex: 1, - minWidth: Traccar.Style.columnWidthNormal, - filter: 'string' - }, { - text: Strings.deviceIdentifier, - dataIndex: 'uniqueId', - flex: 1, - minWidth: Traccar.Style.columnWidthNormal, - filter: 'string' - }] - } -}); diff --git a/web/app/view/permissions/DeviceGeofences.js b/web/app/view/permissions/DeviceGeofences.js deleted file mode 100644 index c16bceda..00000000 --- a/web/app/view/permissions/DeviceGeofences.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2016 - 2017 Anton Tananaev (anton@traccar.org) - * - * This program 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. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -Ext.define('Traccar.view.permissions.DeviceGeofences', { - extend: 'Traccar.view.permissions.Base', - xtype: 'deviceGeofencesView', - - requires: [ - 'Ext.grid.filters.Filters' - ], - - plugins: 'gridfilters', - - columns: { - items: [{ - text: Strings.sharedName, - dataIndex: 'name', - flex: 1, - minWidth: Traccar.Style.columnWidthNormal, - filter: 'string' - }] - } -}); diff --git a/web/app/view/permissions/UserDevices.js b/web/app/view/permissions/Devices.js index a9bb65b7..4cadafe4 100644 --- a/web/app/view/permissions/UserDevices.js +++ b/web/app/view/permissions/Devices.js @@ -15,9 +15,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.permissions.UserDevices', { +Ext.define('Traccar.view.permissions.Devices', { extend: 'Traccar.view.permissions.Base', - xtype: 'userDevicesView', + xtype: 'linkDevicesView', requires: [ 'Ext.grid.filters.Filters', diff --git a/web/app/view/permissions/UserDrivers.js b/web/app/view/permissions/Drivers.js index 8f88ddd8..f0ea2890 100644 --- a/web/app/view/permissions/UserDrivers.js +++ b/web/app/view/permissions/Drivers.js @@ -16,9 +16,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.permissions.UserDrivers', { +Ext.define('Traccar.view.permissions.Drivers', { extend: 'Traccar.view.permissions.Base', - xtype: 'userDriversView', + xtype: 'linkDriversView', requires: [ 'Ext.grid.filters.Filters' diff --git a/web/app/view/permissions/UserGeofences.js b/web/app/view/permissions/Geofences.js index 436a2a6a..84135d3b 100644 --- a/web/app/view/permissions/UserGeofences.js +++ b/web/app/view/permissions/Geofences.js @@ -15,9 +15,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.permissions.UserGeofences', { +Ext.define('Traccar.view.permissions.Geofences', { extend: 'Traccar.view.permissions.Base', - xtype: 'userGeofencesView', + xtype: 'linkGeofencesView', requires: [ 'Ext.grid.filters.Filters' diff --git a/web/app/view/permissions/GroupAttributes.js b/web/app/view/permissions/GroupAttributes.js deleted file mode 100644 index 4db8b244..00000000 --- a/web/app/view/permissions/GroupAttributes.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2017 Anton Tananaev (anton@traccar.org) - * Copyright 2017 Andrey Kunitsyn (andrey@traccar.org) - * - * This program 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. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -Ext.define('Traccar.view.permissions.GroupAttributes', { - extend: 'Traccar.view.permissions.Base', - xtype: 'groupAttributesView', - - requires: [ - 'Ext.grid.filters.Filters' - ], - - columns: { - items: [{ - text: Strings.sharedDescription, - dataIndex: 'description', - flex: 1, - minWidth: Traccar.Style.columnWidthNormal, - filter: 'string' - }, { - text: Strings.sharedAttribute, - dataIndex: 'attribute', - flex: 1, - minWidth: Traccar.Style.columnWidthNormal, - filter: { - type: 'list', - labelField: 'name', - store: 'PositionAttributes' - }, - renderer: function (value) { - return Ext.getStore('PositionAttributes').getAttributeName(value); - } - }] - } -}); diff --git a/web/app/view/permissions/GroupDrivers.js b/web/app/view/permissions/GroupDrivers.js deleted file mode 100644 index 61aa10ad..00000000 --- a/web/app/view/permissions/GroupDrivers.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2017 Anton Tananaev (anton@traccar.org) - * Copyright 2017 Andrey Kunitsyn (andrey@traccar.org) - * - * This program 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. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -Ext.define('Traccar.view.permissions.GroupDrivers', { - extend: 'Traccar.view.permissions.Base', - xtype: 'groupDriversView', - - requires: [ - 'Ext.grid.filters.Filters' - ], - - plugins: 'gridfilters', - - columns: { - items: [{ - text: Strings.sharedName, - dataIndex: 'name', - flex: 1, - minWidth: Traccar.Style.columnWidthNormal, - filter: 'string' - }, { - text: Strings.deviceIdentifier, - dataIndex: 'uniqueId', - flex: 1, - minWidth: Traccar.Style.columnWidthNormal, - filter: 'string' - }] - } -}); diff --git a/web/app/view/permissions/GroupGeofences.js b/web/app/view/permissions/GroupGeofences.js deleted file mode 100644 index f365e356..00000000 --- a/web/app/view/permissions/GroupGeofences.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2016 - 2017 Anton Tananaev (anton@traccar.org) - * - * This program 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. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -Ext.define('Traccar.view.permissions.GroupGeofences', { - extend: 'Traccar.view.permissions.Base', - xtype: 'groupGeofencesView', - - requires: [ - 'Ext.grid.filters.Filters' - ], - - plugins: 'gridfilters', - - columns: { - items: [{ - text: Strings.sharedName, - dataIndex: 'name', - flex: 1, - minWidth: Traccar.Style.columnWidthNormal, - filter: 'string' - }] - } -}); diff --git a/web/app/view/permissions/UserGroups.js b/web/app/view/permissions/Groups.js index bc24201c..d3cad98e 100644 --- a/web/app/view/permissions/UserGroups.js +++ b/web/app/view/permissions/Groups.js @@ -15,9 +15,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.permissions.UserGroups', { +Ext.define('Traccar.view.permissions.Groups', { extend: 'Traccar.view.permissions.Base', - xtype: 'userGroupsView', + xtype: 'linkGroupsView', requires: [ 'Ext.grid.filters.Filters', diff --git a/web/app/view/permissions/UserAttributes.js b/web/app/view/permissions/SavedCommands.js index a0a385ee..1c7ab775 100644 --- a/web/app/view/permissions/UserAttributes.js +++ b/web/app/view/permissions/SavedCommands.js @@ -16,9 +16,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.permissions.UserAttributes', { +Ext.define('Traccar.view.permissions.SavedCommands', { extend: 'Traccar.view.permissions.Base', - xtype: 'userAttributesView', + xtype: 'linkSavedCommandsView', requires: [ 'Ext.grid.filters.Filters' @@ -34,18 +34,22 @@ Ext.define('Traccar.view.permissions.UserAttributes', { minWidth: Traccar.Style.columnWidthNormal, filter: 'string' }, { - text: Strings.sharedAttribute, - dataIndex: 'attribute', + text: Strings.sharedType, + dataIndex: 'name', flex: 1, minWidth: Traccar.Style.columnWidthNormal, filter: { type: 'list', + idField: 'name', labelField: 'name', - store: 'PositionAttributes' - }, - renderer: function (value) { - return Ext.getStore('PositionAttributes').getAttributeName(value); + store: 'AllCommandTypes' } + }, { + text: Strings.notificationSms, + dataIndex: 'textChannel', + flex: 1, + minWidth: Traccar.Style.columnWidthNormal, + filter: 'boolean' }] } }); diff --git a/web/app/view/permissions/UserUsers.js b/web/app/view/permissions/Users.js index c5980c2f..66cf5d62 100644 --- a/web/app/view/permissions/UserUsers.js +++ b/web/app/view/permissions/Users.js @@ -16,9 +16,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -Ext.define('Traccar.view.permissions.UserUsers', { +Ext.define('Traccar.view.permissions.Users', { extend: 'Traccar.view.permissions.Base', - xtype: 'userUsersView', + xtype: 'linkUsersView', columns: { items: [{ |