diff --git a/source/packages/com_mokosuiteauto/admin/access.xml b/source/packages/com_mokosuiteauto/admin/access.xml new file mode 100644 index 0000000..f554fd4 --- /dev/null +++ b/source/packages/com_mokosuiteauto/admin/access.xml @@ -0,0 +1 @@ +
diff --git a/source/packages/com_mokosuiteauto/admin/config.xml b/source/packages/com_mokosuiteauto/admin/config.xml new file mode 100644 index 0000000..afabf44 --- /dev/null +++ b/source/packages/com_mokosuiteauto/admin/config.xml @@ -0,0 +1 @@ +
diff --git a/source/packages/com_mokosuiteauto/admin/services/provider.php b/source/packages/com_mokosuiteauto/admin/services/provider.php new file mode 100644 index 0000000..ae2e203 --- /dev/null +++ b/source/packages/com_mokosuiteauto/admin/services/provider.php @@ -0,0 +1,17 @@ +set(ComponentInterface::class, function (Container $container) { + $c = new MVCComponent($container->get(ComponentDispatcherFactoryInterface::class)); + $c->setMVCFactory($container->get(MVCFactoryInterface::class)); + return $c; + }); + } +}; diff --git a/source/packages/com_mokosuiteauto/admin/src/Controller/DisplayController.php b/source/packages/com_mokosuiteauto/admin/src/Controller/DisplayController.php new file mode 100644 index 0000000..505af4e --- /dev/null +++ b/source/packages/com_mokosuiteauto/admin/src/Controller/DisplayController.php @@ -0,0 +1,7 @@ + 'ok']; } +} diff --git a/source/packages/com_mokosuiteauto/admin/src/View/AutoDashboard/HtmlView.php b/source/packages/com_mokosuiteauto/admin/src/View/AutoDashboard/HtmlView.php new file mode 100644 index 0000000..b6d7ff7 --- /dev/null +++ b/source/packages/com_mokosuiteauto/admin/src/View/AutoDashboard/HtmlView.php @@ -0,0 +1,11 @@ +

AutoDashboard

Coming soon.

diff --git a/source/packages/com_mokosuiteauto/admin/tmpl/autodeals/default.php b/source/packages/com_mokosuiteauto/admin/tmpl/autodeals/default.php new file mode 100644 index 0000000..8f139e9 --- /dev/null +++ b/source/packages/com_mokosuiteauto/admin/tmpl/autodeals/default.php @@ -0,0 +1 @@ +

AutoDeals

Coming soon.

diff --git a/source/packages/com_mokosuiteauto/admin/tmpl/autoinventory/default.php b/source/packages/com_mokosuiteauto/admin/tmpl/autoinventory/default.php new file mode 100644 index 0000000..9fce410 --- /dev/null +++ b/source/packages/com_mokosuiteauto/admin/tmpl/autoinventory/default.php @@ -0,0 +1 @@ +

AutoInventory

Coming soon.

diff --git a/source/packages/com_mokosuiteauto/admin/tmpl/autoservicedept/default.php b/source/packages/com_mokosuiteauto/admin/tmpl/autoservicedept/default.php new file mode 100644 index 0000000..d59cf5e --- /dev/null +++ b/source/packages/com_mokosuiteauto/admin/tmpl/autoservicedept/default.php @@ -0,0 +1 @@ +

AutoServiceDept

Coming soon.

diff --git a/source/packages/com_mokosuiteauto/admin/tmpl/autotestdrives/default.php b/source/packages/com_mokosuiteauto/admin/tmpl/autotestdrives/default.php new file mode 100644 index 0000000..396f7d2 --- /dev/null +++ b/source/packages/com_mokosuiteauto/admin/tmpl/autotestdrives/default.php @@ -0,0 +1 @@ +

AutoTestDrives

Coming soon.

diff --git a/source/packages/com_mokosuiteauto/admin/tmpl/autotradeins/default.php b/source/packages/com_mokosuiteauto/admin/tmpl/autotradeins/default.php new file mode 100644 index 0000000..6d20afa --- /dev/null +++ b/source/packages/com_mokosuiteauto/admin/tmpl/autotradeins/default.php @@ -0,0 +1 @@ +

AutoTradeIns

Coming soon.

diff --git a/source/packages/com_mokosuiteauto/mokosuiteauto.xml b/source/packages/com_mokosuiteauto/mokosuiteauto.xml new file mode 100644 index 0000000..8d0a2ee --- /dev/null +++ b/source/packages/com_mokosuiteauto/mokosuiteauto.xml @@ -0,0 +1,14 @@ + + + MokoSuite Auto + Moko Consulting + 2026-06-23 + Copyright (C) 2026 Moko Consulting. + GPL-3.0-or-later + 01.00.00 + Moko\Component\MokoSuiteAuto + + servicessrctmpl + COM_MOKOSUITEAUTO + + diff --git a/source/packages/plg_webservices_mokosuiteauto/mokosuiteauto.xml b/source/packages/plg_webservices_mokosuiteauto/mokosuiteauto.xml new file mode 100644 index 0000000..7cfe07e --- /dev/null +++ b/source/packages/plg_webservices_mokosuiteauto/mokosuiteauto.xml @@ -0,0 +1,10 @@ + + + Web Services - MokoSuite Auto + mokosuiteauto + Moko Consulting + 01.00.00 + GPL-3.0-or-later + Moko\Plugin\WebServices\MokoSuiteAuto + srcservices + diff --git a/source/packages/plg_webservices_mokosuiteauto/services/provider.php b/source/packages/plg_webservices_mokosuiteauto/services/provider.php new file mode 100644 index 0000000..82539ae --- /dev/null +++ b/source/packages/plg_webservices_mokosuiteauto/services/provider.php @@ -0,0 +1,15 @@ +set(PluginInterface::class, function (Container $container) { + return new MokoSuiteAuto($container->get(DispatcherInterface::class), (array) PluginHelper::getPlugin('webservices', 'mokosuiteauto')); + }); + } +}; diff --git a/source/packages/plg_webservices_mokosuiteauto/src/Extension/MokoSuiteAuto.php b/source/packages/plg_webservices_mokosuiteauto/src/Extension/MokoSuiteAuto.php new file mode 100644 index 0000000..9bdf5a9 --- /dev/null +++ b/source/packages/plg_webservices_mokosuiteauto/src/Extension/MokoSuiteAuto.php @@ -0,0 +1,19 @@ + 'onBeforeApiRoute']; + } + public function onBeforeApiRoute(&$event): void { + $router = $event->getArgument('router'); + $router->createCRUDRoutes('v1/mokosuiteauto/vehicles', 'vehicles', ['component' => 'com_mokosuiteauto']); + $router->createCRUDRoutes('v1/mokosuiteauto/deals', 'deals', ['component' => 'com_mokosuiteauto']); + $router->createCRUDRoutes('v1/mokosuiteauto/tradeins', 'tradeins', ['component' => 'com_mokosuiteauto']); + $router->createCRUDRoutes('v1/mokosuiteauto/test_drives', 'test_drives', ['component' => 'com_mokosuiteauto']); + $router->createCRUDRoutes('v1/mokosuiteauto/financing', 'financing', ['component' => 'com_mokosuiteauto']); + $router->createCRUDRoutes('v1/mokosuiteauto/service_orders', 'service_orders', ['component' => 'com_mokosuiteauto']); + } +}