-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added Sonata generated administration with few basic functionalities
- login - order list and detail - product list and detail - admin list and detail
- Loading branch information
1 parent
9e66a84
commit 4a66ab7
Showing
61 changed files
with
2,471 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ get_all_packages() { | |
monorepo-tools \ | ||
php-image \ | ||
luigis-box \ | ||
administration \ | ||
project-base" | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/administration/.github/workflows/run-checks-tests.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
on: [push] | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
name: "Checks and tests" | ||
jobs: | ||
checks-and-tests: | ||
name: Run checks and tests | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: GIT checkout branch - ${{ github.ref }} | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Install PHP, extensions and tools | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.1' | ||
extensions: bcmath, gd, intl, pdo_pgsql, redis, pgsql, zip | ||
tools: composer | ||
- name: Install Composer dependencies | ||
run: composer install --optimize-autoloader --no-interaction | ||
- name: Run parallel-lint | ||
run: php vendor/bin/parallel-lint ./src ./tests | ||
- name: Run Easy Coding Standards | ||
run: php vendor/bin/ecs check --verbose ./src ./tests | ||
- name: Run PHPUnit | ||
run: php vendor/bin/phpunit tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/.idea | ||
/.php_cs.cache | ||
/composer.lock | ||
/vendor | ||
/.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Contributing | ||
|
||
Thank you for your contributions to Shopsys Admin bundle package. | ||
Together, we are making Shopsys Platform better. | ||
|
||
This repository is READ-ONLY. | ||
If you want to [report issues](https://github.com/shopsys/shopsys/issues/new) and/or send [pull requests](https://github.com/shopsys/shopsys/compare), | ||
please use the main [Shopsys repository](https://github.com/shopsys/shopsys). | ||
|
||
Please check our [Contribution Guide](https://docs.shopsys.com/en/latest/contributing/) before contributing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017-2023 Shopsys s.r.o., http://www.shopsys.com | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Shopsys Administration bundle | ||
|
||
[![Downloads](https://img.shields.io/packagist/dt/shopsys/administration.svg)](https://packagist.org/packages/shopsys/administration) | ||
|
||
Bundle for [Shopsys Platform](https://www.shopsys.com/shopsys-platform/) responsible for generating administration. | ||
|
||
This repository is maintained by [shopsys/shopsys] monorepo, information about changes is in [monorepo CHANGELOG.md](https://github.com/shopsys/shopsys/blob/master/CHANGELOG.md). | ||
|
||
## Installation | ||
|
||
The plugin is a Symfony bundle and is installed in the same way: | ||
|
||
### Download | ||
|
||
Download the package using [Composer](https://getcomposer.org/): | ||
|
||
``` | ||
composer require shopsys/administration | ||
``` | ||
|
||
## Contributing | ||
|
||
Thank you for your contributions to Shopsys Administration bundle package. | ||
Together, we are making Shopsys Platform better. | ||
|
||
This repository is READ-ONLY. | ||
If you want to [report issues](https://github.com/shopsys/shopsys/issues/new) and/or send [pull requests](https://github.com/shopsys/shopsys/compare), | ||
please use the main [Shopsys repository](https://github.com/shopsys/shopsys). | ||
|
||
Please check our [Contribution Guide](https://docs.shopsys.com/en/latest/contributing/) before contributing. | ||
|
||
## Support | ||
|
||
What to do when you are in trouble or need some help? | ||
The best way is to join our [Slack](https://join.slack.com/t/shopsysframework/shared_invite/zt-11wx9au4g-e5pXei73UJydHRQ7nVApAQ). | ||
|
||
If you want to [report issues](https://github.com/shopsys/shopsys/issues/new), please use the main [Shopsys repository](https://github.com/shopsys/shopsys). | ||
|
||
[shopsys/shopsys]: (https://github.com/shopsys/shopsys) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"name": "shopsys/administration", | ||
"type": "library", | ||
"description": "Shopsys Platform administration", | ||
"keywords": ["administration", "Shopsys Platform", "SSFW", "SSP"], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Shopsys", | ||
"homepage": "https://www.shopsys.com/" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"Shopsys\\Administration\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Tests\\Administration\\": "tests/" | ||
} | ||
}, | ||
"require": { | ||
"php": "^8.3", | ||
"ext-json": "*", | ||
"cweagans/composer-patches": "^1.7", | ||
"sonata-project/admin-bundle": "^4.30", | ||
"sonata-project/doctrine-orm-admin-bundle": "^4.9", | ||
"twig/twig": "^3.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^9.5.20", | ||
"shopsys/coding-standards": "15.0.x-dev" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"symfony/flex": true, | ||
"dealerdirect/phpcodesniffer-composer-installer": true, | ||
"cweagans/composer-patches": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use PhpCsFixer\Fixer\FunctionNotation\PhpdocToPropertyTypeFixer; | ||
use PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer; | ||
use Shopsys\CodingStandards\CsFixer\ForbiddenPrivateVisibilityFixer; | ||
use Shopsys\CodingStandards\Sniffs\ForceLateStaticBindingForProtectedConstantsSniff; | ||
use Shopsys\CodingStandards\Sniffs\ObjectIsCreatedByFactorySniff; | ||
use SlevomatCodingStandard\Sniffs\Functions\FunctionLengthSniff; | ||
use SlevomatCodingStandard\Sniffs\TypeHints\PropertyTypeHintSniff; | ||
use Symplify\EasyCodingStandard\Config\ECSConfig; | ||
|
||
/** | ||
* @param Symplify\EasyCodingStandard\Config\ECSConfig $ecsConfig | ||
*/ | ||
return static function (ECSConfig $ecsConfig): void { | ||
$ecsConfig->import(__DIR__ . '/vendor/shopsys/coding-standards/ecs.php', null, true); | ||
|
||
$ecsConfig->skip( | ||
[ | ||
ObjectIsCreatedByFactorySniff::class => [ | ||
__DIR__ . '/packages/administration/src/Component/FieldDescription/FieldDescriptionFactory.php', | ||
], | ||
FunctionLengthSniff::class => [ | ||
__DIR__ . '/packages/administration/src/Controller/CRUDController.php', | ||
__DIR__ . '/packages/administration/src/**/*Admin.php', | ||
], | ||
], | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html --> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
failOnWarning="true" | ||
beStrictAboutTestsThatDoNotTestAnything="false" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd" | ||
> | ||
<coverage/> | ||
</phpunit> |
Oops, something went wrong.