Commit ccb0b811 authored by Nicolas Widart's avatar Nicolas Widart

Removing dashboard module

parent ef1c983c
rules:
php.interface_has_no_interface_suffix:
enabled: false
language: php
php:
- 5.6
- 5.5
- 5.4
- hhvm
<?php namespace Modules\Dashboard\Composers;
use Illuminate\Contracts\View\View;
use Modules\Core\Composers\BaseSidebarViewComposer;
class SidebarViewComposer extends BaseSidebarViewComposer
{
public function compose(View $view)
{
$view->items->put('dashboard', [
'weight' => 0,
'request' => "*/$view->prefix",
'route' => 'dashboard.index',
'icon-class' => 'fa fa-dashboard',
'title' => 'Dashboard',
'permission' => $this->auth->hasAccess('dashboard.index')
]);
}
}
<?php
return [
'dashboard' => [
'index'
]
];
<?php namespace Modules\Dashboard\Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class DashboardDatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Model::unguard();
}
}
<?php namespace Modules\Dashboard\Http\Controllers\Admin;
use Illuminate\Support\Facades\View;
use Modules\Core\Http\Controllers\Admin\AdminBaseController;
class DashboardController extends AdminBaseController
{
public function index()
{
return View::make('dashboard::admin.dashboard');
}
}
<?php
use Illuminate\Routing\Router;
$router->group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter|auth.admin'], function(Router $router)
{
$router->group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Dashboard\Http\Controllers'], function(Router $router)
{
$router->get('/', ['as' => 'dashboard.index', 'uses' => 'Admin\DashboardController@index']);
});
});
<?php namespace Modules\Dashboard\Providers;
use Illuminate\Support\ServiceProvider;
class DashboardServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
//
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return array();
}
}
<?php namespace Modules\Dashboard\Providers;
use Illuminate\Routing\Router;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
/**
* The root namespace to assume when generating URLs to actions.
*
* @var string
*/
protected $rootUrlNamespace = 'Modules\Dashboard\Http\Controllers';
/**
* The controllers to scan for route annotations.
*
* @var array
*/
protected $scan = [
'Modules\Dashboard\Http\Controllers',
];
/**
* Called before routes are registered.
*
* Register any model bindings or pattern based filters.
*
* @param Router $router
* @return void
*/
public function before(Router $router)
{
//
}
/**
* Define the routes for the application.
*
* @return void
*/
public function map(Router $router)
{
require __DIR__ . '/../Http/routes.php';
}
}
<?php
return [
'welcome-message' => 'Welcome on your admin dashboard'
];
<?php
return [
'welcome-message' => 'Bienvenue sur votre dashboard'
];
@extends('core::layouts.master')
@section('content-header')
<h1>
Dashboard
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
</ol>
@stop
@section('content')
<div class="row">
<div class="col-md-12">
<p>{{ trans('dashboard::dashboard.welcome-message') }}</p>
</div>
</div>
@stop
{
"name": "asgardcms/dashboard-module",
"type": "asgard-module",
"description": "Dashboard module for AsgardCMS. Handles the display of the dashboard.",
"keywords": [
"asgardcms",
"dashboard"
],
"license": "MIT",
"authors": [
{
"name": "Nicolas Widart",
"email": "info@asgardcms.com",
"role": "Developer"
}
],
"support": {
"email": "support@asgardcms.com",
"issues": "https://github.com/AsgardCms/Dashboard/issues",
"source": "https://github.com/AsgardCms/Dashboard"
},
"require": {
"php": ">=5.4",
"composer/installers": "~1.0"
},
"minimum-stability": "dev"
}
<?php
View::composer('core::partials.sidebar-nav', 'Modules\Dashboard\Composers\SidebarViewComposer');
{
"name": "Dashboard",
"alias": "dashboard",
"description": "The module responsible for the admin dashboard page.",
"keywords": [],
"active": 1,
"providers": [
"Modules\\Dashboard\\Providers\\RouteServiceProvider"
],
"files": [
"start.php"
]
}
# Dashboard Module
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/3616f9d8-1e5c-46c6-9058-13e916851254/mini.png)](https://insight.sensiolabs.com/projects/3616f9d8-1e5c-46c6-9058-13e916851254)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/AsgardCms/Dashboard/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/AsgardCms/Dashboard/?branch=master)
[![Code Climate](https://codeclimate.com/github/AsgardCms/Dashboard/badges/gpa.svg)](https://codeclimate.com/github/AsgardCms/Dashboard)
<?php
require __DIR__ . '/composers.php';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment