Skip to content

Commit

Permalink
Merge pull request #42 from lara-zeus/hot-fix
Browse files Browse the repository at this point in the history
Update HeadingWidget.blade.php
  • Loading branch information
atmonshi authored Oct 5, 2024
2 parents a32b8ed + 3147c5d commit adfb4b1
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none

- name: Install composer dependencies
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.1]
laravel: [9.*]
stability: [prefer-lowest, prefer-stable]
php: [8.2]
laravel: [10.*]
stability: [prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand All @@ -44,4 +44,4 @@ jobs:
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest
run: vendor/bin/pest
55 changes: 55 additions & 0 deletions docs/assets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
title: Themes and Assets
weight: 6
---

## Compiling assets

we use [tailwind Css](https://tailwindcss.com/) and custom themes by filament, make sure you are familiar with [tailwindcss configuration](https://tailwindcss.com/docs/configuration), and how to make custom [filament theme](https://filamentphp.com/docs/2.x/admin/appearance#building-themes).

### Custom Classes:

You need to add these files to your `tailwind.config.js` file in the `content` section.

* frontend:

```js
content: [
//...
'./vendor/lara-zeus/dynamic-dashboard/resources/views/themes/**/*.blade.php',
'./vendor/lara-zeus/dynamic-dashboard/src/Models/Columns.php',
]
```

* filament:

```js
content: [
//...
'./vendor/lara-zeus/rain/resources/views/filament/**/*.blade.php',
'./vendor/lara-zeus/rain/src/Models/Columns.php',
]
```

### Customizing the Frontend Views

first, publish the config file:

```php
php artisan vendor:publish --tag=zeus-config
```

then change the default layout in the file `zeus.php`:

```php
'layout' => 'components.layouts.app',
// this is assuming your layout on the folder `resources/views/components/layouts/app`
```
this will give you full control for the assets files and the header and the footer.


If needed, you can publish the blade views for all zeus packages:

```php
php artisan vendor:publish --tag=zeus-views
```
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<div class="max-w-none p-4 prose lg:prose-xl prose-primary dark:prose-invert">
{!! str($data['content'])->markdown() !!}
{!!
(new \Illuminate\Support\HtmlString(
str(strip_tags($data['content']))
->markdown()
))
->toHtml()
!!}
</div>

0 comments on commit adfb4b1

Please sign in to comment.