jqh 4 年之前
父节点
当前提交
36e5769d6e
共有 2 个文件被更改,包括 3 次插入87 次删除
  1. 3 2
      resources/views/dashboard/title.blade.php
  2. 0 85
      src/Controllers/Dashboard.php

+ 3 - 2
resources/views/dashboard/title.blade.php

@@ -10,6 +10,7 @@
         letter-spacing: .1rem;
         text-decoration: none;
         text-transform: uppercase;
+        color: #fff;
     }
     .dashboard-title h1 {
         font-weight: 200;
@@ -23,13 +24,13 @@
     }
 </style>
 
-<div class="dashboard-title card">
+<div class="dashboard-title card bg-primary">
     <div class="card-body">
         <div class="text-center ">
             <img class="avatar img-circle shadow mt-1" src="{{ admin_asset('@admin/images/logo.png') }}">
 
             <div class="text-center mb-1">
-                <h1 class="mb-3 mt-2 text-primary-darker">Dcat Admin</h1>
+                <h1 class="mb-3 mt-2 text-white">Dcat Admin</h1>
                 <div class="links">
                     <a href="https://github.com/jqhph/dcat-admin" target="_blank">Github</a>
                     <a href="http://www.dcatadmin.com/" id="doc-link" target="_blank">{{ __('admin.documentation') }}</a>

+ 0 - 85
src/Controllers/Dashboard.php

@@ -15,89 +15,4 @@ class Dashboard
     {
         return view('admin::dashboard.title');
     }
-
-    public static function tab()
-    {
-        return Tab::make()
-            ->padding(0)
-            ->add('Environment', static::environment())
-            ->add('Extensions', static::extensions())
-            ->add('Dependencies', static::dependencies());
-    }
-
-    /**
-     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
-     */
-    public static function environment()
-    {
-        $envs = [
-            ['name' => 'PHP version',       'value' => 'PHP/'.PHP_VERSION],
-            ['name' => 'Laravel version',   'value' => app()->version()],
-            ['name' => 'CGI',               'value' => php_sapi_name()],
-            ['name' => 'Uname',             'value' => php_uname()],
-            ['name' => 'Server',            'value' => Arr::get($_SERVER, 'SERVER_SOFTWARE')],
-
-            ['name' => 'Cache driver',      'value' => config('cache.default')],
-            ['name' => 'Session driver',    'value' => config('session.driver')],
-            ['name' => 'Queue driver',      'value' => config('queue.default')],
-
-            ['name' => 'Timezone',          'value' => config('app.timezone')],
-            ['name' => 'Locale',            'value' => config('app.locale')],
-            ['name' => 'Env',               'value' => config('app.env')],
-            ['name' => 'URL',               'value' => config('app.url')],
-        ];
-
-        return view('admin::dashboard.environment', compact('envs'));
-    }
-
-    /**
-     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
-     */
-    public static function extensions()
-    {
-        $extensions = [
-            'Dcat Page' => [
-                'name' => 'Dcat Page 简洁的静态站点生成工具',
-                'link' => 'https://github.com/jqhph/dcat-page',
-                'icon' => 'fa fa-file-text-o',
-                'key'  => 'dcat-page',
-            ],
-            'UEditor' => [
-                'name' => 'UEditor 百度在线编辑器',
-                'link' => 'https://github.com/jqhph/dcat-admin-ueditor',
-                'icon' => 'fa fa-underline',
-                'key'  => 'ueditor',
-            ],
-            'Sortable' => [
-                'name' => 'Grid-sortable 列表拖曳排序工具',
-                'link' => 'https://github.com/jqhph/dcat-admin-grid-sortable',
-                'icon' => 'glyphicon glyphicon-sort ',
-                'key'  => 'grid-sortable',
-            ],
-            '干货集中营' => [
-                'name' => '干货集中营',
-                'link' => 'https://github.com/jqhph/dcat-admin-gank',
-                'icon' => 'fa fa-newspaper-o',
-                'key'  => 'gank',
-            ],
-        ];
-
-        foreach ($extensions as &$extension) {
-            $extension['installed'] = array_key_exists($extension['key'], Admin::extensions());
-        }
-
-        return view('admin::dashboard.extensions', compact('extensions'));
-    }
-
-    /**
-     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
-     */
-    public static function dependencies()
-    {
-        $json = file_get_contents(base_path('composer.json'));
-
-        $dependencies = json_decode($json, true)['require'];
-
-        return view('admin::dashboard.dependencies', compact('dependencies'));
-    }
 }