diff --git a/source/packages/com_mokosuitelibrary/admin/access.xml b/source/packages/com_mokosuitelibrary/admin/access.xml new file mode 100644 index 0000000..f8f2236 --- /dev/null +++ b/source/packages/com_mokosuitelibrary/admin/access.xml @@ -0,0 +1 @@ +
diff --git a/source/packages/com_mokosuitelibrary/admin/config.xml b/source/packages/com_mokosuitelibrary/admin/config.xml new file mode 100644 index 0000000..afabf44 --- /dev/null +++ b/source/packages/com_mokosuitelibrary/admin/config.xml @@ -0,0 +1 @@ +
diff --git a/source/packages/com_mokosuitelibrary/admin/services/provider.php b/source/packages/com_mokosuitelibrary/admin/services/provider.php new file mode 100644 index 0000000..ae2e203 --- /dev/null +++ b/source/packages/com_mokosuitelibrary/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_mokosuitelibrary/admin/src/Controller/DisplayController.php b/source/packages/com_mokosuitelibrary/admin/src/Controller/DisplayController.php new file mode 100644 index 0000000..19aded5 --- /dev/null +++ b/source/packages/com_mokosuitelibrary/admin/src/Controller/DisplayController.php @@ -0,0 +1,7 @@ + 'ok']; } +} diff --git a/source/packages/com_mokosuitelibrary/admin/src/View/LibraryCatalog/HtmlView.php b/source/packages/com_mokosuitelibrary/admin/src/View/LibraryCatalog/HtmlView.php new file mode 100644 index 0000000..c72dc6b --- /dev/null +++ b/source/packages/com_mokosuitelibrary/admin/src/View/LibraryCatalog/HtmlView.php @@ -0,0 +1,11 @@ +

LibraryCatalog

Coming soon.

diff --git a/source/packages/com_mokosuitelibrary/admin/tmpl/librarycheckouts/default.php b/source/packages/com_mokosuitelibrary/admin/tmpl/librarycheckouts/default.php new file mode 100644 index 0000000..3b669f8 --- /dev/null +++ b/source/packages/com_mokosuitelibrary/admin/tmpl/librarycheckouts/default.php @@ -0,0 +1 @@ +

LibraryCheckouts

Coming soon.

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

LibraryDashboard

Coming soon.

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

LibraryFines

Coming soon.

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

LibraryPatrons

Coming soon.

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

LibraryReservations

Coming soon.

diff --git a/source/packages/com_mokosuitelibrary/mokosuitelibrary.xml b/source/packages/com_mokosuitelibrary/mokosuitelibrary.xml new file mode 100644 index 0000000..418596a --- /dev/null +++ b/source/packages/com_mokosuitelibrary/mokosuitelibrary.xml @@ -0,0 +1,14 @@ + + + MokoSuite Library + Moko Consulting + 2026-06-23 + Copyright (C) 2026 Moko Consulting. + GPL-3.0-or-later + 01.00.00 + Moko\Component\MokoSuiteLibrary + + servicessrctmpl + COM_MOKOSUITELIBRARY + + diff --git a/source/packages/plg_webservices_mokosuitelibrary/mokosuitelibrary.xml b/source/packages/plg_webservices_mokosuitelibrary/mokosuitelibrary.xml new file mode 100644 index 0000000..c7634c1 --- /dev/null +++ b/source/packages/plg_webservices_mokosuitelibrary/mokosuitelibrary.xml @@ -0,0 +1,10 @@ + + + Web Services - MokoSuite Library + mokosuitelibrary + Moko Consulting + 01.00.00 + GPL-3.0-or-later + Moko\Plugin\WebServices\MokoSuiteLibrary + srcservices + diff --git a/source/packages/plg_webservices_mokosuitelibrary/services/provider.php b/source/packages/plg_webservices_mokosuitelibrary/services/provider.php new file mode 100644 index 0000000..79457e0 --- /dev/null +++ b/source/packages/plg_webservices_mokosuitelibrary/services/provider.php @@ -0,0 +1,15 @@ +set(PluginInterface::class, function (Container $container) { + return new MokoSuiteLibrary($container->get(DispatcherInterface::class), (array) PluginHelper::getPlugin('webservices', 'mokosuitelibrary')); + }); + } +}; diff --git a/source/packages/plg_webservices_mokosuitelibrary/src/Extension/MokoSuiteLibrary.php b/source/packages/plg_webservices_mokosuitelibrary/src/Extension/MokoSuiteLibrary.php new file mode 100644 index 0000000..45b2761 --- /dev/null +++ b/source/packages/plg_webservices_mokosuitelibrary/src/Extension/MokoSuiteLibrary.php @@ -0,0 +1,18 @@ + 'onBeforeApiRoute']; + } + public function onBeforeApiRoute(&$event): void { + $router = $event->getArgument('router'); + $router->createCRUDRoutes('v1/mokosuitelibrary/items', 'items', ['component' => 'com_mokosuitelibrary']); + $router->createCRUDRoutes('v1/mokosuitelibrary/patrons', 'patrons', ['component' => 'com_mokosuitelibrary']); + $router->createCRUDRoutes('v1/mokosuitelibrary/checkouts', 'checkouts', ['component' => 'com_mokosuitelibrary']); + $router->createCRUDRoutes('v1/mokosuitelibrary/reservations', 'reservations', ['component' => 'com_mokosuitelibrary']); + $router->createCRUDRoutes('v1/mokosuitelibrary/fines', 'fines', ['component' => 'com_mokosuitelibrary']); + } +}