mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
Merge branch 'master' into refactor-new-issues
This commit is contained in:
@ -128,6 +128,14 @@ export default {
|
||||
},
|
||||
|
||||
checkValidUrl(url) {
|
||||
if (
|
||||
url.includes('http://localhost') ||
|
||||
url.includes('http://127.0.0.1') ||
|
||||
url.includes('https://localhost') ||
|
||||
url.includes('https://127.0.0.1')
|
||||
) {
|
||||
return true
|
||||
}
|
||||
let pattern = new RegExp(
|
||||
'^(https?:\\/\\/)?' + // protocol
|
||||
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // domain name
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
{{-- Subcopy --}}
|
||||
@slot('subcopy')
|
||||
@component('mail::subcopy')
|
||||
You have received a new estimate from <span class="company-name">{{$data['company']['name']}}</span>
|
||||
You have received a new estimate from <b>{{$data['company']['name']}}</b>
|
||||
@component('mail::button', ['url' => url('/customer/estimates/pdf/'.$data['estimate']['unique_hash'])])
|
||||
View Estimate
|
||||
@endcomponent
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
{{-- Subcopy --}}
|
||||
@slot('subcopy')
|
||||
@component('mail::subcopy')
|
||||
You have received a new invoice from <span class="company-name">{{$data['company']['name']}}</span>
|
||||
You have received a new invoice from <b>{{$data['company']['name']}}</b>
|
||||
@component('mail::button', ['url' => url('/customer/invoices/pdf/'.$data['invoice']['unique_hash'])])
|
||||
View Invoice
|
||||
@endcomponent
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
{{-- Subcopy --}}
|
||||
@slot('subcopy')
|
||||
@component('mail::subcopy')
|
||||
You have received a new payment from <span class="company-name">{{$data['company']['name']}}</span>
|
||||
You have received a new payment from <b>{{$data['company']['name']}}</b>
|
||||
@component('mail::button', ['url' => url('/payments/pdf/'.$data['payment']['unique_hash'])])
|
||||
View Payment
|
||||
@endcomponent
|
||||
|
||||
@ -158,8 +158,6 @@ img {
|
||||
}
|
||||
|
||||
.subcopy p {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user