Skip to content

Commit

Permalink
Merge pull request #9 from ARCANESOFT/develop
Browse files Browse the repository at this point in the history
Updating the package
  • Loading branch information
arcanedev-maroc committed Feb 20, 2017
2 parents aee6dd0 + 86d819a commit 1bfaa5c
Show file tree
Hide file tree
Showing 12 changed files with 76 additions and 85 deletions.
45 changes: 24 additions & 21 deletions config/foundation.php
@@ -1,24 +1,21 @@
<?php

return [
/* ------------------------------------------------------------------------------------------------
| Route settings
| ------------------------------------------------------------------------------------------------
*/
'route' => [
//
],

/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Foundation Template
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/

'template' => 'foundation::admin._template.master',

/* ------------------------------------------------------------------------------------------------
| Sidebar
| ------------------------------------------------------------------------------------------------
'skin' => 'skin-blue',

/* -----------------------------------------------------------------
| Sidebar Items
| -----------------------------------------------------------------
*/

'sidebar' => [
'items' => [
'arcanesoft.sidebar.foundation.dashboard',
Expand All @@ -33,10 +30,11 @@
],
],

/* ------------------------------------------------------------------------------------------------
| Modules
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| ARCANESOFT Modules
| -----------------------------------------------------------------
*/

'modules' => [
'providers' => [
Arcanesoft\Auth\AuthServiceProvider::class,
Expand All @@ -45,34 +43,38 @@
// Arcanesoft\Tracker\TrackerServiceProvider::class,
// Arcanesoft\Seo\SeoServiceProvider::class,
],

'setup' => [
//
],
],

/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Dashboards
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/

'dashboards' => [
'auth::admin._composers.dashboard',
// 'tracker::admin._composers.dashboard',
],

/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| LogViewer
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/

'log-viewer' => [
'per-page' => 30,

'filter-route' => 'admin::foundation.system.log-viewer.logs.filter',
],

/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| RoutesViewer
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/

'routes-viewer' => [
'per-page' => 30,

Expand All @@ -97,4 +99,5 @@
],
],
],

];
4 changes: 2 additions & 2 deletions resources/views/admin/_template/master.blade.php
Expand Up @@ -13,11 +13,11 @@
<![endif]-->
@yield('head')
</head>
<body class="fixed sidebar-mini skin-purple hold-transition">
<body class="fixed sidebar-mini hold-transition {{ config('arcanesoft.foundation.skin', 'skin-purple') }}">
<div id="app" class="wrapper">
@include('foundation::admin._template.header')

@include('foundation::admin._template.sidebar-main')
@include(Arcanesoft\Foundation\ViewComposers\SidebarComposer::VIEW)

{{-- Content Wrapper. Contains page content --}}
<main class="content-wrapper">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/admin/system/information/index.blade.php
Expand Up @@ -8,10 +8,10 @@
@include('foundation::admin.system.information._includes.application')
</div>
<div class="col-md-4">
@include(Arcanesoft\Foundation\ViewComposers\System\ServerRequirementsComposer::VIEW_NAME)
@include(Arcanesoft\Foundation\ViewComposers\System\ServerRequirementsComposer::VIEW)
</div>
<div class="col-md-4">
@include(Arcanesoft\Foundation\ViewComposers\System\FoldersPermissionsComposer::VIEW_NAME)
@include(Arcanesoft\Foundation\ViewComposers\System\FoldersPermissionsComposer::VIEW)
</div>
</div>

Expand Down
28 changes: 7 additions & 21 deletions src/FoundationServiceProvider.php
Expand Up @@ -10,9 +10,9 @@
*/
class FoundationServiceProvider extends PackageServiceProvider
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Properties
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Package name.
Expand All @@ -21,23 +21,9 @@ class FoundationServiceProvider extends PackageServiceProvider
*/
protected $package = 'foundation';

/* ------------------------------------------------------------------------------------------------
| Getters & Setters
| ------------------------------------------------------------------------------------------------
*/
/**
* Get the base path of the package.
*
* @return string
*/
public function getBasePath()
{
return dirname(__DIR__);
}

/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Register the service provider.
Expand Down Expand Up @@ -86,9 +72,9 @@ public function provides()
];
}

/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Services Functions
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Register Foundation service.
Expand Down
6 changes: 3 additions & 3 deletions src/Providers/AuthorizationServiceProvider.php
Expand Up @@ -13,9 +13,9 @@
*/
class AuthorizationServiceProvider extends ServiceProvider
{
/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Register any application authentication / authorization services.
Expand Down
4 changes: 2 additions & 2 deletions src/Providers/CommandServiceProvider.php
Expand Up @@ -11,9 +11,9 @@
*/
class CommandServiceProvider extends ServiceProvider
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Properties
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Console commands.
Expand Down
14 changes: 7 additions & 7 deletions src/Providers/PackagesServiceProvider.php
Expand Up @@ -13,9 +13,9 @@
*/
class PackagesServiceProvider extends ServiceProvider
{
/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Register the service provider.
Expand Down Expand Up @@ -50,16 +50,16 @@ public function provides()
];
}

/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Register Services
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/

//

/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Register Packages
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Register the LogViewer Package.
Expand Down
36 changes: 20 additions & 16 deletions src/Providers/RouteServiceProvider.php
Expand Up @@ -11,9 +11,20 @@
*/
class RouteServiceProvider extends ServiceProvider
{
/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Properties
| -----------------------------------------------------------------
*/
/**
* The admin controller namespace for the application.
*
* @var string
*/
protected $adminNamespace = 'Arcanesoft\\Foundation\\Http\\Controllers\\Admin';

/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Define the routes for the application.
Expand All @@ -23,24 +34,17 @@ public function map()
$this->mapAdminRoutes();
}

/* ------------------------------------------------------------------------------------------------
| Other Functions
| ------------------------------------------------------------------------------------------------
*/
/**
* Map the admin routes.
*/
private function mapAdminRoutes()
{
$attributes = $this->getAdminAttributes(
'foundation.',
'Arcanesoft\\Foundation\\Http\\Controllers\\Admin'
);

$this->group($attributes, function () {
Routes\Admin\DashboardRoute::register();
Routes\Admin\SettingsRoutes::register();
Routes\Admin\SystemRoutes::register();
$this->adminGroup(function () {
$this->name('foundation.')->group(function () {
Routes\Admin\DashboardRoute::register();
Routes\Admin\SettingsRoutes::register();
Routes\Admin\SystemRoutes::register();
});
});
}
}
14 changes: 6 additions & 8 deletions src/Providers/ViewComposerServiceProvider.php
@@ -1,9 +1,7 @@
<?php namespace Arcanesoft\Foundation\Providers;

use Arcanedev\Support\Providers\ViewComposerServiceProvider as ServiceProvider;
use Arcanesoft\Foundation\ViewComposers\SidebarComposer;
use Arcanesoft\Foundation\ViewComposers\System\FoldersPermissionsComposer;
use Arcanesoft\Foundation\ViewComposers\System\ServerRequirementsComposer;
use Arcanesoft\Foundation\ViewComposers;

/**
* Class ViewComposerServiceProvider
Expand All @@ -13,18 +11,18 @@
*/
class ViewComposerServiceProvider extends ServiceProvider
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Properties
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Register the composer classes.
*
* @var array
*/
protected $composerClasses = [
SidebarComposer::VIEW_NAME => SidebarComposer::class,
ServerRequirementsComposer::VIEW_NAME => ServerRequirementsComposer::class,
FoldersPermissionsComposer::VIEW_NAME => FoldersPermissionsComposer::class,
ViewComposers\SidebarComposer::VIEW => ViewComposers\SidebarComposer::class,
ViewComposers\System\ServerRequirementsComposer::VIEW => ViewComposers\System\ServerRequirementsComposer::class,
ViewComposers\System\FoldersPermissionsComposer::VIEW => ViewComposers\System\FoldersPermissionsComposer::class,
];
}
2 changes: 1 addition & 1 deletion src/ViewComposers/SidebarComposer.php
Expand Up @@ -16,7 +16,7 @@ class SidebarComposer
| Constants
| ------------------------------------------------------------------------------------------------
*/
const VIEW_NAME = 'foundation::admin._template.sidebar-main';
const VIEW = 'foundation::admin._template.sidebar-main';

/* ------------------------------------------------------------------------------------------------
| Properties
Expand Down
2 changes: 1 addition & 1 deletion src/ViewComposers/System/FoldersPermissionsComposer.php
Expand Up @@ -14,7 +14,7 @@ class FoldersPermissionsComposer
| Constants
| ------------------------------------------------------------------------------------------------
*/
const VIEW_NAME = 'foundation::admin.system.information._includes.folders-permissions';
const VIEW = 'foundation::admin.system.information._includes.folders-permissions';

/* ------------------------------------------------------------------------------------------------
| Main Functions
Expand Down
2 changes: 1 addition & 1 deletion src/ViewComposers/System/ServerRequirementsComposer.php
Expand Up @@ -14,7 +14,7 @@ class ServerRequirementsComposer
| Constants
| ------------------------------------------------------------------------------------------------
*/
const VIEW_NAME = 'foundation::admin.system.information._includes.server-requirements';
const VIEW = 'foundation::admin.system.information._includes.server-requirements';

/* ------------------------------------------------------------------------------------------------
| Main Functions
Expand Down

0 comments on commit 1bfaa5c

Please sign in to comment.