From 2b688e70f446af7f2384f1377aceaa1475e32950 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Mon, 9 Jan 2023 20:24:11 +0100 Subject: [PATCH 01/25] Create composer.json --- packages/publications/composer.json | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 packages/publications/composer.json diff --git a/packages/publications/composer.json b/packages/publications/composer.json new file mode 100644 index 00000000000..6376c58e2b2 --- /dev/null +++ b/packages/publications/composer.json @@ -0,0 +1,35 @@ +{ + "name": "hyde/publications", + "description": "HydePHP Publications", + "keywords": [ + "hyde", + "hydephp", + "publications" + ], + "homepage": "https://github.com/hyde/publications", + "license": "MIT", + "type": "library", + "authors": [ + { + "name": "Caen De Silva", + "email": "caen@desilva.se", + "role": "Developer" + } + ], + "require": { + "php": "^8.0", + "illuminate/support": "^9.5" + }, + "autoload": { + "psr-4": { + "Hyde\\Publications\\": "src" + } + }, + "extra": { + "laravel": { + "providers": [ + "Hyde\\Publications\\PublicationsServiceProvider" + ] + } + } +} From 0c589a9a9735daa750ee1e57109ed7b2dce221c1 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Mon, 9 Jan 2023 20:24:14 +0100 Subject: [PATCH 02/25] Create README.md --- packages/publications/README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 packages/publications/README.md diff --git a/packages/publications/README.md b/packages/publications/README.md new file mode 100644 index 00000000000..8df8563df4f --- /dev/null +++ b/packages/publications/README.md @@ -0,0 +1 @@ +# hyde/publications From 836665b7051417ac9b1c731308a9f01ed8d2247f Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Mon, 9 Jan 2023 20:24:17 +0100 Subject: [PATCH 03/25] Create LICENSE.md --- packages/publications/LICENSE.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/publications/LICENSE.md diff --git a/packages/publications/LICENSE.md b/packages/publications/LICENSE.md new file mode 100644 index 00000000000..f9d246d3801 --- /dev/null +++ b/packages/publications/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Caen De Silva + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file From 3bb56ab4223c288b2452493039bb0756005a2107 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Mon, 9 Jan 2023 20:25:35 +0100 Subject: [PATCH 04/25] Create PublicationsServiceProvider.php --- .../src/PublicationsServiceProvider.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 packages/publications/src/PublicationsServiceProvider.php diff --git a/packages/publications/src/PublicationsServiceProvider.php b/packages/publications/src/PublicationsServiceProvider.php new file mode 100644 index 00000000000..817bf0ad4c0 --- /dev/null +++ b/packages/publications/src/PublicationsServiceProvider.php @@ -0,0 +1,26 @@ + Date: Mon, 9 Jan 2023 20:27:48 +0100 Subject: [PATCH 05/25] Move classes in publications feature namespace to publications package --- .../publications/pagination-navigation.blade.php | 2 +- .../views/layouts/publication_list.blade.php | 2 +- .../layouts/publication_paginated_list.blade.php | 2 +- .../Console/Commands/MakePublicationCommand.php | 14 +++++++------- .../Console/Commands/MakePublicationTagCommand.php | 4 ++-- .../Commands/MakePublicationTypeCommand.php | 6 +++--- .../Console/Commands/SeedPublicationCommand.php | 8 ++++---- .../Commands/ValidatePublicationsCommand.php | 6 +++--- .../framework/src/Foundation/PageCollection.php | 6 +++--- .../Actions/CreatesNewPublicationPage.php | 10 +++++----- .../Actions/CreatesNewPublicationType.php | 2 +- .../Framework/Actions/PublicationPageCompiler.php | 2 +- .../Framework/Actions/SeedsPublicationFiles.php | 6 +++--- .../src/Framework/Actions/SourceFileParser.php | 2 +- packages/framework/src/Pages/PublicationPage.php | 2 +- .../Actions/CreatesNewPublicationPageTest.php | 6 +++--- .../Actions/PublicationPageCompilerTest.php | 2 +- .../Feature/Actions/SeedsPublicationFilesTest.php | 4 ++-- .../Commands/MakePublicationTypeCommandTest.php | 4 ++-- .../Commands/SeedPublicationCommandTest.php | 2 +- .../framework/tests/Feature/PageCollectionTest.php | 2 +- packages/framework/tests/Feature/PaginatorTest.php | 4 ++-- .../Feature/PublicationFieldDefinitionTest.php | 6 +++--- .../Feature/PublicationFieldTypesEnumTest.php | 6 +++--- .../tests/Feature/PublicationFieldValueTest.php | 8 ++++---- .../tests/Feature/PublicationListPageTest.php | 6 +++--- .../tests/Feature/PublicationPageTest.php | 2 +- .../tests/Feature/PublicationTagsTest.php | 4 ++-- .../tests/Feature/PublicationTypeTest.php | 12 ++++++------ .../Feature/Services/PublicationServiceTest.php | 6 +++--- .../StaticSiteBuilderPublicationModuleTest.php | 4 ++-- .../tests/Feature/ValidatesPublicationsTest.php | 8 ++++---- packages/framework/tests/Unit/BooleanRuleTest.php | 4 ++-- .../tests/Unit/Pages/PublicationPageUnitTest.php | 2 +- .../src}/Concerns/ParsesPublicationFieldInputs.php | 4 ++-- .../src}/Models/PublicationFieldDefinition.php | 9 +++++---- .../src}/Models/PublicationFieldValue.php | 10 +++++----- .../src}/Models/PublicationListPage.php | 2 +- .../src}/Models/PublicationTags.php | 2 +- .../src}/Models/PublicationType.php | 10 +++++----- .../src}/Paginator.php | 2 +- .../src}/PublicationFieldTypes.php | 10 +++++----- .../src}/PublicationService.php | 6 +++--- .../src}/ValidatesPublicationField.php | 6 +++--- .../src}/Validation/BooleanRule.php | 2 +- 45 files changed, 115 insertions(+), 114 deletions(-) rename packages/{framework/src/Framework/Features/Publications => publications/src}/Concerns/ParsesPublicationFieldInputs.php (95%) rename packages/{framework/src/Framework/Features/Publications => publications/src}/Models/PublicationFieldDefinition.php (86%) rename packages/{framework/src/Framework/Features/Publications => publications/src}/Models/PublicationFieldValue.php (86%) rename packages/{framework/src/Framework/Features/Publications => publications/src}/Models/PublicationListPage.php (92%) rename packages/{framework/src/Framework/Features/Publications => publications/src}/Models/PublicationTags.php (98%) rename packages/{framework/src/Framework/Features/Publications => publications/src}/Models/PublicationType.php (94%) rename packages/{framework/src/Framework/Features/Publications => publications/src}/Paginator.php (99%) rename packages/{framework/src/Framework/Features/Publications => publications/src}/PublicationFieldTypes.php (88%) rename packages/{framework/src/Framework/Features/Publications => publications/src}/PublicationService.php (95%) rename packages/{framework/src/Framework/Features/Publications => publications/src}/ValidatesPublicationField.php (90%) rename packages/{framework/src/Framework/Features/Publications => publications/src}/Validation/BooleanRule.php (93%) diff --git a/packages/framework/resources/views/components/publications/pagination-navigation.blade.php b/packages/framework/resources/views/components/publications/pagination-navigation.blade.php index 9de1c27c061..79a8550c6fc 100644 --- a/packages/framework/resources/views/components/publications/pagination-navigation.blade.php +++ b/packages/framework/resources/views/components/publications/pagination-navigation.blade.php @@ -1,4 +1,4 @@ -@php/** @var \Hyde\Framework\Features\Publications\Paginator $paginator */@endphp +@php/** @var \Hyde\Publications\Paginator $paginator */@endphp