Skip to content

Commit 9f0a4ff

Browse files
author
KHOUBZA Younes
committed
update libraries modifiers
1 parent 45ed417 commit 9f0a4ff

File tree

10 files changed

+70
-955
lines changed

10 files changed

+70
-955
lines changed

_data/entrypoints.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"/dist/245.f9644c9e.js",
1717
"/dist/383.82e9b159.js",
1818
"/dist/814.47265ca3.js",
19-
"/dist/main.94d8f03a.js"
19+
"/dist/main.d3770b4b.js"
2020
],
2121
"css": [
2222
"/dist/857.ca534bf8.css",

_data/manifest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"dist/homepage.css": "/dist/homepage.daa70971.css",
33
"dist/homepage.js": "/dist/homepage.11d1d76a.js",
44
"dist/main.css": "/dist/main.35f80290.css",
5-
"dist/main.js": "/dist/main.94d8f03a.js",
5+
"dist/main.js": "/dist/main.d3770b4b.js",
66
"dist/adapter-flasher.js": "/dist/adapter-flasher.9e83994a.js",
77
"dist/adapter-noty.js": "/dist/adapter-noty.6ec70878.js",
88
"dist/adapter-notyf.js": "/dist/adapter-notyf.db901ffb.js",
@@ -54,9 +54,9 @@
5454
"dist/images/php-flasher-social-card.png": "/dist/images/php-flasher-social-card.png",
5555
"dist/images/php-flasher-logo.png": "/dist/images/php-flasher-logo.png",
5656
"dist/images/php-flasher-social-card.jpg": "/dist/images/php-flasher-social-card.jpg",
57+
"dist/images/younes-khoubza.jpeg": "/dist/images/younes-khoubza.jpeg",
5758
"dist/images/android-chrome-512x512.png": "/dist/images/android-chrome-512x512.png",
5859
"dist/images/favicon.ico": "/dist/images/favicon.ico",
59-
"dist/images/younes-khoubza.jpeg": "/dist/images/younes-khoubza.jpeg",
6060
"dist/images/php-flasher-logo-bell.png": "/dist/images/php-flasher-logo-bell.png",
6161
"dist/fonts/fa-v4compatibility.ttf": "/dist/fonts/fa-v4compatibility.a6c47864.ttf",
6262
"dist/images/favicon.png": "/dist/images/favicon.png",

_data/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818

1919
<i class="fa-duotone fa-plug"></i> libraries:
20-
<i class="fa-duotone fa-bell text-indigo-900 mr-1 fa-lg"></i> Noty: '/library/noty/'
2120
<i class="fa-duotone fa-info-circle text-indigo-900 mr-1 fa-lg"></i> Notyf: '/library/notyf/'
21+
<i class="fa-duotone fa-bell text-indigo-900 mr-1 fa-lg"></i> Noty: '/library/noty/'
2222
<i class="fa-duotone fa-bread-loaf text-indigo-900 mr-1 fa-lg"></i> Toastr: '/library/toastr/'
2323
<i class="fa-duotone fa-exclamation-circle text-indigo-900 mr-1 fa-lg"></i> Sweetalert: '/library/sweetalert/'
2424
<i class="fa-duotone fa-exclamation-triangle text-indigo-900 mr-1 fa-lg"></i> Pnotify: '/library/pnotify/'

assets/images/younes-khoubza.jpeg

3.98 KB
Loading

assets/js/_tryit.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ codeBlocks.forEach(function (codeBlock) {
5454

5555
const example = code.split("\n")[0].trim();
5656
const themes = {
57-
"# noty theme sunset": "sunset.css",
58-
"# noty theme relax": "relax.css",
59-
"# noty theme light": "light.css",
60-
"# noty theme metroui": "metroui.css",
57+
"#/ noty theme sunset": "sunset.css",
58+
"#/ noty theme relax": "relax.css",
59+
"#/ noty theme light": "light.css",
60+
"#/ noty theme metroui": "metroui.css",
6161
};
6262

6363
try {
64-
if ('# flasher darkMode' === example) {
64+
if ('#/ flasher darkMode' === example) {
6565
document.documentElement.classList.add('dark');
6666
const factory = flasher.create('flasher');
6767
factory.renderOptions(messages[example].options);

dist/images/younes-khoubza.jpeg

3.98 KB
Loading

dist/main.94d8f03a.js renamed to dist/main.d3770b4b.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/library/notyf.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,36 @@ For more information on Notyf options and usage, please refer to the original do
5858
5959
---
6060

61+
<p id="method-position"><a href="#method-position" class="anchor"><i class="fa-duotone fa-link"></i> position</a></p>
62+
63+
Viewport location where notifications are rendered
64+
65+
position x ⇒ `left`, `center`, `right` <br />
66+
position y ⇒ `top`, `center`, `bottom`
67+
68+
Default ⇒ x: `right`, y: `bottom`
69+
70+
```php
71+
notyf()->position(string $position, string $value);
72+
```
73+
74+
{% assign id = '#/ notyf position' %}
75+
{% assign type = site.data.messages.types | sample %}
76+
{% assign message = site.data.messages[type] | sample %}
77+
{% assign options = '{"position": {"x": "center", "y":"top"}}' %}
78+
{% include example.html %}
79+
80+
```php
81+
{{ id }}
82+
83+
notyf()
84+
->position('x', 'center')
85+
->position('y', 'top')
86+
->add{{ type | capitalize }}('{{ message }}');
87+
```
88+
89+
---
90+
6191
<p id="method-duration"><a href="#method-duration" class="anchor"><i class="fa-duotone fa-link"></i> duration</a></p>
6292

6393
Number of milliseconds before hiding the notification. Use 0 for infinite duration.
@@ -120,36 +150,6 @@ notyf()
120150

121151
---
122152

123-
<p id="method-position"><a href="#method-position" class="anchor"><i class="fa-duotone fa-link"></i> position</a></p>
124-
125-
Viewport location where notifications are rendered
126-
127-
position x ⇒ `left`, `center`, `right` <br />
128-
position y ⇒ `top`, `center`, `bottom`
129-
130-
Default ⇒ x: `right`, y: `bottom`
131-
132-
```php
133-
notyf()->position(string $position, string $value);
134-
```
135-
136-
{% assign id = '#/ notyf position' %}
137-
{% assign type = site.data.messages.types | sample %}
138-
{% assign message = site.data.messages[type] | sample %}
139-
{% assign options = '{"position": {"x": "center", "y":"top"}}' %}
140-
{% include example.html %}
141-
142-
```php
143-
{{ id }}
144-
145-
notyf()
146-
->position('x', 'center')
147-
->position('y', 'top')
148-
->add{{ type | capitalize }}('{{ message }}');
149-
```
150-
151-
---
152-
153153
<p id="method-dismissible"><a href="#method-dismissible" class="anchor"><i class="fa-duotone fa-link"></i> dismissible</a></p>
154154

155155
Whether to allow users to dismiss the notification with a button

docs/library/pnotify.md

Lines changed: 3 additions & 185 deletions
Original file line numberDiff line numberDiff line change
@@ -58,50 +58,10 @@ For more information on Pnotify options and usage, please refer to the original
5858
5959
---
6060

61-
<p id="method-title"><a href="#method-title" class="anchor"><i class="fa-duotone fa-link"></i> title</a></p>
62-
63-
The notice's title.
64-
65-
```php
66-
pnotify()->title(bool|string $title);
67-
```
68-
69-
---
70-
71-
<p id="method-titleEscape"><a href="#method-titleEscape" class="anchor"><i class="fa-duotone fa-link"></i> titleEscape</a></p>
72-
73-
Whether to escape the content of the title. (Not allow HTML.)
74-
75-
```php
76-
pnotify()->titleEscape(bool $titleEscape = true);
77-
```
78-
79-
---
80-
81-
<p id="method-text"><a href="#method-text" class="anchor"><i class="fa-duotone fa-link"></i> text</a></p>
82-
83-
The notice's text.
84-
85-
```php
86-
pnotify()->text(string $text);
87-
```
88-
89-
---
90-
91-
<p id="method-textEscape"><a href="#method-textEscape" class="anchor"><i class="fa-duotone fa-link"></i> textEscape</a></p>
92-
93-
Whether to escape the content of the text. (Not allow HTML.)
94-
95-
```php
96-
pnotify()->textEscape(bool $textEscape = true);
97-
```
98-
99-
---
100-
10161
<p id="method-styling"><a href="#method-styling" class="anchor"><i class="fa-duotone fa-link"></i> styling</a></p>
10262

103-
What styling classes to use. (Can be either "brighttheme", "bootstrap3", "fontawesome", or a custom style object.
104-
See the source in the end of pnotify.js for the properties in a style object.)
63+
What styling classes to use. (Can be either `brighttheme`, `bootstrap3`, `fontawesome` or a custom style object.
64+
See the source in the end of `pnotify.js` for the properties in a style object.)
10565

10666
```php
10767
pnotify()->styling(string $styling);
@@ -139,78 +99,6 @@ pnotify()->autoDisplay(bool $autoDisplay = true);
13999

140100
---
141101

142-
<p id="method-width"><a href="#method-width" class="anchor"><i class="fa-duotone fa-link"></i> width</a></p>
143-
144-
Width of the notice.
145-
146-
```php
147-
pnotify()->width(int $width);
148-
```
149-
150-
---
151-
152-
<p id="method-minHeight"><a href="#method-minHeight" class="anchor"><i class="fa-duotone fa-link"></i> minHeight</a></p>
153-
154-
Minimum height of the notice. It will expand to fit content.
155-
156-
```php
157-
pnotify()->minHeight(int $minHeight);
158-
```
159-
160-
---
161-
162-
<p id="method-icon"><a href="#method-icon" class="anchor"><i class="fa-duotone fa-link"></i> icon</a></p>
163-
164-
Set icon to true to use the default icon for the selected style/type, false for no icon, or a string for your own
165-
icon class.
166-
167-
```php
168-
pnotify()->icon(bool $icon = true);
169-
```
170-
171-
---
172-
173-
<p id="method-animation"><a href="#method-animation" class="anchor"><i class="fa-duotone fa-link"></i> animation</a></p>
174-
175-
The animation to use when displaying and hiding the notice. "none" and "fade" are supported through CSS. Others
176-
are supported through the Animate module and Animate.css.
177-
178-
```php
179-
pnotify()->animation(string $animation);
180-
```
181-
182-
---
183-
184-
<p id="method-animateSpeed"><a href="#method-animateSpeed" class="anchor"><i class="fa-duotone fa-link"></i> animateSpeed</a></p>
185-
186-
Speed at which the notice animates in and out. "slow", "normal", or "fast". Respectively, 400ms, 250ms, 100ms.
187-
188-
```php
189-
pnotify()->animateSpeed(string $animateSpeed);
190-
```
191-
192-
---
193-
194-
<p id="method-shadow"><a href="#method-shadow" class="anchor"><i class="fa-duotone fa-link"></i> shadow</a></p>
195-
196-
Display a drop shadow.
197-
198-
```php
199-
pnotify()->shadow(bool $shadow = true);
200-
```
201-
202-
---
203-
204-
<p id="method-hide"><a href="#method-hide" class="anchor"><i class="fa-duotone fa-link"></i> hide</a></p>
205-
206-
After a delay, remove the notice.
207-
208-
```php
209-
pnotify()->hide(bool $hide = true);
210-
```
211-
212-
---
213-
214102
<p id="method-timer"><a href="#method-timer" class="anchor"><i class="fa-duotone fa-link"></i> timer</a></p>
215103

216104
Delay in milliseconds before the notice is removed.
@@ -257,74 +145,4 @@ Whether to remove the notice from the global array when it is closed.
257145

258146
```php
259147
pnotify()->destroy(bool $destroy = true);
260-
```
261-
262-
---
263-
264-
<p id="method-desktop"><a href="#method-desktop" class="anchor"><i class="fa-duotone fa-link"></i> desktop</a></p>
265-
266-
Desktop Module
267-
268-
```php
269-
pnotify()->desktop(string $desktop, mixed $value);
270-
```
271-
272-
---
273-
274-
<p id="method-buttons"><a href="#method-buttons" class="anchor"><i class="fa-duotone fa-link"></i> buttons</a></p>
275-
276-
Buttons Module
277-
278-
```php
279-
pnotify()->buttons(string $buttons, mixed $value);
280-
```
281-
282-
---
283-
284-
<p id="method-nonblock"><a href="#method-nonblock" class="anchor"><i class="fa-duotone fa-link"></i> nonblock</a></p>
285-
286-
NonBlock Module
287-
288-
```php
289-
pnotify()->nonblock(string $nonblock, mixed $value);
290-
```
291-
292-
---
293-
294-
<p id="method-mobile"><a href="#method-mobile" class="anchor"><i class="fa-duotone fa-link"></i> mobile</a></p>
295-
296-
Mobile Module
297-
298-
```php
299-
pnotify()->mobile(string $mobile, mixed $value);
300-
```
301-
302-
---
303-
304-
<p id="method-animate"><a href="#method-animate" class="anchor"><i class="fa-duotone fa-link"></i> animate</a></p>
305-
306-
Animate Module
307-
308-
```php
309-
pnotify()->animate(string $animate, mixed $value);
310-
```
311-
312-
---
313-
314-
<p id="method-confirm"><a href="#method-confirm" class="anchor"><i class="fa-duotone fa-link"></i> confirm</a></p>
315-
316-
Confirm Module
317-
318-
```php
319-
pnotify()->confirm(string $confirm, mixed $value);
320-
```
321-
322-
---
323-
324-
<p id="method-history"><a href="#method-history" class="anchor"><i class="fa-duotone fa-link"></i> history</a></p>
325-
326-
History Module
327-
328-
```php
329-
pnotify()->history(string $history, mixed $value);
330-
```
148+
```

0 commit comments

Comments
 (0)