Skip to content

Commit c7ecbdf

Browse files
committed
Atualização do arquivo de configuração
1 parent 735f9df commit c7ecbdf

File tree

2 files changed

+94
-29
lines changed

2 files changed

+94
-29
lines changed

src/config/config.php

-29
This file was deleted.

src/config/notify.php

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?php
2+
3+
return [
4+
//General Options
5+
'options' => [
6+
'lib' => 'pnotify', //toastr or pnotify
7+
'style' => 'custom' //default or custom (custum is recommended)
8+
],
9+
//Toastr
10+
//Documentation: https://github.com/CodeSeven/toastr#other-options
11+
'ToastrOptions' => [
12+
"closeButton" => false, //Optionally enable a close button
13+
//"closeHtml" => '', //Optionally override the close button's HTML. <button><i class="icon-off"></i></button>
14+
"newestOnTop" => true,
15+
"progressBar" => false, //Visually indicate how long before a toast expires.
16+
"positionClass" => 'toast-top-right',
17+
"preventDuplicates" => true, //Duplicates are matched to the previous toast based on their message content.
18+
"showDuration" => '500',
19+
"hideDuration" => '900',
20+
"timeOut" => '4000', // How long the toast will display without user interaction
21+
"extendedTimeOut" => '1000', // How long the toast will display after a user hovers over it
22+
"showEasing" => 'linear',
23+
"hideEasing" => 'linear',
24+
"showMethod" => 'fadeIn',
25+
"hideMethod" => 'fadeOut'
26+
],
27+
//
28+
//PNotify
29+
//Documentation: https://github.com/sciactive/pnotify
30+
'PNotifyOptions' => [
31+
//'title' => false, //The notice's title.
32+
//'text' => false, //The notice's text.
33+
//'type' => 'notice', //Type of the notice. "notice", "info", "success", or "error".
34+
'title_escape' => false, //Whether to escape the content of the title. (Not allow HTML.)
35+
'text_escape' => false, //Whether to escape the content of the text. (Not allow HTML.)
36+
'styling' => 'brighttheme', //Can be either "brighttheme", "jqueryui", "bootstrap2", "bootstrap3", "fontawesome", or a custom style object.
37+
'addclass' => '', //Additional classes to be added to the notice. (For custom styling.)
38+
'cornerclass' => null, //Class to be added to the notice for corner styling.
39+
'auto_display' => true, //Display the notice when it is created.
40+
'width' => '300px', //Width of the notice
41+
'min_height' => '16px', //Minimum height of the notice. It will expand to fit content.
42+
'icon' => true, //false for no icon, or a string for your own icon class.
43+
/*
44+
* The animation to use when displaying and hiding the notice.
45+
* "none", "show", "fade", and "slide" are built in to jQuery.
46+
* Others require jQuery UI. Use an object with effect_in and effect_out to use different effects.
47+
*/
48+
'animation' => 'fade',
49+
'animate_speed' => 'slow', //Speed at animates in and out. "slow", "def" or "normal", "fast" or number of milliseconds.
50+
'position_animate_speed' => 500, //Specify a specific duration of position animation.
51+
'opacity' => 1, //Opacity of the notice.
52+
'shadow' => true, //Display a drop shadow.
53+
'hide' => true, //After a delay, remove the notice.
54+
'delay' => 4e3, //Delay in milliseconds before the notice is removed.
55+
'mouse_reset' => true, //Reset the hide timer if the mouse moves over the notice.
56+
'remove' => true, //Remove the notice's elements from the DOM after it is removed.
57+
'insert_brs' => true, //Change new lines to br tags.
58+
//Desktop Module
59+
'desktop' => [
60+
'desktop' => false, //Display the notification as a desktop notification.
61+
'fallback' => true, //If desktop notifications are not supported or allowed, fall back to a regular notice.
62+
'icon' => false, //The URL of the icon to display. If false, no icon will show. If null, a default icon will show.
63+
],
64+
//Buttons Module
65+
'buttons' => [
66+
'closer' => true, //Provide a button for the user to manually close the notice.
67+
'closer_hover' => true, //Only show the closer button on hover.
68+
'sticker' => false, //Provide a button for the user to manually stick the notice.
69+
'sticker_hover' => true, //Only show the sticker button on hover.
70+
'show_on_nonblock' => false, //Show the buttons even when the nonblock module is in use.
71+
'labels' => [
72+
'close' => "Close",
73+
'stick' => "Stick",
74+
'unstick' => "Unstick"
75+
] //Lets you change the displayed text, facilitating internationalization.
76+
],
77+
//NonBlock Module
78+
'nonblock' => [
79+
'nonblock' => true //Create a non-blocking notice. It lets the user click elements underneath it.
80+
],
81+
//Mobile Module
82+
'mobile' => [
83+
'swipe_dismiss' => true, //Let the user swipe the notice away.
84+
'styling' => true //Styles the notice to look good on mobile.
85+
],
86+
//Animate Module (use animate.css)
87+
'animate' => [
88+
'animate' => true, //Use animate.css to animate the notice.
89+
'in_class' => 'fadeInRight', //The class to use to animate the notice in.
90+
'out_class' => 'fadeOutRight' //The class to use to animate the notice out.
91+
],
92+
]
93+
];
94+

0 commit comments

Comments
 (0)