Skip to content

Commit 452c63b

Browse files
committed
plugin setup + asset manager in filament + CTA type
1 parent ba3ad9b commit 452c63b

38 files changed

+479
-557
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: :vendor_name
1+
github: Statik.be

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/:vendor_name/:package_name/discussions/new?category=q-a
4+
url: https://github.com/Statik.be/laravel-filament-flexible-blocks-asset-manager/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/:vendor_name/:package_name/discussions/new?category=ideas
7+
url: https://github.com/Statik.be/laravel-filament-flexible-blocks-asset-manager/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/:vendor_name/:package_name/security/policy
10+
url: https://github.com/Statik.be/laravel-filament-flexible-blocks-asset-manager/security/policy
1111
about: Learn how to notify us for sensitive bugs

.github/SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Security Policy
22

3-
If you discover any security related issues, please email author@domain.com instead of using the issue tracker.
3+
If you discover any security related issues, please email sten.govaerts@gmail.com instead of using the issue tracker.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
All notable changes to `:package_name` will be documented in this file.
3+
All notable changes to `laravel-filament-flexible-blocks-asset-manager` will be documented in this file.
44

55
## 1.0.0 - 202X-XX-XX
66

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) :vendor_name <author@domain.com>
3+
Copyright (c) Statik.be <sten.govaerts@gmail.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
# :package_description
1+
# A simple document and image manager for the Filament Flexible Blocks package.
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/:vendor_slug/:package_slug/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3Arun-tests+branch%3Amain)
5-
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/:vendor_slug/:package_slug/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain)
6-
[![Total Downloads](https://img.shields.io/packagist/dt/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/statik-be/laravel-filament-flexible-blocks-asset-manager.svg?style=flat-square)](https://packagist.org/packages/statik-be/laravel-filament-flexible-blocks-asset-manager)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/statik-be/laravel-filament-flexible-blocks-asset-manager/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/statik-be/laravel-filament-flexible-blocks-asset-manager/actions?query=workflow%3Arun-tests+branch%3Amain)
5+
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/statik-be/laravel-filament-flexible-blocks-asset-manager/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/statik-be/laravel-filament-flexible-blocks-asset-manager/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/statik-be/laravel-filament-flexible-blocks-asset-manager.svg?style=flat-square)](https://packagist.org/packages/statik-be/laravel-filament-flexible-blocks-asset-manager)
77

8-
<!--delete-->
9-
---
10-
This repo can be used to scaffold a Filament plugin. Follow these steps to get started:
118

12-
1. Press the "Use this template" button at the top of this repo to create a new repo with the contents of this skeleton.
13-
2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files.
14-
3. Make something great!
15-
---
16-
<!--/delete-->
179

1810
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
1911

@@ -22,26 +14,26 @@ This is where your description should go. Limit it to a paragraph or two. Consid
2214
You can install the package via composer:
2315

2416
```bash
25-
composer require :vendor_slug/:package_slug
17+
composer require statik-be/laravel-filament-flexible-blocks-asset-manager
2618
```
2719

2820
You can publish and run the migrations with:
2921

3022
```bash
31-
php artisan vendor:publish --tag=":package_slug-migrations"
23+
php artisan vendor:publish --tag="laravel-filament-flexible-blocks-asset-manager-migrations"
3224
php artisan migrate
3325
```
3426

3527
You can publish the config file with:
3628

3729
```bash
38-
php artisan vendor:publish --tag=":package_slug-config"
30+
php artisan vendor:publish --tag="laravel-filament-flexible-blocks-asset-manager-config"
3931
```
4032

4133
Optionally, you can publish the views using
4234

4335
```bash
44-
php artisan vendor:publish --tag=":package_slug-views"
36+
php artisan vendor:publish --tag="laravel-filament-flexible-blocks-asset-manager-views"
4537
```
4638

4739
This is the contents of the published config file:
@@ -54,8 +46,8 @@ return [
5446
## Usage
5547

5648
```php
57-
$variable = new VendorName\Skeleton();
58-
echo $variable->echoPhrase('Hello, VendorName!');
49+
$laravelFilamentFlexibleBlocksAssetManager = new Statikbe\LaravelFilamentFlexibleBlocksAssetManager();
50+
echo $laravelFilamentFlexibleBlocksAssetManager->echoPhrase('Hello, Statikbe!');
5951
```
6052

6153
## Testing
@@ -78,7 +70,7 @@ Please review [our security policy](../../security/policy) on how to report secu
7870

7971
## Credits
8072

81-
- [:author_name](https://github.com/:author_username)
73+
- [Sten Govaerts](https://github.com/sten)
8274
- [All Contributors](../../contributors)
8375

8476
## License

bin/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ const defaultOptions = {
4646
compile({
4747
...defaultOptions,
4848
entryPoints: ['./resources/js/index.js'],
49-
outfile: './resources/dist/skeleton.js',
49+
outfile: './resources/dist/laravel-filament-flexible-blocks-asset-manager.js',
5050
})

composer.json

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
11
{
2-
"name": ":vendor_slug/:package_slug",
3-
"description": ":package_description",
2+
"name": "statikbe/laravel-filament-flexible-blocks-asset-manager",
3+
"description": "A simple document and image manager for the Filament Flexible Blocks package.",
44
"keywords": [
5-
":vendor_name",
5+
"Statik.be",
66
"laravel",
7-
":package_slug"
7+
"laravel-filament-flexible-blocks-asset-manager"
88
],
9-
"homepage": "https://github.com/:vendor_slug/:package_slug",
9+
"homepage": "https://github.com/statik-be/laravel-filament-flexible-blocks-asset-manager",
1010
"support": {
11-
"issues": "https://github.com/:vendor_slug/:package_slug/issues",
12-
"source": "https://github.com/:vendor_slug/:package_slug"
11+
"issues": "https://github.com/statik-be/laravel-filament-flexible-blocks-asset-manager/issues",
12+
"source": "https://github.com/statik-be/laravel-filament-flexible-blocks-asset-manager"
1313
},
1414
"license": "MIT",
1515
"authors": [
1616
{
17-
"name": ":author_name",
18-
"email": "author@domain.com",
17+
"name": "Sten Govaerts",
18+
"email": "sten.govaerts@gmail.com",
1919
"role": "Developer"
2020
}
2121
],
2222
"require": {
2323
"php": "^8.1",
2424
"filament/filament": "^3.0",
25-
"filament/forms": "^3.0",
26-
"filament/tables": "^3.0",
2725
"spatie/laravel-package-tools": "^1.15.0"
2826
},
2927
"require-dev": {
@@ -36,18 +34,17 @@
3634
"pestphp/pest-plugin-laravel": "^2.0",
3735
"phpstan/extension-installer": "^1.1",
3836
"phpstan/phpstan-deprecation-rules": "^1.0",
39-
"phpstan/phpstan-phpunit": "^1.0",
40-
"spatie/laravel-ray": "^1.26"
37+
"phpstan/phpstan-phpunit": "^1.0"
4138
},
4239
"autoload": {
4340
"psr-4": {
44-
"VendorName\\Skeleton\\": "src/",
45-
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories/"
41+
"Statikbe\\FilamentFlexibleBlocksAssetManager\\": "src/",
42+
"Statikbe\\FilamentFlexibleBlocksAssetManager\\Database\\Factories\\": "database/factories/"
4643
}
4744
},
4845
"autoload-dev": {
4946
"psr-4": {
50-
"VendorName\\Skeleton\\Tests\\": "tests/"
47+
"Statikbe\\FilamentFlexibleBlocksAssetManager\\Tests\\": "tests/"
5148
}
5249
},
5350
"scripts": {
@@ -67,10 +64,10 @@
6764
"extra": {
6865
"laravel": {
6966
"providers": [
70-
"VendorName\\Skeleton\\SkeletonServiceProvider"
67+
"Statikbe\\FilamentFlexibleBlocksAssetManager\\FilamentFlexibleBlocksAssetManagerServiceProvider"
7168
],
7269
"aliases": {
73-
"Skeleton": "VendorName\\Skeleton\\Facades\\Skeleton"
70+
"FilamentFlexibleBlocksAssetManager": "Statikbe\\FilamentFlexibleBlocksAssetManager\\Facades\\FilamentFlexibleBlocksAssetManager"
7471
}
7572
}
7673
},
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php
2+
3+
// config for Statik/FilamentFlexibleBlocksAssetManager
4+
return [
5+
'translatable_assets' => true,
6+
7+
'navigation_group' => null,
8+
9+
/*
10+
|--------------------------------------------------------------------------
11+
| Image editor
12+
|--------------------------------------------------------------------------
13+
|
14+
| Enables the image editor. You can set preset aspect ratios, the editor mode of Cropper.js, and the default
15+
| viewport size.
16+
| see https://filamentphp.com/docs/3.x/forms/fields/file-upload#setting-the-image-editors-mode
17+
*/
18+
'image_editor' => [
19+
'enabled' => false,
20+
'aspect_ratios' => [
21+
null,
22+
'16:9',
23+
'4:3',
24+
'1:1',
25+
],
26+
'mode' => 1, // see https://github.com/fengyuanchen/cropperjs#viewmode
27+
'empty_fill_colour' => null, // e.g. #000000
28+
'viewport' => [
29+
'width' => 1920,
30+
'height' => 1080,
31+
],
32+
],
33+
34+
/*
35+
|--------------------------------------------------------------------------
36+
| Accepted file types
37+
|--------------------------------------------------------------------------
38+
|
39+
| Sets the file type validation, use an array of mime types.
40+
| see https://filamentphp.com/docs/3.x/forms/fields/file-upload#file-type-validation
41+
*/
42+
'accepted_file_types' => [
43+
//'application/pdf'
44+
],
45+
46+
'storage_disk' => null,
47+
48+
'storage_directory' => null,
49+
50+
'storage_visibility' => 'public',
51+
52+
];

config/skeleton.php

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)