mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
Fix documentation issues: outdated CDN versions, LICENSE years, and broken links
- Update CDN references from @2.2.0 to @2.5.1 in docs/pages/javascript.md - Fix LICENSE badge link in README.md to point to correct repo (php-flasher/php-flasher) - Update copyright year to 2024-present across all 16 LICENSE files - Fix docs/package.json version from 2.1.0 to 2.5.1 - Update sub-package READMEs to reference PHPFlasher ^2.5.1 - Add docs/package.json to bin/bump update targets - Remove commented-out dead code in ResponseExtension.php
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<a href="https://github.com/php-flasher/php-flasher"><img src="https://img.shields.io/github/stars/php-flasher/php-flasher.svg?style=flat-square&label=stars" alt="Stars"></a>
|
||||
<a href="https://github.com/php-flasher/php-flasher/releases"><img src="https://img.shields.io/github/v/release/php-flasher/flasher.svg?style=flat-square" alt="Release"></a>
|
||||
<a href="https://packagist.org/packages/php-flasher/flasher"><img src="https://img.shields.io/packagist/php-v/php-flasher/flasher.svg?style=flat-square" alt="PHP Version"></a>
|
||||
<a href="https://github.com/php-flasher/flasher/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="License"></a>
|
||||
<a href="https://github.com/php-flasher/php-flasher/blob/2.x/LICENSE"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="License"></a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
|
||||
@@ -177,6 +177,11 @@ update_version() {
|
||||
update_package_file "package.json" "$current_version" "$new_version"
|
||||
fi
|
||||
|
||||
# Update docs package.json
|
||||
if [ -f "docs/package.json" ]; then
|
||||
update_package_file "docs/package.json" "$current_version" "$new_version"
|
||||
fi
|
||||
|
||||
echo -e "\n ${SUCCESS} Version bump complete!\n"
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@flasher/docs",
|
||||
"version": "2.1.0",
|
||||
"version": "2.5.1",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production encore production --progress",
|
||||
|
||||
@@ -26,7 +26,7 @@ To pull in the <strong><span class="text-indigo-900">PHP<span class="text-indigo
|
||||
</span>
|
||||
|
||||
```html
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher@2.2.0/dist/flasher.min.js"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher@2.5.1/dist/flasher.min.js"></script>
|
||||
```
|
||||
|
||||
---
|
||||
@@ -55,7 +55,7 @@ flasher.info("Welcome back");
|
||||
|
||||
or if you are using a cdn like this:
|
||||
```html
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher@2.2.0/dist/flasher.min.js"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher@2.5.1/dist/flasher.min.js"></script>
|
||||
<script>
|
||||
flasher.error("Oops! Something went wrong!");
|
||||
flasher.warning("Are you sure you want to proceed ?");
|
||||
@@ -72,8 +72,8 @@ First grab the CDN for any js library adapter supported by <strong><span class="
|
||||
and then call the `create()` method on flasher object :
|
||||
|
||||
```html
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher@2.2.0/dist/flasher.min.js"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@2.2.0/dist/flasher-toastr.min.js"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher@2.5.1/dist/flasher.min.js"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@2.5.1/dist/flasher-toastr.min.js"></script>
|
||||
<script>
|
||||
const factory = flasher.use('toastr');
|
||||
factory.error("Oops! Something went wrong!");
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -9,7 +9,7 @@ Noty adapter for PHPFlasher. Feature-rich notification library with queue suppor
|
||||
## Requirements
|
||||
|
||||
- PHP >= 8.2
|
||||
- PHPFlasher ^2.4.0
|
||||
- PHPFlasher ^2.5.1
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -9,7 +9,7 @@ Notyf adapter for PHPFlasher. Lightweight and modern toast notifications.
|
||||
## Requirements
|
||||
|
||||
- PHP >= 8.2
|
||||
- PHPFlasher ^2.4.0
|
||||
- PHPFlasher ^2.5.1
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -64,7 +64,6 @@ final readonly class ResponseExtension implements ResponseExtensionInterface
|
||||
$htmlResponse = \sprintf('options.push(%s);', $htmlResponse);
|
||||
}
|
||||
|
||||
// $htmlResponse = "\n".str_replace("\n", '', (string) $htmlResponse)."\n";
|
||||
$htmlResponse .= "\n";
|
||||
|
||||
$content = substr($content, 0, $insertPosition).$htmlResponse.substr($content, $insertPosition);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -9,7 +9,7 @@ SweetAlert2 adapter for PHPFlasher. Beautiful alert dialogs with modal and toast
|
||||
## Requirements
|
||||
|
||||
- PHP >= 8.2
|
||||
- PHPFlasher ^2.4.0
|
||||
- PHPFlasher ^2.5.1
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -9,7 +9,7 @@ Toastr adapter for PHPFlasher. Elegant toast notifications with full TypeScript
|
||||
## Requirements
|
||||
|
||||
- PHP >= 8.2
|
||||
- PHPFlasher ^2.4.0
|
||||
- PHPFlasher ^2.5.1
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 PHPFlasher
|
||||
Copyright (c) 2024-present PHPFlasher
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
Reference in New Issue
Block a user