Skip to content

Commit

Permalink
fix psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Feb 1, 2021
1 parent b7385c8 commit b980f21
Show file tree
Hide file tree
Showing 30 changed files with 386 additions and 172 deletions.
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -15,6 +15,7 @@
"license": "MIT",
"require": {
"php": ">=7.4",
"babdev/pagerfanta-bundle": "^2.8",
"caseyamcl/toc": "^3.0",
"cocur/slugify": "^3.0|^4.0",
"doctrine/annotations": "^1.11",
Expand All @@ -33,7 +34,7 @@
"piedweb/render-html-attributes": "^2.0.1",
"piedweb/url-harvester": "^0.0.27",
"sensio/framework-extra-bundle": "^5.6",
"sonata-project/admin-bundle": "dev-master#0ea4ef9d9fc639c9547008ceabb32f6e3c55da9d",
"sonata-project/admin-bundle": "dev-master#f34ae30d169132b17f3151fa294a80c57247a8a9",
"sonata-project/doctrine-orm-admin-bundle": "4.x-dev",
"spatie/image-optimizer": "^1.3",
"spatie/yaml-front-matter": "^2.0",
Expand Down
1 change: 1 addition & 0 deletions docs/2.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/3.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/4.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/5.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/feed.xml
@@ -1 +1 @@
<rss xmlns:dc=http://purl.org/dc/elements/1.1/ xmlns:atom=http://www.w3.org/2005/Atom version=2.0><channel><title>Pushword - Modern CMS to build rapidly Websites (powered by Symfony)</title> <link>https://pushword.piedweb.com/ <description></description> <link href=https://pushword.piedweb.com/feed.xml rel=self type=application/rss+xml> <item><title></title> <link>https://pushword.piedweb.com/extension/conversation <guid>https://pushword.piedweb.com/extension/conversation</guid> <pubdate>Mon, 01 Feb 2021 15:24:58 +0100</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/extension/facebook <guid>https://pushword.piedweb.com/extension/facebook</guid> <pubdate>Mon, 01 Feb 2021 15:24:58 +0100</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/extension/flat <guid>https://pushword.piedweb.com/extension/flat</guid> <pubdate>Mon, 01 Feb 2021 15:24:58 +0100</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/extension <guid>https://pushword.piedweb.com/extension</guid> <pubdate>Mon, 01 Feb 2021 15:24:58 +0100</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/extension/page-scanner <guid>https://pushword.piedweb.com/extension/page-scanner</guid> <pubdate>Mon, 01 Feb 2021 15:24:58 +0100</pubdate></item></channel> </rss>
<rss xmlns:dc=http://purl.org/dc/elements/1.1/ xmlns:atom=http://www.w3.org/2005/Atom version=2.0><channel><title>Pushword - Modern CMS to build rapidly Websites (powered by Symfony)</title> <link>https://pushword.piedweb.com/ <description></description> <link href=https://pushword.piedweb.com/feed.xml rel=self type=application/rss+xml> <item><title></title> <link>https://pushword.piedweb.com/architecture <guid>https://pushword.piedweb.com/architecture</guid> <pubdate>Mon, 01 Feb 2021 19:26:28 +0100</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/command <guid>https://pushword.piedweb.com/command</guid> <pubdate>Mon, 01 Feb 2021 19:26:28 +0100</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/component/entity-filter <guid>https://pushword.piedweb.com/component/entity-filter</guid> <pubdate>Mon, 01 Feb 2021 19:26:28 +0100</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/configuration <guid>https://pushword.piedweb.com/configuration</guid> <pubdate>Mon, 01 Feb 2021 19:26:28 +0100</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/contribute <guid>https://pushword.piedweb.com/contribute</guid> <pubdate>Mon, 01 Feb 2021 19:26:28 +0100</pubdate></item></channel> </rss>
2 changes: 1 addition & 1 deletion docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/roadmap.html
@@ -1,4 +1,4 @@
<!DOCTYPE html><html class="bg-white dark:bg-gray-900 dark:text-gray-100 leading-tight text-gray-900" lang=en><head><meta charset=UTF-8><meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name=viewport><link href=/assets/favicons/apple-touch-icon.png rel=apple-touch-icon sizes=180x180><link href=/assets/favicons/favicon-32x32.png rel=icon sizes=32x32 type=image/png><link href=/assets/favicons/favicon-16x16.png rel=icon sizes=16x16 type=image/png><link href=/assets/favicons/site.webmanifest rel=manifest><link color=#000000 href=/assets/favicons/safari-pinned-tab.svg rel=mask-icon><link href=/assets/favicons/favicon.ico rel="shortcut icon"><meta content=Pushword name=apple-mobile-web-app-title><meta content=Pushword name=application-name><meta content=#fff name=msapplication-TileColor><meta content=/assets/favicons/browserconfig.xml name=msapplication-config><meta content=#fff name=theme-color><title> Where Pushword is going ? Roadmap, TODO and Ideas </title><link href=/assets/tw.css rel=stylesheet><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:block}</style><script>document.head.insertAdjacentHTML('beforeend','<style>.nojs{display:none !important}<\/style>')</script><link href=https://pushword.piedweb.com/feed.xml rel=alternate title="Pushword &raquo; Flux" type=application/rss+xml><meta content="" name=robots><link href=https://pushword.piedweb.com/roadmap rel=canonical><link href=https://pushword.piedweb.com/roadmap hreflang=en rel=alternate><meta content="Where Pushword is going ? Roadmap, TODO and Ideas" name=og:title><meta content=https://pushword.piedweb.com/roadmap name=og:url> <body><div class="flex flex-wrap items-stretch max-w-screen-2xl mx-auto"><div class="lg:ml-0 lg:mr-0 lg:w-3/4 mx-auto order-2 w-full"><div class=pt-6></div> <nav aria-label=breadcrumb class="dark:text-gray-300 font-light p-3 text-gray-700 text-sm"><ul><li class=inline-block><a class=hover:underline href=/>Pushword</a> <span class="inline-block px-1"></span> <li class=inline-block><a class=hover:underline href=/contribute></a> </ul> </nav> <div class="flex flex-wrap max-w-5xl"><div class="lg:order-1 lg:w-4/5 order-2 overflow-hidden w-full"><div class="dark:prose-light max-w-none p-3 prose"><h1>Roadmap</h1> </div> </div> <div class="lg:order-2 lg:w-1/5 order-3 overflow-hidden w-full"><div class="lg:absolute lg:border-gray-200 lg:border-l lg:max-w-xs m-2 max-w-screen-sm p-3 pt-4 rounded"><h3 class="block dark:text-gray-100 font-semibold lg:mb-3 lg:text-xs mb-3 px-1 text-gray-900 text-sm tracking-wide uppercase">Contents</h3> <div class="-ml-6 dark:prose-light max-w-none prose-sm px-1"><ul><li class=first><a href=#todo-before-v1>TODO before v1</a> <ul class=menu_level_1><li class=first><a href=#pagination>Pagination</a> <li class=last><a href=#editor-js>Editor.js</a> </ul> <li><a href=#soon>Soon</a> <li class=last><a href=#one-day-maybe>One day (maybe)</a> <ul class=menu_level_1><li class=first><a href=#smart-image-optimizer-global-piedweb-package>Smart image optimizer (global - piedweb package)</a> <li><a href=#switch-to-commonmark>Switch to commonMark</a> <li><a href=#settings-manager-extension> Settings Manager Extension</a> <li class=last><a href=#dynamic-url-extension>Dynamic URL Extension</a> </ul></ul> </div></div> </div> <div class="lg:w-4/5 order-4 overflow-hidden w-full"><div class="dark:prose-light max-w-3xl p-3 prose"><h2 id=todo-before-v1>TODO before v1</h2> <ul><li>Micro données <li><p>pagination https://www.babdev.com/open-source/packages/pagerfantabundle/docs/3.x/intro <li><p>textarea no new line make jump to .editorjs-holder too <li>release de sonata 4 <li>Issue&nbsp;: User Password Edit don't work from admin <li>manage date i18n a better way than randomly</ul> <h3 id=pagination>Pagination</h3> <p>Pagination children/list <p>PageController capture par défaut les pages /slug/{paginate&lt;\d+&gt;?1`} et renvoie si existe la même page mais avec la liste intégrée <p>Deux choses&nbsp;: <ul><li>soit charger les résultats via <em>ajax</em> (compatibilité avec turbolinks&nbsp;?) en renvoyant juste le block concerné (donc utilisé <code>liveBlock</code>) <li>soit on génère une nouvelle page dans ce cas là&nbsp;:
<!DOCTYPE html><html class="bg-white dark:bg-gray-900 dark:text-gray-100 leading-tight text-gray-900" lang=en><head><meta charset=UTF-8><meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name=viewport><link href=/assets/favicons/apple-touch-icon.png rel=apple-touch-icon sizes=180x180><link href=/assets/favicons/favicon-32x32.png rel=icon sizes=32x32 type=image/png><link href=/assets/favicons/favicon-16x16.png rel=icon sizes=16x16 type=image/png><link href=/assets/favicons/site.webmanifest rel=manifest><link color=#000000 href=/assets/favicons/safari-pinned-tab.svg rel=mask-icon><link href=/assets/favicons/favicon.ico rel="shortcut icon"><meta content=Pushword name=apple-mobile-web-app-title><meta content=Pushword name=application-name><meta content=#fff name=msapplication-TileColor><meta content=/assets/favicons/browserconfig.xml name=msapplication-config><meta content=#fff name=theme-color><title> Where Pushword is going ? Roadmap, TODO and Ideas </title><link href=/assets/tw.css rel=stylesheet><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:block}</style><script>document.head.insertAdjacentHTML('beforeend','<style>.nojs{display:none !important}<\/style>')</script><link href=https://pushword.piedweb.com/feed.xml rel=alternate title="Pushword &raquo; Flux" type=application/rss+xml><meta content="" name=robots><link href=https://pushword.piedweb.com/roadmap rel=canonical><link href=https://pushword.piedweb.com/roadmap hreflang=en rel=alternate><meta content="Where Pushword is going ? Roadmap, TODO and Ideas" name=og:title><meta content=https://pushword.piedweb.com/roadmap name=og:url> <body><div class="flex flex-wrap items-stretch max-w-screen-2xl mx-auto"><div class="lg:ml-0 lg:mr-0 lg:w-3/4 mx-auto order-2 w-full"><div class=pt-6></div> <nav aria-label=breadcrumb class="dark:text-gray-300 font-light p-3 text-gray-700 text-sm"><ul><li class=inline-block><a class=hover:underline href=/>Pushword</a> <span class="inline-block px-1"></span> <li class=inline-block><a class=hover:underline href=/contribute></a> </ul> </nav> <div class="flex flex-wrap max-w-5xl"><div class="lg:order-1 lg:w-4/5 order-2 overflow-hidden w-full"><div class="dark:prose-light max-w-none p-3 prose"><h1>Roadmap</h1> </div> </div> <div class="lg:order-2 lg:w-1/5 order-3 overflow-hidden w-full"><div class="lg:absolute lg:border-gray-200 lg:border-l lg:max-w-xs m-2 max-w-screen-sm p-3 pt-4 rounded"><h3 class="block dark:text-gray-100 font-semibold lg:mb-3 lg:text-xs mb-3 px-1 text-gray-900 text-sm tracking-wide uppercase">Contents</h3> <div class="-ml-6 dark:prose-light max-w-none prose-sm px-1"><ul><li class=first><a href=#todo-before-v1>TODO before v1</a> <ul class=menu_level_1><li class=first><a href=#pagination>Pagination</a> <li class=last><a href=#editor-js>Editor.js</a> </ul> <li><a href=#soon>Soon</a> <li class=last><a href=#one-day-maybe>One day (maybe)</a> <ul class=menu_level_1><li class=first><a href=#smart-image-optimizer-global-piedweb-package>Smart image optimizer (global - piedweb package)</a> <li><a href=#switch-to-commonmark>Switch to commonMark</a> <li><a href=#settings-manager-extension> Settings Manager Extension</a> <li class=last><a href=#dynamic-url-extension>Dynamic URL Extension</a> </ul></ul> </div></div> </div> <div class="lg:w-4/5 order-4 overflow-hidden w-full"><div class="dark:prose-light max-w-3xl p-3 prose"><h2 id=todo-before-v1>TODO before v1</h2> <ul><li>Micro données <li><p>pagination&nbsp;: tester &amp; documenter <li><p>textarea no new line make jump to .editorjs-holder too <li>release de sonata 4 <li>Issue&nbsp;: User Password Edit don't work from admin <li>manage date i18n a better way than randomly</ul> <h3 id=pagination>Pagination</h3> <p>Pagination children/list <p>PageController capture par défaut les pages /slug/{paginate&lt;\d+&gt;?1`} et renvoie si existe la même page mais avec la liste intégrée <p>Deux choses&nbsp;: <ul><li>soit charger les résultats via <em>ajax</em> (compatibilité avec turbolinks&nbsp;?) en renvoyant juste le block concerné (donc utilisé <code>liveBlock</code>) <li>soit on génère une nouvelle page dans ce cas là&nbsp;:
comment gérer le duplicate content autour de la liste, l'indexation, la génération dans le sitemap, la compatibilité avec turbolinks si on charge via ajax (donc à éviter)
KISS&nbsp;: un paramètre <code>paginatePage</code> écrase les propriétés (en les préservant dans <em>extend</em>) avec par défault un page.title = page.title ~ '- ' ~ paginate</ul> <p>Peut-être un pas vers dynamic URL ou s'appuyer dessus. <h3 id=editor-js>Editor.js</h3> <p>Look for a better writer experience (https://github.com/front/g-editor or https://editorjs.io) (1/2) <h2 id=soon>Soon</h2> <ul><li><strong>Page Scanner</strong>&nbsp;: add <li><strong>New</strong> API <li><strong>eCommerce</strong> bridge with sylius (or réciproque) <li>[WIP]&nbsp;<strong>Block editor</strong>&nbsp;: <ul><li>Gérer des blocks compatible avec Sonata pour les Attchments et les Images (même block qu'on affichera différemment) <li>Idem pour les galleries (PageHasMedia) <li>Encrypted Link <li>Link to page (avec Router, permet navigation sur preprod) <li>implement https://github.com/hata6502/editorjs-element to edit directly with site style</ul> <li><strong>Admin</strong>&nbsp;: extend parameters and events to filters and form for all admin (will permit extension) <li><strong>Extend</strong>&nbsp;: Partially implemented in core. May added test and form field in admin&nbsp;? <li>Schema.org dans le backend d'une page <li><strong>Static</strong>: copy only used media in public <li><strong>FacebookManager</strong>&nbsp;: post from facebook <li><strong>Flat</strong>: Transform markdown link to page link (useful for navigate in docs from editor) <li><strong>Flat</strong>: Throw error when the content is more up to date in database <li>Intégrer <strong>LinksImprover</strong> (+ UX), après précédent <li><strong>name suggester</strong>: parse content, find words or multiple words used only in this doc, suggest it as potential name, s'active au moment du clic sur l'input name <li><strong>Complex Right System</strong>&nbsp;: Multi-user editor Multi-site but not everybody can edit everything (see draft.md) (extension or core&nbsp;?) <li><strong>Page-Scanner</strong>&nbsp;: scanner une page en direct + scanner plus de choses (texte alternatif manquant, etc.) <li><strong>Multi-upload</strong> (see https://packagist.org/packages/silasjoisten/sonata-multiupload-bundle) <li>Test the code, search for all "todo" in the code,</ul> <h2 id=one-day-maybe>One day (maybe)</h2> <ul><li><strong>Admin</strong>&nbsp;: Automatic save without flooding version <li><strong>Version</strong>&nbsp;: Rewrite to load in an entity versionned version and used sonata filters <li>Add https://github.com/nan-guo/Sonata-Menu-Bundle <li><strong>Wordpress</strong> to Pushword/Core (and vice versa) <li><strong>Flat</strong> (spatie/yaml-front-matter, vérif à chaque requête pour une sync constante admin -&gt; flat files) <li>Create a page from a Media (media edit) =&gt; button to create a new page with title = name and mainImage = Media (useful for photographer website)... or create a dynamic page /media/[slug]/ showing data from Media</ul> <h3 id=smart-image-optimizer-global-piedweb-package>Smart image optimizer (global - piedweb package)</h3> <p>Using all otpimizer avalaible, generating optimized image version and choosing the smallest file or keeping the default one) <h3 id=switch-to-commonmark>Switch to commonMark</h3> <p>Need to add <a href="https://spec.commonmark.org/0.29/#example-158:~:text=markdown%3D1">markdown=1</a> feature in league/commonmark <h3 id=settings-manager-extension>&nbsp;Settings Manager <smal>Extension</smal></h3> <p>Rewrite the template editor by loading existing files and bundle files (view only and override action) in an file entity. CRUD via SONATA, listener to update file. <p>How to manage yaml/xml/php config files&nbsp;?! <h3 id=dynamic-url-extension>Dynamic URL <smal>Extension</smal></h3> <p>C'est un gros morceau pour garder la compatibilité avec le static generator et le router actuel <p>Le but: une page est crée avec un slug classique <code>/blog/example-tag/</code> <p>Une propriété <code>dynamic</code> lui est attributé qui permettra de créer une nouvelle route <p>Une autre proprité <code>dynamicPage</code> permettra d'assigner automatiquement un paramètre à ces pages enfants
(par exemple la <code>parentPage</code> ou encore la <code>metaRobots</code>) <p>Ex: dynamic: <code>/blog/{tag&lt;[a-z-]+&gt;?1</code>} (cf https://symfony.com/doc/current/routing.html#optional-parameters:~:text=inlined%20requirements) <p><em>Une bonne pratique serait de définir toutes les variantes possible ou une contrainte pour éviter de se retrouver avec un nombre de page infini.</em> <p>callback&nbsp;?! sans ça, impossible de maintenir la compatibilité avec le static generator <p>Quand l'utilisateur cherchera à atteindre /blog/anotherexample/ <p>Si la page n'a pas été créée (elle peut d'ailleur l'être en utilisant <em>extend</em>). <p>Alors la page chargé sera <code>/blog/example-tag/</code> (entity créée à la volée sans sauvegarde dans la BDD)
Expand Down

0 comments on commit b980f21

Please sign in to comment.