-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from woodspire/feature/override-external-depen…
…dencies Allow to override the external dependencies.
- Loading branch information
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,24 @@ | |
|
||
/* | ||
* When the dashboard uses the `auto` theme, these coordinates will be used | ||
* to determine whether the sun is up or down | ||
* to determine whether the sun is up or down. | ||
*/ | ||
'auto_theme_location' => [ | ||
'lat' => 51.260197, | ||
'lng' => 4.402771, | ||
], | ||
|
||
/* | ||
* These scripts will be loaded when the dashboard is displayed. | ||
*/ | ||
'scripts' => [ | ||
'alpinejs' => 'https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js', | ||
], | ||
|
||
/* | ||
* These stylesheets will be loaded when the dashboard is displayed. | ||
*/ | ||
'stylesheets' => [ | ||
'inter' => 'https://rsms.me/inter/inter.css' | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,8 @@ class DashboardServiceProvider extends ServiceProvider | |
public function boot() | ||
{ | ||
$this->app->make(Dashboard::class) | ||
->script('https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js') | ||
->stylesheet('https://rsms.me/inter/inter.css') | ||
->script(config('dashboard.scripts.alpinejs')) | ||
->stylesheet(config('dashboard.stylesheets.inter')) | ||
->inlineStylesheet(file_get_contents(__DIR__.'/../resources/dist/dashboard.min.css')); | ||
|
||
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'dashboard'); | ||
|