mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
chore: compile the assets
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"dist/main.css": "/dist/main.c178a06b.css",
|
||||
"dist/main.js": "/dist/main.7736601c.js",
|
||||
"dist/main.css": "/dist/main.89ac14de.css",
|
||||
"dist/main.js": "/dist/main.4d227167.js",
|
||||
"dist/455.3a7b4474.css": "/dist/455.3a7b4474.css",
|
||||
"dist/455.17bc016b.js": "/dist/455.17bc016b.js",
|
||||
"dist/411.29cd993e.css": "/dist/411.29cd993e.css",
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
<i class="fa-duotone fa-magnifying-glass fa-lg text-indigo-900 mr-1"></i> PHPstan: '/phpstan/'
|
||||
|
||||
<i class="fa-duotone fa-plug"></i> libraries:
|
||||
<i class="fa-duotone fa-info-circle text-indigo-900 mr-1 fa-lg"></i> Notyf: '/library/notyf/'
|
||||
<i class="fa-duotone fa-bell text-indigo-900 mr-1 fa-lg"></i> Noty: '/library/noty/'
|
||||
<i class="fa-duotone fa-bread-loaf text-indigo-900 mr-1 fa-lg"></i> Toastr: '/library/toastr/'
|
||||
<i class="fa-duotone fa-info-circle text-indigo-900 mr-1 fa-lg"></i> Notyf: '/library/notyf/'
|
||||
<i class="fa-duotone fa-exclamation-circle text-indigo-900 mr-1 fa-lg"></i> Sweetalert: '/library/sweetalert/'
|
||||
<i class="fa-duotone fa-bread-loaf text-indigo-900 mr-1 fa-lg"></i> Toastr: '/library/toastr/'
|
||||
|
||||
@@ -132,5 +132,5 @@ code {
|
||||
}
|
||||
|
||||
#main-navigation ul i {
|
||||
width: 22px;
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -2,10 +2,10 @@
|
||||
"entrypoints": {
|
||||
"main": {
|
||||
"css": [
|
||||
"/dist/main.c178a06b.css"
|
||||
"/dist/main.89ac14de.css"
|
||||
],
|
||||
"js": [
|
||||
"/dist/main.7736601c.js"
|
||||
"/dist/main.4d227167.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -15,7 +15,6 @@ description: Seamlessly integrate PHPFlasher with PHPStan to validate dynamic me
|
||||
Add the {% PHPFlasher %} extension to your PHPStan setup by updating your project's `phpstan.neon` file:
|
||||
|
||||
```neon
|
||||
# phpstan.neon
|
||||
includes:
|
||||
- vendor/php-flasher/flasher/extension.neon
|
||||
```
|
||||
|
||||
@@ -6,33 +6,50 @@ namespace Flasher\Laravel\Facade;
|
||||
|
||||
use Flasher\Prime\Notification\Envelope;
|
||||
use Flasher\Prime\Notification\NotificationBuilder;
|
||||
use Flasher\Prime\Notification\NotificationInterface;
|
||||
use Flasher\Prime\Stamp\StampInterface;
|
||||
use Flasher\Prime\Translation\ResourceInterface;
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
|
||||
/**
|
||||
* @method static NotificationBuilder addSuccess(string $message, array $options = array())
|
||||
* @method static NotificationBuilder addError(string $message, array $options = array())
|
||||
* @method static NotificationBuilder addWarning(string $message, array $options = array())
|
||||
* @method static NotificationBuilder addInfo(string $message, array $options = array())
|
||||
* @method static NotificationBuilder addFlash(NotificationInterface|string $type, string $message = null, array $options = array())
|
||||
* @method static NotificationBuilder flash(StampInterface[] $stamps = array())
|
||||
* @method static NotificationBuilder type(string $type, string $message = null, array $options = array())
|
||||
* @method static NotificationBuilder title(string $message)
|
||||
* @method static NotificationBuilder message(string $message)
|
||||
* @method static NotificationBuilder type(string $message)
|
||||
* @method static NotificationBuilder options(array $options, bool $merge = true)
|
||||
* @method static NotificationBuilder option(string $name, $value)
|
||||
* @method static NotificationBuilder success(string $message = null, array $options = array())
|
||||
* @method static NotificationBuilder error(string $message = null, array $options = array())
|
||||
* @method static NotificationBuilder info(string $message = null, array $options = array())
|
||||
* @method static NotificationBuilder warning(string $message = null, array $options = array())
|
||||
* @method static NotificationBuilder priority(int $priority)
|
||||
* @method static NotificationBuilder hops(int $amount)
|
||||
* @method static NotificationBuilder keep()
|
||||
* @method static NotificationBuilder delay(int $delay)
|
||||
* @method static NotificationBuilder now()
|
||||
* @method static NotificationBuilder translate(array $parameters = [], ?string $locale = null)
|
||||
* @method static NotificationBuilder handler(string $handler)
|
||||
* @method static NotificationBuilder context(array $context)
|
||||
* @method static NotificationBuilder when(bool|\Closure $condition)
|
||||
* @method static NotificationBuilder unless(bool|\Closure $condition)
|
||||
* @method static NotificationBuilder with(StampInterface[] $stamps = array())
|
||||
* @method static NotificationBuilder withStamp(StampInterface $stamp)
|
||||
* @method static NotificationBuilder handler(string $handler)
|
||||
* @method static Envelope success(string $message, array $options = [], ?string $title = null)
|
||||
* @method static Envelope error(string $message, array $options = [], ?string $title = null)
|
||||
* @method static Envelope info(string $message, array $options = [], ?string $title = null)
|
||||
* @method static Envelope warning(string $message, array $options = [], ?string $title = null)
|
||||
* @method static Envelope flash(?string $type = null, ?string $message = null, array $options = [], ?string $title = null)
|
||||
* @method static Envelope preset(string $preset, array $parameters = [])
|
||||
* @method static Envelope operation(string $operation, string|ResourceInterface|null $resource = null)
|
||||
* @method static Envelope created(string|ResourceInterface|null $resource = null)
|
||||
* @method static Envelope updated(string|ResourceInterface|null $resource = null)
|
||||
* @method static Envelope saved(string|ResourceInterface|null $resource = null)
|
||||
* @method static Envelope deleted(string|ResourceInterface|null $resource = null)
|
||||
* @method static Envelope push()
|
||||
* @method static Envelope addSuccess(string $message, array $options = [], ?string $title = null)
|
||||
* @method static Envelope addError(string $message, array $options = [], ?string $title = null)
|
||||
* @method static Envelope addInfo(string $message, array $options = [], ?string $title = null)
|
||||
* @method static Envelope addWarning(string $message, array $options = [], ?string $title = null)
|
||||
* @method static Envelope addFlash(?string $type = null, ?string $message = null, array $options = [], ?string $title = null)
|
||||
* @method static Envelope addPreset(string $preset, array $parameters = [])
|
||||
* @method static Envelope addCreated(string|object|null $resource = null)
|
||||
* @method static Envelope addUpdated(string|object|null $resource = null)
|
||||
* @method static Envelope addDeleted(string|object|null $resource = null)
|
||||
* @method static Envelope addSaved(string|object|null $resource = null)
|
||||
* @method static Envelope addOperation(string $operation, string|object|null $resource = null)
|
||||
* @method static Envelope getEnvelope()
|
||||
*/
|
||||
final class Flasher extends Facade
|
||||
|
||||
+5
-2
@@ -340,15 +340,18 @@ class Flasher extends AbstractPlugin {
|
||||
const flasherTheme = {
|
||||
render: (envelope) => {
|
||||
const { type, title, message } = envelope;
|
||||
const isAlert = type === 'error' || type === 'warning';
|
||||
const role = isAlert ? 'alert' : 'status';
|
||||
const ariaLive = isAlert ? 'assertive' : 'polite';
|
||||
return `
|
||||
<div class="fl-flasher fl-${type}">
|
||||
<div class="fl-flasher fl-${type}" role="${role}" aria-live="${ariaLive}" aria-atomic="true">
|
||||
<div class="fl-content">
|
||||
<div class="fl-icon"></div>
|
||||
<div>
|
||||
<strong class="fl-title">${title}</strong>
|
||||
<span class="fl-message">${message}</span>
|
||||
</div>
|
||||
<button class="fl-close">×</button>
|
||||
<button class="fl-close" aria-label="Close ${type} message">×</button>
|
||||
</div>
|
||||
<span class="fl-progress-bar"></span>
|
||||
</div>`;
|
||||
|
||||
Vendored
+5
-2
@@ -346,15 +346,18 @@
|
||||
const flasherTheme = {
|
||||
render: (envelope) => {
|
||||
const { type, title, message } = envelope;
|
||||
const isAlert = type === 'error' || type === 'warning';
|
||||
const role = isAlert ? 'alert' : 'status';
|
||||
const ariaLive = isAlert ? 'assertive' : 'polite';
|
||||
return `
|
||||
<div class="fl-flasher fl-${type}">
|
||||
<div class="fl-flasher fl-${type}" role="${role}" aria-live="${ariaLive}" aria-atomic="true">
|
||||
<div class="fl-content">
|
||||
<div class="fl-icon"></div>
|
||||
<div>
|
||||
<strong class="fl-title">${title}</strong>
|
||||
<span class="fl-message">${message}</span>
|
||||
</div>
|
||||
<button class="fl-close">×</button>
|
||||
<button class="fl-close" aria-label="Close ${type} message">×</button>
|
||||
</div>
|
||||
<span class="fl-progress-bar"></span>
|
||||
</div>`;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user