diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index f804da2..46652bb 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -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 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index a2dee2c..5edbaaf 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -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 }} @@ -44,4 +44,4 @@ jobs: composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests - run: vendor/bin/pest + run: vendor/bin/pest \ No newline at end of file diff --git a/docs/assets.md b/docs/assets.md new file mode 100644 index 0000000..1665735 --- /dev/null +++ b/docs/assets.md @@ -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 +``` diff --git a/resources/views/themes/zeus/dynamic-dashboard/widgets/HeadingWidget.blade.php b/resources/views/themes/zeus/dynamic-dashboard/widgets/HeadingWidget.blade.php index 0ad9f2f..95b9ad5 100644 --- a/resources/views/themes/zeus/dynamic-dashboard/widgets/HeadingWidget.blade.php +++ b/resources/views/themes/zeus/dynamic-dashboard/widgets/HeadingWidget.blade.php @@ -1,3 +1,9 @@
- {!! str($data['content'])->markdown() !!} + {!! + (new \Illuminate\Support\HtmlString( + str(strip_tags($data['content'])) + ->markdown() + )) + ->toHtml() + !!}