UPGRADE INERTIA V1.0.0

pull/2/head
ajikamaludin 2 years ago
parent eb03ebefb2
commit f94d06ca96
Signed by: ajikamaludin
GPG Key ID: 476C9A2B4B794EBB

BIN
1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

BIN
2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

BIN
3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

@ -1 +1,37 @@
# Yamato Cash Management - Laravel Inertijs
# Yamato Cash Management - Laravel Inertijs
Laravel Cash Management Example with Inertia V1.0.0 :tada:
UI - Kit [daisyui](https://daisyui.com/)
## Support me
<a href="https://trakteer.id/ajikamaludin" target="_blank"><img id="wse-buttons-preview" src="https://cdn.trakteer.id/images/embed/trbtn-blue-2.png" height="40" style="border:0px;height:40px;" alt="Trakteer Saya"></a>
## Requirements
* PHP 8.0/8.1
* Node 16
## How to run
```bash
$ cp .env.example .env # create database and import sql file in root folder
$ composer install
$ php artisan migrate
$ php artisan serve
$ npm install
$ npm run dev # compiling asset for development
```
## Compile Assets ( to prod )
```bash
$ npm run build
```
## Screenshot
![](1.png?raw=true)
![](2.png?raw=true)
![](3.png?raw=true)

@ -7,8 +7,8 @@
"require": {
"php": "^8.0.2",
"guzzlehttp/guzzle": "^7.2",
"inertiajs/inertia-laravel": "^0.6.3",
"laravel/framework": "^9.19",
"inertiajs/inertia-laravel": "^0.6.9",
"laravel/framework": "^9.47",
"laravel/sanctum": "^2.8",
"laravel/tinker": "^2.7",
"maatwebsite/excel": "^3.1",

142
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "9c6dec10b54235ded9ea393f87ce68e8",
"content-hash": "0f16e837d012ab54339aa1bcacddafad",
"packages": [
{
"name": "brick/math",
@ -1085,29 +1085,32 @@
},
{
"name": "inertiajs/inertia-laravel",
"version": "v0.6.4",
"version": "v0.6.9",
"source": {
"type": "git",
"url": "https://github.com/inertiajs/inertia-laravel.git",
"reference": "b00fe8cf741766b41de69978f9e90ee6d1470d36"
"reference": "b983c6eb2fe7460df6170060cdd7b47b5ef6832a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/inertiajs/inertia-laravel/zipball/b00fe8cf741766b41de69978f9e90ee6d1470d36",
"reference": "b00fe8cf741766b41de69978f9e90ee6d1470d36",
"url": "https://api.github.com/repos/inertiajs/inertia-laravel/zipball/b983c6eb2fe7460df6170060cdd7b47b5ef6832a",
"reference": "b983c6eb2fe7460df6170060cdd7b47b5ef6832a",
"shasum": ""
},
"require": {
"ext-json": "*",
"laravel/framework": "^6.0|^7.0|^8.74|^9.0",
"laravel/framework": "^6.0|^7.0|^8.74|^9.0|^10.0",
"php": "^7.2|~8.0.0|~8.1.0|~8.2.0"
},
"require-dev": {
"mockery/mockery": "^1.3.3",
"orchestra/testbench": "^4.0|^5.0|^6.4|^7.0",
"orchestra/testbench": "^4.0|^5.0|^6.4|^7.0|^8.0",
"phpunit/phpunit": "^8.0|^9.5.8",
"roave/security-advisories": "dev-master"
},
"suggest": {
"ext-pcntl": "Recommended when running the Inertia SSR server via the `inertia:start-ssr` artisan command."
},
"type": "library",
"extra": {
"laravel": {
@ -1142,7 +1145,7 @@
],
"support": {
"issues": "https://github.com/inertiajs/inertia-laravel/issues",
"source": "https://github.com/inertiajs/inertia-laravel/tree/v0.6.4"
"source": "https://github.com/inertiajs/inertia-laravel/tree/v0.6.9"
},
"funding": [
{
@ -1150,20 +1153,20 @@
"type": "github"
}
],
"time": "2022-11-08T12:44:02+00:00"
"time": "2023-01-17T01:02:51+00:00"
},
{
"name": "laravel/framework",
"version": "v9.46.0",
"version": "v9.47.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "62b05b6de5733d89378a279e40230a71e5ab5d92"
"reference": "92810d88f9a4252095a56c05541b07940363367c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/62b05b6de5733d89378a279e40230a71e5ab5d92",
"reference": "62b05b6de5733d89378a279e40230a71e5ab5d92",
"url": "https://api.github.com/repos/laravel/framework/zipball/92810d88f9a4252095a56c05541b07940363367c",
"reference": "92810d88f9a4252095a56c05541b07940363367c",
"shasum": ""
},
"require": {
@ -1254,6 +1257,7 @@
"mockery/mockery": "^1.5.1",
"orchestra/testbench-core": "^7.16",
"pda/pheanstalk": "^4.0",
"phpstan/phpdoc-parser": "^1.15",
"phpstan/phpstan": "^1.4.7",
"phpunit/phpunit": "^9.5.8",
"predis/predis": "^1.1.9|^2.0.2",
@ -1336,7 +1340,7 @@
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2023-01-03T15:12:31+00:00"
"time": "2023-01-10T16:10:09+00:00"
},
{
"name": "laravel/sanctum",
@ -1465,22 +1469,22 @@
},
{
"name": "laravel/tinker",
"version": "v2.7.3",
"version": "v2.8.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/tinker.git",
"reference": "5062061b4924af3392225dd482ca7b4d85d8b8ef"
"reference": "74d0b287cc4ae65d15c368dd697aae71d62a73ad"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/tinker/zipball/5062061b4924af3392225dd482ca7b4d85d8b8ef",
"reference": "5062061b4924af3392225dd482ca7b4d85d8b8ef",
"url": "https://api.github.com/repos/laravel/tinker/zipball/74d0b287cc4ae65d15c368dd697aae71d62a73ad",
"reference": "74d0b287cc4ae65d15c368dd697aae71d62a73ad",
"shasum": ""
},
"require": {
"illuminate/console": "^6.0|^7.0|^8.0|^9.0",
"illuminate/contracts": "^6.0|^7.0|^8.0|^9.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0",
"illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0",
"illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0",
"php": "^7.2.5|^8.0",
"psy/psysh": "^0.10.4|^0.11.1",
"symfony/var-dumper": "^4.3.4|^5.0|^6.0"
@ -1490,7 +1494,7 @@
"phpunit/phpunit": "^8.5.8|^9.3.3"
},
"suggest": {
"illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0)."
"illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0|^10.0)."
},
"type": "library",
"extra": {
@ -1527,9 +1531,9 @@
],
"support": {
"issues": "https://github.com/laravel/tinker/issues",
"source": "https://github.com/laravel/tinker/tree/v2.7.3"
"source": "https://github.com/laravel/tinker/tree/v2.8.0"
},
"time": "2022-11-09T15:11:38+00:00"
"time": "2023-01-10T18:03:30+00:00"
},
{
"name": "league/commonmark",
@ -2547,16 +2551,16 @@
},
{
"name": "nikic/php-parser",
"version": "v4.15.2",
"version": "v4.15.3",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc"
"reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc",
"reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/570e980a201d8ed0236b0a62ddf2c9cbb2034039",
"reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039",
"shasum": ""
},
"require": {
@ -2597,9 +2601,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v4.15.2"
"source": "https://github.com/nikic/PHP-Parser/tree/v4.15.3"
},
"time": "2022-11-12T15:38:23+00:00"
"time": "2023-01-16T22:05:37+00:00"
},
{
"name": "nunomaduro/termwind",
@ -3442,16 +3446,16 @@
},
{
"name": "ramsey/uuid",
"version": "4.7.1",
"version": "4.7.3",
"source": {
"type": "git",
"url": "https://github.com/ramsey/uuid.git",
"reference": "a1acf96007170234a8399586a6e2ab8feba109d1"
"reference": "433b2014e3979047db08a17a205f410ba3869cf2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ramsey/uuid/zipball/a1acf96007170234a8399586a6e2ab8feba109d1",
"reference": "a1acf96007170234a8399586a6e2ab8feba109d1",
"url": "https://api.github.com/repos/ramsey/uuid/zipball/433b2014e3979047db08a17a205f410ba3869cf2",
"reference": "433b2014e3979047db08a17a205f410ba3869cf2",
"shasum": ""
},
"require": {
@ -3518,7 +3522,7 @@
],
"support": {
"issues": "https://github.com/ramsey/uuid/issues",
"source": "https://github.com/ramsey/uuid/tree/4.7.1"
"source": "https://github.com/ramsey/uuid/tree/4.7.3"
},
"funding": [
{
@ -3530,7 +3534,7 @@
"type": "tidelift"
}
],
"time": "2022-12-31T22:20:34+00:00"
"time": "2023-01-12T18:13:24+00:00"
},
{
"name": "symfony/console",
@ -6067,30 +6071,30 @@
"packages-dev": [
{
"name": "doctrine/instantiator",
"version": "1.5.0",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/doctrine/instantiator.git",
"reference": "0a0fa9780f5d4e507415a065172d26a98d02047b"
"reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b",
"reference": "0a0fa9780f5d4e507415a065172d26a98d02047b",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0",
"reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0",
"shasum": ""
},
"require": {
"php": "^7.1 || ^8.0"
"php": "^8.1"
},
"require-dev": {
"doctrine/coding-standard": "^9 || ^11",
"doctrine/coding-standard": "^11",
"ext-pdo": "*",
"ext-phar": "*",
"phpbench/phpbench": "^0.16 || ^1",
"phpstan/phpstan": "^1.4",
"phpstan/phpstan-phpunit": "^1",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
"vimeo/psalm": "^4.30 || ^5.4"
"phpbench/phpbench": "^1.2",
"phpstan/phpstan": "^1.9.4",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^9.5.27",
"vimeo/psalm": "^5.4"
},
"type": "library",
"autoload": {
@ -6117,7 +6121,7 @@
],
"support": {
"issues": "https://github.com/doctrine/instantiator/issues",
"source": "https://github.com/doctrine/instantiator/tree/1.5.0"
"source": "https://github.com/doctrine/instantiator/tree/2.0.0"
},
"funding": [
{
@ -6133,7 +6137,7 @@
"type": "tidelift"
}
],
"time": "2022-12-30T00:15:36+00:00"
"time": "2022-12-30T00:23:10+00:00"
},
{
"name": "fakerphp/faker",
@ -6388,16 +6392,16 @@
},
{
"name": "laravel/pint",
"version": "v1.3.0",
"version": "v1.4.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/pint.git",
"reference": "6a2c0927b4f6ad4eadb5a67fe3835fdad108949d"
"reference": "0e7ffdb0af871be10d798e234772ea5d4020ae4a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/6a2c0927b4f6ad4eadb5a67fe3835fdad108949d",
"reference": "6a2c0927b4f6ad4eadb5a67fe3835fdad108949d",
"url": "https://api.github.com/repos/laravel/pint/zipball/0e7ffdb0af871be10d798e234772ea5d4020ae4a",
"reference": "0e7ffdb0af871be10d798e234772ea5d4020ae4a",
"shasum": ""
},
"require": {
@ -6450,26 +6454,26 @@
"issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint"
},
"time": "2022-12-20T17:16:15+00:00"
"time": "2023-01-10T20:03:42+00:00"
},
{
"name": "laravel/sail",
"version": "v1.17.0",
"version": "v1.18.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/sail.git",
"reference": "7d69da7b2bdb8cbe8da6663eb2ae0e00c884bf80"
"reference": "77feb38df1cf8700c19487957dfb12087cd696c7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/sail/zipball/7d69da7b2bdb8cbe8da6663eb2ae0e00c884bf80",
"reference": "7d69da7b2bdb8cbe8da6663eb2ae0e00c884bf80",
"url": "https://api.github.com/repos/laravel/sail/zipball/77feb38df1cf8700c19487957dfb12087cd696c7",
"reference": "77feb38df1cf8700c19487957dfb12087cd696c7",
"shasum": ""
},
"require": {
"illuminate/console": "^8.0|^9.0",
"illuminate/contracts": "^8.0|^9.0",
"illuminate/support": "^8.0|^9.0",
"illuminate/console": "^8.0|^9.0|^10.0",
"illuminate/contracts": "^8.0|^9.0|^10.0",
"illuminate/support": "^8.0|^9.0|^10.0",
"php": "^7.3|^8.0"
},
"bin": [
@ -6510,7 +6514,7 @@
"issues": "https://github.com/laravel/sail/issues",
"source": "https://github.com/laravel/sail"
},
"time": "2022-12-22T14:46:08+00:00"
"time": "2023-01-10T16:14:21+00:00"
},
{
"name": "mockery/mockery",
@ -7162,20 +7166,20 @@
},
{
"name": "phpunit/phpunit",
"version": "9.5.27",
"version": "9.5.28",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "a2bc7ffdca99f92d959b3f2270529334030bba38"
"reference": "954ca3113a03bf780d22f07bf055d883ee04b65e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a2bc7ffdca99f92d959b3f2270529334030bba38",
"reference": "a2bc7ffdca99f92d959b3f2270529334030bba38",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/954ca3113a03bf780d22f07bf055d883ee04b65e",
"reference": "954ca3113a03bf780d22f07bf055d883ee04b65e",
"shasum": ""
},
"require": {
"doctrine/instantiator": "^1.3.1",
"doctrine/instantiator": "^1.3.1 || ^2",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
@ -7244,7 +7248,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.27"
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.28"
},
"funding": [
{
@ -7260,7 +7264,7 @@
"type": "tidelift"
}
],
"time": "2022-12-09T07:31:23+00:00"
"time": "2023-01-14T12:32:24+00:00"
},
{
"name": "sebastian/cli-parser",

138
package-lock.json generated

@ -5,6 +5,7 @@
"packages": {
"": {
"dependencies": {
"@inertiajs/react": "^1.0.0",
"daisyui": "^2.46.1",
"moment": "^2.29.4",
"qs": "^6.11.0",
@ -16,9 +17,6 @@
},
"devDependencies": {
"@headlessui/react": "^1.4.2",
"@inertiajs/inertia": "^0.11.0",
"@inertiajs/inertia-react": "^0.8.1",
"@inertiajs/progress": "^0.2.6",
"@tailwindcss/forms": "^0.5.3",
"@vitejs/plugin-react": "^3.0.0",
"autoprefixer": "^10.4.12",
@ -785,51 +783,29 @@
"react-dom": "^16 || ^17 || ^18"
}
},
"node_modules/@inertiajs/inertia": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/@inertiajs/inertia/-/inertia-0.11.1.tgz",
"integrity": "sha512-btmV53c54oW4Z9XF0YyTdIUnM7ue0ONy3/KJOz6J1C5CYIwimiKfDMpz8ZbGJuxS+SPdOlNsqj2ZhlHslpJRZg==",
"dev": true,
"node_modules/@inertiajs/core": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@inertiajs/core/-/core-1.0.0.tgz",
"integrity": "sha512-V8GgUMqwD6L0A+/O5EEnoCKI/CJ6o33/PUlrjte2skAixZmuNjL3AcP1pB5xUPLMFxGONpZVU2BTpqTC2ppLGA==",
"dependencies": {
"axios": "^0.21.1",
"axios": "^1.2.0",
"deepmerge": "^4.0.0",
"nprogress": "^0.2.0",
"qs": "^6.9.0"
}
},
"node_modules/@inertiajs/inertia-react": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/@inertiajs/inertia-react/-/inertia-react-0.8.1.tgz",
"integrity": "sha512-9Uu7t4EA9FrcREwWnOU/qW5i4hYFt+uFn5cqP6RGJo8lJS4u8t6Q9358oHuQUKbFEbaIjUu7aslCL3/Istctlg==",
"dev": true,
"node_modules/@inertiajs/react": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@inertiajs/react/-/react-1.0.0.tgz",
"integrity": "sha512-oJnLjV1qw2zif5LRta3ota+pXbc8N7NZ8JeoYsJk/DeOlv6S/Yz6WZYGksVUu0zxcpoYeMZEZ3q7vxiq+0UhkA==",
"dependencies": {
"@inertiajs/core": "1.0.0",
"lodash.isequal": "^4.5.0"
},
"peerDependencies": {
"@inertiajs/inertia": "^0.11.0",
"react": "^16.9.0 || ^17.0.0 || ^18.0.0"
}
},
"node_modules/@inertiajs/inertia/node_modules/axios": {
"version": "0.21.4",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
"dev": true,
"dependencies": {
"follow-redirects": "^1.14.0"
}
},
"node_modules/@inertiajs/progress": {
"version": "0.2.7",
"resolved": "https://registry.npmjs.org/@inertiajs/progress/-/progress-0.2.7.tgz",
"integrity": "sha512-zxadfLlBPIUvTE9g5k71V/Ayzo8P9kEp4hV4UKywCC2kURufxV7bycbZqU1GeMCFGDT+VRrjXNl676Pwwa1HoQ==",
"dev": true,
"dependencies": {
"nprogress": "^0.2.0"
},
"peerDependencies": {
"@inertiajs/inertia": "^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0"
}
},
"node_modules/@jridgewell/gen-mapping": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz",
@ -1015,8 +991,7 @@
"node_modules/asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
"dev": true
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"node_modules/autoprefixer": {
"version": "10.4.13",
@ -1054,7 +1029,6 @@
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.2.2.tgz",
"integrity": "sha512-bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q==",
"dev": true,
"dependencies": {
"follow-redirects": "^1.15.0",
"form-data": "^4.0.0",
@ -1293,7 +1267,6 @@
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
"dev": true,
"dependencies": {
"delayed-stream": "~1.0.0"
},
@ -1429,7 +1402,6 @@
"version": "4.2.2",
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz",
"integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==",
"dev": true,
"engines": {
"node": ">=0.10.0"
}
@ -1446,7 +1418,6 @@
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
"dev": true,
"engines": {
"node": ">=0.4.0"
}
@ -1617,7 +1588,6 @@
"version": "1.15.2",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
"dev": true,
"funding": [
{
"type": "individual",
@ -1637,7 +1607,6 @@
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
"dev": true,
"dependencies": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
@ -1889,8 +1858,7 @@
"node_modules/lodash.isequal": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",
"integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==",
"dev": true
"integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ=="
},
"node_modules/loose-envify": {
"version": "1.4.0",
@ -1953,7 +1921,6 @@
"version": "1.52.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
"dev": true,
"engines": {
"node": ">= 0.6"
}
@ -1962,7 +1929,6 @@
"version": "2.1.35",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
"dev": true,
"dependencies": {
"mime-db": "1.52.0"
},
@ -2054,8 +2020,7 @@
"node_modules/nprogress": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/nprogress/-/nprogress-0.2.0.tgz",
"integrity": "sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==",
"dev": true
"integrity": "sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA=="
},
"node_modules/object-assign": {
"version": "4.1.1",
@ -2243,8 +2208,7 @@
"node_modules/proxy-from-env": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
"dev": true
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
},
"node_modules/qs": {
"version": "6.11.0",
@ -3376,46 +3340,26 @@
"client-only": "^0.0.1"
}
},
"@inertiajs/inertia": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/@inertiajs/inertia/-/inertia-0.11.1.tgz",
"integrity": "sha512-btmV53c54oW4Z9XF0YyTdIUnM7ue0ONy3/KJOz6J1C5CYIwimiKfDMpz8ZbGJuxS+SPdOlNsqj2ZhlHslpJRZg==",
"dev": true,
"@inertiajs/core": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@inertiajs/core/-/core-1.0.0.tgz",
"integrity": "sha512-V8GgUMqwD6L0A+/O5EEnoCKI/CJ6o33/PUlrjte2skAixZmuNjL3AcP1pB5xUPLMFxGONpZVU2BTpqTC2ppLGA==",
"requires": {
"axios": "^0.21.1",
"axios": "^1.2.0",
"deepmerge": "^4.0.0",
"nprogress": "^0.2.0",
"qs": "^6.9.0"
},
"dependencies": {
"axios": {
"version": "0.21.4",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
"dev": true,
"requires": {
"follow-redirects": "^1.14.0"
}
}
}
},
"@inertiajs/inertia-react": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/@inertiajs/inertia-react/-/inertia-react-0.8.1.tgz",
"integrity": "sha512-9Uu7t4EA9FrcREwWnOU/qW5i4hYFt+uFn5cqP6RGJo8lJS4u8t6Q9358oHuQUKbFEbaIjUu7aslCL3/Istctlg==",
"dev": true,
"@inertiajs/react": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@inertiajs/react/-/react-1.0.0.tgz",
"integrity": "sha512-oJnLjV1qw2zif5LRta3ota+pXbc8N7NZ8JeoYsJk/DeOlv6S/Yz6WZYGksVUu0zxcpoYeMZEZ3q7vxiq+0UhkA==",
"requires": {
"@inertiajs/core": "1.0.0",
"lodash.isequal": "^4.5.0"
}
},
"@inertiajs/progress": {
"version": "0.2.7",
"resolved": "https://registry.npmjs.org/@inertiajs/progress/-/progress-0.2.7.tgz",
"integrity": "sha512-zxadfLlBPIUvTE9g5k71V/Ayzo8P9kEp4hV4UKywCC2kURufxV7bycbZqU1GeMCFGDT+VRrjXNl676Pwwa1HoQ==",
"dev": true,
"requires": {
"nprogress": "^0.2.0"
}
},
"@jridgewell/gen-mapping": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz",
@ -3555,8 +3499,7 @@
"asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
"dev": true
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"autoprefixer": {
"version": "10.4.13",
@ -3575,7 +3518,6 @@
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.2.2.tgz",
"integrity": "sha512-bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q==",
"dev": true,
"requires": {
"follow-redirects": "^1.15.0",
"form-data": "^4.0.0",
@ -3748,7 +3690,6 @@
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
"dev": true,
"requires": {
"delayed-stream": "~1.0.0"
}
@ -3845,8 +3786,7 @@
"deepmerge": {
"version": "4.2.2",
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz",
"integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==",
"dev": true
"integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg=="
},
"defined": {
"version": "1.0.1",
@ -3856,8 +3796,7 @@
"delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
"dev": true
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
},
"detective": {
"version": "5.2.1",
@ -3998,14 +3937,12 @@
"follow-redirects": {
"version": "1.15.2",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
"dev": true
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
},
"form-data": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
"dev": true,
"requires": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
@ -4180,8 +4117,7 @@
"lodash.isequal": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",
"integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==",
"dev": true
"integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ=="
},
"loose-envify": {
"version": "1.4.0",
@ -4231,14 +4167,12 @@
"mime-db": {
"version": "1.52.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
"dev": true
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="
},
"mime-types": {
"version": "2.1.35",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
"dev": true,
"requires": {
"mime-db": "1.52.0"
}
@ -4302,8 +4236,7 @@
"nprogress": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/nprogress/-/nprogress-0.2.0.tgz",
"integrity": "sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==",
"dev": true
"integrity": "sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA=="
},
"object-assign": {
"version": "4.1.1",
@ -4412,8 +4345,7 @@
"proxy-from-env": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
"dev": true
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
},
"qs": {
"version": "6.11.0",

@ -6,9 +6,6 @@
},
"devDependencies": {
"@headlessui/react": "^1.4.2",
"@inertiajs/inertia": "^0.11.0",
"@inertiajs/inertia-react": "^0.8.1",
"@inertiajs/progress": "^0.2.6",
"@tailwindcss/forms": "^0.5.3",
"@vitejs/plugin-react": "^3.0.0",
"autoprefixer": "^10.4.12",
@ -22,6 +19,7 @@
"vite": "^4.0.0"
},
"dependencies": {
"@inertiajs/react": "^1.0.0",
"daisyui": "^2.46.1",
"moment": "^2.29.4",
"qs": "^6.11.0",

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
import { useState, createContext, useContext, Fragment } from 'react';
import { Link } from '@inertiajs/inertia-react';
import { Link } from '@inertiajs/react';
import { Transition } from '@headlessui/react';
const DropDownContext = createContext();

@ -1,4 +1,4 @@
import { Link } from '@inertiajs/inertia-react';
import { Link } from '@inertiajs/react';
export default function NavLink({ href, active, children }) {
return (

@ -1,4 +1,4 @@
import { Inertia } from "@inertiajs/inertia";
import { router } from '@inertiajs/react'
import qs from "qs";
const PageLink = ({ active, label, url, params }) => {
@ -8,7 +8,7 @@ const PageLink = ({ active, label, url, params }) => {
}`;
const onClick = () => {
Inertia.get(
router.get(
`${url}&${qs.stringify(params)}`,
{},
{

@ -1,4 +1,4 @@
import { Link } from '@inertiajs/inertia-react';
import { Link } from '@inertiajs/react';
export default function ResponsiveNavLink({ method = 'get', as = 'a', href, active = false, children }) {
return (

@ -3,7 +3,7 @@ import ApplicationLogo from '@/Components/ApplicationLogo';
import Dropdown from '@/Components/Dropdown';
import NavLink from '@/Components/NavLink';
import ResponsiveNavLink from '@/Components/ResponsiveNavLink';
import { Link } from '@inertiajs/inertia-react';
import { Link } from '@inertiajs/react';
import { ToastContainer } from 'react-toastify';
export default function Authenticated({ auth, children }) {

@ -1,5 +1,5 @@
import ApplicationLogo from '@/Components/ApplicationLogo';
import { Link } from '@inertiajs/inertia-react';
import { Link } from '@inertiajs/react';
export default function Guest({ children }) {
return (

@ -4,7 +4,7 @@ import InputError from '@/Components/InputError';
import InputLabel from '@/Components/InputLabel';
import PrimaryButton from '@/Components/PrimaryButton';
import TextInput from '@/Components/TextInput';
import { Head, useForm } from '@inertiajs/inertia-react';
import { Head, useForm } from '@inertiajs/react';
export default function ConfirmPassword() {
const { data, setData, post, processing, errors, reset } = useForm({

@ -2,7 +2,7 @@ import GuestLayout from '@/Layouts/GuestLayout';
import InputError from '@/Components/InputError';
import PrimaryButton from '@/Components/PrimaryButton';
import TextInput from '@/Components/TextInput';
import { Head, useForm } from '@inertiajs/inertia-react';
import { Head, useForm } from '@inertiajs/react';
export default function ForgotPassword({ status }) {
const { data, setData, post, processing, errors } = useForm({

@ -3,7 +3,7 @@ import Checkbox from '@/Components/Checkbox';
import GuestLayout from '@/Layouts/GuestLayout';
import InputError from '@/Components/InputError';
import InputLabel from '@/Components/InputLabel';
import { Head, useForm } from '@inertiajs/inertia-react';
import { Head, useForm } from '@inertiajs/react';
export default function Login({ status }) {
const { data, setData, post, processing, errors, reset } = useForm({

@ -4,7 +4,7 @@ import InputError from '@/Components/InputError';
import InputLabel from '@/Components/InputLabel';
import PrimaryButton from '@/Components/PrimaryButton';
import TextInput from '@/Components/TextInput';
import { Head, Link, useForm } from '@inertiajs/inertia-react';
import { Head, Link, useForm } from '@inertiajs/react';
export default function Register() {
const { data, setData, post, processing, errors, reset } = useForm({

@ -4,7 +4,7 @@ import InputError from '@/Components/InputError';
import InputLabel from '@/Components/InputLabel';
import PrimaryButton from '@/Components/PrimaryButton';
import TextInput from '@/Components/TextInput';
import { Head, useForm } from '@inertiajs/inertia-react';
import { Head, useForm } from '@inertiajs/react';
export default function ResetPassword({ token, email }) {
const { data, setData, post, processing, errors, reset } = useForm({

@ -1,6 +1,6 @@
import GuestLayout from '@/Layouts/GuestLayout';
import PrimaryButton from '@/Components/PrimaryButton';
import { Head, Link, useForm } from '@inertiajs/inertia-react';
import { Head, Link, useForm } from '@inertiajs/react';
export default function VerifyEmail({ status }) {
const { post, processing } = useForm();

@ -1,4 +1,4 @@
import { useForm } from "@inertiajs/inertia-react";
import { useForm } from "@inertiajs/react";
import React, { useEffect } from "react";
import { formatDate } from "@/Utils";

@ -1,4 +1,4 @@
import { useForm } from "@inertiajs/inertia-react";
import { useForm } from "@inertiajs/react";
import React, { useRef } from "react";
export default function ImportModal(props) {

@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react'
import { usePrevious } from "react-use";
import { Inertia } from "@inertiajs/inertia";
import { router } from '@inertiajs/react'
import qs from 'qs'
import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout';
@ -11,7 +11,7 @@ import DetailModal from './DetailModal';
import ImportModal from './ImportModal';
import { DatePickerRangeInput } from "@/Components/DatePickerInput";
import { useModalState } from "@/Hook";
import { Head } from '@inertiajs/inertia-react';
import { Head } from '@inertiajs/react';
import { formatDate } from "@/Utils";
import { toast } from 'react-toastify';
@ -64,7 +64,7 @@ export default function Dashboard(props) {
const onDelete = () => {
const booking = confirmModal.data;
if (booking != null) {
Inertia.delete(
router.delete(
route("monitoring-booking.destroy", booking), {
onSuccess: () => toast.success("item deleted"),
}
@ -142,7 +142,7 @@ export default function Dashboard(props) {
useEffect(() => {
if (preValue) {
Inertia.get(
router.get(
route(route().current()),
{ q: search, startDate: filterDate[0], endDate: filterDate[1], limit },
{

@ -1,5 +1,5 @@
import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout';
import { Head } from '@inertiajs/inertia-react';
import { Head } from '@inertiajs/react';
export default function Dashboard(props) {
return (

@ -1,6 +1,6 @@
import React, { useEffect } from "react";
import Modal from "@/Components/Modal";
import { useForm, usePage } from "@inertiajs/inertia-react";
import { useForm, usePage } from "@inertiajs/react";
import { formatDate, formatIDR } from "@/Utils";
export default function FormModal(props) {

@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react";
import Modal from "@/Components/Modal";
import InputError from "@/Components/InputError";
import { DatePickerInput } from "@/Components/DatePickerInput";
import { useForm, usePage } from "@inertiajs/inertia-react";
import { useForm, usePage } from "@inertiajs/react";
import { toast } from "react-toastify";
export default function FormModal(props) {

@ -1,9 +1,9 @@
import React, { useState, useEffect, useRef } from 'react';
import ReactToPrint from 'react-to-print';
import qs from 'qs'
import { Inertia } from '@inertiajs/inertia';
import { Link } from '@inertiajs/inertia-react';
import { Head } from '@inertiajs/inertia-react';
import { router } from '@inertiajs/react';
import { Link } from '@inertiajs/react';
import { Head } from '@inertiajs/react';
import { usePrevious } from 'react-use';
import { toast } from 'react-toastify';
@ -116,7 +116,7 @@ export default function Dashboard(props) {
const onDelete = () => {
const expense = confirmModal.data;
if (expense != null) {
Inertia.delete(
router.delete(
route("expenses.destroy", expense), {
onSuccess: () => toast.success("item deleted"),
}

@ -1,6 +1,6 @@
import React, { useState, useEffect, useRef } from "react";
import ReactToPrint from "react-to-print";
import { Head, useForm } from "@inertiajs/inertia-react";
import { Head, useForm } from "@inertiajs/react";
import styled from "styled-components";
import { formatIDR } from "@/Utils";

@ -1,7 +1,7 @@
import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout';
import UpdatePasswordForm from './Partials/UpdatePasswordForm';
import UpdateProfileInformationForm from './Partials/UpdateProfileInformationForm';
import { Head } from '@inertiajs/inertia-react';
import { Head } from '@inertiajs/react';
export default function Edit({ auth, mustVerifyEmail, status }) {
return (

@ -3,7 +3,7 @@ import InputError from '@/Components/InputError';
import InputLabel from '@/Components/InputLabel';
import PrimaryButton from '@/Components/PrimaryButton';
import TextInput from '@/Components/TextInput';
import { useForm } from '@inertiajs/inertia-react';
import { useForm } from '@inertiajs/react';
import { Transition } from '@headlessui/react';
export default function UpdatePasswordForm({ className }) {

@ -2,7 +2,7 @@ import InputError from '@/Components/InputError';
import InputLabel from '@/Components/InputLabel';
import PrimaryButton from '@/Components/PrimaryButton';
import TextInput from '@/Components/TextInput';
import { Link, useForm, usePage } from '@inertiajs/inertia-react';
import { Link, useForm, usePage } from '@inertiajs/react';
import { Transition } from '@headlessui/react';
export default function UpdateProfileInformation({ mustVerifyEmail, status, className }) {

@ -1,4 +1,4 @@
import { Link, Head } from '@inertiajs/inertia-react';
import { Link, Head } from '@inertiajs/react';
export default function Welcome(props) {
return (

@ -2,8 +2,7 @@ import './bootstrap';
import '../css/app.css';
import { createRoot } from 'react-dom/client';
import { createInertiaApp } from '@inertiajs/inertia-react';
import { InertiaProgress } from '@inertiajs/progress';
import { createInertiaApp } from '@inertiajs/react'
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
import "react-toastify/dist/ReactToastify.css";
@ -15,6 +14,7 @@ createInertiaApp({
root.render(<App {...props} />);
},
progress: {
color: '#4B5563',
},
});
InertiaProgress.init({ color: '#4B5563' });

Loading…
Cancel
Save