Merge branch 'master' of github.com:akaunting/akaunting
This commit is contained in:
@ -17,7 +17,7 @@ abstract class Widget
|
||||
public $default_name = '';
|
||||
|
||||
public $default_settings = [
|
||||
'width' => 'w-full lg:w-2/4 px-12 my-8',
|
||||
'width' => 'w-full lg:w-2/4 lg:px-12 my-8',
|
||||
];
|
||||
|
||||
public $description = '';
|
||||
|
@ -48,6 +48,40 @@ class Handler extends ExceptionHandler
|
||||
'password_confirmation',
|
||||
];
|
||||
|
||||
/**
|
||||
* Register the exception handling callbacks for the application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->reportable(function (Throwable $e) {
|
||||
if (config('logging.default') == 'sentry') {
|
||||
app('sentry')->configureScope(function ($scope) {
|
||||
$scope->setTag('company_id', (string) company_id());
|
||||
$scope->setTag('locale', (string) app()->getLocale());
|
||||
$scope->setTag('timezone', (string) config('app.timezone'));
|
||||
});
|
||||
|
||||
//define('SENTRY_RELEASE', version('short'));
|
||||
}
|
||||
|
||||
if (config('logging.default') == 'bugsnag') {
|
||||
app('bugsnag')->registerCallback(function ($report) {
|
||||
$report->setMetaData([
|
||||
'akaunting' => [
|
||||
'company_id' => (string) company_id(),
|
||||
'locale' => (string) app()->getLocale(),
|
||||
'timezone' => (string) config('app.timezone'),
|
||||
]
|
||||
]);
|
||||
});
|
||||
|
||||
app('bugsnag')->setAppVersion(version('short'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Report or log an exception.
|
||||
*
|
||||
|
@ -488,6 +488,20 @@ class Document extends Model
|
||||
return $actions;
|
||||
}
|
||||
|
||||
if (app('mobile-detect')->isMobile()) {
|
||||
try {
|
||||
$actions[] = [
|
||||
'title' => trans('general.show'),
|
||||
'icon' => 'visibility',
|
||||
'url' => route($prefix . '.show', $this->id),
|
||||
'permission' => 'read-' . $group . '-' . $permission_prefix,
|
||||
'attributes' => [
|
||||
'id' => 'index-more-actions-show-' . $this->id,
|
||||
],
|
||||
];
|
||||
} catch (\Exception $e) {}
|
||||
}
|
||||
|
||||
try {
|
||||
if (! $this->reconciled) {
|
||||
$actions[] = [
|
||||
|
21
app/View/Components/Show/Right.php
Normal file
21
app/View/Components/Show/Right.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\Show;
|
||||
|
||||
use App\Abstracts\View\Component;
|
||||
|
||||
class Right extends Component
|
||||
{
|
||||
|
||||
public $disableLoading = false;
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\View|string
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return view('components.show.content.right');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user