Skip to content

Commit adfb4b1

Browse files
authored
Merge pull request #42 from lara-zeus/hot-fix
Update HeadingWidget.blade.php
2 parents a32b8ed + 3147c5d commit adfb4b1

File tree

4 files changed

+69
-8
lines changed

4 files changed

+69
-8
lines changed

.github/workflows/phpstan.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.1'
19+
php-version: '8.2'
2020
coverage: none
2121

2222
- name: Install composer dependencies

.github/workflows/run-tests.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
php: [8.1]
17-
laravel: [9.*]
18-
stability: [prefer-lowest, prefer-stable]
16+
php: [8.2]
17+
laravel: [10.*]
18+
stability: [prefer-stable]
1919
include:
20-
- laravel: 9.*
21-
testbench: 7.*
20+
- laravel: 10.*
21+
testbench: 8.*
2222

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

@@ -44,4 +44,4 @@ jobs:
4444
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4545
4646
- name: Execute tests
47-
run: vendor/bin/pest
47+
run: vendor/bin/pest

docs/assets.md

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: Themes and Assets
3+
weight: 6
4+
---
5+
6+
## Compiling assets
7+
8+
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).
9+
10+
### Custom Classes:
11+
12+
You need to add these files to your `tailwind.config.js` file in the `content` section.
13+
14+
* frontend:
15+
16+
```js
17+
content: [
18+
//...
19+
'./vendor/lara-zeus/dynamic-dashboard/resources/views/themes/**/*.blade.php',
20+
'./vendor/lara-zeus/dynamic-dashboard/src/Models/Columns.php',
21+
]
22+
```
23+
24+
* filament:
25+
26+
```js
27+
content: [
28+
//...
29+
'./vendor/lara-zeus/rain/resources/views/filament/**/*.blade.php',
30+
'./vendor/lara-zeus/rain/src/Models/Columns.php',
31+
]
32+
```
33+
34+
### Customizing the Frontend Views
35+
36+
first, publish the config file:
37+
38+
```php
39+
php artisan vendor:publish --tag=zeus-config
40+
```
41+
42+
then change the default layout in the file `zeus.php`:
43+
44+
```php
45+
'layout' => 'components.layouts.app',
46+
// this is assuming your layout on the folder `resources/views/components/layouts/app`
47+
```
48+
this will give you full control for the assets files and the header and the footer.
49+
50+
51+
If needed, you can publish the blade views for all zeus packages:
52+
53+
```php
54+
php artisan vendor:publish --tag=zeus-views
55+
```
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
<div class="max-w-none p-4 prose lg:prose-xl prose-primary dark:prose-invert">
2-
{!! str($data['content'])->markdown() !!}
2+
{!!
3+
(new \Illuminate\Support\HtmlString(
4+
str(strip_tags($data['content']))
5+
->markdown()
6+
))
7+
->toHtml()
8+
!!}
39
</div>

0 commit comments

Comments
 (0)