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