Skip to content

Commit

Permalink
move page hero and page mainImageFormat to dedicated extension
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Apr 8, 2021
1 parent 8b93f8b commit 99bc0ae
Show file tree
Hide file tree
Showing 41 changed files with 438 additions and 110 deletions.
1 change: 1 addition & 0 deletions .github/workflows/split-monorepo.yaml
Expand Up @@ -54,6 +54,7 @@ jobs:
- version
- new
- admin-block-editor
- advanced-main-image
#package: ${{fromJson(needs.provide_packages_json.outputs.matrix)}}

steps:
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Expand Up @@ -89,7 +89,6 @@
},
"autoload": {
"psr-4": {
"PiedWeb\\BootstrapThemeComponentBundle\\": "packages/bootstrap5-theme/src/",
"Pushword\\Admin\\": "packages/admin/src",
"Pushword\\Conversation\\": "packages/conversation/src",
"Pushword\\Core\\": "packages/core/src",
Expand All @@ -101,7 +100,8 @@
"Pushword\\Facebook\\": "packages/facebook/src",
"Pushword\\Version\\": "packages/version/src",
"Pushword\\AdminBlockEditor\\": "packages/admin-block-editor/src",
"Pushword\\TemplateEditor\\": "packages/template-editor/src"
"Pushword\\TemplateEditor\\": "packages/template-editor/src",
"Pushword\\AdvancedMainImage\\": "packages/advanced-main-image/src"
}
},
"autoload-dev": {
Expand All @@ -118,7 +118,8 @@
"Pushword\\Facebook\\Tests\\": "packages/facebook/tests",
"Pushword\\Version\\Tests\\": "packages/version/tests",
"Pushword\\AdminBlockEditor\\Tests\\": "packages/admin-block-editor/tests",
"Pushword\\TemplateEditor\\Tests\\": "packages/template-editor/tests"
"Pushword\\TemplateEditor\\Tests\\": "packages/template-editor/tests",
"Pushword\\AdvancedMainImage\\Tests\\": "packages/advanced-main-image/tests"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion docs/extension/admin-block-editor.html
@@ -1,4 +1,4 @@
<!DOCTYPE html><html class="bg-white dark:bg-gray-900 dark:text-gray-100 leading-tight overflow-x-hidden 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> Standard Admin for Pushword : Admin User Interface </title><link href=/assets/tw.min.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/extension/admin-block-editor rel=canonical><link href=https://pushword.piedweb.com/extension/admin-block-editor hreflang=en rel=alternate><meta content="Standard Admin for Pushword : Admin User Interface" name=og:title><meta content=https://pushword.piedweb.com/extension/admin-block-editor name=og:url><script>const base="/"</script> <body><div class="flex flex-col min-h-screen"><div class="flex flex-wrap items-stretch max-w-screen-2xl mx-auto" style=min-height:85vh><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=/extensions></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>Admin</h1> <p>Create, edit, delete Page, Media, User with an interface built on top of Sonata Admin.</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=#install>Install</a> <li class=last><a href=#configuration>Configuration</a> <ul class=menu_level_1><li class=first><a href=#disable-listener-and-use-filter>Disable Listener and use filter</a> <li><a href=#override-block-template>Override block template</a> <li class=last><a href=#customize-editor>Customize editor</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=install>Install</h2> <pre><code class="shell">composer require pushword/admin-block-editor
<!DOCTYPE html><html class="bg-white dark:bg-gray-900 dark:text-gray-100 leading-tight overflow-x-hidden 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> Admin block editor to supercharge the default markdown admin with a rich text editor </title><link href=/assets/tw.min.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/extension/admin-block-editor rel=canonical><link href=https://pushword.piedweb.com/extension/admin-block-editor hreflang=en rel=alternate><meta content="Admin block editor to supercharge the default markdown admin with a rich text editor" name=og:title><meta content=https://pushword.piedweb.com/extension/admin-block-editor name=og:url><script>const base="/"</script> <body><div class="flex flex-col min-h-screen"><div class="flex flex-wrap items-stretch max-w-screen-2xl mx-auto" style=min-height:85vh><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=/extensions></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>Admin Block Editor</h1> <p>Supercharge default admin with a rich text editor wich managed blocks.</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=#install>Install</a> <li class=last><a href=#configuration>Configuration</a> <ul class=menu_level_1><li class=first><a href=#disable-listener-and-use-filter>Disable Listener and use filter</a> <li><a href=#override-block-template>Override block template</a> <li class=last><a href=#customize-editor>Customize editor</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=install>Install</h2> <pre><code class="shell">composer require pushword/admin-block-editor
</code></pre> <p>That's it&nbsp;! If you have a custom installation (not used the <a href="/installation">default installer</a>),
you may have a look inside <code>vendor/pushword/admin/install.php</code>. <p>Block editor is now ready. <h2 id=configuration>Configuration</h2> <p>If you want to go forward than a default install, you can override default parameters in your config&nbsp;: <pre><code class="yaml">admin_block_editor:
new_page: true # Set false to disable block editor for new page (because new page does not have an associated `app` yet)
Expand Down
5 changes: 5 additions & 0 deletions docs/extension/advanced-main-image.html

Large diffs are not rendered by default.

0 comments on commit 99bc0ae

Please sign in to comment.