소스 검색

finish usefullinks (#667)

Dennis 2 년 전
부모
커밋
a4695681b5
5개의 변경된 파일29개의 추가작업 그리고 5개의 파일을 삭제
  1. 7 4
      app/Providers/AppServiceProvider.php
  2. 3 0
      database/seeders/Seeds/UsefulLinksSeeder.php
  3. 10 0
      public/build/assets/app-bac23d88.css
  4. 7 0
      public/build/manifest.json
  5. 2 1
      vite.config.js

+ 7 - 4
app/Providers/AppServiceProvider.php

@@ -54,10 +54,13 @@ class AppServiceProvider extends ServiceProvider
             return $ok;
         });
 
-
-        if (Schema::hasColumn('useful_links', 'position')) {
-            $useful_links = UsefulLink::where("position","like","%topbar%")->get()->sortby("id");
-            view()->share('useful_links', $useful_links);
+        try {
+            if (Schema::hasColumn('useful_links', 'position')) {
+                $useful_links = UsefulLink::where("position", "like", "%topbar%")->get()->sortby("id");
+                view()->share('useful_links', $useful_links);
+            }
+        } catch (Exception $e) {
+            Log::error("Couldnt find useful_links. Probably the installation is not completet. ".$e);
         }
 
         //only run if the installer has been executed

+ 3 - 0
database/seeders/Seeds/UsefulLinksSeeder.php

@@ -19,18 +19,21 @@ class UsefulLinksSeeder extends Seeder
             'title' => 'Pterodactyl Panel',
             'link' => env('PTERODACTYL_URL', 'http://localhost'),
             'description' => 'Use your servers on our pterodactyl panel <small>(You can use the same login details)</small>',
+            'position' => 'dashboard',
         ]);
         UsefulLink::create([
             'icon' => 'fas fa-database',
             'title' => 'phpMyAdmin',
             'link' => env('PHPMYADMIN_URL', 'http://localhost'),
             'description' => 'View your database online using phpMyAdmin',
+            'position' => 'dashboard,topbar',
         ]);
         UsefulLink::create([
             'icon' => 'fab fa-discord',
             'title' => 'Discord',
             'link' => env('DISCORD_INVITE_URL', 'https://discord.gg/4Y6HjD2uyU'),
             'description' => 'Need a helping hand? Want to chat? Got any questions? Join our discord!',
+            'position' => 'dashboard',
         ]);
     }
 }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 10 - 0
public/build/assets/app-bac23d88.css


+ 7 - 0
public/build/manifest.json

@@ -0,0 +1,7 @@
+{
+  "resources/sass/app.scss": {
+    "file": "assets/app-bac23d88.css",
+    "src": "resources/sass/app.scss",
+    "isEntry": true
+  }
+}

+ 2 - 1
vite.config.js

@@ -1,3 +1,4 @@
+
 import { defineConfig } from "vite";
 import laravel from "laravel-vite-plugin";
 
@@ -26,4 +27,4 @@ export default defineConfig({
         }
     },
 
-});
+});

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.