-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c88db5
commit a3e16ec
Showing
3,015 changed files
with
560,909 additions
and
54 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
|
||
namespace App\Notifications; | ||
|
||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Illuminate\Notifications\Messages\MailMessage; | ||
use Illuminate\Notifications\Notification; | ||
|
||
class NewCommentNotify extends Notification implements ShouldQueue | ||
{ | ||
use Queueable; | ||
public $comment; | ||
|
||
/** | ||
* Create a new notification instance. | ||
*/ | ||
public function __construct($comment) | ||
{ | ||
$this->comment = $comment; | ||
} | ||
|
||
/** | ||
* Get the notification's delivery channels. | ||
* | ||
* @param mixed $notifiable | ||
* | ||
* @return array | ||
*/ | ||
public function via($notifiable) | ||
{ | ||
return ['mail']; | ||
} | ||
|
||
/** | ||
* Get the mail representation of the notification. | ||
* | ||
* @param mixed $notifiable | ||
* | ||
* @return \Illuminate\Notifications\Messages\MailMessage | ||
*/ | ||
public function toMail($notifiable) | ||
{ | ||
return (new MailMessage()) | ||
->subject('New Comment') | ||
->greeting('Post : '.$this->comment->post->title) | ||
->line('User : '.$this->comment->user->name) | ||
->line('Comment : '.$this->comment->message) | ||
->action('View Post', url(route('post', $this->comment->post->slug))) | ||
->line('Thank you.'); | ||
} | ||
|
||
/** | ||
* Get the array representation of the notification. | ||
* | ||
* @param mixed $notifiable | ||
* @return array | ||
*/ | ||
public function toArray($notifiable) | ||
{ | ||
return [ | ||
// | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
|
||
namespace App\Notifications; | ||
|
||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Illuminate\Notifications\Messages\MailMessage; | ||
use Illuminate\Notifications\Notification; | ||
|
||
class ReplyCommentNotify extends Notification implements ShouldQueue | ||
{ | ||
use Queueable; | ||
public $replyComment; | ||
|
||
/** | ||
* Create a new notification instance. | ||
*/ | ||
public function __construct($replyComment) | ||
{ | ||
$this->replyComment = $replyComment; | ||
} | ||
|
||
/** | ||
* Get the notification's delivery channels. | ||
* | ||
* @param mixed $notifiable | ||
* | ||
* @return array | ||
*/ | ||
public function via($notifiable) | ||
{ | ||
return ['mail']; | ||
} | ||
|
||
/** | ||
* Get the mail representation of the notification. | ||
* | ||
* @param mixed $notifiable | ||
* | ||
* @return \Illuminate\Notifications\Messages\MailMessage | ||
*/ | ||
public function toMail($notifiable) | ||
{ | ||
return (new MailMessage()) | ||
->subject('Re: '. $this->replyComment->comment->message) | ||
->greeting('Post : '.$this->replyComment->comment->post->title) | ||
->line('User : '.$this->replyComment->user->name) | ||
->line('Comment : '.$this->replyComment->message) | ||
->action('View Post', url(route('post', $this->replyComment->comment->post->slug))) | ||
->line('Thank you.'); | ||
} | ||
|
||
/** | ||
* Get the array representation of the notification. | ||
* | ||
* @param mixed $notifiable | ||
* @return array | ||
*/ | ||
public function toArray($notifiable) | ||
{ | ||
return [ | ||
// | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<IfModule mod_rewrite.c> | ||
<IfModule mod_negotiation.c> | ||
Options -MultiViews -Indexes | ||
</IfModule> | ||
|
||
RewriteEngine On | ||
|
||
# Handle Authorization Header | ||
RewriteCond %{HTTP:Authorization} . | ||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | ||
|
||
# Redirect Trailing Slashes If Not A Folder... | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteCond %{REQUEST_URI} (.+)/$ | ||
RewriteRule ^ %1 [L,R=301] | ||
|
||
# Send Requests To Front Controller... | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteRule ^ index.php [L] | ||
</IfModule> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
( function ( $ ) { | ||
"use strict"; | ||
|
||
|
||
// const brandPrimary = '#20a8d8' | ||
const brandSuccess = '#4dbd74' | ||
const brandInfo = '#63c2de' | ||
const brandDanger = '#f86c6b' | ||
|
||
function convertHex (hex, opacity) { | ||
hex = hex.replace('#', '') | ||
const r = parseInt(hex.substring(0, 2), 16) | ||
const g = parseInt(hex.substring(2, 4), 16) | ||
const b = parseInt(hex.substring(4, 6), 16) | ||
|
||
const result = 'rgba(' + r + ',' + g + ',' + b + ',' + opacity / 100 + ')' | ||
return result | ||
} | ||
|
||
function random (min, max) { | ||
return Math.floor(Math.random() * (max - min + 1) + min) | ||
} | ||
|
||
var elements = 27 | ||
var data1 = [] | ||
var data2 = [] | ||
var data3 = [] | ||
|
||
for (var i = 0; i <= elements; i++) { | ||
data1.push(random(50, 200)) | ||
data2.push(random(80, 100)) | ||
data3.push(65) | ||
} | ||
|
||
|
||
//Traffic Chart | ||
var ctx = document.getElementById( "trafficChart" ); | ||
//ctx.height = 200; | ||
var myChart = new Chart( ctx, { | ||
type: 'line', | ||
data: { | ||
labels: ['M', 'T', 'W', 'T', 'F', 'S', 'S', 'M', 'T', 'W', 'T', 'F', 'S', 'S', 'M', 'T', 'W', 'T', 'F', 'S', 'S', 'M', 'T', 'W', 'T', 'F', 'S', 'S'], | ||
datasets: [ | ||
{ | ||
label: 'My First dataset', | ||
backgroundColor: convertHex(brandInfo, 10), | ||
borderColor: brandInfo, | ||
pointHoverBackgroundColor: '#fff', | ||
borderWidth: 2, | ||
data: data1 | ||
}, | ||
{ | ||
label: 'My Second dataset', | ||
backgroundColor: 'transparent', | ||
borderColor: brandSuccess, | ||
pointHoverBackgroundColor: '#fff', | ||
borderWidth: 2, | ||
data: data2 | ||
}, | ||
{ | ||
label: 'My Third dataset', | ||
backgroundColor: 'transparent', | ||
borderColor: brandDanger, | ||
pointHoverBackgroundColor: '#fff', | ||
borderWidth: 1, | ||
borderDash: [8, 5], | ||
data: data3 | ||
} | ||
] | ||
}, | ||
options: { | ||
// maintainAspectRatio: true, | ||
// legend: { | ||
// display: false | ||
// }, | ||
// scales: { | ||
// xAxes: [{ | ||
// display: false, | ||
// categoryPercentage: 1, | ||
// barPercentage: 0.5 | ||
// }], | ||
// yAxes: [ { | ||
// display: false | ||
// } ] | ||
// } | ||
|
||
|
||
maintainAspectRatio: true, | ||
legend: { | ||
display: false | ||
}, | ||
responsive: true, | ||
scales: { | ||
xAxes: [{ | ||
gridLines: { | ||
drawOnChartArea: false | ||
} | ||
}], | ||
yAxes: [ { | ||
ticks: { | ||
beginAtZero: true, | ||
maxTicksLimit: 5, | ||
stepSize: Math.ceil(250 / 5), | ||
max: 250 | ||
}, | ||
gridLines: { | ||
display: true | ||
} | ||
} ] | ||
}, | ||
elements: { | ||
point: { | ||
radius: 0, | ||
hitRadius: 10, | ||
hoverRadius: 4, | ||
hoverBorderWidth: 3 | ||
} | ||
} | ||
|
||
|
||
} | ||
} ); | ||
|
||
|
||
} )( jQuery ); |
Empty file.
Oops, something went wrong.