Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
Add dashboard widget model and update dashboard model
Turtuvshin2e8a6de7ea64
diff --git a/.DS_Store b/.DS_Storeindex a7f7186e..15831578 100644Binary files a/.DS_Store and b/.DS_Store differdiff --git a/api/composer.lock b/api/composer.lockindex 701461e9..ed403f0e 100644--- a/api/composer.lock+++ b/api/composer.lock@@ -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": "e418b5c8d6080bdda1197266367e75c0",+ "content-hash": "f9c4a3e37aea8ef1739679c50f2fe9e9","packages": [{"name": "aloha/twilio",@@ -192,16 +192,16 @@},{"name": "aws/aws-sdk-php",- "version": "3.295.10",+ "version": "3.296.8","source": {"type": "git","url": "https://github.com/aws/aws-sdk-php.git",- "reference": "4d8b4f47639275248e212bd61b6bc51f9dd709f2"+ "reference": "f84fe470709e5ab9515649a1a0891e279693d1b3"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/4d8b4f47639275248e212bd61b6bc51f9dd709f2",- "reference": "4d8b4f47639275248e212bd61b6bc51f9dd709f2",+ "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/f84fe470709e5ab9515649a1a0891e279693d1b3",+ "reference": "f84fe470709e5ab9515649a1a0891e279693d1b3","shasum": ""},"require": {@@ -281,9 +281,9 @@"support": {"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80","issues": "https://github.com/aws/aws-sdk-php/issues",- "source": "https://github.com/aws/aws-sdk-php/tree/3.295.10"+ "source": "https://github.com/aws/aws-sdk-php/tree/3.296.8"},- "time": "2024-01-11T19:04:31+00:00"+ "time": "2024-01-23T20:32:59+00:00"},{"name": "aws/aws-sdk-php-laravel",@@ -1388,16 +1388,16 @@},{"name": "doctrine/inflector",- "version": "2.0.8",+ "version": "2.0.9","source": {"type": "git","url": "https://github.com/doctrine/inflector.git",- "reference": "f9301a5b2fb1216b2b08f02ba04dc45423db6bff"+ "reference": "2930cd5ef353871c821d5c43ed030d39ac8cfe65"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/doctrine/inflector/zipball/f9301a5b2fb1216b2b08f02ba04dc45423db6bff",- "reference": "f9301a5b2fb1216b2b08f02ba04dc45423db6bff",+ "url": "https://api.github.com/repos/doctrine/inflector/zipball/2930cd5ef353871c821d5c43ed030d39ac8cfe65",+ "reference": "2930cd5ef353871c821d5c43ed030d39ac8cfe65","shasum": ""},"require": {@@ -1459,7 +1459,7 @@],"support": {"issues": "https://github.com/doctrine/inflector/issues",- "source": "https://github.com/doctrine/inflector/tree/2.0.8"+ "source": "https://github.com/doctrine/inflector/tree/2.0.9"},"funding": [{@@ -1475,7 +1475,7 @@"type": "tidelift"}],- "time": "2023-06-16T13:40:37+00:00"+ "time": "2024-01-15T18:05:13+00:00"},{"name": "doctrine/lexer",@@ -2072,16 +2072,10 @@{"name": "fleetbase/core-api","version": "1.3.6",- "source": {- "type": "git",- "url": "https://github.com/fleetbase/core-api.git",- "reference": "5b63074b56a11a160beb8e32d6ba2067df80e6e3"- },"dist": {- "type": "zip",- "url": "https://api.github.com/repos/fleetbase/core-api/zipball/5b63074b56a11a160beb8e32d6ba2067df80e6e3",- "reference": "5b63074b56a11a160beb8e32d6ba2067df80e6e3",- "shasum": ""+ "type": "path",+ "url": "../packages/core-api",+ "reference": "532d350428fcfe220ec02b3db2a551bc1499af88"},"require": {"aloha/twilio": "^5.0",@@ -2135,7 +2129,30 @@"Fleetbase\\Seeds\\": "seeds/"}},- "notification-url": "https://packagist.org/downloads/",+ "autoload-dev": {+ "psr-4": {+ "Fleetbase\\Tests\\": "tests/"+ }+ },+ "scripts": {+ "lint": [+ "php-cs-fixer fix -v"+ ],+ "test:lint": [+ "php-cs-fixer fix -v --dry-run"+ ],+ "test:types": [+ "phpstan analyse --ansi --memory-limit=0"+ ],+ "test:unit": [+ "pest --colors=always"+ ],+ "test": [+ "@test:lint",+ "@test:types",+ "@test:unit"+ ]+ },"license": ["MIT"],@@ -2154,25 +2171,17 @@"fleetbase","logistics platform"],- "support": {- "issues": "https://github.com/fleetbase/core-api/issues",- "source": "https://github.com/fleetbase/core-api/tree/v1.3.6"- },- "time": "2024-01-12T09:09:57+00:00"+ "transport-options": {+ "relative": true+ }},{"name": "fleetbase/fleetops-api","version": "0.3.8",- "source": {- "type": "git",- "url": "https://github.com/fleetbase/fleetops.git",- "reference": "d8ddeac118a795d5b7eec88752a5fe542eed4365"- },"dist": {- "type": "zip",- "url": "https://api.github.com/repos/fleetbase/fleetops/zipball/d8ddeac118a795d5b7eec88752a5fe542eed4365",- "reference": "d8ddeac118a795d5b7eec88752a5fe542eed4365",- "shasum": ""+ "type": "path",+ "url": "../packages/fleetops",+ "reference": "fad015fd2844a308c85b1abbff653c6e0f3863e8"},"require": {"barryvdh/laravel-dompdf": "^2.0",@@ -2220,7 +2229,30 @@"Fleetbase\\FleetOps\\": "server/src/"}},- "notification-url": "https://packagist.org/downloads/",+ "autoload-dev": {+ "psr-4": {+ "Fleetbase\\Tests\\": "server/tests/"+ }+ },+ "scripts": {+ "lint": [+ "php-cs-fixer fix -v"+ ],+ "test:lint": [+ "php-cs-fixer fix -v --dry-run"+ ],+ "test:types": [+ "phpstan analyse --ansi --memory-limit=4G"+ ],+ "test:unit": [+ "pest --colors=always"+ ],+ "test": [+ "@test:lint",+ "@test:types",+ "@test:unit"+ ]+ },"license": ["MIT"],@@ -2242,25 +2274,17 @@"last-mile","tms"],- "support": {- "issues": "https://github.com/fleetbase/fleetops/issues",- "source": "https://github.com/fleetbase/fleetops/tree/v0.3.8"- },- "time": "2024-01-12T09:56:24+00:00"+ "transport-options": {+ "relative": true+ }},{"name": "fleetbase/storefront-api","version": "0.2.6",- "source": {- "type": "git",- "url": "https://github.com/fleetbase/storefront.git",- "reference": "1afef1deb719248a817aea23ac5434ff4a7dd1e1"- },"dist": {- "type": "zip",- "url": "https://api.github.com/repos/fleetbase/storefront/zipball/1afef1deb719248a817aea23ac5434ff4a7dd1e1",- "reference": "1afef1deb719248a817aea23ac5434ff4a7dd1e1",- "shasum": ""+ "type": "path",+ "url": "../packages/storefront",+ "reference": "33e614edf544492b063fa11723abf5e5c1d92cb7"},"require": {"fleetbase/core-api": "^1.3.6",@@ -2301,7 +2325,30 @@"Fleetbase\\Storefront\\": "server/src/"}},- "notification-url": "https://packagist.org/downloads/",+ "autoload-dev": {+ "psr-4": {+ "Fleetbase\\Storefront\\Tests\\": "server/tests/"+ }+ },+ "scripts": {+ "lint": [+ "php-cs-fixer fix -v"+ ],+ "test:lint": [+ "php-cs-fixer fix -v --dry-run"+ ],+ "test:types": [+ "phpstan analyse --ansi --memory-limit=0"+ ],+ "test:unit": [+ "pest --colors=always"+ ],+ "test": [+ "@test:lint",+ "@test:types",+ "@test:unit"+ ]+ },"license": ["MIT"],@@ -2323,11 +2370,9 @@"marketplace","storefront"],- "support": {- "issues": "https://github.com/fleetbase/storefront/issues",- "source": "https://github.com/fleetbase/storefront/tree/v0.2.6"- },- "time": "2024-01-12T10:15:42+00:00"+ "transport-options": {+ "relative": true+ }},{"name": "fruitcake/laravel-cors",@@ -2809,16 +2854,16 @@},{"name": "giggsey/libphonenumber-for-php",- "version": "8.13.27",+ "version": "8.13.28","source": {"type": "git","url": "https://github.com/giggsey/libphonenumber-for-php.git",- "reference": "033bea996defd39bddca9de22b9e9dbda419431c"+ "reference": "f508ab946a60c1470c92e33cfc0393a0d580b9a1"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/giggsey/libphonenumber-for-php/zipball/033bea996defd39bddca9de22b9e9dbda419431c",- "reference": "033bea996defd39bddca9de22b9e9dbda419431c",+ "url": "https://api.github.com/repos/giggsey/libphonenumber-for-php/zipball/f508ab946a60c1470c92e33cfc0393a0d580b9a1",+ "reference": "f508ab946a60c1470c92e33cfc0393a0d580b9a1","shasum": ""},"require": {@@ -2877,7 +2922,7 @@"issues": "https://github.com/giggsey/libphonenumber-for-php/issues","source": "https://github.com/giggsey/libphonenumber-for-php"},- "time": "2023-12-19T08:19:08+00:00"+ "time": "2024-01-17T08:09:20+00:00"},{"name": "giggsey/locale",@@ -2993,20 +3038,20 @@},{"name": "google/cloud-core",- "version": "v1.52.11",+ "version": "v1.53.1","source": {"type": "git","url": "https://github.com/googleapis/google-cloud-php-core.git",- "reference": "2e908c1fc3c2af048c77f8cb1f9de3281e31dddb"+ "reference": "4bb40e0cc1839054ea5010321e1105107a3413ce"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/googleapis/google-cloud-php-core/zipball/2e908c1fc3c2af048c77f8cb1f9de3281e31dddb",- "reference": "2e908c1fc3c2af048c77f8cb1f9de3281e31dddb",+ "url": "https://api.github.com/repos/googleapis/google-cloud-php-core/zipball/4bb40e0cc1839054ea5010321e1105107a3413ce",+ "reference": "4bb40e0cc1839054ea5010321e1105107a3413ce","shasum": ""},"require": {- "google/auth": "^1.34.0",+ "google/auth": "^1.34","guzzlehttp/guzzle": "^6.5.8|^7.4.4","guzzlehttp/promises": "^1.4||^2.0","guzzlehttp/psr7": "^2.6",@@ -3017,7 +3062,7 @@},"require-dev": {"erusev/parsedown": "^1.6",- "google/cloud-common-protos": "^0.4",+ "google/cloud-common-protos": "^0.5","google/gax": "^1.26.0","opis/closure": "^3","phpdocumentor/reflection": "^5.0",@@ -3052,26 +3097,26 @@],"description": "Google Cloud PHP shared dependency, providing functionality useful to all components.","support": {- "source": "https://github.com/googleapis/google-cloud-php-core/tree/v1.52.11"+ "source": "https://github.com/googleapis/google-cloud-php-core/tree/v1.53.1"},- "time": "2024-01-05T17:34:35+00:00"+ "time": "2024-01-19T15:59:50+00:00"},{"name": "google/cloud-storage",- "version": "v1.36.1",+ "version": "v1.37.0","source": {"type": "git","url": "https://github.com/googleapis/google-cloud-php-storage.git",- "reference": "6b65c334b8b887cd771bb745ba0a5513ff9191b7"+ "reference": "48489319d931262def899a5b2337b8e514c39d34"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/googleapis/google-cloud-php-storage/zipball/6b65c334b8b887cd771bb745ba0a5513ff9191b7",- "reference": "6b65c334b8b887cd771bb745ba0a5513ff9191b7",+ "url": "https://api.github.com/repos/googleapis/google-cloud-php-storage/zipball/48489319d931262def899a5b2337b8e514c39d34",+ "reference": "48489319d931262def899a5b2337b8e514c39d34","shasum": ""},"require": {- "google/cloud-core": "^1.52.7",+ "google/cloud-core": "^1.53","php": ">=7.4","ramsey/uuid": "^4.2.3"},@@ -3108,9 +3153,9 @@],"description": "Cloud Storage Client for PHP","support": {- "source": "https://github.com/googleapis/google-cloud-php-storage/tree/v1.36.1"+ "source": "https://github.com/googleapis/google-cloud-php-storage/tree/v1.37.0"},- "time": "2024-01-05T17:34:35+00:00"+ "time": "2024-01-12T19:18:38+00:00"},{"name": "graham-campbell/manager",@@ -3977,16 +4022,16 @@},{"name": "jmikola/geojson",- "version": "1.1.2",+ "version": "1.2.0","source": {"type": "git","url": "https://github.com/jmikola/geojson.git",- "reference": "3699d2be8961f2c2f20b33041b6f0608d2cf4332"+ "reference": "e28f3855bb61a91aab32b74c176d76dd0b5658d7"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/jmikola/geojson/zipball/3699d2be8961f2c2f20b33041b6f0608d2cf4332",- "reference": "3699d2be8961f2c2f20b33041b6f0608d2cf4332",+ "url": "https://api.github.com/repos/jmikola/geojson/zipball/e28f3855bb61a91aab32b74c176d76dd0b5658d7",+ "reference": "e28f3855bb61a91aab32b74c176d76dd0b5658d7","shasum": ""},"require": {@@ -4030,9 +4075,9 @@],"support": {"issues": "https://github.com/jmikola/geojson/issues",- "source": "https://github.com/jmikola/geojson/tree/1.1.2"+ "source": "https://github.com/jmikola/geojson/tree/1.2.0"},- "time": "2023-02-20T01:27:38+00:00"+ "time": "2023-12-04T17:19:43+00:00"},{"name": "kreait/firebase-php",@@ -5471,16 +5516,16 @@},{"name": "maatwebsite/excel",- "version": "3.1.51",+ "version": "3.1.52","source": {"type": "git","url": "https://github.com/SpartnerNL/Laravel-Excel.git",- "reference": "6d3c78ce6645abada32e03b40dc7f3c561878bc3"+ "reference": "4471416045dbb869d0a218d2e88441adc362e2b0"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/SpartnerNL/Laravel-Excel/zipball/6d3c78ce6645abada32e03b40dc7f3c561878bc3",- "reference": "6d3c78ce6645abada32e03b40dc7f3c561878bc3",+ "url": "https://api.github.com/repos/SpartnerNL/Laravel-Excel/zipball/4471416045dbb869d0a218d2e88441adc362e2b0",+ "reference": "4471416045dbb869d0a218d2e88441adc362e2b0","shasum": ""},"require": {@@ -5492,6 +5537,7 @@"psr/simple-cache": "^1.0||^2.0||^3.0"},"require-dev": {+ "laravel/scout": "^7.0||^8.0||^9.0||^10.0","orchestra/testbench": "^6.0||^7.0||^8.0","predis/predis": "^1.1"},@@ -5535,7 +5581,7 @@],"support": {"issues": "https://github.com/SpartnerNL/Laravel-Excel/issues",- "source": "https://github.com/SpartnerNL/Laravel-Excel/tree/3.1.51"+ "source": "https://github.com/SpartnerNL/Laravel-Excel/tree/3.1.52"},"funding": [{@@ -5547,7 +5593,7 @@"type": "github"}],- "time": "2023-12-08T12:44:49+00:00"+ "time": "2024-01-16T10:41:30+00:00"},{"name": "maennchen/zipstream-php",@@ -6194,16 +6240,16 @@},{"name": "nesbot/carbon",- "version": "2.72.1",+ "version": "2.72.2","source": {"type": "git","url": "https://github.com/briannesbitt/Carbon.git",- "reference": "2b3b3db0a2d0556a177392ff1a3bf5608fa09f78"+ "reference": "3e7edc41b58d65509baeb0d4a14c8fa41d627130"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/2b3b3db0a2d0556a177392ff1a3bf5608fa09f78",- "reference": "2b3b3db0a2d0556a177392ff1a3bf5608fa09f78",+ "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/3e7edc41b58d65509baeb0d4a14c8fa41d627130",+ "reference": "3e7edc41b58d65509baeb0d4a14c8fa41d627130","shasum": ""},"require": {@@ -6297,7 +6343,7 @@"type": "tidelift"}],- "time": "2023-12-08T23:47:49+00:00"+ "time": "2024-01-19T00:21:53+00:00"},{"name": "nette/caching",@@ -9212,16 +9258,16 @@},{"name": "sentry/sentry",- "version": "4.3.1",+ "version": "4.4.0","source": {"type": "git","url": "https://github.com/getsentry/sentry-php.git",- "reference": "cd89f230bda0833cb9992ebe9a1b7d24d6ee245b"+ "reference": "95a428a59ebddf786a27f09d19ec395a32f62082"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/cd89f230bda0833cb9992ebe9a1b7d24d6ee245b",- "reference": "cd89f230bda0833cb9992ebe9a1b7d24d6ee245b",+ "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/95a428a59ebddf786a27f09d19ec395a32f62082",+ "reference": "95a428a59ebddf786a27f09d19ec395a32f62082","shasum": ""},"require": {@@ -9285,7 +9331,7 @@],"support": {"issues": "https://github.com/getsentry/sentry-php/issues",- "source": "https://github.com/getsentry/sentry-php/tree/4.3.1"+ "source": "https://github.com/getsentry/sentry-php/tree/4.4.0"},"funding": [{@@ -9297,28 +9343,28 @@"type": "custom"}],- "time": "2023-12-22T18:46:49+00:00"+ "time": "2024-01-23T09:49:55+00:00"},{"name": "sentry/sentry-laravel",- "version": "4.1.1",+ "version": "4.1.2","source": {"type": "git","url": "https://github.com/getsentry/sentry-laravel.git",- "reference": "792944c1d0b7342d1635ac6d72fbdc2f32486310"+ "reference": "fa38767be2f14505fd93bfa5acadb9dfec1fdeee"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/getsentry/sentry-laravel/zipball/792944c1d0b7342d1635ac6d72fbdc2f32486310",- "reference": "792944c1d0b7342d1635ac6d72fbdc2f32486310",+ "url": "https://api.github.com/repos/getsentry/sentry-laravel/zipball/fa38767be2f14505fd93bfa5acadb9dfec1fdeee",+ "reference": "fa38767be2f14505fd93bfa5acadb9dfec1fdeee","shasum": ""},"require": {"illuminate/support": "^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0","nyholm/psr7": "^1.0","php": "^7.2 | ^8.0",- "sentry/sentry": "^4.0",- "symfony/psr-http-message-bridge": "^1.0 | ^2.0"+ "sentry/sentry": "^4.3",+ "symfony/psr-http-message-bridge": "^1.0 | ^2.0 | ^6.0 | ^7.0"},"require-dev": {"friendsofphp/php-cs-fixer": "^3.11",@@ -9374,7 +9420,7 @@],"support": {"issues": "https://github.com/getsentry/sentry-laravel/issues",- "source": "https://github.com/getsentry/sentry-laravel/tree/4.1.1"+ "source": "https://github.com/getsentry/sentry-laravel/tree/4.1.2"},"funding": [{@@ -9386,7 +9432,7 @@"type": "custom"}],- "time": "2023-12-12T22:17:13+00:00"+ "time": "2024-01-16T12:46:27+00:00"},{"name": "spatie/enum",@@ -13926,16 +13972,16 @@},{"name": "doctrine/dbal",- "version": "3.7.2",+ "version": "3.7.3","source": {"type": "git","url": "https://github.com/doctrine/dbal.git",- "reference": "0ac3c270590e54910715e9a1a044cc368df282b2"+ "reference": "ce594cbc39a4866c544f1a970d285ff0548221ad"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/doctrine/dbal/zipball/0ac3c270590e54910715e9a1a044cc368df282b2",- "reference": "0ac3c270590e54910715e9a1a044cc368df282b2",+ "url": "https://api.github.com/repos/doctrine/dbal/zipball/ce594cbc39a4866c544f1a970d285ff0548221ad",+ "reference": "ce594cbc39a4866c544f1a970d285ff0548221ad","shasum": ""},"require": {@@ -13951,14 +13997,14 @@"doctrine/coding-standard": "12.0.0","fig/log-test": "^1","jetbrains/phpstorm-stubs": "2023.1",- "phpstan/phpstan": "1.10.42",+ "phpstan/phpstan": "1.10.56","phpstan/phpstan-strict-rules": "^1.5",- "phpunit/phpunit": "9.6.13",+ "phpunit/phpunit": "9.6.15","psalm/plugin-phpunit": "0.18.4","slevomat/coding-standard": "8.13.1",- "squizlabs/php_codesniffer": "3.7.2",- "symfony/cache": "^5.4|^6.0",- "symfony/console": "^4.4|^5.4|^6.0",+ "squizlabs/php_codesniffer": "3.8.1",+ "symfony/cache": "^5.4|^6.0|^7.0",+ "symfony/console": "^4.4|^5.4|^6.0|^7.0","vimeo/psalm": "4.30.0"},"suggest": {@@ -14019,7 +14065,7 @@],"support": {"issues": "https://github.com/doctrine/dbal/issues",- "source": "https://github.com/doctrine/dbal/tree/3.7.2"+ "source": "https://github.com/doctrine/dbal/tree/3.7.3"},"funding": [{@@ -14035,7 +14081,7 @@"type": "tidelift"}],- "time": "2023-11-19T08:06:58+00:00"+ "time": "2024-01-21T07:53:09+00:00"},{"name": "doctrine/deprecations",@@ -15423,16 +15469,16 @@},{"name": "phpunit/phpunit",- "version": "9.6.15",+ "version": "9.6.16","source": {"type": "git","url": "https://github.com/sebastianbergmann/phpunit.git",- "reference": "05017b80304e0eb3f31d90194a563fd53a6021f1"+ "reference": "3767b2c56ce02d01e3491046f33466a1ae60a37f"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/05017b80304e0eb3f31d90194a563fd53a6021f1",- "reference": "05017b80304e0eb3f31d90194a563fd53a6021f1",+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3767b2c56ce02d01e3491046f33466a1ae60a37f",+ "reference": "3767b2c56ce02d01e3491046f33466a1ae60a37f","shasum": ""},"require": {@@ -15506,7 +15552,7 @@"support": {"issues": "https://github.com/sebastianbergmann/phpunit/issues","security": "https://github.com/sebastianbergmann/phpunit/security/policy",- "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.15"+ "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.16"},"funding": [{@@ -15522,7 +15568,7 @@"type": "tidelift"}],- "time": "2023-12-01T16:55:19+00:00"+ "time": "2024-01-19T07:03:14+00:00"},{"name": "sebastian/cli-parser",diff --git a/console/app/components/dashboard.js b/console/app/components/dashboard.jsindex 78fe6019..c44ed2ae 100644--- a/console/app/components/dashboard.js+++ b/console/app/components/dashboard.js@@ -13,12 +13,26 @@ export default class DashboardComponent extends Component {constructor() {super(...arguments);+ console.log(arguments);+this.loadDashboards.perform();}@task *loadDashboards() {- this.dashboards = yield this.store.findAll('dashboard');- this.currentDashboard = this.dashboards[0];+ try {+ this.dashboards = yield this.store.findAll('dashboard');++ const currentDashboard = this.dashboards[0];+ console.log(currentDashboard);++ currentDashboard.widgets = yield this.store.query('dashboard-widget', { params: { dashboard_uuid: currentDashboard.uuid } });+ currentDashboard.widgets = yield this.store.query('dashboard-widget', { dashboard_uuid: currentDashboard.uuid });+ this.currentDashboard = currentDashboard;++ console.log('Current Dashboard: ', this.currentDashboard);+ } catch (error) {+ console.error('Error loading dashboards:', error);+ }}@action selectDashboard(dashboard) {diff --git a/console/app/components/dashboard/create.js b/console/app/components/dashboard/create.jsindex 1f802092..a0348c37 100644--- a/console/app/components/dashboard/create.js+++ b/console/app/components/dashboard/create.js@@ -14,83 +14,8 @@ export default class DashboardCreateComponent extends Component {constructor(owner, { dashboard }) {super(...arguments);- this.dashboard = {- title: 'Fleetops stats',- widgets: [- {- name: 'Blog',- component: FleetbaseBlogComponent,- gridOptions: { w: 8, h: 3, minW: 2 },- options: {},- },- {- name: 'Github',- component: GithubCardComponent,- gridOptions: { w: 4, h: 3, minW: 2 },- options: {},- },- {- name: 'Blog',- component: DashboardCountComponent,- gridOptions: { w: 2, h: 2, minW: 2 },- options: {- format: 'money',- value: '150',- currency: '$',- },- },- {- name: 'Blog',- component: DashboardCountComponent,- gridOptions: { w: 2, h: 2, minW: 2 },- options: {- format: 'money',- value: '150',- currency: '$',- },- },- {- name: 'Blog',- component: DashboardCountComponent,- gridOptions: { w: 2, h: 2, minW: 2 },- options: {- format: 'money',- value: '150',- currency: '$',- },- },- {- name: 'Blog',- component: DashboardCountComponent,- gridOptions: { w: 2, h: 2, minW: 2 },- options: {- format: 'money',- value: '150',- currency: '$',- },- },- {- name: 'Blog',- component: DashboardCountComponent,- gridOptions: { w: 2, h: 2, minW: 2 },- options: {- format: 'money',- value: '150',- currency: '$',- },- },- {- name: 'Blog',- component: DashboardCountComponent,- gridOptions: { w: 2, h: 2, minW: 2 },- options: {- format: 'money',- value: '150',- currency: '$',- },- },- ],- };+ this.dashboard = dashboard;+ console.log('Dashboard in Create: ', this.args.dashboard, dashboard);}@actiondiff --git a/console/app/components/dashboard/widget-panel.hbs b/console/app/components/dashboard/widget-panel.hbsindex fb2581e6..47bf443e 100644--- a/console/app/components/dashboard/widget-panel.hbs+++ b/console/app/components/dashboard/widget-panel.hbs@@ -7,22 +7,6 @@</Overlay::Header><Overlay::Body @wrapperClass="new-service-rate-overlay-body px-4 space-y-4 pt-4" @increaseInnerBodyHeightBy={{1000}}>- <GridStack @options={{hash float=true animate=true}} @onChange={{this.onChangeGrid}} @onSetupDragIn={{this.onDragToDashboard}} as |grid|>- {{#each this.availableWidgets as |widget|}}- <GridStackItem @options={{hash w=4 h=1}}>- <div- class="flex flex-col items-center justify-center rounded-lg border border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-800 shadow-sm mr-1"- {{on "click" (fn this.addWidgetToDashboard widget)}}- >- <p class="text-lg font-bold dark:text-gray-100 text-black p-4">- {{widget.name}}- widget- </p>- </div>- </GridStackItem>- {{/each}}- </GridStack>-<div class="grid grid-cols-3 gap-1 text-xs dark:text-gray-100">{{#each this.availableWidgets as |widget|}}<GridStackItem @options={{widget.gridOptions}}>diff --git a/console/app/components/dashboard/widget-panel.js b/console/app/components/dashboard/widget-panel.jsindex 0da3e3ca..ec2158da 100644--- a/console/app/components/dashboard/widget-panel.js+++ b/console/app/components/dashboard/widget-panel.js@@ -15,6 +15,8 @@ export default class DashboardWidgetPanelComponent extends Component {this.availableWidgets = this.universe.getWidgets();this.dashboard = dashboard;++ console.log(this.dashboard, dashboard, arguments);}/**@@ -49,10 +51,4 @@ export default class DashboardWidgetPanelComponent extends Component {@action onDragToDashboard(item) {console.log('Event: ', item);}-- myClone(event) {- const el = event.target.cloneNode(true);- el.setAttribute('gs-id', 'foo'); // TEST why clone element is not used directly on drop #2231- return el;- }}diff --git a/console/app/models/dashboard-widget.js b/console/app/models/dashboard-widget.jsindex 85559a0b..a97a2dc1 100644--- a/console/app/models/dashboard-widget.js+++ b/console/app/models/dashboard-widget.js@@ -1,3 +1,10 @@-import Model from '@ember-data/model';+import Model, { attr, belongsTo } from '@ember-data/model';-export default class DashboardWidgetModel extends Model {}+export default class DashboardWidgetModel extends Model {+ @attr('string') name;+ @attr('string') component;+ @attr('object') grid_options;+ @attr('object') options;+ @belongsTo('dashboard') dashboard;+ @attr('string') dashboard_uuid;+}diff --git a/console/app/models/dashboard.js b/console/app/models/dashboard.jsindex e987d7da..d2da7e9d 100644--- a/console/app/models/dashboard.js+++ b/console/app/models/dashboard.js@@ -1,3 +1,19 @@-import Model from '@ember-data/model';+import Model, { attr, hasMany } from '@ember-data/model';+import { getOwner } from '@ember/application';-export default class DashboardModel extends Model {}+export default class DashboardModel extends Model {+ @attr('string') name;+ @hasMany('dashboard-widget') widgets;++ addWidget(widget) {+ const owner = getOwner(this);+ const store = owner.lookup('service:store');++ // create widget model instance+ const widgetRecord = store.createRecord('dashboard-widget', widget);++ widgetRecord.save().then((widgetRecord) => {+ this.widgets.pushObject(widgetRecord);+ });+ }+}diff --git a/docker/.DS_Store b/docker/.DS_Storeindex b8fb292f..77f68155 100644Binary files a/docker/.DS_Store and b/docker/.DS_Store differdiff --git a/packages/.DS_Store b/packages/.DS_Storenew file mode 100644index 00000000..d868f2c4Binary files /dev/null and b/packages/.DS_Store differdiff --git a/packages/core-api b/packages/core-apiindex 5b63074b..567a6ebf 160000--- a/packages/core-api+++ b/packages/core-api@@ -1 +1 @@-Subproject commit 5b63074b56a11a160beb8e32d6ba2067df80e6e3+Subproject commit 567a6ebf409b9fe6177863dcdcbe2ee448518400