finish usefullinks, fix vite
This commit is contained in:
parent
0cfa02b4ce
commit
8b4477bc8d
|
@ -54,10 +54,13 @@ class AppServiceProvider extends ServiceProvider
|
||||||
return $ok;
|
return $ok;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
try {
|
||||||
if (Schema::hasColumn('useful_links', 'position')) {
|
if (Schema::hasColumn('useful_links', 'position')) {
|
||||||
$useful_links = UsefulLink::where("position","like","%topbar%")->get()->sortby("id");
|
$useful_links = UsefulLink::where("position", "like", "%topbar%")->get()->sortby("id");
|
||||||
view()->share('useful_links', $useful_links);
|
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
|
//only run if the installer has been executed
|
||||||
|
|
|
@ -19,18 +19,21 @@ class UsefulLinksSeeder extends Seeder
|
||||||
'title' => 'Pterodactyl Panel',
|
'title' => 'Pterodactyl Panel',
|
||||||
'link' => env('PTERODACTYL_URL', 'http://localhost'),
|
'link' => env('PTERODACTYL_URL', 'http://localhost'),
|
||||||
'description' => 'Use your servers on our pterodactyl panel <small>(You can use the same login details)</small>',
|
'description' => 'Use your servers on our pterodactyl panel <small>(You can use the same login details)</small>',
|
||||||
|
'position' => 'dashboard',
|
||||||
]);
|
]);
|
||||||
UsefulLink::create([
|
UsefulLink::create([
|
||||||
'icon' => 'fas fa-database',
|
'icon' => 'fas fa-database',
|
||||||
'title' => 'phpMyAdmin',
|
'title' => 'phpMyAdmin',
|
||||||
'link' => env('PHPMYADMIN_URL', 'http://localhost'),
|
'link' => env('PHPMYADMIN_URL', 'http://localhost'),
|
||||||
'description' => 'View your database online using phpMyAdmin',
|
'description' => 'View your database online using phpMyAdmin',
|
||||||
|
'position' => 'dashboard,topbar',
|
||||||
]);
|
]);
|
||||||
UsefulLink::create([
|
UsefulLink::create([
|
||||||
'icon' => 'fab fa-discord',
|
'icon' => 'fab fa-discord',
|
||||||
'title' => 'Discord',
|
'title' => 'Discord',
|
||||||
'link' => env('DISCORD_INVITE_URL', 'https://discord.gg/4Y6HjD2uyU'),
|
'link' => env('DISCORD_INVITE_URL', 'https://discord.gg/4Y6HjD2uyU'),
|
||||||
'description' => 'Need a helping hand? Want to chat? Got any questions? Join our discord!',
|
'description' => 'Need a helping hand? Want to chat? Got any questions? Join our discord!',
|
||||||
|
'position' => 'dashboard',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
public/build/assets/app-0fd5dfcd.js
vendored
Normal file
1
public/build/assets/app-0fd5dfcd.js
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
require("./adminlte");require("./slim.kickstart.min");require("./bootstrap");
|
11
public/build/assets/app-bac23d88.css
vendored
Normal file
11
public/build/assets/app-bac23d88.css
vendored
Normal file
File diff suppressed because one or more lines are too long
12
public/build/manifest.json
Normal file
12
public/build/manifest.json
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"themes/default/sass/app.scss": {
|
||||||
|
"file": "assets/app-bac23d88.css",
|
||||||
|
"src": "themes/default/sass/app.scss",
|
||||||
|
"isEntry": true
|
||||||
|
},
|
||||||
|
"themes/default/js/app.js": {
|
||||||
|
"file": "assets/app-0fd5dfcd.js",
|
||||||
|
"src": "themes/default/js/app.js",
|
||||||
|
"isEntry": true
|
||||||
|
}
|
||||||
|
}
|
37
vite.config.js
vendored
Normal file
37
vite.config.js
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
import { defineConfig } from "vite";
|
||||||
|
import laravel from "laravel-vite-plugin";
|
||||||
|
import path from "path";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
plugins: [
|
||||||
|
laravel({
|
||||||
|
input: [
|
||||||
|
"themes/default/sass/app.scss",
|
||||||
|
"themes/default/js/app.js"
|
||||||
|
],
|
||||||
|
buildDirectory: "build",
|
||||||
|
}),
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
name: "blade",
|
||||||
|
handleHotUpdate({ file, server }) {
|
||||||
|
if (file.endsWith(".blade.php")) {
|
||||||
|
server.ws.send({
|
||||||
|
type: "full-reload",
|
||||||
|
path: "*",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
'@': '/themes/default/js',
|
||||||
|
'~bootstrap': path.resolve('node_modules/bootstrap'),
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
});
|
Loading…
Reference in a new issue