Skip to content

Commit ae235dc

Browse files
author
KHOUBZA Younes
committed
add doc for php-flasher v1.0.0
1 parent 03e580f commit ae235dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+63180
-302827
lines changed

Gemfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ platforms :mingw, :x64_mingw, :mswin, :jruby do
1616
end
1717

1818
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
19-
20-
21-
19+
gem "webrick", "~> 1.7"

Gemfile.lock

+18-17
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ GEM
44
addressable (2.8.0)
55
public_suffix (>= 2.0.2, < 5.0)
66
colorator (1.1.0)
7-
concurrent-ruby (1.1.8)
8-
em-websocket (0.5.2)
7+
concurrent-ruby (1.1.10)
8+
em-websocket (0.5.3)
99
eventmachine (>= 0.12.9)
10-
http_parser.rb (~> 0.6.0)
10+
http_parser.rb (~> 0)
1111
eventmachine (1.2.7)
12-
ffi (1.15.0)
12+
ffi (1.15.5)
1313
forwardable-extended (2.6.0)
14-
http_parser.rb (0.6.0)
15-
i18n (1.8.10)
14+
http_parser.rb (0.8.0)
15+
i18n (1.10.0)
1616
concurrent-ruby (~> 1.0)
1717
jekyll (4.1.1)
1818
addressable (~> 2.4)
@@ -29,24 +29,24 @@ GEM
2929
rouge (~> 3.0)
3030
safe_yaml (~> 1.0)
3131
terminal-table (~> 1.8)
32-
jekyll-feed (0.15.1)
32+
jekyll-feed (0.16.0)
3333
jekyll (>= 3.7, < 5.0)
3434
jekyll-redirect-from (0.16.0)
3535
jekyll (>= 3.3, < 5.0)
36-
jekyll-sass-converter (2.1.0)
36+
jekyll-sass-converter (2.2.0)
3737
sassc (> 2.0.1, < 3.0)
38-
jekyll-seo-tag (2.7.1)
38+
jekyll-seo-tag (2.8.0)
3939
jekyll (>= 3.8, < 5.0)
4040
jekyll-sitemap (1.4.0)
4141
jekyll (>= 3.7, < 5.0)
4242
jekyll-watch (2.2.1)
4343
listen (~> 3.0)
44-
kramdown (2.3.1)
44+
kramdown (2.4.0)
4545
rexml
4646
kramdown-parser-gfm (1.1.0)
4747
kramdown (~> 2.0)
4848
liquid (4.0.3)
49-
listen (3.5.1)
49+
listen (3.7.1)
5050
rb-fsevent (~> 0.10, >= 0.10.3)
5151
rb-inotify (~> 0.9, >= 0.9.10)
5252
mercenary (0.4.0)
@@ -56,21 +56,21 @@ GEM
5656
jekyll-seo-tag (~> 2.1)
5757
pathutil (0.16.2)
5858
forwardable-extended (~> 2.6)
59-
public_suffix (4.0.6)
60-
rb-fsevent (0.10.4)
59+
public_suffix (4.0.7)
60+
rb-fsevent (0.11.1)
6161
rb-inotify (0.10.1)
6262
ffi (~> 1.0)
6363
rexml (3.2.5)
64-
rouge (3.26.0)
64+
rouge (3.28.0)
6565
safe_yaml (1.0.5)
6666
sassc (2.4.0)
6767
ffi (~> 1.9)
6868
terminal-table (1.8.0)
6969
unicode-display_width (~> 1.1, >= 1.1.1)
70-
unicode-display_width (1.7.0)
70+
unicode-display_width (1.8.0)
71+
webrick (1.7.0)
7172

7273
PLATFORMS
73-
ruby
7474
x86_64-linux
7575

7676
DEPENDENCIES
@@ -83,6 +83,7 @@ DEPENDENCIES
8383
tzinfo (~> 1.2)
8484
tzinfo-data
8585
wdm (~> 0.1.1)
86+
webrick (~> 1.7)
8687

8788
BUNDLED WITH
88-
2.2.16
89+
2.3.13

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defaults:
88
values:
99
layout: "default"
1010
published_at: "2020-11-28"
11-
updated_at: "2021-10-05"
11+
updated_at: "2022-05-08"
1212

1313
exclude:
1414
- "*.config.js"

_data/flasher.yaml

+20-31
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,31 @@
1+
root_script:
2+
dev: '/static/packages/flasher/dist/flasher.js'
3+
build: 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.0.7/dist/flasher.min.js'
4+
15
/docs/adapter/toastr/:
26
handler: 'toastr'
3-
render: 'PHPFlasher.render({"scripts":["\/static\/flasher\/flasher-toastr.js","https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/3.5.1\/jquery.min.js","https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/toastr.js\/2.1.4\/toastr.min.js"],"styles":["https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/toastr.js\/2.1.4\/toastr.min.css"],"options":{"toastr":{"closeButton":true,"closeClass":"toast-close-button","closeDuration":300,"closeEasing":"swing","closeHtml":"<button><i class=\"icon-off\"><\/i><\/button>","closeMethod":"fadeOut","closeOnHover":true,"containerId":"toast-container","debug":false,"escapeHtml":false,"extendedTimeOut":10000,"hideDuration":1000,"hideEasing":"linear","hideMethod":"fadeOut","iconClass":"toast-info","iconClasses":{"error":"toast-error","info":"toast-info","success":"toast-success","warning":"toast-warning"},"messageClass":"toast-message","newestOnTop":false,"onHidden":null,"onShown":null,"positionClass":"toast-top-right","preventDuplicates":false,"progressBar":true,"progressClass":"toast-progress","rtl":false,"showDuration":300,"showEasing":"swing","showMethod":"fadeIn","tapToDismiss":true,"target":"body","timeOut":5000,"titleClass":"toast-title","toastClass":"toast"}},"envelopes":[{"notification":{"type":"success","message":"template message success","options":[],"title":null},"handler":"toastr","created_at":"2020-12-22 13:26:20","priority":0},{"notification":{"type":"warning","message":"template message warning","options":[],"title":null},"handler":"toastr","created_at":"2020-12-22 13:26:20","priority":0},{"notification":{"type":"error","message":"template message error","options":[],"title":null},"handler":"toastr","created_at":"2020-12-22 13:26:20","priority":0},{"notification":{"type":"info","message":"template message info","options":[],"title":null},"handler":"toastr","created_at":"2020-12-22 13:26:20","priority":0}]});'
4-
5-
6-
/docs/adapter/sweet-alert/:
7-
handler: 'sweet_alert'
8-
render: 'PHPFlasher.render({"scripts":["\/static\/flasher\/flasher-sweet-alert.js","https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/3.5.1\/jquery.min.js","https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/limonte-sweetalert2\/10.10.2\/sweetalert2.min.js","https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/promise-polyfill\/8.2.0\/polyfill.min.js"],"styles":["https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/animate.css\/4.1.1\/animate.min.css","https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/limonte-sweetalert2\/10.10.2\/sweetalert2.min.css"],"options":{"sweet_alert":{"timer":5000,"timerProgressBar":true}},"envelopes":[{"notification":{"type":"success","message":"template message success","options":[]},"handler":"sweet_alert","created_at":"2020-12-22 13:33:07","priority":0},{"notification":{"type":"warning","message":"template message warning","options":[]},"handler":"sweet_alert","created_at":"2020-12-22 13:33:07","priority":0},{"notification":{"type":"error","message":"template message error","options":[]},"handler":"sweet_alert","created_at":"2020-12-22 13:33:07","priority":0},{"notification":{"type":"info","message":"template message info","options":[]},"handler":"sweet_alert","created_at":"2020-12-22 13:33:07","priority":0}]});'
9-
10-
/docs/adapter/pnotify/:
11-
handler: 'pnotify'
12-
render: 'PHPFlasher.render({"scripts":["\/static\/flasher\/flasher-pnotify.js","https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/3.5.1\/jquery.min.js","https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/pnotify\/3.2.1\/pnotify.js"],"styles":["https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/pnotify\/3.2.1\/pnotify.css","https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/pnotify\/3.2.1\/pnotify.brighttheme.css"],"options":{"pnotify":{"type":"notice","title":false,"titleTrusted":false,"text":false,"textTrusted":false,"styling":"brighttheme","icons":"brighttheme","mode":"no-preference","addClass":"","addModalClass":"","addModelessClass":"","autoOpen":true,"width":"360px","minHeight":"16px","maxTextHeight":"200px","icon":true,"animation":"fade","animateSpeed":"normal","shadow":true,"hide":true,"delay":5000,"mouseReset":true,"closer":true,"closerHover":true,"sticker":true,"stickerHover":true,"labels":{"close":"Close","stick":"Pin","unstick":"Unpin"},"remove":true,"destroy":true}},"envelopes":[{"notification":{"type":"success","message":"template message success","options":[]},"handler":"pnotify","created_at":"2020-12-22 13:34:21","priority":0},{"notification":{"type":"warning","message":"template message warning","options":[]},"handler":"pnotify","created_at":"2020-12-22 13:34:21","priority":0},{"notification":{"type":"error","message":"template message error","options":[]},"handler":"pnotify","created_at":"2020-12-22 13:34:21","priority":0},{"notification":{"type":"info","message":"template message info","options":[]},"handler":"pnotify","created_at":"2020-12-22 13:34:21","priority":0}]});'
13-
14-
/docs/adapter/notyf/:
15-
handler: 'notyf'
16-
render: 'PHPFlasher.render({"scripts":["\/static\/flasher\/flasher-notyf.js","https:\/\/cdn.jsdelivr.net\/npm\/notyf@3\/notyf.min.js"],"styles":["https:\/\/cdn.jsdelivr.net\/npm\/notyf@3\/notyf.min.css"],"options":{"notyf":{"duration":5000,"ripple":true,"position":{"x":"right","y":"top"},"dismissible":false,"types":[{"type":"success","className":"notyf__toast--success","backgroundColor":"#3dc763","icon":{"className":"notyf__icon--success","tagName":"i"}},{"type":"error","className":"notyf__toast--error","backgroundColor":"#ed3d3d","icon":{"className":"notyf__icon--error","tagName":"i"}},{"type":"info","className":"notyf__toast--info","backgroundColor":"#5784E5","icon":false},{"type":"warning","className":"notyf__toast--warning","backgroundColor":"#E3A008","icon":false}]}},"envelopes":[{"notification":{"type":"success","message":"template message success","options":[]},"handler":"notyf","created_at":"2020-12-22 13:35:49","priority":0},{"notification":{"type":"warning","message":"template message warning","options":[]},"handler":"notyf","created_at":"2020-12-22 13:35:49","priority":0},{"notification":{"type":"error","message":"template message error","options":[]},"handler":"notyf","created_at":"2020-12-22 13:35:49","priority":0},{"notification":{"type":"info","message":"template message info","options":[]},"handler":"notyf","created_at":"2020-12-22 13:35:49","priority":0}]});'
7+
dev: '/static/packages/toastr/dist/flasher-toastr.js'
8+
build: 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.0.7/dist/flasher-toastr.min.js'
179

1810
/docs/adapter/noty/:
1911
handler: 'noty'
20-
render: 'PHPFlasher.render({"scripts":["\/static\/flasher\/flasher-noty.js","https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/noty\/3.1.4\/noty.min.js"],"styles":["https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/noty\/3.1.4\/noty.min.css"],"options":{"noty":{"layout":"topRight","theme":"mint","timeout":false,"progressBar":true,"animation.open":"noty_effects_open","animation.close":"noty_effects_close","sounds.sources":[],"closeWith":["click"],"sounds.volume":1,"sounds.conditions":[],"docTitle.conditions":[],"modal":false,"id":false,"force":false,"queue":"global","killer":false,"container":false,"buttons":[],"visibilityControl":false}},"envelopes":[{"notification":{"type":"success","message":"template message success","options":[]},"handler":"noty","created_at":"2020-12-22 13:37:39","priority":0},{"notification":{"type":"warning","message":"template message warning","options":[]},"handler":"noty","created_at":"2020-12-22 13:37:39","priority":0},{"notification":{"type":"error","message":"template message error","options":[]},"handler":"noty","created_at":"2020-12-22 13:37:39","priority":0},{"notification":{"type":"info","message":"template message info","options":[]},"handler":"noty","created_at":"2020-12-22 13:37:39","priority":0}]});'
21-
22-
23-
24-
25-
26-
27-
28-
29-
30-
31-
32-
33-
34-
35-
36-
12+
dev: '/static/packages/noty/dist/flasher-noty.js'
13+
build: 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.0.7/dist/flasher-noty.min.js'
3714

15+
/docs/adapter/notyf/:
16+
handler: 'notyf'
17+
dev: '/static/packages/notyf/dist/flasher-notyf.js'
18+
build: 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.0.7/dist/flasher-notyf.min.js'
3819

20+
/docs/adapter/sweetalert/:
21+
handler: 'sweetalert'
22+
dev: '/static/packages/sweetalert/dist/flasher-sweetalert.js'
23+
build: 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.0.7/dist/flasher-sweetalert.min.js'
3924

25+
/docs/adapter/pnotify/:
26+
handler: 'pnotify'
27+
dev: '/static/packages/pnotify/dist/flasher-pnotify.js'
28+
build: 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.0.7/dist/flasher-pnotify.min.js'
4029

4130

4231

_data/menu.yml

+10-14
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1-
PHP flasher:
1+
<i class="fa-duotone fa-bars-sort"></i> PHP flasher:
22
Introduction: '/docs/'
33
Installation: '/docs/installation/'
44
Usage: '/docs/usage/'
5-
<span class="github-link-icon"><img class="w-5 h-5 mr-1" src="/static/github.svg" /></span> Github: 'https://github.com/php-flasher/php-flasher'
5+
<i class="fa-brands fa-github text-black mr-1"></i> Github: 'https://github.com/php-flasher/php-flasher'
66

7-
Frameworks:
8-
Symfony: '/docs/framework/symfony/'
9-
Laravel: '/docs/framework/laravel/'
10-
Laravel Livewire: '/docs/framework/livewire/'
7+
<i class="fa-duotone fa-bars-sort"></i> Frameworks:
8+
<i class="fa-brands fa-symfony text-black mr-1"></i> Symfony: '/docs/framework/symfony/'
9+
<i class="fa-brands fa-laravel text-red-900 mr-1"></i> Laravel: '/docs/framework/laravel/'
10+
<i class="fa-brands fa-laravel text-red-900 mr-1"></i> Livewire: '/docs/framework/livewire/'
1111

12-
Adapters:
12+
<i class="fa-duotone fa-bars-sort"></i> Adapters:
1313
Toastr: '/docs/adapter/toastr/'
14-
Sweet Alert: '/docs/adapter/sweet-alert/'
15-
Pnotify: '/docs/adapter/pnotify/'
16-
Notyf: '/docs/adapter/notyf/'
1714
Noty: '/docs/adapter/noty/'
18-
19-
Advanced:
20-
Stamps: '/docs/advanced/stamps/'
21-
Events: '/docs/advanced/events/'
15+
Notyf: '/docs/adapter/notyf/'
16+
Sweetalert: '/docs/adapter/sweetalert/'
17+
Pnotify: '/docs/adapter/pnotify/'

_data/project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
title: "PHP flasher"
22
tagline: "A powerful and flexible flash notifications system for PHP"
33
description: "A powerful and flexible flash notifications system for PHP"
4-
version: 0.6
4+
version: 1.0

_includes/compact-footer.html

-10
This file was deleted.

_includes/footer.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<section class="bg-indigo-900 pt-10 pb-10">
22
<div class="max-w-xs mx-auto text-center text-md leading-loose">
33
<img src="/static/younes-khoubza.jpeg" alt="Younes" class="inline rounded-full h-20 w-20 border-gray-100 border-2"/>
4-
<p class="text-indigo-400">
5-
<span class="text-white">PHP<span class="text-indigo-500">Flasher</span></span> is a project by <a class="text-white" target="_blank" href="https://www.linkedin.com/in/younes-khoubza/">Younes</a>.
4+
<p class="text-white">
5+
<span class="text-gray-300">PHP<span class="text-gray-400">Flasher</span></span> is a project by <a class="text-indigo-300" target="_blank" href="https://www.linkedin.com/in/younes-khoubza/">Younes KHOUBZA</a>.
66
</p>
7-
<p class="text-indigo-400">&#9670;</p>
87
</div>
98
</section>

_includes/leader-links.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p class="text-sm max-w-sm mx-auto mt-6 px-4 leading-very-loose">
22
<a class="bg-grey-lightest text-black shadow rounded py-1 px-2 mr-1" href="/docs/">Docs</a>
3-
<a class="bg-grey-lightest text-black shadow rounded py-1 px-2 mr-1" href="https://github.com/php-flasher/php-flasher">GitHub</a>
4-
<a class="bg-grey-lightest text-black shadow rounded py-1 px-2" href="https://twitter.com/yoeunes">Twitter</a>
5-
<a class="bg-grey-lightest text-black shadow rounded py-1 px-2" href="https://www.linkedin.com/in/younes-khoubza/">Linkedin</a>
3+
<a class="bg-grey-lightest text-black shadow rounded py-1 px-2 mr-1" href="https://github.com/php-flasher/php-flasher"><i class="fa-brands fa-github text-black"></i> GitHub</a>
4+
<a class="bg-grey-lightest text-black shadow rounded py-1 px-2" href="https://twitter.com/yoeunes"><i class="fa-brands fa-twitter text-blue-400"></i> Twitter</a>
5+
<a class="bg-grey-lightest text-black shadow rounded py-1 px-2" href="https://www.linkedin.com/in/younes-khoubza/"><i class="fa-brands fa-linkedin text-blue-800"></i> Linkedin</a>
66
</p>

_includes/prev-next.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div class="prev-next text-sm flex flex-row items-center sm:flex-row w-full flex-1">
2+
<a class="link-previous hidden sm:hidden previous-link sm:flex items-center align-middle text-grey-darker hover:text-red" href="./">
3+
<i class="fa-duotone fa-arrow-circle-left inline-block mr-1 sm:mr-2"></i>
4+
<span class="label"></span>
5+
</a>
6+
<span class="flex-1 sm:flex-1 block h-3"></span>
7+
<a class="link-next hidden sm:hidden previous-next sm:flex items-center align-middle text-grey-darker hover:text-red" href="./">
8+
<span class="label"></span>
9+
<i class="fa-duotone fa-arrow-circle-right inline-block ml-2 sm:ml-2"></i>
10+
</a>
11+
</div>

_layouts/after-widget.html

-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,5 @@
3939
</header>
4040

4141
{% include footer.html %}
42-
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"yoeunes",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script>
4342
</body>
4443
</html>

0 commit comments

Comments
 (0)