Skip to content

Commit

Permalink
prepare v1
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Apr 2, 2024
1 parent 88c33c9 commit 1b13623
Show file tree
Hide file tree
Showing 454 changed files with 7,043 additions and 6,139 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -35,6 +35,10 @@ debug.html
**/skeleton/src/Migrations
**/skeleton/var/*
!**/skeleton/var/app.db*
packages/skeleton/templates/newTemplateFile2.html.twig
# restore via `composer reset`
**/skeleton/media

!.gitkeep

Draft.md
2 changes: 2 additions & 0 deletions .php-cs-fixer.dist.php
Expand Up @@ -41,6 +41,8 @@
'single_trait_insert_per_statement' => true,
'modernize_types_casting' => false, // PHPStan...*
'phpdoc_to_comment' => false, // see here to add use to structural element https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/402b34d4ab33146eaab0f17d60c928eaa7e332b9/src/Tokenizer/Analyzer/CommentsAnalyzer.php#L155
'native_function_invocation' => false,
'global_namespace_import' => false,
])
->setRiskyAllowed(true)
->setFinder($finder);
4 changes: 2 additions & 2 deletions .scripts/generate-docs
Expand Up @@ -8,10 +8,10 @@ function restoreData {
then
cd ../../
fi
bash ./.scripts/data-restore no-docs
#bash ./.scripts/data-restore no-docs
}
trap restoreData EXIT
bash ./.scripts/data-preserve no-docs
#bash ./.scripts/data-preserve no-docs

php ./.scripts/generate-docs-assets

Expand Down
2 changes: 2 additions & 0 deletions .scripts/reset-skeleton
Expand Up @@ -4,7 +4,9 @@ cd packages/skeleton
rm var/app.db|| true
rm -rf media|| true
cp -r media~ media
php bin/console cache:clear -q
php bin/console doctrine:schema:create -q
php bin/console doctrine:fixtures:load -q
php bin/console pushword:image:cache -q
php bin/console assets:install --symlink --relative -q
php bin/console pushword:user:create admin@example.tld p@ssword ROLE_SUPER_ADMIN
2 changes: 1 addition & 1 deletion .scripts/test
Expand Up @@ -16,7 +16,7 @@ sh ./.scripts/data-preserve


#XDEBUG_MODE=off php -dxdebug.mode=off
vendor/bin/phpunit --stop-on-failure #packages/core/tests/Repository/MediaRepositoryTest.php
vendor/bin/phpunit --stop-on-failure
#--debug

if [ "$1" = "full" ]
Expand Down
8 changes: 8 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,8 @@
{
"favorites.resources": [
{
"filePath": "packages/docs/content",
"group": "Default"
}
]
}
8 changes: 4 additions & 4 deletions README.md
@@ -1,12 +1,12 @@
# Pushword

A php **CMS** built as a **Symfony Bundle** to **rapidly** create, manage and maintain **Website(s)**.
A php **page-oriented CMS** built as a **Symfony Bundle** to **rapidly** create, manage and maintain **incredible Website(s)**.

[![Latest Version](https://img.shields.io/github/tag/pushword/pushword.svg?style=flat&label=release)](https://github.com/Pushword/Pushword/tags)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/Pushword/Pushword/run-tests.yml?branch=main)](https://github.com/Pushword/Pushword/actions)
[![Quality Score](https://img.shields.io/scrutinizer/g/pushword/pushword.svg?style=flat)](https://scrutinizer-ci.com/g/pushword/pushword)
[![Code Coverage](https://codecov.io/gh/Pushword/Pushword/branch/main/graph/badge.svg)](https://codecov.io/gh/Pushword/Pushword/branch/main)
[![Code Coverage](https://codecov.io/gh/Pushword/Pushword/branch/next/graph/badge.svg)](https://codecov.io/gh/Pushword/Pushword/tree/next)
[![Type Coverage](https://shepherd.dev/github/pushword/pushword/coverage.svg)](https://shepherd.dev/github/pushword/pushword)
[![Total Downloads](https://img.shields.io/packagist/dt/pushword/core.svg?style=flat)](https://packagist.org/packages/pushword/core)

Expand All @@ -20,8 +20,8 @@ If you're interested in contributing to Pushword, please read our [contributing

## Credits

- [PiedWeb](https://piedweb.com)
- [All Contributors](https://github.com/Pushword/Core/graphs/contributors)
- [PiedWeb](https://piedweb.com)
- [All Contributors](https://github.com/Pushword/Core/graphs/contributors)

## License

Expand Down
9 changes: 3 additions & 6 deletions composer.json
Expand Up @@ -27,10 +27,8 @@
"intervention/image": "^3.2",
"jolicode/jolitypo": "^1.4",
"michelf/php-markdown": "^2",
"miljar/php-exif": "^0.6.5",
"nette/utils": "^4.0",
"pagerfanta/twig": "^4.1",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.0",
"piedweb/curl": "@dev || ^0.1",
Expand Down Expand Up @@ -69,6 +67,7 @@
"require-dev": {
"composer/composer": "^2.6.6",
"friendsofphp/php-cs-fixer": "^3.2",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-doctrine": "^1.0",
"phpstan/phpstan-symfony": "^1.0",
Expand Down Expand Up @@ -102,7 +101,6 @@
"Pushword\\PageScanner\\": "packages/page-scanner/src",
"Pushword\\PageUpdateNotifier\\": "packages/page-update-notifier/src",
"Pushword\\StaticGenerator\\": "packages/static-generator/src",
"Pushword\\Svg\\": "packages/svg/src",
"Pushword\\Version\\": "packages/version/src",
"Pushword\\AdminBlockEditor\\": "packages/admin-block-editor/src",
"Pushword\\TemplateEditor\\": "packages/template-editor/src",
Expand All @@ -120,7 +118,6 @@
"Pushword\\PageScanner\\Tests\\": "packages/page-scanner/tests",
"Pushword\\PageUpdateNotifier\\Tests\\": "packages/page-update-notifier/tests",
"Pushword\\StaticGenerator\\Tests\\": "packages/static-generator/tests",
"Pushword\\Svg\\Tests\\": "packages/svg/tests",
"Pushword\\Version\\Tests\\": "packages/version/tests",
"Pushword\\AdminBlockEditor\\Tests\\": "packages/admin-block-editor/tests",
"Pushword\\TemplateEditor\\Tests\\": "packages/template-editor/tests",
Expand All @@ -131,14 +128,14 @@
"console": "cd packages/skeleton && php bin/console $2",
"dev": "cd packages/skeleton && symfony server:start -d",
"stan": "vendor/bin/phpstan analyze packages/*/src",
"psalm": "vendor/bin/psalm --no-suggestions --no-cache",
"psalm": "vendor/bin/psalm --no-suggestions --no-cache --find-unused-psalm-suppress",
"test": "./.scripts/test",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage",
"rector": "vendor/bin/rector process && composer format && composer test",
"format": "vendor/bin/php-cs-fixer fix rector.php && vendor/bin/php-cs-fixer fix",
"assets": "./.scripts/generate-assets",
"publish-js-helper": "cd packages/js-helper && npm version patch && cd ../../ && git add packages/js-helper/. && git commit -m 'update pushword/js-helper version' && git push && cd packages/js-helper && npm publish",
"docs": "./.scripts/generate-docs",
"rector": "vendor/bin/rector process && composer format && composer test",
"reset-skeleton": "./.scripts/reset-skeleton"
},
"config": {
Expand Down
49 changes: 48 additions & 1 deletion docs/404.html
@@ -1 +1,48 @@
<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link rel="apple-touch-icon" sizes="180x180" href="/assets/favicons/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/assets/favicons/favicon-16x16.png"><link rel="manifest" href="/assets/favicons/site.webmanifest"><link rel="mask-icon" href="/assets/favicons/safari-pinned-tab.svg" color="#000000"><link rel="shortcut icon" href="/assets/favicons/favicon.ico"><meta name="apple-mobile-web-app-title" content="Pushword"><meta name="application-name" content="Pushword"><meta name="msapplication-TileColor" content="#fff"><meta name="msapplication-config" content="/assets/favicons/browserconfig.xml"><meta name="theme-color" content="#fff"><title>Oops! Une erreur...</title><link rel="stylesheet" href="/assets/tw.min.css?878f8c5f8"><style>:root {--primary: #EF8206;--secondary: #d97706;--font-family: Inter var, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;}</style><style>.nojs{display:inline-block}</style><script>document.head.insertAdjacentHTML('beforeend', '<style>.nojs{display:none !important}</style>');</script><link rel="alternate" type="application/rss+xml" href="https://pushword.piedweb.com/feed.xml" title="Pushword » Flux"></head><body><div class="container mx-auto mt-5"><h1>Oops! Une erreur...</h1><p></p><p><a href="/" class="btn btn-secondary">Retour</a></p></div><script src="/assets/app.min.js?dfce9c72d" async></script></body></html>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicons/favicon-16x16.png">
<link rel="manifest" href="/assets/favicons/site.webmanifest">
<link rel="mask-icon" href="/assets/favicons/safari-pinned-tab.svg" color="#000000">
<link rel="shortcut icon" href="/assets/favicons/favicon.ico">
<meta name="apple-mobile-web-app-title" content="Pushword">
<meta name="application-name" content="Pushword">
<meta name="msapplication-TileColor" content="#fff">
<meta name="msapplication-config" content="/assets/favicons/browserconfig.xml">
<meta name="theme-color" content="#fff">

<title>Oops! Une erreur...</title>

<link rel="stylesheet" href="/assets/tw.min.css?878f8c5f8">
<style>
:root {
--primary: #EF8206;
--secondary: #d97706;
--font-family: Inter var, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
}
</style>
<style>.nojs{display:inline-block}</style>
<script>document.head.insertAdjacentHTML('beforeend', '<style>.nojs{display:none !important}</style>');</script>

<link rel="alternate" type="application/rss+xml" href="https://pushword.piedweb.com/feed.xml" title="Pushword &raquo; Flux" />

</head>

<body>

<div class="container mx-auto mt-5">
<h1>Oops! Une erreur...</h1>
<p></p>
<p><a href="/" class="btn btn-secondary">Retour</a></p>
</div>

<script src="/assets/app.min.js?dfce9c72d" async></script>

</body>
</html>

0 comments on commit 1b13623

Please sign in to comment.