Skip to content

Commit

Permalink
Updated to v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
realrashid committed Apr 4, 2018
1 parent d3bf5f0 commit 93ff28c
Show file tree
Hide file tree
Showing 46 changed files with 924 additions and 418 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Changelog

All notable changes to `` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## [v1.1] - 2018-03-25

### Added
- `alert() method`
- `alert()->success() method`
- `alert()->info() method`
- `alert()->wanring() method`
- `alert()->question() method`
- `alert()->error() method`
- `alert()->html() method`
- `toast() method`
- `showConfirmButton() method`
- `showCloseButton() method`
- `showCancelButton() method`
- `persistent() method`
- `autoClose() method`
- `toToast() method`
- `footer() method`

### Deprecated
- v1.0
9 changes: 9 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The Laravel SweetAlert2 code of conduct is derived from the Ruby code of conduct. Any violations of the code of conduct may be reported to Rashid Ali ([email protected]).

- Participants will be tolerant of opposing views.

- Participants must ensure that their language and actions are free of personal attacks and disparaging personal remarks.

- When interpreting the words and actions of others, participants should always assume good intentions.

- Behavior which can be reasonably considered harassment will not be tolerated.
25 changes: 25 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
If you would like to contribute enhancements or fixes, please do the following:

1. Create Laravel Project via Composer or Laravel Installer.

2. In the project root directory create folder named as packages.

3. Fork the `sweet-alert` repository and clone it in packages.

4. Now goto your `composer.json` file and add this `"RealRashid\\SweetAlert\\": "packages/realrashid/sweet-alert/src"` line under `autoload` `psr-4` section

like below

``` json
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/",
"RealRashid\\SweetAlert\\": "packages/realrashid/sweet-alert/src"
}
},

```
25 changes: 25 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!-- Provide a general summary of the issue in the Title above -->

## Detailed description

Provide a detailed description of the change or addition you are proposing.

Make it clear if the issue is a bug, an enhancement or just a question.

## Context

Why is this change important to you? How would you use it?

How can it benefit other users?

## Possible implementation

Not obligatory, but suggest an idea for implementing addition or change.

## Your environment

Include as many relevant details about the environment you experienced the bug in and how to reproduce it.

* Version used (e.g. Laravel v5.6, SweetAlert2 v7.18.0):
* Operating system and version (e.g. Ubuntu 16.04, Windows 7):
* Link to your project:
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# The MIT License (MIT)

Copyright (c) 2018 Rashid Ali <[email protected]>

> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
70 changes: 45 additions & 25 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,59 @@
{
"name": "realrashid/sweet-alert",
"description": "SweetAlert2 for Laravel 5.x by Rashid Ali",
"authors": [{
"name": "Rashid Ali",
"email": "[email protected]"
}],
"license": "MIT",
"require": {
"php": ">=5.4.0",
"illuminate/support": "~5.4"
},
"autoload": {
"psr-0": {
"RealRashid\\SweetAlert\\": "src/"
"name": "realrashid/sweet-alert",
"type": "library",
"description": "SweetAlert2 for Laravel 5.5.* by Rashid Ali",
"keywords": [
"laravel",
"sweet-alert2",
"sweet",
"notifier",
"alert",
"noty"
],
"homepage": "https://github.com/realrashid/sweet-alert",
"license": "MIT",
"authors": [
{
"name": "Rashid Ali",
"email": "[email protected]",
"homepage": "https://realrashid.com",
"role": "Developer"
}
],
"support": {
"email": "[email protected]",
"issues": "https://github.com/realrashid/sweet-alert/issues",
"source": "https://github.com/realrashid/sweet-alert",
"docs": "https://github.com/realrashid/sweet-alert/README.md"
},
"require": {
"illuminate/support": "~5.1",
"illuminate/session": "~5.1",
"php": "~5.6|~7.0"
},
"require-dev": {
"phpunit/phpunit": ">=5.4.3",
"squizlabs/php_codesniffer": "^2.3"
},
"files": [
"src/RealRashid/SweetAlert/functions.php"
]
},
"extra": {
"branch-alias": {
"dev-master": "3.0-dev"
"autoload": {
"psr-4": {
"RealRashid\\SweetAlert\\": "src"
},
"files": [
"src/functions.php"
]
},
"extra": {
"laravel": {
"providers": [
"RealRashid\\SweetAlert\\SweetAlertServiceProvider"
],
"aliases": {
"Alert": "RealRashid\\SweetAlert\\Facades\\Alert::class"
"Alert": "RealRashid\\SweetAlert\\Facades"
}
}
},
"config": {
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
Binary file added imgs/alert/ErrorAlert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/alert/HtmlAlert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/alert/InfoAlert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/alert/QuestionAlert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/alert/SuccessAlert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/alert/SuccessAlert1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/alert/SweetAlert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/alert/WarningAlert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed imgs/auto-close.PNG
Binary file not shown.
Binary file removed imgs/basic-msg.PNG
Binary file not shown.
Binary file removed imgs/delete.PNG
Binary file not shown.
Binary file removed imgs/deleted.PNG
Binary file not shown.
Binary file removed imgs/html-elements.PNG
Binary file not shown.
Binary file removed imgs/intro.PNG
Binary file not shown.
Binary file removed imgs/modal-with-image.PNG
Binary file not shown.
Binary file removed imgs/rashid-coming-soon.PNG
Binary file not shown.
Binary file added imgs/toast/ErrorToast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/toast/InfoToast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/toast/QuestionToast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/toast/SuccessToast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/toast/SuccessToast1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/toast/SweetToast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/toast/WarningToast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed imgs/types/error.png
Binary file not shown.
Binary file removed imgs/types/info.png
Binary file not shown.
Binary file removed imgs/types/question.png
Diff not rendered.
Binary file removed imgs/types/success.png
Diff not rendered.
Binary file removed imgs/types/warning.png
Diff not rendered.
Loading

0 comments on commit 93ff28c

Please sign in to comment.