Skip to content

Commit

Permalink
use turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Nov 13, 2023
1 parent 8bf22b1 commit 3c9ea21
Show file tree
Hide file tree
Showing 17 changed files with 163 additions and 130 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"dependencies": {
"@alpinejs/focus": "^3.12.3",
"@conedevelopment/qkie": "^1.0.2",
"@hotwired/turbo": "^7.3.0",
"@tiptap/extension-highlight": "^2.0.3",
"@tiptap/extension-history": "^2.0.3",
"@tiptap/extension-image": "^2.0.3",
Expand Down
1 change: 1 addition & 0 deletions public/build/assets/app-275e9a85.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import{a as f}from"./app-bc4fbccb.js";export{f as default};
142 changes: 142 additions & 0 deletions public/build/assets/app-bc4fbccb.js

Large diffs are not rendered by default.

117 changes: 0 additions & 117 deletions public/build/assets/app-c8ab9151.js

This file was deleted.

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

This file was deleted.

1 change: 0 additions & 1 deletion public/build/assets/dropdown-73a613e0.js

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/dropdown-7fa3ba94.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import"./app-bc4fbccb.js";
1 change: 0 additions & 1 deletion public/build/assets/editor-73a613e0.js

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/editor-7fa3ba94.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import"./app-bc4fbccb.js";
1 change: 0 additions & 1 deletion public/build/assets/media-manager-73a613e0.js

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/media-manager-7fa3ba94.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import"./app-bc4fbccb.js";
1 change: 0 additions & 1 deletion public/build/assets/repeater-73a613e0.js

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/repeater-7fa3ba94.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import"./app-bc4fbccb.js";
12 changes: 6 additions & 6 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,44 @@
"css": [
"assets/app-4d04387c.css"
],
"file": "assets/app-c8ab9151.js",
"file": "assets/app-bc4fbccb.js",
"isEntry": true,
"src": "resources/js/app.js"
},
"resources/js/dropdown.js": {
"file": "assets/dropdown-73a613e0.js",
"file": "assets/dropdown-7fa3ba94.js",
"imports": [
"resources/js/app.js"
],
"isEntry": true,
"src": "resources/js/dropdown.js"
},
"resources/js/editor.js": {
"file": "assets/editor-73a613e0.js",
"file": "assets/editor-7fa3ba94.js",
"imports": [
"resources/js/app.js"
],
"isEntry": true,
"src": "resources/js/editor.js"
},
"resources/js/media-manager.js": {
"file": "assets/media-manager-73a613e0.js",
"file": "assets/media-manager-7fa3ba94.js",

Check warning on line 31 in public/build/manifest.json

View workflow job for this annotation

GitHub Actions / 文A Typos check

"ba" should be "by" or "be".
"imports": [
"resources/js/app.js"
],
"isEntry": true,
"src": "resources/js/media-manager.js"
},
"resources/js/repeater.js": {
"file": "assets/repeater-73a613e0.js",
"file": "assets/repeater-7fa3ba94.js",
"imports": [
"resources/js/app.js"
],
"isEntry": true,
"src": "resources/js/repeater.js"
},
"resources/sass/app.scss": {
"file": "assets/app-e9d1dd12.js",
"file": "assets/app-275e9a85.js",
"imports": [
"resources/js/app.js"
],
Expand Down
3 changes: 3 additions & 0 deletions resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import focus from '@alpinejs/focus';
import Cookie from '@conedevelopment/qkie';
import './notifications';
import './theme';
import * as Turbo from '@hotwired/turbo';

// Alpine
Alpine.plugin(focus);
Expand All @@ -21,3 +22,5 @@ window.$http = Axios.create({

// Cookie
window.$cookie = new Cookie('__root_');


3 changes: 1 addition & 2 deletions src/Filters/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Cone\Root\Filters;

use Cone\Root\Fields\Select as Field;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\App;
Expand Down Expand Up @@ -49,7 +48,7 @@ public function toField(): Field
->options(App::call(function (Request $request): array {
return $this->options($request);
}))
->value(fn (Request $request, Model $model): mixed => $model->getAttribute($this->getKey()))
->value(fn (Request $request): mixed => $this->getValue($request))
->multiple($this->multiple);
}
}
5 changes: 5 additions & 0 deletions yarn.lock

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

0 comments on commit 3c9ea21

Please sign in to comment.