Skip to content

Commit

Permalink
Merge pull request #10 from ARCANESOFT/develop
Browse files Browse the repository at this point in the history
Updating the package
  • Loading branch information
arcanedev-maroc authored May 1, 2017
2 parents 7aac81e + 5066ef9 commit ef718f4
Show file tree
Hide file tree
Showing 52 changed files with 979 additions and 456 deletions.
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ checks:
tools:
external_code_coverage:
timeout: 600
runs: 3
runs: 2
php_code_sniffer:
enabled: true
config:
Expand Down
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ language: php
sudo: false

php:
- 5.6
- 7.0
- 7.1
- nightly
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
],
"license": "MIT",
"require": {
"php": ">=5.6.4",
"php": ">=7.0",
"arcanedev/log-viewer": "~4.3",
"arcanedev/route-viewer": "~1.0",
"arcanesoft/auth": "~2.1",
"arcanesoft/core": "~2.2",
"arcanesoft/core": "~2.4",
"spatie/laravel-backup": "~4.4"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion config/foundation.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

'commands' => [
'install' => [
'auth:setup',
'auth:install',
],

'publish' => [
Expand Down
15 changes: 14 additions & 1 deletion config/sidebar/system.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use Arcanesoft\Auth\Models\Role;
use Arcanesoft\Foundation\Policies\BackupPolicy;
use Arcanesoft\Foundation\Policies\LogViewerPolicy;

return [
Expand All @@ -26,7 +27,9 @@
'route' => 'admin::foundation.system.log-viewer.index',
'icon' => 'fa fa-fw fa-book',
'roles' => [Role::ADMINISTRATOR, 'logviewer-manager'],
'permissions' => [LogViewerPolicy::PERMISSION_DASHBOARD],
'permissions' => [
LogViewerPolicy::PERMISSION_DASHBOARD,
],
],
[
'title' => 'foundation::sidebar.system-routes',
Expand All @@ -36,5 +39,15 @@
'roles' => [Role::ADMINISTRATOR],
'permissions' => [],
],
[
'title' => 'foundation::sidebar.backups',
'name' => 'foundation-system-backups',
'route' => 'admin::foundation.system.backups.index',
'icon' => 'fa fa-fw fa-database',
'roles' => [Role::ADMINISTRATOR],
'permissions' => [
BackupPolicy::PERMISSION_LIST,
],
]
],
];
78 changes: 78 additions & 0 deletions resources/lang/en/backups.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?php

return [
/* -----------------------------------------------------------------
| Attributes
| -----------------------------------------------------------------
*/

'attributes' => [
'name' => 'Name',
'disk' => 'Disk',
'reachable' => 'Reachable',
'healthy' => 'Healthy',
'number_of_backups' => '# of backups',
'newest_backup' => 'Newest backup',
'used_storage' => 'Used storage',

'date' => 'Date',
'path' => 'Path',
'size' => 'Size',
],

/* -----------------------------------------------------------------
| Titles
| -----------------------------------------------------------------
*/

'titles' => [
'backups' => 'Backups',
'monitor-status' => 'Monitor Status',
'monitor-statuses-list' => 'List of Monitor Statuses',
],

/* -----------------------------------------------------------------
| Actions
| -----------------------------------------------------------------
*/

'actions' => [
'run-backups' => 'Run Backups',
'clear-backups' => 'Clear Backups',
],

/* -----------------------------------------------------------------
| Messages
| -----------------------------------------------------------------
*/

'messages' => [
'created' => [
'title' => 'Backups created !',
'message' => 'The Backups was created successfully !',
],

'cleared' => [
'title' => 'Backups cleared !',
'message' => 'The Backups was cleared successfully !',
],
],

/* -----------------------------------------------------------------
| Modals
| -----------------------------------------------------------------
*/

'modals' => [
'backup' => [
'title' => 'Backup all',
'message' => 'Are you sure you want to run the <span class="label label-success">backups</span> ?',
],

'clear' => [
'title' => 'Clear all backups',
'message' => 'Are you sure you want to <span class="label label-warning">clear</span> all the backups ?',
],
],

];
48 changes: 45 additions & 3 deletions resources/lang/en/log-viewer.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,53 @@
<?php

return [
'dashboard' => 'Dashboard',

'logs-list' => 'Logs list',
/* -----------------------------------------------------------------
| Attributes
| -----------------------------------------------------------------
*/

'entries-stats' => ':count entries - :percent %',
'attributes' => [
'file_path' => 'File path',
'log_entries' => 'Log entries',
'size' => 'Size',
],

/* -----------------------------------------------------------------
| Titles
| -----------------------------------------------------------------
*/

'titles' => [
'dashboard' => 'Dashboard',
'logs-list' => 'Logs list',
],

/* -----------------------------------------------------------------
| Messages
| -----------------------------------------------------------------
*/

'entries-stats' => ':count entries - :percent %',
'no-entries' => 'There is no log for the time being.',

'messages' => [
'deleted' => [
'title' => 'Log Deleted !',
'message' => 'Log [:date] was deleted successfully !',
],
],

/* -----------------------------------------------------------------
| Modals
| -----------------------------------------------------------------
*/

'modals' => [
'delete' => [
'title' => 'Delete Log',
'message' => 'Are you sure you want to <span class="label label-danger">DELETE</span> this log file <span class="label label-primary">:date</span> ?'
],
],

];
29 changes: 29 additions & 0 deletions resources/lang/en/route-viewer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

return [

/* -----------------------------------------------------------------
| Attributes
| -----------------------------------------------------------------
*/

'attributes' => [
'methods' => 'Methods',
'uri' => 'URI',
'domain' => 'Domain',
'name' => 'Name',
'action' => 'Action',
'middleware' => 'Middleware',
],

/* -----------------------------------------------------------------
| Titles
| -----------------------------------------------------------------
*/

'titles' => [
'routes' => 'Routes',
'routes-list' => 'List of all routes',
],

];
9 changes: 5 additions & 4 deletions resources/lang/en/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

return [

'dashboard' => 'Dashboard',
'dashboard' => 'Dashboard',

'settings' => 'Settings',
'settings-generals' => 'Generals',
'settings-modules' => 'Modules',
'settings' => 'Settings',
'settings-generals' => 'Generals',
'settings-modules' => 'Modules',

'system' => 'System',
'system-informations' => 'Informations',
'system-log-viewer' => 'LogViewer',
'system-routes' => 'Routes',
'backups' => 'Backups',

];
78 changes: 78 additions & 0 deletions resources/lang/fr/backups.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?php

return [
/* -----------------------------------------------------------------
| Attributes
| -----------------------------------------------------------------
*/

'attributes' => [
'name' => 'Nom',
'disk' => 'Disque',
'reachable' => 'Accessible',
'healthy' => 'Sain',
'number_of_backups' => 'Nbr de sauvegardes',
'newest_backup' => 'La plus récente sauvegarde',
'used_storage' => 'Stockage utilisé',

'date' => 'Date',
'path' => 'Chemin',
'size' => 'Taille',
],

/* -----------------------------------------------------------------
| Titles
| -----------------------------------------------------------------
*/

'titles' => [
'backups' => 'Sauvegardes',
'monitor-status' => 'Statut du moniteur',
'monitor-statuses-list' => 'Liste des statuts du moniteur',
],

/* -----------------------------------------------------------------
| Actions
| -----------------------------------------------------------------
*/

'actions' => [
'run-backups' => 'Exécuter les sauvegardes',
'clear-backups' => 'Nettoyer les sauvegardes',
],

/* -----------------------------------------------------------------
| Messages
| -----------------------------------------------------------------
*/

'messages' => [
'created' => [
'title' => 'Backups created !',
'message' => 'The Backups was created successfully !',
],

'cleared' => [
'title' => 'Backups cleared !',
'message' => 'The Backups was cleared successfully !',
],
],

/* -----------------------------------------------------------------
| Modals
| -----------------------------------------------------------------
*/

'modals' => [
'backup' => [
'title' => 'Sauvegarder tout',
'message' => 'Êtes-vous sûr de vouloir exécuter la <span class="label label-success">sauvegarde</span> des base de données ?',
],

'clear' => [
'title' => 'Effacer toutes les sauvegardes',
'message' => 'Êtes-vous sûr de vouloir <span class="label label-warning">nettoyer</span> toutes les anciennes sauvegardes ?',
],
],

];
48 changes: 45 additions & 3 deletions resources/lang/fr/log-viewer.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,53 @@
<?php

return [
'dashboard' => 'Tableau de bord',

'logs-list' => 'Liste des journaux',
/* -----------------------------------------------------------------
| Attributes
| -----------------------------------------------------------------
*/

'attributes' => [
'file_path' => 'Chemin du fichier',
'log_entries' => 'Enregistrements',
'size' => 'Taille',
],

/* -----------------------------------------------------------------
| Titles
| -----------------------------------------------------------------
*/

'titles' => [
'dashboard' => 'Tableau de bord',
'logs-list' => 'Liste des journaux',
],

/* -----------------------------------------------------------------
| Messages
| -----------------------------------------------------------------
*/

'entries-stats' => ':count enregistrements - :percent %',
'no-entries' => "Il n'y a aucun enregistrements pour le moment.",

'messages' => [
'deleted' => [
'title' => 'Journal supprimé !',
'message' => 'Journal [:date] a été supprimé avec succès !',
],
],

/* -----------------------------------------------------------------
| Modals
| -----------------------------------------------------------------
*/

'modals' => [
'delete' => [
'title' => 'Supprimer journal',
'message' => 'Êtes-vous sûr de vouloir <span class="label label-danger">supprimer</span> ce journal: <span class="label label-primary">:date</span> ?'
],
],

'no-entries' => 'There is no log for the time being.',
];
Loading

0 comments on commit ef718f4

Please sign in to comment.