Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Nov 22, 2024
1 parent d255759 commit 5d2a79c
Show file tree
Hide file tree
Showing 19 changed files with 33 additions and 24 deletions.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/build/assets/app-971c9d81.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion public/build/assets/app-d054c80f.js

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/chart-10255d84.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion public/build/assets/chart-698b42bc.js

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/dropdown-10255d84.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion public/build/assets/dropdown-698b42bc.js

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/editor-10255d84.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion public/build/assets/editor-698b42bc.js

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/media-manager-10255d84.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion public/build/assets/media-manager-698b42bc.js

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/repeater-10255d84.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion public/build/assets/repeater-698b42bc.js

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/table-10255d84.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion public/build/assets/table-698b42bc.js

This file was deleted.

16 changes: 8 additions & 8 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,60 +7,60 @@
"css": [
"assets/app-99097d46.css"
],
"file": "assets/app-d6423cac.js",
"file": "assets/app-04c0bce6.js",
"isEntry": true,
"src": "resources/js/app.js"
},
"resources/js/chart.js": {
"file": "assets/chart-698b42bc.js",
"file": "assets/chart-10255d84.js",
"imports": [
"resources/js/app.js"
],
"isEntry": true,
"src": "resources/js/chart.js"
},
"resources/js/dropdown.js": {
"file": "assets/dropdown-698b42bc.js",
"file": "assets/dropdown-10255d84.js",
"imports": [
"resources/js/app.js"
],
"isEntry": true,
"src": "resources/js/dropdown.js"
},
"resources/js/editor.js": {
"file": "assets/editor-698b42bc.js",
"file": "assets/editor-10255d84.js",
"imports": [
"resources/js/app.js"
],
"isEntry": true,
"src": "resources/js/editor.js"
},
"resources/js/media-manager.js": {
"file": "assets/media-manager-698b42bc.js",
"file": "assets/media-manager-10255d84.js",
"imports": [
"resources/js/app.js"
],
"isEntry": true,
"src": "resources/js/media-manager.js"
},
"resources/js/repeater.js": {
"file": "assets/repeater-698b42bc.js",
"file": "assets/repeater-10255d84.js",
"imports": [
"resources/js/app.js"
],
"isEntry": true,
"src": "resources/js/repeater.js"
},
"resources/js/table.js": {
"file": "assets/table-698b42bc.js",
"file": "assets/table-10255d84.js",
"imports": [
"resources/js/app.js"
],
"isEntry": true,
"src": "resources/js/table.js"
},
"resources/sass/app.scss": {
"file": "assets/app-d054c80f.js",
"file": "assets/app-971c9d81.js",
"imports": [
"resources/js/app.js"
],
Expand Down
5 changes: 5 additions & 0 deletions resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ document.addEventListener('relation-frame-loaded', (event) => {
window.history.replaceState(window.history.state, document.title, event.detail.url);
}
});

// Handle the turbo:frame-missing
document.addEventListener('turbo:frame-missing', (event) => {
event.preventDefault();
});
6 changes: 5 additions & 1 deletion resources/views/resources/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@
<h2 class="app-card__title">{{ $relation['label'] }}</h2>
</div>
<div class="app-card__body">
{{ __('Loading') }}...
<div class="data-table">
<x-root::alert>
{{ __('Loading') }}...
</x-root::alert>
</div>
</div>
</div>
</turbo-frame>
Expand Down
14 changes: 7 additions & 7 deletions src/RootServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ protected function registerViews(): void
*/
protected function registerExceptions(): void
{
$this->app->make(ExceptionHandler::class)->renderable(
static function (SaveFormDataException $exception): RedirectResponse {
return Redirect::back()
->withInput()
->with('alerts.form-save', Alert::error($exception->getMessage()));
}
);
$exceptions = $this->app->make(ExceptionHandler::class);

$exceptions->renderable(static function (SaveFormDataException $exception): RedirectResponse {
return Redirect::back()
->withInput()
->with('alerts.form-save', Alert::error($exception->getMessage()));
});
}

/**
Expand Down

0 comments on commit 5d2a79c

Please sign in to comment.