Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HeadingWidget.blade.php #42

Merged
merged 4 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>