소스 검색

feat:更改项目名称等配置

Yin Bin 4 달 전
부모
커밋
44adcdf7b6
2개의 변경된 파일9개의 추가작업 그리고 31개의 파일을 삭제
  1. 5 24
      app/Admin/Controllers/HomeController.php
  2. 4 7
      config/admin.php

+ 5 - 24
app/Admin/Controllers/HomeController.php

@@ -22,8 +22,7 @@ class HomeController extends AdminController
             amis()->Grid()->columns([
                 $this->lineChart()->set('md', 8),
                 amis()->Flex()->className('h-full')->items([
-                    $this->clock(),
-                    $this->codeView(),
+                    $this->clock()
                 ])->direction('column'),
             ]),
         ]);
@@ -31,23 +30,6 @@ class HomeController extends AdminController
         return $this->response()->success($page);
     }
 
-    public function codeView()
-    {
-        return amis()->Panel()->className('h-full clear-card-mb rounded-md')->body([
-            amis()->Markdown()->options(['html' => true, 'breaks' => true])->value(<<<MD
-### __The beginning of everything__
-
-<br>
-
-```php
-<?php
-
-echo 'Hello World';
-```
-MD
-            ),
-        ]);
-    }
 
     public function clock()
     {
@@ -56,7 +38,8 @@ MD
             amis()->Custom()
                 ->name('clock')
                 ->html('<div id="clock" class="text-4xl"></div><div id="clock-date" class="mt-5"></div>')
-                ->onMount(<<<JS
+                ->onMount(
+                    <<<JS
 const clock = document.getElementById('clock');
 const tick = () => {
     clock.innerHTML = (new Date()).toLocaleTimeString();
@@ -95,10 +78,7 @@ JS
                         amis()->Image()->src(url(Admin::config('admin.logo'))),
                         amis()->Wrapper()->className('text-3xl mt-9 font-bold')->body(Admin::config('admin.name')),
                         amis()->Flex()->className('w-full mt-5')->justify('center')->items([
-                            $link('GitHub', 'https://github.com/slowlyo/owl-admin'),
                             $link('Official website', 'https://owladmin.com'),
-                            $link('Documentation', 'https://doc.owladmin.com'),
-                            $link('Demo', 'https://demo.owladmin.com'),
                         ]),
                     ]),
             ])
@@ -192,7 +172,8 @@ JS
     public function cube()
     {
         return amis()->Card()->className('h-96 ml-4 w-8/12')->body(
-            amis()->Html()->html(<<<HTML
+            amis()->Html()->html(
+                <<<HTML
 <style>
     .cube-box{ height: 300px; display: flex; align-items: center; justify-content: center; }
   .cube { width: 100px; height: 100px; position: relative; transform-style: preserve-3d; animation: rotate 10s linear infinite; }

+ 4 - 7
config/admin.php

@@ -2,7 +2,7 @@
 
 return [
     // 应用名称
-    'name'           => env('ADMIN_APP_NAME', 'Owl Admin'),
+    'name'           => env('ADMIN_APP_NAME', '小丁到家'),
 
     // 应用 logo
     'logo'           => env('ADMIN_LOGO', '/admin-assets/logo.png'),
@@ -50,9 +50,7 @@ return [
                 'model'  => \Slowlyo\OwlAdmin\Models\AdminUser::class,
             ],
         ],
-        'except'           => [
-
-        ],
+        'except'           => [],
     ],
 
     'upload' => [
@@ -109,7 +107,7 @@ return [
          */
         'keep_alive_exclude' => [],
         // 底部信息
-        'footer'             => '<a href="https://github.com/slowlyo/owl-admin" target="_blank">Owl Admin</a>',
+        'footer'             => '<a href="https://github.com/slowlyo/owl-admin" target="_blank">纽森科技</a>',
     ],
 
     'database' => [
@@ -127,6 +125,5 @@ return [
 
     'modules_dir' => base_path('admin-modules'),
 
-    'modules' => [
-    ],
+    'modules' => [],
 ];