From 39de963b28a4374504c9cb14c123db4b3e85df89 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 17:01:14 -0400 Subject: [PATCH 01/37] Add mercuryseries/inertia-bundle recipe --- .../inertia-bundle/0.1.0/assets/js/app.js | 24 ++++++ .../0.1.0/assets/js/components/Layout.js | 45 +++++++++++ .../0.1.0/assets/js/pages/About.js | 13 ++++ .../0.1.0/assets/js/pages/Home.js | 12 +++ .../inertia-bundle/0.1.0/assets/js/ssr.js | 24 ++++++ .../0.1.0/assets/styles/app.css | 8 ++ .../packages/mercuryseries_inertia_maker.yaml | 38 +++++++++ .../inertia-bundle/0.1.0/jsconfig.json | 9 +++ .../inertia-bundle/0.1.0/manifest.json | 30 ++++++++ .../inertia-bundle/0.1.0/package.json | 31 ++++++++ .../inertia-bundle/0.1.0/post-install.txt | 10 +++ .../0.1.0/src/Controller/PagesController.php | 22 ++++++ .../0.1.0/templates/app.html.twig | 19 +++++ .../inertia-bundle/0.1.0/webpack.config.js | 77 +++++++++++++++++++ .../0.1.0/webpack.ssr.config.js | 43 +++++++++++ 15 files changed, 405 insertions(+) create mode 100644 mercuryseries/inertia-bundle/0.1.0/assets/js/app.js create mode 100644 mercuryseries/inertia-bundle/0.1.0/assets/js/components/Layout.js create mode 100644 mercuryseries/inertia-bundle/0.1.0/assets/js/pages/About.js create mode 100644 mercuryseries/inertia-bundle/0.1.0/assets/js/pages/Home.js create mode 100644 mercuryseries/inertia-bundle/0.1.0/assets/js/ssr.js create mode 100644 mercuryseries/inertia-bundle/0.1.0/assets/styles/app.css create mode 100644 mercuryseries/inertia-bundle/0.1.0/config/packages/mercuryseries_inertia_maker.yaml create mode 100644 mercuryseries/inertia-bundle/0.1.0/jsconfig.json create mode 100644 mercuryseries/inertia-bundle/0.1.0/manifest.json create mode 100644 mercuryseries/inertia-bundle/0.1.0/package.json create mode 100644 mercuryseries/inertia-bundle/0.1.0/post-install.txt create mode 100644 mercuryseries/inertia-bundle/0.1.0/src/Controller/PagesController.php create mode 100644 mercuryseries/inertia-bundle/0.1.0/templates/app.html.twig create mode 100644 mercuryseries/inertia-bundle/0.1.0/webpack.config.js create mode 100644 mercuryseries/inertia-bundle/0.1.0/webpack.ssr.config.js diff --git a/mercuryseries/inertia-bundle/0.1.0/assets/js/app.js b/mercuryseries/inertia-bundle/0.1.0/assets/js/app.js new file mode 100644 index 000000000..a9de50fc3 --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/assets/js/app.js @@ -0,0 +1,24 @@ +import React from "react"; +import { createRoot } from "react-dom/client"; +import { createInertiaApp } from "@inertiajs/react"; +import Layout from "./components/Layout"; +import "../styles/app.css"; + +const appName = "Symfony ❤️ Inertia.js"; + +createInertiaApp({ + progress: { + showSpinner: true + }, + title: (title) => (title ? `${title} | ${appName}` : appName), + resolve: (name) => { + const page = require(`./pages/${name}`).default; + if (page.layout === undefined) { + page.layout = Layout; + } + return page; + }, + setup({ el, App, props }) { + createRoot(el).render(); + }, +}); diff --git a/mercuryseries/inertia-bundle/0.1.0/assets/js/components/Layout.js b/mercuryseries/inertia-bundle/0.1.0/assets/js/components/Layout.js new file mode 100644 index 000000000..7df97ec7e --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/assets/js/components/Layout.js @@ -0,0 +1,45 @@ +import React from "react"; +import { Link, usePage } from "@inertiajs/react"; +import Routing from "fos-router"; + +const Layout = ({ children }) => { + const { component } = usePage(); + + return ( + <> +
+ +
+ +
{children}
+ +
+

+ Built with ♥ by the folks at{" "} + Parlons Code. +

+
+ + ); +}; + +export default (page) => {page}; diff --git a/mercuryseries/inertia-bundle/0.1.0/assets/js/pages/About.js b/mercuryseries/inertia-bundle/0.1.0/assets/js/pages/About.js new file mode 100644 index 000000000..cdd0ac10a --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/assets/js/pages/About.js @@ -0,0 +1,13 @@ +import React from "react"; +import { Head } from "@inertiajs/react"; + +export default function AboutPage() { + return ( + <> + + +

About Us

+

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

+ + ); +} diff --git a/mercuryseries/inertia-bundle/0.1.0/assets/js/pages/Home.js b/mercuryseries/inertia-bundle/0.1.0/assets/js/pages/Home.js new file mode 100644 index 000000000..424a3b5c9 --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/assets/js/pages/Home.js @@ -0,0 +1,12 @@ +import React from "react"; +import { Head } from "@inertiajs/react"; + +export default function HomePage({ name }) { + return ( + <> + + +

Hello, {name}!

+ + ); +} diff --git a/mercuryseries/inertia-bundle/0.1.0/assets/js/ssr.js b/mercuryseries/inertia-bundle/0.1.0/assets/js/ssr.js new file mode 100644 index 000000000..a207666a0 --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/assets/js/ssr.js @@ -0,0 +1,24 @@ +import React from "react"; +import { createInertiaApp } from "@inertiajs/react"; +import createServer from "@inertiajs/react/server"; +import ReactDOMServer from "react-dom/server"; +import Layout from "@/components/Layout"; +import "../styles/app.css"; + +const appName = "Symfony ❤️ Inertia.js"; + +createServer((page) => + createInertiaApp({ + page, + render: ReactDOMServer.renderToString, + title: (title) => (title ? `${title} | ${appName}` : appName), + resolve: (name) => { + const page = require(`./pages/${name}`).default; + if (page.layout === undefined) { + page.layout = Layout; + } + return page; + }, + setup: ({ App, props }) => , + }) +); diff --git a/mercuryseries/inertia-bundle/0.1.0/assets/styles/app.css b/mercuryseries/inertia-bundle/0.1.0/assets/styles/app.css new file mode 100644 index 000000000..1925d537f --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/assets/styles/app.css @@ -0,0 +1,8 @@ +body { + background-color: #f8fafc; +} + +a.active { + font-weight: bold; + color: lightcoral; +} diff --git a/mercuryseries/inertia-bundle/0.1.0/config/packages/mercuryseries_inertia_maker.yaml b/mercuryseries/inertia-bundle/0.1.0/config/packages/mercuryseries_inertia_maker.yaml new file mode 100644 index 000000000..123ec554e --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/config/packages/mercuryseries_inertia_maker.yaml @@ -0,0 +1,38 @@ +mercuryseries_inertia_maker: + # |-------------------------------------------------------------------------- + # | Server-side Rendering + # |-------------------------------------------------------------------------- + # | + # | These options configures if and how Inertia uses Server Side Rendering + # | to pre-render the initial visits made to your application's pages. + # | + # | You can specify a custom SSR bundle path, or omit it to let Inertia + # | try and automatically detect it for you. + # | + # | Do note that enabling these options will NOT automatically make SSR work, + # | as a separate rendering service needs to be available. To learn more, + # | please visit https://inertiajs.com/server-side-rendering + ssr: + enabled: false + url: 'http://127.0.0.1:13714/render' + bundle: '%kernel.project_dir%/public/build-ssr/ssr.mjs' + + # |-------------------------------------------------------------------------- + # | CSRF Protection + # |-------------------------------------------------------------------------- + # | CSRF (Cross-Site Request Forgery) protection is a security measure + # | to prevent malicious websites from making requests on behalf of users + # | without their consent. + # | + # | Inertia provides CSRF protection by configuring CSRF tokens and cookies. + # | The CSRF cookie is used to store the CSRF token, and it is sent with each + # | request made to the application. The CSRF token is verified on the server + # | side to ensure the authenticity of the request. + # | + # | To learn more, please visit https://inertiajs.com/csrf-protection + csrf_cookie: + expire: 0 + path: / + # domain: ~ + secure: true + sameSite: lax diff --git a/mercuryseries/inertia-bundle/0.1.0/jsconfig.json b/mercuryseries/inertia-bundle/0.1.0/jsconfig.json new file mode 100644 index 000000000..eb52da8fc --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/jsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["assets/js/*"] + } + }, + "exclude": ["node_modules", "public"] +} diff --git a/mercuryseries/inertia-bundle/0.1.0/manifest.json b/mercuryseries/inertia-bundle/0.1.0/manifest.json new file mode 100644 index 000000000..f3a6fd5e2 --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/manifest.json @@ -0,0 +1,30 @@ +{ + "bundles": { + "Rompetomp\\InertiaBundle\\RompetompInertiaBundle": ["all"], + "Dneustadt\\CsrfCookieBundle\\DneustadtCsrfCookieBundle::class": ["all"], + "FOS\\JsRoutingBundle\\FOSJsRoutingBundle": ["all"], + "Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": ["all"], + "Symfony\\Bundle\\TwigBundle\\TwigBundle": ["all"], + "MercurySeries\\Bundle\\InertiaBundle\\MercurySeriesInertiaBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "src/": "%SRC_DIR%/", + "assets/": "assets/", + "templates/": "templates/", + "package.json": "package.json", + "webpack.config.js": "webpack.config.js", + "webpack.ssr.config.js": "webpack.ssr.config.js", + "jsconfig.json": "jsconfig.json" + }, + "gitignore": ["/%PUBLIC_DIR%/build-ssr/"], + "add-lines": [ + { + "file": "config/routes.yaml", + "content": " defaults:\n csrf:\n create: true\n require:\n - 'POST'\n - 'PUT'\n - 'PATCH'\n - 'DELETE'", + "position": "after_target", + "target": "type: attribute", + "warn_if_missing": true + } + ] +} diff --git a/mercuryseries/inertia-bundle/0.1.0/package.json b/mercuryseries/inertia-bundle/0.1.0/package.json new file mode 100644 index 000000000..7156c81a0 --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/package.json @@ -0,0 +1,31 @@ +{ + "devDependencies": { + "@babel/core": "^7.17.0", + "@babel/preset-env": "^7.16.0", + "@babel/preset-react": "^7.18.6", + "@inertiajs/react": "^1.0.7", + "@symfony/webpack-encore": "^4.0.0", + "babel-plugin-transform-react-remove-prop-types": "^0.4.24", + "core-js": "^3.23.0", + "fos-router": "file:vendor/friendsofsymfony/jsrouting-bundle/Resources", + "prettier": "^2.8.8", + "prop-types": "^15.8.1", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "regenerator-runtime": "^0.13.9", + "webpack": "^5.74.0", + "webpack-cli": "^4.10.0", + "webpack-node-externals": "^3.0.0", + "webpack-notifier": "^1.15.0" + }, + "license": "UNLICENSED", + "private": true, + "scripts": { + "dev-server": "encore dev-server", + "dev": "encore dev", + "watch": "encore dev --watch", + "build:client": "encore production --progress", + "build:server": "encore production --progress --config webpack.ssr.config.js", + "build": "npm run build:client && npm run build:server" + } +} diff --git a/mercuryseries/inertia-bundle/0.1.0/post-install.txt b/mercuryseries/inertia-bundle/0.1.0/post-install.txt new file mode 100644 index 000000000..930be06d1 --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/post-install.txt @@ -0,0 +1,10 @@ + + Getting started using mercuryseries/inertia-maker-bundle + + + Configure your transformations: + 1. Add if necessary a configuration file in %CONFIG_DIR%/packages/mercuryseries_inertia_maker.yaml. + 2. Verify the Webpack configuration in /webpack.config.js. + 3. Install npm and run npm install. + 4. Start the development server: npm run dev. + 5. Start coding into assets/js/pages/ diff --git a/mercuryseries/inertia-bundle/0.1.0/src/Controller/PagesController.php b/mercuryseries/inertia-bundle/0.1.0/src/Controller/PagesController.php new file mode 100644 index 000000000..051f934ef --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/src/Controller/PagesController.php @@ -0,0 +1,22 @@ + true])] + public function home(): Response + { + return $this->inertiaRender('Home', ['name' => 'John Doe']); + } + + #[Route('/about-us', name: 'app_about', methods: ['GET'], options: ['expose' => true])] + public function about(): Response + { + return $this->inertiaRender('About'); + } +} diff --git a/mercuryseries/inertia-bundle/0.1.0/templates/app.html.twig b/mercuryseries/inertia-bundle/0.1.0/templates/app.html.twig new file mode 100644 index 000000000..6f12aff1c --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/templates/app.html.twig @@ -0,0 +1,19 @@ + + + + + + + {% block stylesheets %} + {{ encore_entry_link_tags('app') }} + {% endblock %} + + {% block javascripts %} + {{ encore_entry_script_tags('app') }} + {% endblock %} + {{ inertiaHead(page) }} + + + {{ inertia(page) }} + + diff --git a/mercuryseries/inertia-bundle/0.1.0/webpack.config.js b/mercuryseries/inertia-bundle/0.1.0/webpack.config.js new file mode 100644 index 000000000..a14d0e08a --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/webpack.config.js @@ -0,0 +1,77 @@ +const Encore = require("@symfony/webpack-encore"); +const FosRouting = require("fos-router/webpack/FosRouting"); +const path = require("path"); + +// Manually configure the runtime environment if not already configured yet by the "encore" command. +// It's useful when you use tools that rely on webpack.config.js file. +if (!Encore.isRuntimeEnvironmentConfigured()) { + Encore.configureRuntimeEnvironment(process.env.NODE_ENV || "dev"); +} + +Encore.addPlugin(new FosRouting()) + // directory where compiled assets will be stored + .setOutputPath("public/build/") + // public path used by the web server to access the output path + .setPublicPath("/build") + // only needed for CDN's or sub-directory deploy + //.setManifestKeyPrefix("build/") + + .addAliases({ + "@": path.resolve("assets/js"), + "@img": path.resolve("assets/img"), + }) + + /* + * ENTRY CONFIG + * + * Each entry will result in one JavaScript file (e.g. app.js) + * and one CSS file (e.g. app.css) if your JavaScript imports CSS. + */ + .addEntry("app", "./assets/js/app.js") + + // When enabled, Webpack "splits" your files into smaller pieces for greater optimization. + .splitEntryChunks() + + .disableSingleRuntimeChunk() + + /* + * FEATURE CONFIG + * + * Enable & configure other features below. For a full + * list of features, see: + * https://symfony.com/doc/current/frontend.html#adding-more-features + */ + .cleanupOutputBeforeBuild() + .enableBuildNotifications() + .enableSourceMaps(!Encore.isProduction()) + // enables hashed filenames (e.g. app.abc123.css) + .enableVersioning(Encore.isProduction()) + + .configureBabel((config) => { + // config.plugins.push("@babel/a-babel-plugin"); + + if (Encore.isProduction()) { + config.plugins.push("transform-react-remove-prop-types"); + } + }) + + // enables @babel/preset-env polyfills + .configureBabelPresetEnv((config) => { + config.useBuiltIns = "usage"; + config.corejs = "3.23"; + }) + + // enables Sass/SCSS support + //.enableSassLoader() + + // uncomment if you use TypeScript + //.enableTypeScriptLoader() + + // uncomment if you use React + .enableReactPreset() + + // uncomment to get integrity="..." attributes on your script & link tags + // requires WebpackEncoreBundle 1.4 or higher + .enableIntegrityHashes(Encore.isProduction()); + +module.exports = Encore.getWebpackConfig(); diff --git a/mercuryseries/inertia-bundle/0.1.0/webpack.ssr.config.js b/mercuryseries/inertia-bundle/0.1.0/webpack.ssr.config.js new file mode 100644 index 000000000..983353c18 --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1.0/webpack.ssr.config.js @@ -0,0 +1,43 @@ +const Encore = require("@symfony/webpack-encore"); +const FosRouting = require("fos-router/webpack/FosRouting"); +const nodeExternals = require("webpack-node-externals"); +const path = require("path"); + +if (!Encore.isRuntimeEnvironmentConfigured()) { + Encore.configureRuntimeEnvironment(process.env.NODE_ENV || "dev"); +} + +Encore.addPlugin(new FosRouting()) + .setOutputPath("public/build-ssr/") + .setPublicPath("/build-ssr") + .enableReactPreset() + .addAliases({ + "@": path.resolve("assets/js"), + "@img": path.resolve("assets/img"), + }) + .addEntry("ssr", "./assets/js/ssr.js") + .disableSingleRuntimeChunk() + .cleanupOutputBeforeBuild() + .enableSourceMaps(!Encore.isProduction()) + .configureBabel((config) => { + // config.plugins.push("@babel/a-babel-plugin"); + + if (Encore.isProduction()) { + config.plugins.push("transform-react-remove-prop-types"); + } + }) + .configureBabelPresetEnv((config) => { + config.useBuiltIns = "usage"; + config.corejs = "3.23"; + }); + +const config = Encore.getWebpackConfig(); +config.externalsPresets = { node: true }; +config.externals = [ + nodeExternals({ + allowlist: [/^@inertiajs/], + }), +]; +config.output.globalObject = "this"; + +module.exports = config; From da117f2827b408889cab4c723484bd3472bd2d1b Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 17:07:00 -0400 Subject: [PATCH 02/37] fix version issue --- .../inertia-bundle/{0.1.0 => 0.1}/assets/js/app.js | 0 .../{0.1.0 => 0.1}/assets/js/components/Layout.js | 0 .../{0.1.0 => 0.1}/assets/js/pages/About.js | 0 .../{0.1.0 => 0.1}/assets/js/pages/Home.js | 0 .../inertia-bundle/{0.1.0 => 0.1}/assets/js/ssr.js | 0 .../{0.1.0 => 0.1}/assets/styles/app.css | 0 .../config/packages/mercuryseries_inertia_maker.yaml | 2 +- .../inertia-bundle/{0.1.0 => 0.1}/jsconfig.json | 0 .../inertia-bundle/{0.1.0 => 0.1}/manifest.json | 11 +---------- .../inertia-bundle/{0.1.0 => 0.1}/package.json | 0 .../inertia-bundle/{0.1.0 => 0.1}/post-install.txt | 0 .../{0.1.0 => 0.1}/src/Controller/PagesController.php | 0 .../{0.1.0 => 0.1}/templates/app.html.twig | 0 .../inertia-bundle/{0.1.0 => 0.1}/webpack.config.js | 0 .../{0.1.0 => 0.1}/webpack.ssr.config.js | 0 15 files changed, 2 insertions(+), 11 deletions(-) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/assets/js/app.js (100%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/assets/js/components/Layout.js (100%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/assets/js/pages/About.js (100%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/assets/js/pages/Home.js (100%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/assets/js/ssr.js (100%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/assets/styles/app.css (100%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/config/packages/mercuryseries_inertia_maker.yaml (98%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/jsconfig.json (100%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/manifest.json (63%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/package.json (100%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/post-install.txt (100%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/src/Controller/PagesController.php (100%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/templates/app.html.twig (100%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/webpack.config.js (100%) rename mercuryseries/inertia-bundle/{0.1.0 => 0.1}/webpack.ssr.config.js (100%) diff --git a/mercuryseries/inertia-bundle/0.1.0/assets/js/app.js b/mercuryseries/inertia-bundle/0.1/assets/js/app.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1.0/assets/js/app.js rename to mercuryseries/inertia-bundle/0.1/assets/js/app.js diff --git a/mercuryseries/inertia-bundle/0.1.0/assets/js/components/Layout.js b/mercuryseries/inertia-bundle/0.1/assets/js/components/Layout.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1.0/assets/js/components/Layout.js rename to mercuryseries/inertia-bundle/0.1/assets/js/components/Layout.js diff --git a/mercuryseries/inertia-bundle/0.1.0/assets/js/pages/About.js b/mercuryseries/inertia-bundle/0.1/assets/js/pages/About.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1.0/assets/js/pages/About.js rename to mercuryseries/inertia-bundle/0.1/assets/js/pages/About.js diff --git a/mercuryseries/inertia-bundle/0.1.0/assets/js/pages/Home.js b/mercuryseries/inertia-bundle/0.1/assets/js/pages/Home.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1.0/assets/js/pages/Home.js rename to mercuryseries/inertia-bundle/0.1/assets/js/pages/Home.js diff --git a/mercuryseries/inertia-bundle/0.1.0/assets/js/ssr.js b/mercuryseries/inertia-bundle/0.1/assets/js/ssr.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1.0/assets/js/ssr.js rename to mercuryseries/inertia-bundle/0.1/assets/js/ssr.js diff --git a/mercuryseries/inertia-bundle/0.1.0/assets/styles/app.css b/mercuryseries/inertia-bundle/0.1/assets/styles/app.css similarity index 100% rename from mercuryseries/inertia-bundle/0.1.0/assets/styles/app.css rename to mercuryseries/inertia-bundle/0.1/assets/styles/app.css diff --git a/mercuryseries/inertia-bundle/0.1.0/config/packages/mercuryseries_inertia_maker.yaml b/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia_maker.yaml similarity index 98% rename from mercuryseries/inertia-bundle/0.1.0/config/packages/mercuryseries_inertia_maker.yaml rename to mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia_maker.yaml index 123ec554e..382251354 100644 --- a/mercuryseries/inertia-bundle/0.1.0/config/packages/mercuryseries_inertia_maker.yaml +++ b/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia_maker.yaml @@ -33,6 +33,6 @@ mercuryseries_inertia_maker: csrf_cookie: expire: 0 path: / - # domain: ~ + # domain: null secure: true sameSite: lax diff --git a/mercuryseries/inertia-bundle/0.1.0/jsconfig.json b/mercuryseries/inertia-bundle/0.1/jsconfig.json similarity index 100% rename from mercuryseries/inertia-bundle/0.1.0/jsconfig.json rename to mercuryseries/inertia-bundle/0.1/jsconfig.json diff --git a/mercuryseries/inertia-bundle/0.1.0/manifest.json b/mercuryseries/inertia-bundle/0.1/manifest.json similarity index 63% rename from mercuryseries/inertia-bundle/0.1.0/manifest.json rename to mercuryseries/inertia-bundle/0.1/manifest.json index f3a6fd5e2..2ccf1c0ac 100644 --- a/mercuryseries/inertia-bundle/0.1.0/manifest.json +++ b/mercuryseries/inertia-bundle/0.1/manifest.json @@ -17,14 +17,5 @@ "webpack.ssr.config.js": "webpack.ssr.config.js", "jsconfig.json": "jsconfig.json" }, - "gitignore": ["/%PUBLIC_DIR%/build-ssr/"], - "add-lines": [ - { - "file": "config/routes.yaml", - "content": " defaults:\n csrf:\n create: true\n require:\n - 'POST'\n - 'PUT'\n - 'PATCH'\n - 'DELETE'", - "position": "after_target", - "target": "type: attribute", - "warn_if_missing": true - } - ] + "gitignore": ["/%PUBLIC_DIR%/build-ssr/"] } diff --git a/mercuryseries/inertia-bundle/0.1.0/package.json b/mercuryseries/inertia-bundle/0.1/package.json similarity index 100% rename from mercuryseries/inertia-bundle/0.1.0/package.json rename to mercuryseries/inertia-bundle/0.1/package.json diff --git a/mercuryseries/inertia-bundle/0.1.0/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt similarity index 100% rename from mercuryseries/inertia-bundle/0.1.0/post-install.txt rename to mercuryseries/inertia-bundle/0.1/post-install.txt diff --git a/mercuryseries/inertia-bundle/0.1.0/src/Controller/PagesController.php b/mercuryseries/inertia-bundle/0.1/src/Controller/PagesController.php similarity index 100% rename from mercuryseries/inertia-bundle/0.1.0/src/Controller/PagesController.php rename to mercuryseries/inertia-bundle/0.1/src/Controller/PagesController.php diff --git a/mercuryseries/inertia-bundle/0.1.0/templates/app.html.twig b/mercuryseries/inertia-bundle/0.1/templates/app.html.twig similarity index 100% rename from mercuryseries/inertia-bundle/0.1.0/templates/app.html.twig rename to mercuryseries/inertia-bundle/0.1/templates/app.html.twig diff --git a/mercuryseries/inertia-bundle/0.1.0/webpack.config.js b/mercuryseries/inertia-bundle/0.1/webpack.config.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1.0/webpack.config.js rename to mercuryseries/inertia-bundle/0.1/webpack.config.js diff --git a/mercuryseries/inertia-bundle/0.1.0/webpack.ssr.config.js b/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1.0/webpack.ssr.config.js rename to mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js From cb4fbd155b3c67602674a976585515c554b3bd8e Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 17:12:23 -0400 Subject: [PATCH 03/37] fix indentation issue --- .../inertia-bundle/0.1/jsconfig.json | 14 +-- mercuryseries/inertia-bundle/0.1/package.json | 58 +++++----- .../inertia-bundle/0.1/webpack.config.js | 106 +++++++++--------- .../inertia-bundle/0.1/webpack.ssr.config.js | 50 ++++----- 4 files changed, 114 insertions(+), 114 deletions(-) diff --git a/mercuryseries/inertia-bundle/0.1/jsconfig.json b/mercuryseries/inertia-bundle/0.1/jsconfig.json index eb52da8fc..1ba3c500f 100644 --- a/mercuryseries/inertia-bundle/0.1/jsconfig.json +++ b/mercuryseries/inertia-bundle/0.1/jsconfig.json @@ -1,9 +1,9 @@ { - "compilerOptions": { - "baseUrl": ".", - "paths": { - "@/*": ["assets/js/*"] - } - }, - "exclude": ["node_modules", "public"] + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["assets/js/*"] + } + }, + "exclude": ["node_modules", "public"] } diff --git a/mercuryseries/inertia-bundle/0.1/package.json b/mercuryseries/inertia-bundle/0.1/package.json index 7156c81a0..02ec17951 100644 --- a/mercuryseries/inertia-bundle/0.1/package.json +++ b/mercuryseries/inertia-bundle/0.1/package.json @@ -1,31 +1,31 @@ { - "devDependencies": { - "@babel/core": "^7.17.0", - "@babel/preset-env": "^7.16.0", - "@babel/preset-react": "^7.18.6", - "@inertiajs/react": "^1.0.7", - "@symfony/webpack-encore": "^4.0.0", - "babel-plugin-transform-react-remove-prop-types": "^0.4.24", - "core-js": "^3.23.0", - "fos-router": "file:vendor/friendsofsymfony/jsrouting-bundle/Resources", - "prettier": "^2.8.8", - "prop-types": "^15.8.1", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "regenerator-runtime": "^0.13.9", - "webpack": "^5.74.0", - "webpack-cli": "^4.10.0", - "webpack-node-externals": "^3.0.0", - "webpack-notifier": "^1.15.0" - }, - "license": "UNLICENSED", - "private": true, - "scripts": { - "dev-server": "encore dev-server", - "dev": "encore dev", - "watch": "encore dev --watch", - "build:client": "encore production --progress", - "build:server": "encore production --progress --config webpack.ssr.config.js", - "build": "npm run build:client && npm run build:server" - } + "devDependencies": { + "@babel/core": "^7.17.0", + "@babel/preset-env": "^7.16.0", + "@babel/preset-react": "^7.18.6", + "@inertiajs/react": "^1.0.7", + "@symfony/webpack-encore": "^4.0.0", + "babel-plugin-transform-react-remove-prop-types": "^0.4.24", + "core-js": "^3.23.0", + "fos-router": "file:vendor/friendsofsymfony/jsrouting-bundle/Resources", + "prettier": "^2.8.8", + "prop-types": "^15.8.1", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "regenerator-runtime": "^0.13.9", + "webpack": "^5.74.0", + "webpack-cli": "^4.10.0", + "webpack-node-externals": "^3.0.0", + "webpack-notifier": "^1.15.0" + }, + "license": "UNLICENSED", + "private": true, + "scripts": { + "dev-server": "encore dev-server", + "dev": "encore dev", + "watch": "encore dev --watch", + "build:client": "encore production --progress", + "build:server": "encore production --progress --config webpack.ssr.config.js", + "build": "npm run build:client && npm run build:server" + } } diff --git a/mercuryseries/inertia-bundle/0.1/webpack.config.js b/mercuryseries/inertia-bundle/0.1/webpack.config.js index a14d0e08a..dc3e1fe7e 100644 --- a/mercuryseries/inertia-bundle/0.1/webpack.config.js +++ b/mercuryseries/inertia-bundle/0.1/webpack.config.js @@ -5,73 +5,73 @@ const path = require("path"); // Manually configure the runtime environment if not already configured yet by the "encore" command. // It's useful when you use tools that rely on webpack.config.js file. if (!Encore.isRuntimeEnvironmentConfigured()) { - Encore.configureRuntimeEnvironment(process.env.NODE_ENV || "dev"); + Encore.configureRuntimeEnvironment(process.env.NODE_ENV || "dev"); } Encore.addPlugin(new FosRouting()) - // directory where compiled assets will be stored - .setOutputPath("public/build/") - // public path used by the web server to access the output path - .setPublicPath("/build") - // only needed for CDN's or sub-directory deploy - //.setManifestKeyPrefix("build/") + // directory where compiled assets will be stored + .setOutputPath("public/build/") + // public path used by the web server to access the output path + .setPublicPath("/build") + // only needed for CDN's or sub-directory deploy + //.setManifestKeyPrefix("build/") - .addAliases({ - "@": path.resolve("assets/js"), - "@img": path.resolve("assets/img"), - }) + .addAliases({ + "@": path.resolve("assets/js"), + "@img": path.resolve("assets/img"), + }) - /* - * ENTRY CONFIG - * - * Each entry will result in one JavaScript file (e.g. app.js) - * and one CSS file (e.g. app.css) if your JavaScript imports CSS. - */ - .addEntry("app", "./assets/js/app.js") + /* + * ENTRY CONFIG + * + * Each entry will result in one JavaScript file (e.g. app.js) + * and one CSS file (e.g. app.css) if your JavaScript imports CSS. + */ + .addEntry("app", "./assets/js/app.js") - // When enabled, Webpack "splits" your files into smaller pieces for greater optimization. - .splitEntryChunks() + // When enabled, Webpack "splits" your files into smaller pieces for greater optimization. + .splitEntryChunks() - .disableSingleRuntimeChunk() + .disableSingleRuntimeChunk() - /* - * FEATURE CONFIG - * - * Enable & configure other features below. For a full - * list of features, see: - * https://symfony.com/doc/current/frontend.html#adding-more-features - */ - .cleanupOutputBeforeBuild() - .enableBuildNotifications() - .enableSourceMaps(!Encore.isProduction()) - // enables hashed filenames (e.g. app.abc123.css) - .enableVersioning(Encore.isProduction()) + /* + * FEATURE CONFIG + * + * Enable & configure other features below. For a full + * list of features, see: + * https://symfony.com/doc/current/frontend.html#adding-more-features + */ + .cleanupOutputBeforeBuild() + .enableBuildNotifications() + .enableSourceMaps(!Encore.isProduction()) + // enables hashed filenames (e.g. app.abc123.css) + .enableVersioning(Encore.isProduction()) - .configureBabel((config) => { - // config.plugins.push("@babel/a-babel-plugin"); + .configureBabel((config) => { + // config.plugins.push("@babel/a-babel-plugin"); - if (Encore.isProduction()) { - config.plugins.push("transform-react-remove-prop-types"); - } - }) + if (Encore.isProduction()) { + config.plugins.push("transform-react-remove-prop-types"); + } + }) - // enables @babel/preset-env polyfills - .configureBabelPresetEnv((config) => { - config.useBuiltIns = "usage"; - config.corejs = "3.23"; - }) + // enables @babel/preset-env polyfills + .configureBabelPresetEnv((config) => { + config.useBuiltIns = "usage"; + config.corejs = "3.23"; + }) - // enables Sass/SCSS support - //.enableSassLoader() + // enables Sass/SCSS support + //.enableSassLoader() - // uncomment if you use TypeScript - //.enableTypeScriptLoader() + // uncomment if you use TypeScript + //.enableTypeScriptLoader() - // uncomment if you use React - .enableReactPreset() + // uncomment if you use React + .enableReactPreset() - // uncomment to get integrity="..." attributes on your script & link tags - // requires WebpackEncoreBundle 1.4 or higher - .enableIntegrityHashes(Encore.isProduction()); + // uncomment to get integrity="..." attributes on your script & link tags + // requires WebpackEncoreBundle 1.4 or higher + .enableIntegrityHashes(Encore.isProduction()); module.exports = Encore.getWebpackConfig(); diff --git a/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js b/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js index 983353c18..0f17f925c 100644 --- a/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js +++ b/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js @@ -4,39 +4,39 @@ const nodeExternals = require("webpack-node-externals"); const path = require("path"); if (!Encore.isRuntimeEnvironmentConfigured()) { - Encore.configureRuntimeEnvironment(process.env.NODE_ENV || "dev"); + Encore.configureRuntimeEnvironment(process.env.NODE_ENV || "dev"); } Encore.addPlugin(new FosRouting()) - .setOutputPath("public/build-ssr/") - .setPublicPath("/build-ssr") - .enableReactPreset() - .addAliases({ - "@": path.resolve("assets/js"), - "@img": path.resolve("assets/img"), - }) - .addEntry("ssr", "./assets/js/ssr.js") - .disableSingleRuntimeChunk() - .cleanupOutputBeforeBuild() - .enableSourceMaps(!Encore.isProduction()) - .configureBabel((config) => { - // config.plugins.push("@babel/a-babel-plugin"); + .setOutputPath("public/build-ssr/") + .setPublicPath("/build-ssr") + .enableReactPreset() + .addAliases({ + "@": path.resolve("assets/js"), + "@img": path.resolve("assets/img"), + }) + .addEntry("ssr", "./assets/js/ssr.js") + .disableSingleRuntimeChunk() + .cleanupOutputBeforeBuild() + .enableSourceMaps(!Encore.isProduction()) + .configureBabel((config) => { + // config.plugins.push("@babel/a-babel-plugin"); - if (Encore.isProduction()) { - config.plugins.push("transform-react-remove-prop-types"); - } - }) - .configureBabelPresetEnv((config) => { - config.useBuiltIns = "usage"; - config.corejs = "3.23"; - }); + if (Encore.isProduction()) { + config.plugins.push("transform-react-remove-prop-types"); + } + }) + .configureBabelPresetEnv((config) => { + config.useBuiltIns = "usage"; + config.corejs = "3.23"; + }); const config = Encore.getWebpackConfig(); config.externalsPresets = { node: true }; config.externals = [ - nodeExternals({ - allowlist: [/^@inertiajs/], - }), + nodeExternals({ + allowlist: [/^@inertiajs/], + }), ]; config.output.globalObject = "this"; From e5e03ee968d1278fbf49db4f0bbb2b717bdb865a Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 17:17:57 -0400 Subject: [PATCH 04/37] Remove ::class typo --- mercuryseries/inertia-bundle/0.1/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.1/manifest.json b/mercuryseries/inertia-bundle/0.1/manifest.json index 2ccf1c0ac..94cfb9f16 100644 --- a/mercuryseries/inertia-bundle/0.1/manifest.json +++ b/mercuryseries/inertia-bundle/0.1/manifest.json @@ -1,7 +1,7 @@ { "bundles": { "Rompetomp\\InertiaBundle\\RompetompInertiaBundle": ["all"], - "Dneustadt\\CsrfCookieBundle\\DneustadtCsrfCookieBundle::class": ["all"], + "Dneustadt\\CsrfCookieBundle\\DneustadtCsrfCookieBundle": ["all"], "FOS\\JsRoutingBundle\\FOSJsRoutingBundle": ["all"], "Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": ["all"], "Symfony\\Bundle\\TwigBundle\\TwigBundle": ["all"], From e04c8adb8a0029087d45e9a3a941fa4d8350c942 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 17:23:52 -0400 Subject: [PATCH 05/37] Switch to 0.2 --- mercuryseries/inertia-bundle/{0.1 => 0.2}/assets/js/app.js | 0 .../inertia-bundle/{0.1 => 0.2}/assets/js/components/Layout.js | 0 .../inertia-bundle/{0.1 => 0.2}/assets/js/pages/About.js | 0 mercuryseries/inertia-bundle/{0.1 => 0.2}/assets/js/pages/Home.js | 0 mercuryseries/inertia-bundle/{0.1 => 0.2}/assets/js/ssr.js | 0 mercuryseries/inertia-bundle/{0.1 => 0.2}/assets/styles/app.css | 0 .../{0.1 => 0.2}/config/packages/mercuryseries_inertia_maker.yaml | 0 mercuryseries/inertia-bundle/{0.1 => 0.2}/jsconfig.json | 0 mercuryseries/inertia-bundle/{0.1 => 0.2}/manifest.json | 0 mercuryseries/inertia-bundle/{0.1 => 0.2}/package.json | 0 mercuryseries/inertia-bundle/{0.1 => 0.2}/post-install.txt | 0 .../{0.1 => 0.2}/src/Controller/PagesController.php | 0 mercuryseries/inertia-bundle/{0.1 => 0.2}/templates/app.html.twig | 0 mercuryseries/inertia-bundle/{0.1 => 0.2}/webpack.config.js | 0 mercuryseries/inertia-bundle/{0.1 => 0.2}/webpack.ssr.config.js | 0 15 files changed, 0 insertions(+), 0 deletions(-) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/assets/js/app.js (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/assets/js/components/Layout.js (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/assets/js/pages/About.js (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/assets/js/pages/Home.js (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/assets/js/ssr.js (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/assets/styles/app.css (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/config/packages/mercuryseries_inertia_maker.yaml (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/jsconfig.json (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/manifest.json (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/package.json (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/post-install.txt (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/src/Controller/PagesController.php (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/templates/app.html.twig (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/webpack.config.js (100%) rename mercuryseries/inertia-bundle/{0.1 => 0.2}/webpack.ssr.config.js (100%) diff --git a/mercuryseries/inertia-bundle/0.1/assets/js/app.js b/mercuryseries/inertia-bundle/0.2/assets/js/app.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1/assets/js/app.js rename to mercuryseries/inertia-bundle/0.2/assets/js/app.js diff --git a/mercuryseries/inertia-bundle/0.1/assets/js/components/Layout.js b/mercuryseries/inertia-bundle/0.2/assets/js/components/Layout.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1/assets/js/components/Layout.js rename to mercuryseries/inertia-bundle/0.2/assets/js/components/Layout.js diff --git a/mercuryseries/inertia-bundle/0.1/assets/js/pages/About.js b/mercuryseries/inertia-bundle/0.2/assets/js/pages/About.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1/assets/js/pages/About.js rename to mercuryseries/inertia-bundle/0.2/assets/js/pages/About.js diff --git a/mercuryseries/inertia-bundle/0.1/assets/js/pages/Home.js b/mercuryseries/inertia-bundle/0.2/assets/js/pages/Home.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1/assets/js/pages/Home.js rename to mercuryseries/inertia-bundle/0.2/assets/js/pages/Home.js diff --git a/mercuryseries/inertia-bundle/0.1/assets/js/ssr.js b/mercuryseries/inertia-bundle/0.2/assets/js/ssr.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1/assets/js/ssr.js rename to mercuryseries/inertia-bundle/0.2/assets/js/ssr.js diff --git a/mercuryseries/inertia-bundle/0.1/assets/styles/app.css b/mercuryseries/inertia-bundle/0.2/assets/styles/app.css similarity index 100% rename from mercuryseries/inertia-bundle/0.1/assets/styles/app.css rename to mercuryseries/inertia-bundle/0.2/assets/styles/app.css diff --git a/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia_maker.yaml b/mercuryseries/inertia-bundle/0.2/config/packages/mercuryseries_inertia_maker.yaml similarity index 100% rename from mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia_maker.yaml rename to mercuryseries/inertia-bundle/0.2/config/packages/mercuryseries_inertia_maker.yaml diff --git a/mercuryseries/inertia-bundle/0.1/jsconfig.json b/mercuryseries/inertia-bundle/0.2/jsconfig.json similarity index 100% rename from mercuryseries/inertia-bundle/0.1/jsconfig.json rename to mercuryseries/inertia-bundle/0.2/jsconfig.json diff --git a/mercuryseries/inertia-bundle/0.1/manifest.json b/mercuryseries/inertia-bundle/0.2/manifest.json similarity index 100% rename from mercuryseries/inertia-bundle/0.1/manifest.json rename to mercuryseries/inertia-bundle/0.2/manifest.json diff --git a/mercuryseries/inertia-bundle/0.1/package.json b/mercuryseries/inertia-bundle/0.2/package.json similarity index 100% rename from mercuryseries/inertia-bundle/0.1/package.json rename to mercuryseries/inertia-bundle/0.2/package.json diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.2/post-install.txt similarity index 100% rename from mercuryseries/inertia-bundle/0.1/post-install.txt rename to mercuryseries/inertia-bundle/0.2/post-install.txt diff --git a/mercuryseries/inertia-bundle/0.1/src/Controller/PagesController.php b/mercuryseries/inertia-bundle/0.2/src/Controller/PagesController.php similarity index 100% rename from mercuryseries/inertia-bundle/0.1/src/Controller/PagesController.php rename to mercuryseries/inertia-bundle/0.2/src/Controller/PagesController.php diff --git a/mercuryseries/inertia-bundle/0.1/templates/app.html.twig b/mercuryseries/inertia-bundle/0.2/templates/app.html.twig similarity index 100% rename from mercuryseries/inertia-bundle/0.1/templates/app.html.twig rename to mercuryseries/inertia-bundle/0.2/templates/app.html.twig diff --git a/mercuryseries/inertia-bundle/0.1/webpack.config.js b/mercuryseries/inertia-bundle/0.2/webpack.config.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1/webpack.config.js rename to mercuryseries/inertia-bundle/0.2/webpack.config.js diff --git a/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js b/mercuryseries/inertia-bundle/0.2/webpack.ssr.config.js similarity index 100% rename from mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js rename to mercuryseries/inertia-bundle/0.2/webpack.ssr.config.js From 90a9386500ee0223a604c0f489c258559a08588f Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 17:32:10 -0400 Subject: [PATCH 06/37] Fix wrong bundle extension --- mercuryseries/inertia-bundle/{0.2 => 0.3}/assets/js/app.js | 0 .../inertia-bundle/{0.2 => 0.3}/assets/js/components/Layout.js | 0 .../inertia-bundle/{0.2 => 0.3}/assets/js/pages/About.js | 0 .../inertia-bundle/{0.2 => 0.3}/assets/js/pages/Home.js | 0 mercuryseries/inertia-bundle/{0.2 => 0.3}/assets/js/ssr.js | 0 mercuryseries/inertia-bundle/{0.2 => 0.3}/assets/styles/app.css | 0 .../config/packages/mercuryseries_inertia.yaml} | 2 +- mercuryseries/inertia-bundle/{0.2 => 0.3}/jsconfig.json | 0 mercuryseries/inertia-bundle/{0.2 => 0.3}/manifest.json | 0 mercuryseries/inertia-bundle/{0.2 => 0.3}/package.json | 0 mercuryseries/inertia-bundle/{0.2 => 0.3}/post-install.txt | 0 .../{0.2 => 0.3}/src/Controller/PagesController.php | 0 .../inertia-bundle/{0.2 => 0.3}/templates/app.html.twig | 0 mercuryseries/inertia-bundle/{0.2 => 0.3}/webpack.config.js | 0 mercuryseries/inertia-bundle/{0.2 => 0.3}/webpack.ssr.config.js | 0 15 files changed, 1 insertion(+), 1 deletion(-) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/assets/js/app.js (100%) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/assets/js/components/Layout.js (100%) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/assets/js/pages/About.js (100%) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/assets/js/pages/Home.js (100%) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/assets/js/ssr.js (100%) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/assets/styles/app.css (100%) rename mercuryseries/inertia-bundle/{0.2/config/packages/mercuryseries_inertia_maker.yaml => 0.3/config/packages/mercuryseries_inertia.yaml} (98%) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/jsconfig.json (100%) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/manifest.json (100%) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/package.json (100%) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/post-install.txt (100%) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/src/Controller/PagesController.php (100%) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/templates/app.html.twig (100%) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/webpack.config.js (100%) rename mercuryseries/inertia-bundle/{0.2 => 0.3}/webpack.ssr.config.js (100%) diff --git a/mercuryseries/inertia-bundle/0.2/assets/js/app.js b/mercuryseries/inertia-bundle/0.3/assets/js/app.js similarity index 100% rename from mercuryseries/inertia-bundle/0.2/assets/js/app.js rename to mercuryseries/inertia-bundle/0.3/assets/js/app.js diff --git a/mercuryseries/inertia-bundle/0.2/assets/js/components/Layout.js b/mercuryseries/inertia-bundle/0.3/assets/js/components/Layout.js similarity index 100% rename from mercuryseries/inertia-bundle/0.2/assets/js/components/Layout.js rename to mercuryseries/inertia-bundle/0.3/assets/js/components/Layout.js diff --git a/mercuryseries/inertia-bundle/0.2/assets/js/pages/About.js b/mercuryseries/inertia-bundle/0.3/assets/js/pages/About.js similarity index 100% rename from mercuryseries/inertia-bundle/0.2/assets/js/pages/About.js rename to mercuryseries/inertia-bundle/0.3/assets/js/pages/About.js diff --git a/mercuryseries/inertia-bundle/0.2/assets/js/pages/Home.js b/mercuryseries/inertia-bundle/0.3/assets/js/pages/Home.js similarity index 100% rename from mercuryseries/inertia-bundle/0.2/assets/js/pages/Home.js rename to mercuryseries/inertia-bundle/0.3/assets/js/pages/Home.js diff --git a/mercuryseries/inertia-bundle/0.2/assets/js/ssr.js b/mercuryseries/inertia-bundle/0.3/assets/js/ssr.js similarity index 100% rename from mercuryseries/inertia-bundle/0.2/assets/js/ssr.js rename to mercuryseries/inertia-bundle/0.3/assets/js/ssr.js diff --git a/mercuryseries/inertia-bundle/0.2/assets/styles/app.css b/mercuryseries/inertia-bundle/0.3/assets/styles/app.css similarity index 100% rename from mercuryseries/inertia-bundle/0.2/assets/styles/app.css rename to mercuryseries/inertia-bundle/0.3/assets/styles/app.css diff --git a/mercuryseries/inertia-bundle/0.2/config/packages/mercuryseries_inertia_maker.yaml b/mercuryseries/inertia-bundle/0.3/config/packages/mercuryseries_inertia.yaml similarity index 98% rename from mercuryseries/inertia-bundle/0.2/config/packages/mercuryseries_inertia_maker.yaml rename to mercuryseries/inertia-bundle/0.3/config/packages/mercuryseries_inertia.yaml index 382251354..58912bff4 100644 --- a/mercuryseries/inertia-bundle/0.2/config/packages/mercuryseries_inertia_maker.yaml +++ b/mercuryseries/inertia-bundle/0.3/config/packages/mercuryseries_inertia.yaml @@ -1,4 +1,4 @@ -mercuryseries_inertia_maker: +mercuryseries_inertia: # |-------------------------------------------------------------------------- # | Server-side Rendering # |-------------------------------------------------------------------------- diff --git a/mercuryseries/inertia-bundle/0.2/jsconfig.json b/mercuryseries/inertia-bundle/0.3/jsconfig.json similarity index 100% rename from mercuryseries/inertia-bundle/0.2/jsconfig.json rename to mercuryseries/inertia-bundle/0.3/jsconfig.json diff --git a/mercuryseries/inertia-bundle/0.2/manifest.json b/mercuryseries/inertia-bundle/0.3/manifest.json similarity index 100% rename from mercuryseries/inertia-bundle/0.2/manifest.json rename to mercuryseries/inertia-bundle/0.3/manifest.json diff --git a/mercuryseries/inertia-bundle/0.2/package.json b/mercuryseries/inertia-bundle/0.3/package.json similarity index 100% rename from mercuryseries/inertia-bundle/0.2/package.json rename to mercuryseries/inertia-bundle/0.3/package.json diff --git a/mercuryseries/inertia-bundle/0.2/post-install.txt b/mercuryseries/inertia-bundle/0.3/post-install.txt similarity index 100% rename from mercuryseries/inertia-bundle/0.2/post-install.txt rename to mercuryseries/inertia-bundle/0.3/post-install.txt diff --git a/mercuryseries/inertia-bundle/0.2/src/Controller/PagesController.php b/mercuryseries/inertia-bundle/0.3/src/Controller/PagesController.php similarity index 100% rename from mercuryseries/inertia-bundle/0.2/src/Controller/PagesController.php rename to mercuryseries/inertia-bundle/0.3/src/Controller/PagesController.php diff --git a/mercuryseries/inertia-bundle/0.2/templates/app.html.twig b/mercuryseries/inertia-bundle/0.3/templates/app.html.twig similarity index 100% rename from mercuryseries/inertia-bundle/0.2/templates/app.html.twig rename to mercuryseries/inertia-bundle/0.3/templates/app.html.twig diff --git a/mercuryseries/inertia-bundle/0.2/webpack.config.js b/mercuryseries/inertia-bundle/0.3/webpack.config.js similarity index 100% rename from mercuryseries/inertia-bundle/0.2/webpack.config.js rename to mercuryseries/inertia-bundle/0.3/webpack.config.js diff --git a/mercuryseries/inertia-bundle/0.2/webpack.ssr.config.js b/mercuryseries/inertia-bundle/0.3/webpack.ssr.config.js similarity index 100% rename from mercuryseries/inertia-bundle/0.2/webpack.ssr.config.js rename to mercuryseries/inertia-bundle/0.3/webpack.ssr.config.js From 7c8bc9703c441fa71aaaf48e6f06022645f5b41b Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 17:35:53 -0400 Subject: [PATCH 07/37] Fix wrong AbstractController namespace --- .../inertia-bundle/0.3/src/Controller/PagesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.3/src/Controller/PagesController.php b/mercuryseries/inertia-bundle/0.3/src/Controller/PagesController.php index 051f934ef..34e8599c8 100644 --- a/mercuryseries/inertia-bundle/0.3/src/Controller/PagesController.php +++ b/mercuryseries/inertia-bundle/0.3/src/Controller/PagesController.php @@ -2,7 +2,7 @@ namespace App\Controller; -use MercurySeries\Bundle\InertiaMakerBundle\Controller\AbstractController; +use MercurySeries\Bundle\InertiaBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; From a041f99063e3fbc67de97f10ea78519a18f490d6 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 17:36:07 -0400 Subject: [PATCH 08/37] Switch to 0.4 --- mercuryseries/inertia-bundle/{0.3 => 0.4}/assets/js/app.js | 0 .../inertia-bundle/{0.3 => 0.4}/assets/js/components/Layout.js | 0 .../inertia-bundle/{0.3 => 0.4}/assets/js/pages/About.js | 0 mercuryseries/inertia-bundle/{0.3 => 0.4}/assets/js/pages/Home.js | 0 mercuryseries/inertia-bundle/{0.3 => 0.4}/assets/js/ssr.js | 0 mercuryseries/inertia-bundle/{0.3 => 0.4}/assets/styles/app.css | 0 .../{0.3 => 0.4}/config/packages/mercuryseries_inertia.yaml | 0 mercuryseries/inertia-bundle/{0.3 => 0.4}/jsconfig.json | 0 mercuryseries/inertia-bundle/{0.3 => 0.4}/manifest.json | 0 mercuryseries/inertia-bundle/{0.3 => 0.4}/package.json | 0 mercuryseries/inertia-bundle/{0.3 => 0.4}/post-install.txt | 0 .../{0.3 => 0.4}/src/Controller/PagesController.php | 0 mercuryseries/inertia-bundle/{0.3 => 0.4}/templates/app.html.twig | 0 mercuryseries/inertia-bundle/{0.3 => 0.4}/webpack.config.js | 0 mercuryseries/inertia-bundle/{0.3 => 0.4}/webpack.ssr.config.js | 0 15 files changed, 0 insertions(+), 0 deletions(-) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/assets/js/app.js (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/assets/js/components/Layout.js (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/assets/js/pages/About.js (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/assets/js/pages/Home.js (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/assets/js/ssr.js (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/assets/styles/app.css (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/config/packages/mercuryseries_inertia.yaml (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/jsconfig.json (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/manifest.json (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/package.json (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/post-install.txt (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/src/Controller/PagesController.php (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/templates/app.html.twig (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/webpack.config.js (100%) rename mercuryseries/inertia-bundle/{0.3 => 0.4}/webpack.ssr.config.js (100%) diff --git a/mercuryseries/inertia-bundle/0.3/assets/js/app.js b/mercuryseries/inertia-bundle/0.4/assets/js/app.js similarity index 100% rename from mercuryseries/inertia-bundle/0.3/assets/js/app.js rename to mercuryseries/inertia-bundle/0.4/assets/js/app.js diff --git a/mercuryseries/inertia-bundle/0.3/assets/js/components/Layout.js b/mercuryseries/inertia-bundle/0.4/assets/js/components/Layout.js similarity index 100% rename from mercuryseries/inertia-bundle/0.3/assets/js/components/Layout.js rename to mercuryseries/inertia-bundle/0.4/assets/js/components/Layout.js diff --git a/mercuryseries/inertia-bundle/0.3/assets/js/pages/About.js b/mercuryseries/inertia-bundle/0.4/assets/js/pages/About.js similarity index 100% rename from mercuryseries/inertia-bundle/0.3/assets/js/pages/About.js rename to mercuryseries/inertia-bundle/0.4/assets/js/pages/About.js diff --git a/mercuryseries/inertia-bundle/0.3/assets/js/pages/Home.js b/mercuryseries/inertia-bundle/0.4/assets/js/pages/Home.js similarity index 100% rename from mercuryseries/inertia-bundle/0.3/assets/js/pages/Home.js rename to mercuryseries/inertia-bundle/0.4/assets/js/pages/Home.js diff --git a/mercuryseries/inertia-bundle/0.3/assets/js/ssr.js b/mercuryseries/inertia-bundle/0.4/assets/js/ssr.js similarity index 100% rename from mercuryseries/inertia-bundle/0.3/assets/js/ssr.js rename to mercuryseries/inertia-bundle/0.4/assets/js/ssr.js diff --git a/mercuryseries/inertia-bundle/0.3/assets/styles/app.css b/mercuryseries/inertia-bundle/0.4/assets/styles/app.css similarity index 100% rename from mercuryseries/inertia-bundle/0.3/assets/styles/app.css rename to mercuryseries/inertia-bundle/0.4/assets/styles/app.css diff --git a/mercuryseries/inertia-bundle/0.3/config/packages/mercuryseries_inertia.yaml b/mercuryseries/inertia-bundle/0.4/config/packages/mercuryseries_inertia.yaml similarity index 100% rename from mercuryseries/inertia-bundle/0.3/config/packages/mercuryseries_inertia.yaml rename to mercuryseries/inertia-bundle/0.4/config/packages/mercuryseries_inertia.yaml diff --git a/mercuryseries/inertia-bundle/0.3/jsconfig.json b/mercuryseries/inertia-bundle/0.4/jsconfig.json similarity index 100% rename from mercuryseries/inertia-bundle/0.3/jsconfig.json rename to mercuryseries/inertia-bundle/0.4/jsconfig.json diff --git a/mercuryseries/inertia-bundle/0.3/manifest.json b/mercuryseries/inertia-bundle/0.4/manifest.json similarity index 100% rename from mercuryseries/inertia-bundle/0.3/manifest.json rename to mercuryseries/inertia-bundle/0.4/manifest.json diff --git a/mercuryseries/inertia-bundle/0.3/package.json b/mercuryseries/inertia-bundle/0.4/package.json similarity index 100% rename from mercuryseries/inertia-bundle/0.3/package.json rename to mercuryseries/inertia-bundle/0.4/package.json diff --git a/mercuryseries/inertia-bundle/0.3/post-install.txt b/mercuryseries/inertia-bundle/0.4/post-install.txt similarity index 100% rename from mercuryseries/inertia-bundle/0.3/post-install.txt rename to mercuryseries/inertia-bundle/0.4/post-install.txt diff --git a/mercuryseries/inertia-bundle/0.3/src/Controller/PagesController.php b/mercuryseries/inertia-bundle/0.4/src/Controller/PagesController.php similarity index 100% rename from mercuryseries/inertia-bundle/0.3/src/Controller/PagesController.php rename to mercuryseries/inertia-bundle/0.4/src/Controller/PagesController.php diff --git a/mercuryseries/inertia-bundle/0.3/templates/app.html.twig b/mercuryseries/inertia-bundle/0.4/templates/app.html.twig similarity index 100% rename from mercuryseries/inertia-bundle/0.3/templates/app.html.twig rename to mercuryseries/inertia-bundle/0.4/templates/app.html.twig diff --git a/mercuryseries/inertia-bundle/0.3/webpack.config.js b/mercuryseries/inertia-bundle/0.4/webpack.config.js similarity index 100% rename from mercuryseries/inertia-bundle/0.3/webpack.config.js rename to mercuryseries/inertia-bundle/0.4/webpack.config.js diff --git a/mercuryseries/inertia-bundle/0.3/webpack.ssr.config.js b/mercuryseries/inertia-bundle/0.4/webpack.ssr.config.js similarity index 100% rename from mercuryseries/inertia-bundle/0.3/webpack.ssr.config.js rename to mercuryseries/inertia-bundle/0.4/webpack.ssr.config.js From d02afb679d62c0f99255d7d8595f95eba12d2736 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 17:38:08 -0400 Subject: [PATCH 09/37] Switch to 0.1 --- mercuryseries/inertia-bundle/{0.4 => 0.1}/assets/js/app.js | 0 .../inertia-bundle/{0.4 => 0.1}/assets/js/components/Layout.js | 0 .../inertia-bundle/{0.4 => 0.1}/assets/js/pages/About.js | 0 mercuryseries/inertia-bundle/{0.4 => 0.1}/assets/js/pages/Home.js | 0 mercuryseries/inertia-bundle/{0.4 => 0.1}/assets/js/ssr.js | 0 mercuryseries/inertia-bundle/{0.4 => 0.1}/assets/styles/app.css | 0 .../{0.4 => 0.1}/config/packages/mercuryseries_inertia.yaml | 0 mercuryseries/inertia-bundle/{0.4 => 0.1}/jsconfig.json | 0 mercuryseries/inertia-bundle/{0.4 => 0.1}/manifest.json | 0 mercuryseries/inertia-bundle/{0.4 => 0.1}/package.json | 0 mercuryseries/inertia-bundle/{0.4 => 0.1}/post-install.txt | 0 .../{0.4 => 0.1}/src/Controller/PagesController.php | 0 mercuryseries/inertia-bundle/{0.4 => 0.1}/templates/app.html.twig | 0 mercuryseries/inertia-bundle/{0.4 => 0.1}/webpack.config.js | 0 mercuryseries/inertia-bundle/{0.4 => 0.1}/webpack.ssr.config.js | 0 15 files changed, 0 insertions(+), 0 deletions(-) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/assets/js/app.js (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/assets/js/components/Layout.js (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/assets/js/pages/About.js (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/assets/js/pages/Home.js (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/assets/js/ssr.js (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/assets/styles/app.css (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/config/packages/mercuryseries_inertia.yaml (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/jsconfig.json (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/manifest.json (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/package.json (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/post-install.txt (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/src/Controller/PagesController.php (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/templates/app.html.twig (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/webpack.config.js (100%) rename mercuryseries/inertia-bundle/{0.4 => 0.1}/webpack.ssr.config.js (100%) diff --git a/mercuryseries/inertia-bundle/0.4/assets/js/app.js b/mercuryseries/inertia-bundle/0.1/assets/js/app.js similarity index 100% rename from mercuryseries/inertia-bundle/0.4/assets/js/app.js rename to mercuryseries/inertia-bundle/0.1/assets/js/app.js diff --git a/mercuryseries/inertia-bundle/0.4/assets/js/components/Layout.js b/mercuryseries/inertia-bundle/0.1/assets/js/components/Layout.js similarity index 100% rename from mercuryseries/inertia-bundle/0.4/assets/js/components/Layout.js rename to mercuryseries/inertia-bundle/0.1/assets/js/components/Layout.js diff --git a/mercuryseries/inertia-bundle/0.4/assets/js/pages/About.js b/mercuryseries/inertia-bundle/0.1/assets/js/pages/About.js similarity index 100% rename from mercuryseries/inertia-bundle/0.4/assets/js/pages/About.js rename to mercuryseries/inertia-bundle/0.1/assets/js/pages/About.js diff --git a/mercuryseries/inertia-bundle/0.4/assets/js/pages/Home.js b/mercuryseries/inertia-bundle/0.1/assets/js/pages/Home.js similarity index 100% rename from mercuryseries/inertia-bundle/0.4/assets/js/pages/Home.js rename to mercuryseries/inertia-bundle/0.1/assets/js/pages/Home.js diff --git a/mercuryseries/inertia-bundle/0.4/assets/js/ssr.js b/mercuryseries/inertia-bundle/0.1/assets/js/ssr.js similarity index 100% rename from mercuryseries/inertia-bundle/0.4/assets/js/ssr.js rename to mercuryseries/inertia-bundle/0.1/assets/js/ssr.js diff --git a/mercuryseries/inertia-bundle/0.4/assets/styles/app.css b/mercuryseries/inertia-bundle/0.1/assets/styles/app.css similarity index 100% rename from mercuryseries/inertia-bundle/0.4/assets/styles/app.css rename to mercuryseries/inertia-bundle/0.1/assets/styles/app.css diff --git a/mercuryseries/inertia-bundle/0.4/config/packages/mercuryseries_inertia.yaml b/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml similarity index 100% rename from mercuryseries/inertia-bundle/0.4/config/packages/mercuryseries_inertia.yaml rename to mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml diff --git a/mercuryseries/inertia-bundle/0.4/jsconfig.json b/mercuryseries/inertia-bundle/0.1/jsconfig.json similarity index 100% rename from mercuryseries/inertia-bundle/0.4/jsconfig.json rename to mercuryseries/inertia-bundle/0.1/jsconfig.json diff --git a/mercuryseries/inertia-bundle/0.4/manifest.json b/mercuryseries/inertia-bundle/0.1/manifest.json similarity index 100% rename from mercuryseries/inertia-bundle/0.4/manifest.json rename to mercuryseries/inertia-bundle/0.1/manifest.json diff --git a/mercuryseries/inertia-bundle/0.4/package.json b/mercuryseries/inertia-bundle/0.1/package.json similarity index 100% rename from mercuryseries/inertia-bundle/0.4/package.json rename to mercuryseries/inertia-bundle/0.1/package.json diff --git a/mercuryseries/inertia-bundle/0.4/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt similarity index 100% rename from mercuryseries/inertia-bundle/0.4/post-install.txt rename to mercuryseries/inertia-bundle/0.1/post-install.txt diff --git a/mercuryseries/inertia-bundle/0.4/src/Controller/PagesController.php b/mercuryseries/inertia-bundle/0.1/src/Controller/PagesController.php similarity index 100% rename from mercuryseries/inertia-bundle/0.4/src/Controller/PagesController.php rename to mercuryseries/inertia-bundle/0.1/src/Controller/PagesController.php diff --git a/mercuryseries/inertia-bundle/0.4/templates/app.html.twig b/mercuryseries/inertia-bundle/0.1/templates/app.html.twig similarity index 100% rename from mercuryseries/inertia-bundle/0.4/templates/app.html.twig rename to mercuryseries/inertia-bundle/0.1/templates/app.html.twig diff --git a/mercuryseries/inertia-bundle/0.4/webpack.config.js b/mercuryseries/inertia-bundle/0.1/webpack.config.js similarity index 100% rename from mercuryseries/inertia-bundle/0.4/webpack.config.js rename to mercuryseries/inertia-bundle/0.1/webpack.config.js diff --git a/mercuryseries/inertia-bundle/0.4/webpack.ssr.config.js b/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js similarity index 100% rename from mercuryseries/inertia-bundle/0.4/webpack.ssr.config.js rename to mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js From adc4971b47fe18b369db02a6969bddae503c8f91 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 17:50:53 -0400 Subject: [PATCH 10/37] Trigger ci --- mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js | 1 - 1 file changed, 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js b/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js index 0f17f925c..da74727a5 100644 --- a/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js +++ b/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js @@ -13,7 +13,6 @@ Encore.addPlugin(new FosRouting()) .enableReactPreset() .addAliases({ "@": path.resolve("assets/js"), - "@img": path.resolve("assets/img"), }) .addEntry("ssr", "./assets/js/ssr.js") .disableSingleRuntimeChunk() From 5cddb9b27b1fbbdf36c0193557618f5797a09213 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 17:53:29 -0400 Subject: [PATCH 11/37] Fix typo --- .../0.1/config/packages/mercuryseries_inertia.yaml | 2 +- mercuryseries/inertia-bundle/0.1/post-install.txt | 4 ++-- mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml b/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml index 58912bff4..c37213aac 100644 --- a/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml +++ b/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml @@ -15,7 +15,7 @@ mercuryseries_inertia: ssr: enabled: false url: 'http://127.0.0.1:13714/render' - bundle: '%kernel.project_dir%/public/build-ssr/ssr.mjs' + bundle: '%kernel.project_dir%/public/build-ssr/ssr.js' # |-------------------------------------------------------------------------- # | CSRF Protection diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index 930be06d1..d238d49fe 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -3,8 +3,8 @@ Configure your transformations: - 1. Add if necessary a configuration file in %CONFIG_DIR%/packages/mercuryseries_inertia_maker.yaml. - 2. Verify the Webpack configuration in /webpack.config.js. + 1. Update if necessary the configuration file in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml. + 2. Verify the Webpack configuration in webpack.config.js. 3. Install npm and run npm install. 4. Start the development server: npm run dev. 5. Start coding into assets/js/pages/ diff --git a/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js b/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js index da74727a5..0f17f925c 100644 --- a/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js +++ b/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js @@ -13,6 +13,7 @@ Encore.addPlugin(new FosRouting()) .enableReactPreset() .addAliases({ "@": path.resolve("assets/js"), + "@img": path.resolve("assets/img"), }) .addEntry("ssr", "./assets/js/ssr.js") .disableSingleRuntimeChunk() From 56ef0fd945b23a99cb553c8c0f5d77562960093b Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 18:03:36 -0400 Subject: [PATCH 12/37] Update config/routes.yaml to add csrf config --- mercuryseries/inertia-bundle/0.1/manifest.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.1/manifest.json b/mercuryseries/inertia-bundle/0.1/manifest.json index 94cfb9f16..01d893cc5 100644 --- a/mercuryseries/inertia-bundle/0.1/manifest.json +++ b/mercuryseries/inertia-bundle/0.1/manifest.json @@ -17,5 +17,14 @@ "webpack.ssr.config.js": "webpack.ssr.config.js", "jsconfig.json": "jsconfig.json" }, - "gitignore": ["/%PUBLIC_DIR%/build-ssr/"] + "gitignore": ["/%PUBLIC_DIR%/build-ssr/"], + "add-lines": [ + { + "file": "config/routes.yaml", + "content": " defaults:\n csrf:\n create: true\n require:\n - 'POST'\n - 'PUT'\n - 'PATCH'\n - 'DELETE'", + "position": "after_target", + "target": "type: attribute", + "warn_if_missing": true + } + ] } From 7834a252da662bf5633356821d16eb7070ea3ebc Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 18:14:51 -0400 Subject: [PATCH 13/37] Keep only MercurySeries\Bundle\InertiaBundle\MercurySeriesInertiaBundle registration --- mercuryseries/inertia-bundle/0.1/manifest.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mercuryseries/inertia-bundle/0.1/manifest.json b/mercuryseries/inertia-bundle/0.1/manifest.json index 01d893cc5..0e3123d01 100644 --- a/mercuryseries/inertia-bundle/0.1/manifest.json +++ b/mercuryseries/inertia-bundle/0.1/manifest.json @@ -1,10 +1,5 @@ { "bundles": { - "Rompetomp\\InertiaBundle\\RompetompInertiaBundle": ["all"], - "Dneustadt\\CsrfCookieBundle\\DneustadtCsrfCookieBundle": ["all"], - "FOS\\JsRoutingBundle\\FOSJsRoutingBundle": ["all"], - "Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": ["all"], - "Symfony\\Bundle\\TwigBundle\\TwigBundle": ["all"], "MercurySeries\\Bundle\\InertiaBundle\\MercurySeriesInertiaBundle": ["all"] }, "copy-from-recipe": { From 6040c131cf21d1e3ef9cd9e476d09493b90627eb Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 19:28:32 -0400 Subject: [PATCH 14/37] fix typo --- mercuryseries/inertia-bundle/0.1/post-install.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index d238d49fe..6f989a513 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -1,5 +1,5 @@ - Getting started using mercuryseries/inertia-maker-bundle + Getting started using mercuryseries/inertia-bundle Configure your transformations: From 46456097dd9d2c60e010524810c7f4d8cea8754c Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 21:41:09 -0400 Subject: [PATCH 15/37] Move files to package --- .../inertia-bundle/0.1/assets/js/app.js | 24 ------ .../0.1/assets/js/components/Layout.js | 45 ----------- .../0.1/assets/js/pages/About.js | 13 ---- .../0.1/assets/js/pages/Home.js | 12 --- .../inertia-bundle/0.1/assets/js/ssr.js | 24 ------ .../inertia-bundle/0.1/assets/styles/app.css | 8 -- .../inertia-bundle/0.1/jsconfig.json | 9 --- .../inertia-bundle/0.1/manifest.json | 7 -- mercuryseries/inertia-bundle/0.1/package.json | 31 -------- .../inertia-bundle/0.1/post-install.txt | 2 +- .../0.1/src/Controller/PagesController.php | 22 ------ .../0.1/templates/app.html.twig | 19 ----- .../inertia-bundle/0.1/webpack.config.js | 77 ------------------- .../inertia-bundle/0.1/webpack.ssr.config.js | 43 ----------- 14 files changed, 1 insertion(+), 335 deletions(-) delete mode 100644 mercuryseries/inertia-bundle/0.1/assets/js/app.js delete mode 100644 mercuryseries/inertia-bundle/0.1/assets/js/components/Layout.js delete mode 100644 mercuryseries/inertia-bundle/0.1/assets/js/pages/About.js delete mode 100644 mercuryseries/inertia-bundle/0.1/assets/js/pages/Home.js delete mode 100644 mercuryseries/inertia-bundle/0.1/assets/js/ssr.js delete mode 100644 mercuryseries/inertia-bundle/0.1/assets/styles/app.css delete mode 100644 mercuryseries/inertia-bundle/0.1/jsconfig.json delete mode 100644 mercuryseries/inertia-bundle/0.1/package.json delete mode 100644 mercuryseries/inertia-bundle/0.1/src/Controller/PagesController.php delete mode 100644 mercuryseries/inertia-bundle/0.1/templates/app.html.twig delete mode 100644 mercuryseries/inertia-bundle/0.1/webpack.config.js delete mode 100644 mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js diff --git a/mercuryseries/inertia-bundle/0.1/assets/js/app.js b/mercuryseries/inertia-bundle/0.1/assets/js/app.js deleted file mode 100644 index a9de50fc3..000000000 --- a/mercuryseries/inertia-bundle/0.1/assets/js/app.js +++ /dev/null @@ -1,24 +0,0 @@ -import React from "react"; -import { createRoot } from "react-dom/client"; -import { createInertiaApp } from "@inertiajs/react"; -import Layout from "./components/Layout"; -import "../styles/app.css"; - -const appName = "Symfony ❤️ Inertia.js"; - -createInertiaApp({ - progress: { - showSpinner: true - }, - title: (title) => (title ? `${title} | ${appName}` : appName), - resolve: (name) => { - const page = require(`./pages/${name}`).default; - if (page.layout === undefined) { - page.layout = Layout; - } - return page; - }, - setup({ el, App, props }) { - createRoot(el).render(); - }, -}); diff --git a/mercuryseries/inertia-bundle/0.1/assets/js/components/Layout.js b/mercuryseries/inertia-bundle/0.1/assets/js/components/Layout.js deleted file mode 100644 index 7df97ec7e..000000000 --- a/mercuryseries/inertia-bundle/0.1/assets/js/components/Layout.js +++ /dev/null @@ -1,45 +0,0 @@ -import React from "react"; -import { Link, usePage } from "@inertiajs/react"; -import Routing from "fos-router"; - -const Layout = ({ children }) => { - const { component } = usePage(); - - return ( - <> -
- -
- -
{children}
- -
-

- Built with ♥ by the folks at{" "} - Parlons Code. -

-
- - ); -}; - -export default (page) => {page}; diff --git a/mercuryseries/inertia-bundle/0.1/assets/js/pages/About.js b/mercuryseries/inertia-bundle/0.1/assets/js/pages/About.js deleted file mode 100644 index cdd0ac10a..000000000 --- a/mercuryseries/inertia-bundle/0.1/assets/js/pages/About.js +++ /dev/null @@ -1,13 +0,0 @@ -import React from "react"; -import { Head } from "@inertiajs/react"; - -export default function AboutPage() { - return ( - <> - - -

About Us

-

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

- - ); -} diff --git a/mercuryseries/inertia-bundle/0.1/assets/js/pages/Home.js b/mercuryseries/inertia-bundle/0.1/assets/js/pages/Home.js deleted file mode 100644 index 424a3b5c9..000000000 --- a/mercuryseries/inertia-bundle/0.1/assets/js/pages/Home.js +++ /dev/null @@ -1,12 +0,0 @@ -import React from "react"; -import { Head } from "@inertiajs/react"; - -export default function HomePage({ name }) { - return ( - <> - - -

Hello, {name}!

- - ); -} diff --git a/mercuryseries/inertia-bundle/0.1/assets/js/ssr.js b/mercuryseries/inertia-bundle/0.1/assets/js/ssr.js deleted file mode 100644 index a207666a0..000000000 --- a/mercuryseries/inertia-bundle/0.1/assets/js/ssr.js +++ /dev/null @@ -1,24 +0,0 @@ -import React from "react"; -import { createInertiaApp } from "@inertiajs/react"; -import createServer from "@inertiajs/react/server"; -import ReactDOMServer from "react-dom/server"; -import Layout from "@/components/Layout"; -import "../styles/app.css"; - -const appName = "Symfony ❤️ Inertia.js"; - -createServer((page) => - createInertiaApp({ - page, - render: ReactDOMServer.renderToString, - title: (title) => (title ? `${title} | ${appName}` : appName), - resolve: (name) => { - const page = require(`./pages/${name}`).default; - if (page.layout === undefined) { - page.layout = Layout; - } - return page; - }, - setup: ({ App, props }) => , - }) -); diff --git a/mercuryseries/inertia-bundle/0.1/assets/styles/app.css b/mercuryseries/inertia-bundle/0.1/assets/styles/app.css deleted file mode 100644 index 1925d537f..000000000 --- a/mercuryseries/inertia-bundle/0.1/assets/styles/app.css +++ /dev/null @@ -1,8 +0,0 @@ -body { - background-color: #f8fafc; -} - -a.active { - font-weight: bold; - color: lightcoral; -} diff --git a/mercuryseries/inertia-bundle/0.1/jsconfig.json b/mercuryseries/inertia-bundle/0.1/jsconfig.json deleted file mode 100644 index 1ba3c500f..000000000 --- a/mercuryseries/inertia-bundle/0.1/jsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": ".", - "paths": { - "@/*": ["assets/js/*"] - } - }, - "exclude": ["node_modules", "public"] -} diff --git a/mercuryseries/inertia-bundle/0.1/manifest.json b/mercuryseries/inertia-bundle/0.1/manifest.json index 0e3123d01..50eb210a6 100644 --- a/mercuryseries/inertia-bundle/0.1/manifest.json +++ b/mercuryseries/inertia-bundle/0.1/manifest.json @@ -4,13 +4,6 @@ }, "copy-from-recipe": { "config/": "%CONFIG_DIR%/", - "src/": "%SRC_DIR%/", - "assets/": "assets/", - "templates/": "templates/", - "package.json": "package.json", - "webpack.config.js": "webpack.config.js", - "webpack.ssr.config.js": "webpack.ssr.config.js", - "jsconfig.json": "jsconfig.json" }, "gitignore": ["/%PUBLIC_DIR%/build-ssr/"], "add-lines": [ diff --git a/mercuryseries/inertia-bundle/0.1/package.json b/mercuryseries/inertia-bundle/0.1/package.json deleted file mode 100644 index 02ec17951..000000000 --- a/mercuryseries/inertia-bundle/0.1/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "devDependencies": { - "@babel/core": "^7.17.0", - "@babel/preset-env": "^7.16.0", - "@babel/preset-react": "^7.18.6", - "@inertiajs/react": "^1.0.7", - "@symfony/webpack-encore": "^4.0.0", - "babel-plugin-transform-react-remove-prop-types": "^0.4.24", - "core-js": "^3.23.0", - "fos-router": "file:vendor/friendsofsymfony/jsrouting-bundle/Resources", - "prettier": "^2.8.8", - "prop-types": "^15.8.1", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "regenerator-runtime": "^0.13.9", - "webpack": "^5.74.0", - "webpack-cli": "^4.10.0", - "webpack-node-externals": "^3.0.0", - "webpack-notifier": "^1.15.0" - }, - "license": "UNLICENSED", - "private": true, - "scripts": { - "dev-server": "encore dev-server", - "dev": "encore dev", - "watch": "encore dev --watch", - "build:client": "encore production --progress", - "build:server": "encore production --progress --config webpack.ssr.config.js", - "build": "npm run build:client && npm run build:server" - } -} diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index 6f989a513..18ff67fa5 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -4,7 +4,7 @@ Configure your transformations: 1. Update if necessary the configuration file in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml. - 2. Verify the Webpack configuration in webpack.config.js. + 2. Choose your stack symfony console inertia:install react or symfony console inertia:install vue. 3. Install npm and run npm install. 4. Start the development server: npm run dev. 5. Start coding into assets/js/pages/ diff --git a/mercuryseries/inertia-bundle/0.1/src/Controller/PagesController.php b/mercuryseries/inertia-bundle/0.1/src/Controller/PagesController.php deleted file mode 100644 index 34e8599c8..000000000 --- a/mercuryseries/inertia-bundle/0.1/src/Controller/PagesController.php +++ /dev/null @@ -1,22 +0,0 @@ - true])] - public function home(): Response - { - return $this->inertiaRender('Home', ['name' => 'John Doe']); - } - - #[Route('/about-us', name: 'app_about', methods: ['GET'], options: ['expose' => true])] - public function about(): Response - { - return $this->inertiaRender('About'); - } -} diff --git a/mercuryseries/inertia-bundle/0.1/templates/app.html.twig b/mercuryseries/inertia-bundle/0.1/templates/app.html.twig deleted file mode 100644 index 6f12aff1c..000000000 --- a/mercuryseries/inertia-bundle/0.1/templates/app.html.twig +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - {% block stylesheets %} - {{ encore_entry_link_tags('app') }} - {% endblock %} - - {% block javascripts %} - {{ encore_entry_script_tags('app') }} - {% endblock %} - {{ inertiaHead(page) }} - - - {{ inertia(page) }} - - diff --git a/mercuryseries/inertia-bundle/0.1/webpack.config.js b/mercuryseries/inertia-bundle/0.1/webpack.config.js deleted file mode 100644 index dc3e1fe7e..000000000 --- a/mercuryseries/inertia-bundle/0.1/webpack.config.js +++ /dev/null @@ -1,77 +0,0 @@ -const Encore = require("@symfony/webpack-encore"); -const FosRouting = require("fos-router/webpack/FosRouting"); -const path = require("path"); - -// Manually configure the runtime environment if not already configured yet by the "encore" command. -// It's useful when you use tools that rely on webpack.config.js file. -if (!Encore.isRuntimeEnvironmentConfigured()) { - Encore.configureRuntimeEnvironment(process.env.NODE_ENV || "dev"); -} - -Encore.addPlugin(new FosRouting()) - // directory where compiled assets will be stored - .setOutputPath("public/build/") - // public path used by the web server to access the output path - .setPublicPath("/build") - // only needed for CDN's or sub-directory deploy - //.setManifestKeyPrefix("build/") - - .addAliases({ - "@": path.resolve("assets/js"), - "@img": path.resolve("assets/img"), - }) - - /* - * ENTRY CONFIG - * - * Each entry will result in one JavaScript file (e.g. app.js) - * and one CSS file (e.g. app.css) if your JavaScript imports CSS. - */ - .addEntry("app", "./assets/js/app.js") - - // When enabled, Webpack "splits" your files into smaller pieces for greater optimization. - .splitEntryChunks() - - .disableSingleRuntimeChunk() - - /* - * FEATURE CONFIG - * - * Enable & configure other features below. For a full - * list of features, see: - * https://symfony.com/doc/current/frontend.html#adding-more-features - */ - .cleanupOutputBeforeBuild() - .enableBuildNotifications() - .enableSourceMaps(!Encore.isProduction()) - // enables hashed filenames (e.g. app.abc123.css) - .enableVersioning(Encore.isProduction()) - - .configureBabel((config) => { - // config.plugins.push("@babel/a-babel-plugin"); - - if (Encore.isProduction()) { - config.plugins.push("transform-react-remove-prop-types"); - } - }) - - // enables @babel/preset-env polyfills - .configureBabelPresetEnv((config) => { - config.useBuiltIns = "usage"; - config.corejs = "3.23"; - }) - - // enables Sass/SCSS support - //.enableSassLoader() - - // uncomment if you use TypeScript - //.enableTypeScriptLoader() - - // uncomment if you use React - .enableReactPreset() - - // uncomment to get integrity="..." attributes on your script & link tags - // requires WebpackEncoreBundle 1.4 or higher - .enableIntegrityHashes(Encore.isProduction()); - -module.exports = Encore.getWebpackConfig(); diff --git a/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js b/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js deleted file mode 100644 index 0f17f925c..000000000 --- a/mercuryseries/inertia-bundle/0.1/webpack.ssr.config.js +++ /dev/null @@ -1,43 +0,0 @@ -const Encore = require("@symfony/webpack-encore"); -const FosRouting = require("fos-router/webpack/FosRouting"); -const nodeExternals = require("webpack-node-externals"); -const path = require("path"); - -if (!Encore.isRuntimeEnvironmentConfigured()) { - Encore.configureRuntimeEnvironment(process.env.NODE_ENV || "dev"); -} - -Encore.addPlugin(new FosRouting()) - .setOutputPath("public/build-ssr/") - .setPublicPath("/build-ssr") - .enableReactPreset() - .addAliases({ - "@": path.resolve("assets/js"), - "@img": path.resolve("assets/img"), - }) - .addEntry("ssr", "./assets/js/ssr.js") - .disableSingleRuntimeChunk() - .cleanupOutputBeforeBuild() - .enableSourceMaps(!Encore.isProduction()) - .configureBabel((config) => { - // config.plugins.push("@babel/a-babel-plugin"); - - if (Encore.isProduction()) { - config.plugins.push("transform-react-remove-prop-types"); - } - }) - .configureBabelPresetEnv((config) => { - config.useBuiltIns = "usage"; - config.corejs = "3.23"; - }); - -const config = Encore.getWebpackConfig(); -config.externalsPresets = { node: true }; -config.externals = [ - nodeExternals({ - allowlist: [/^@inertiajs/], - }), -]; -config.output.globalObject = "this"; - -module.exports = config; From 7bb596d86dd4159b852288c8d2622521b97d1fe9 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 23:20:02 -0400 Subject: [PATCH 16/37] Update post-install.txt --- mercuryseries/inertia-bundle/0.1/post-install.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index 18ff67fa5..3db904db0 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -5,6 +5,7 @@ Configure your transformations: 1. Update if necessary the configuration file in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml. 2. Choose your stack symfony console inertia:install react or symfony console inertia:install vue. - 3. Install npm and run npm install. - 4. Start the development server: npm run dev. + 3. You can add SSR support by adding the --ssr option. Ex: symfony console inertia:install react --ssr or symfony console inertia:install vue --ssr. + 3. Install npm packages with npm install. + 4. Build assets with npm run dev. 5. Start coding into assets/js/pages/ From 826cd1708ca46433cdbaf0485b4cbf6332002596 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 23:25:10 -0400 Subject: [PATCH 17/37] fix invalid json file --- mercuryseries/inertia-bundle/0.1/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.1/manifest.json b/mercuryseries/inertia-bundle/0.1/manifest.json index 50eb210a6..39e47047f 100644 --- a/mercuryseries/inertia-bundle/0.1/manifest.json +++ b/mercuryseries/inertia-bundle/0.1/manifest.json @@ -3,7 +3,7 @@ "MercurySeries\\Bundle\\InertiaBundle\\MercurySeriesInertiaBundle": ["all"] }, "copy-from-recipe": { - "config/": "%CONFIG_DIR%/", + "config/": "%CONFIG_DIR%/" }, "gitignore": ["/%PUBLIC_DIR%/build-ssr/"], "add-lines": [ From 443ffffb511b5d20a4fefa01ef1d8d05a770c3bc Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 23:35:50 -0400 Subject: [PATCH 18/37] Update post-install.txt --- mercuryseries/inertia-bundle/0.1/post-install.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index 3db904db0..9be145089 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -7,5 +7,5 @@ 2. Choose your stack symfony console inertia:install react or symfony console inertia:install vue. 3. You can add SSR support by adding the --ssr option. Ex: symfony console inertia:install react --ssr or symfony console inertia:install vue --ssr. 3. Install npm packages with npm install. - 4. Build assets with npm run dev. + 4. Build your assets with npm run dev. 5. Start coding into assets/js/pages/ From 17a398d6e6eb8025feba64774892daf8318600cc Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 23:44:56 -0400 Subject: [PATCH 19/37] trigger deployment --- mercuryseries/inertia-bundle/0.1/post-install.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index 9be145089..2c5ca9ca2 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -7,5 +7,5 @@ 2. Choose your stack symfony console inertia:install react or symfony console inertia:install vue. 3. You can add SSR support by adding the --ssr option. Ex: symfony console inertia:install react --ssr or symfony console inertia:install vue --ssr. 3. Install npm packages with npm install. - 4. Build your assets with npm run dev. + 4. Build your frontend assets with npm run dev. 5. Start coding into assets/js/pages/ From fd216024012d863b89dd07e623193eed2ff8b6df Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 23:51:53 -0400 Subject: [PATCH 20/37] trigger deployment --- mercuryseries/inertia-bundle/0.1/post-install.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index 2c5ca9ca2..9be145089 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -7,5 +7,5 @@ 2. Choose your stack symfony console inertia:install react or symfony console inertia:install vue. 3. You can add SSR support by adding the --ssr option. Ex: symfony console inertia:install react --ssr or symfony console inertia:install vue --ssr. 3. Install npm packages with npm install. - 4. Build your frontend assets with npm run dev. + 4. Build your assets with npm run dev. 5. Start coding into assets/js/pages/ From 121a9caf5ab048ff93d8a3e0166600f14b537020 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 29 May 2023 23:57:45 -0400 Subject: [PATCH 21/37] trigger deployment --- mercuryseries/inertia-bundle/0.1/post-install.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index 9be145089..2c5ca9ca2 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -7,5 +7,5 @@ 2. Choose your stack symfony console inertia:install react or symfony console inertia:install vue. 3. You can add SSR support by adding the --ssr option. Ex: symfony console inertia:install react --ssr or symfony console inertia:install vue --ssr. 3. Install npm packages with npm install. - 4. Build your assets with npm run dev. + 4. Build your frontend assets with npm run dev. 5. Start coding into assets/js/pages/ From 083fc87483673fc1a3dc39ee8060106bb4b7adda Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 00:05:58 -0400 Subject: [PATCH 22/37] trigger deployment --- mercuryseries/inertia-bundle/0.1/post-install.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index 2c5ca9ca2..9be145089 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -7,5 +7,5 @@ 2. Choose your stack symfony console inertia:install react or symfony console inertia:install vue. 3. You can add SSR support by adding the --ssr option. Ex: symfony console inertia:install react --ssr or symfony console inertia:install vue --ssr. 3. Install npm packages with npm install. - 4. Build your frontend assets with npm run dev. + 4. Build your assets with npm run dev. 5. Start coding into assets/js/pages/ From 9f02090d90a7e9e8c6a07985cecd3446514e7262 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 00:40:28 -0400 Subject: [PATCH 23/37] Update post-install.txt --- mercuryseries/inertia-bundle/0.1/post-install.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index 9be145089..0593fd2d0 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -3,9 +3,10 @@ Configure your transformations: - 1. Update if necessary the configuration file in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml. - 2. Choose your stack symfony console inertia:install react or symfony console inertia:install vue. - 3. You can add SSR support by adding the --ssr option. Ex: symfony console inertia:install react --ssr or symfony console inertia:install vue --ssr. - 3. Install npm packages with npm install. - 4. Build your assets with npm run dev. - 5. Start coding into assets/js/pages/ + 1. Install symfony/webpack-encore-bundle for Webpack or pentatrion/vite-bundle for Vite. + 2. Update if necessary the configuration file in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml. + 3. Choose your stack symfony console inertia:install react or symfony console inertia:install vue. + 4. You can add SSR support by adding the --ssr option. Ex: symfony console inertia:install react --ssr or symfony console inertia:install vue --ssr. + 5. Install Yarn and run npm install. + 6. Start the development server: npm run dev-server. + 7. Start coding into assets/js/pages/ From a162936a8f175bc9cbaab65067458d1041622587 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 00:48:31 -0400 Subject: [PATCH 24/37] Update post-install.txt --- mercuryseries/inertia-bundle/0.1/post-install.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index 0593fd2d0..d590a10b8 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -3,10 +3,9 @@ Configure your transformations: - 1. Install symfony/webpack-encore-bundle for Webpack or pentatrion/vite-bundle for Vite. - 2. Update if necessary the configuration file in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml. - 3. Choose your stack symfony console inertia:install react or symfony console inertia:install vue. - 4. You can add SSR support by adding the --ssr option. Ex: symfony console inertia:install react --ssr or symfony console inertia:install vue --ssr. - 5. Install Yarn and run npm install. - 6. Start the development server: npm run dev-server. - 7. Start coding into assets/js/pages/ + 1. React stack: symfony console inertia:install react --ssr --webpack for Webpack Encore or symfony console inertia:install react --ssr --vite for Vite. + 2. Vue stack: symfony console inertia:install vue --ssr --webpack for Webpack Encore or symfony console inertia:install vue --ssr --vite for Vite. + 3. Update if necessary the configuration file in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml. + 4. Install npm and run npm install. + 5. Start the development server: npm run dev-server. + 6. Start coding into assets/js/pages/ From 76140d7146ee41091c31c76252169b70e3da2417 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 11:29:59 -0400 Subject: [PATCH 25/37] Support Symfony 5 --- mercuryseries/inertia-bundle/0.1/manifest.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mercuryseries/inertia-bundle/0.1/manifest.json b/mercuryseries/inertia-bundle/0.1/manifest.json index 39e47047f..e0b5b6d7d 100644 --- a/mercuryseries/inertia-bundle/0.1/manifest.json +++ b/mercuryseries/inertia-bundle/0.1/manifest.json @@ -12,6 +12,15 @@ "content": " defaults:\n csrf:\n create: true\n require:\n - 'POST'\n - 'PUT'\n - 'PATCH'\n - 'DELETE'", "position": "after_target", "target": "type: attribute", + "requires": "symfony/flex:^2", + "warn_if_missing": true + }, + { + "file": "config/routes/annotations.yaml", + "content": " defaults:\n csrf:\n create: true\n require:\n - 'POST'\n - 'PUT'\n - 'PATCH'\n - 'DELETE'", + "position": "after_target", + "target": "type: annotation", + "requires": "symfony/flex:^1.17|^2", "warn_if_missing": true } ] From 2cf91ccda51a042abf7a4fa07e6e27049442b56e Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 11:33:29 -0400 Subject: [PATCH 26/37] Remove requires --- mercuryseries/inertia-bundle/0.1/manifest.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/mercuryseries/inertia-bundle/0.1/manifest.json b/mercuryseries/inertia-bundle/0.1/manifest.json index e0b5b6d7d..c5ff606bb 100644 --- a/mercuryseries/inertia-bundle/0.1/manifest.json +++ b/mercuryseries/inertia-bundle/0.1/manifest.json @@ -12,7 +12,6 @@ "content": " defaults:\n csrf:\n create: true\n require:\n - 'POST'\n - 'PUT'\n - 'PATCH'\n - 'DELETE'", "position": "after_target", "target": "type: attribute", - "requires": "symfony/flex:^2", "warn_if_missing": true }, { @@ -20,7 +19,6 @@ "content": " defaults:\n csrf:\n create: true\n require:\n - 'POST'\n - 'PUT'\n - 'PATCH'\n - 'DELETE'", "position": "after_target", "target": "type: annotation", - "requires": "symfony/flex:^1.17|^2", "warn_if_missing": true } ] From dd6a6decad9b22ec6a2b63c48d84c1fcc141f2e8 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 11:38:27 -0400 Subject: [PATCH 27/37] Remove warn_if_missing --- mercuryseries/inertia-bundle/0.1/manifest.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mercuryseries/inertia-bundle/0.1/manifest.json b/mercuryseries/inertia-bundle/0.1/manifest.json index c5ff606bb..22887ef98 100644 --- a/mercuryseries/inertia-bundle/0.1/manifest.json +++ b/mercuryseries/inertia-bundle/0.1/manifest.json @@ -11,15 +11,13 @@ "file": "config/routes.yaml", "content": " defaults:\n csrf:\n create: true\n require:\n - 'POST'\n - 'PUT'\n - 'PATCH'\n - 'DELETE'", "position": "after_target", - "target": "type: attribute", - "warn_if_missing": true + "target": "type: attribute" }, { "file": "config/routes/annotations.yaml", "content": " defaults:\n csrf:\n create: true\n require:\n - 'POST'\n - 'PUT'\n - 'PATCH'\n - 'DELETE'", "position": "after_target", - "target": "type: annotation", - "warn_if_missing": true + "target": "type: annotation" } ] } From 77a8580a50c975960c2b3f1192aefbe096925935 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 11:42:17 -0400 Subject: [PATCH 28/37] Add warn_if_missing false --- mercuryseries/inertia-bundle/0.1/manifest.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mercuryseries/inertia-bundle/0.1/manifest.json b/mercuryseries/inertia-bundle/0.1/manifest.json index 22887ef98..152ceccd0 100644 --- a/mercuryseries/inertia-bundle/0.1/manifest.json +++ b/mercuryseries/inertia-bundle/0.1/manifest.json @@ -11,13 +11,15 @@ "file": "config/routes.yaml", "content": " defaults:\n csrf:\n create: true\n require:\n - 'POST'\n - 'PUT'\n - 'PATCH'\n - 'DELETE'", "position": "after_target", - "target": "type: attribute" + "target": "type: attribute", + "warn_if_missing": false }, { "file": "config/routes/annotations.yaml", "content": " defaults:\n csrf:\n create: true\n require:\n - 'POST'\n - 'PUT'\n - 'PATCH'\n - 'DELETE'", "position": "after_target", - "target": "type: annotation" + "target": "type: annotation", + "warn_if_missing": false } ] } From 32f43347b449fa0d8c35d013621f86d3dbc0f91a Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 16:57:52 -0400 Subject: [PATCH 29/37] Add config/routes/inertia.yaml --- .../packages/mercuryseries_inertia.yaml | 4 ++-- .../0.1/config/routes/inertia.yaml | 19 +++++++++++++++++++ .../inertia-bundle/0.1/manifest.json | 18 +----------------- 3 files changed, 22 insertions(+), 19 deletions(-) create mode 100644 mercuryseries/inertia-bundle/0.1/config/routes/inertia.yaml diff --git a/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml b/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml index c37213aac..e82dedf5c 100644 --- a/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml +++ b/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml @@ -15,7 +15,7 @@ mercuryseries_inertia: ssr: enabled: false url: 'http://127.0.0.1:13714/render' - bundle: '%kernel.project_dir%/public/build-ssr/ssr.js' + # bundle: '%kernel.project_dir%/public/build-ssr/ssr.js' # |-------------------------------------------------------------------------- # | CSRF Protection @@ -33,6 +33,6 @@ mercuryseries_inertia: csrf_cookie: expire: 0 path: / - # domain: null + domain: ~ secure: true sameSite: lax diff --git a/mercuryseries/inertia-bundle/0.1/config/routes/inertia.yaml b/mercuryseries/inertia-bundle/0.1/config/routes/inertia.yaml new file mode 100644 index 000000000..2ab0b1d19 --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1/config/routes/inertia.yaml @@ -0,0 +1,19 @@ +# If you use PHP attributes +# controllers: +# resource: +# path: ../../src/Controller/ +# namespace: App\Controller +# type: attribute +# defaults: +# csrf: +# create: true +# require: ['POST', 'PUT', 'PATCH', 'DELETE'] + +# If you use annotations +# controllers: +# resource: ../../src/Controller/ +# type: annotation +# defaults: +# csrf: +# create: true +# require: ['POST', 'PUT', 'PATCH', 'DELETE'] diff --git a/mercuryseries/inertia-bundle/0.1/manifest.json b/mercuryseries/inertia-bundle/0.1/manifest.json index 152ceccd0..11bae400b 100644 --- a/mercuryseries/inertia-bundle/0.1/manifest.json +++ b/mercuryseries/inertia-bundle/0.1/manifest.json @@ -5,21 +5,5 @@ "copy-from-recipe": { "config/": "%CONFIG_DIR%/" }, - "gitignore": ["/%PUBLIC_DIR%/build-ssr/"], - "add-lines": [ - { - "file": "config/routes.yaml", - "content": " defaults:\n csrf:\n create: true\n require:\n - 'POST'\n - 'PUT'\n - 'PATCH'\n - 'DELETE'", - "position": "after_target", - "target": "type: attribute", - "warn_if_missing": false - }, - { - "file": "config/routes/annotations.yaml", - "content": " defaults:\n csrf:\n create: true\n require:\n - 'POST'\n - 'PUT'\n - 'PATCH'\n - 'DELETE'", - "position": "after_target", - "target": "type: annotation", - "warn_if_missing": false - } - ] + "gitignore": ["/%PUBLIC_DIR%/build-ssr/"] } From b10d64f9b68a7691fac633db7a6a721a6da836e7 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 17:04:23 -0400 Subject: [PATCH 30/37] explicit null --- .../0.1/config/packages/mercuryseries_inertia.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml b/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml index e82dedf5c..81abc78fc 100644 --- a/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml +++ b/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml @@ -33,6 +33,6 @@ mercuryseries_inertia: csrf_cookie: expire: 0 path: / - domain: ~ + domain: null secure: true sameSite: lax From b8976cafed401dfeabc00e0deb9e85b5b2e7148c Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 17:05:59 -0400 Subject: [PATCH 31/37] better text --- mercuryseries/inertia-bundle/0.1/config/routes/inertia.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mercuryseries/inertia-bundle/0.1/config/routes/inertia.yaml b/mercuryseries/inertia-bundle/0.1/config/routes/inertia.yaml index 2ab0b1d19..d9ec16f6c 100644 --- a/mercuryseries/inertia-bundle/0.1/config/routes/inertia.yaml +++ b/mercuryseries/inertia-bundle/0.1/config/routes/inertia.yaml @@ -1,4 +1,4 @@ -# If you use PHP attributes +# uncomment if you use PHP attributes # controllers: # resource: # path: ../../src/Controller/ @@ -9,7 +9,7 @@ # create: true # require: ['POST', 'PUT', 'PATCH', 'DELETE'] -# If you use annotations +# uncomment if you use annotations # controllers: # resource: ../../src/Controller/ # type: annotation From 24f1906122f685d974c509c9424d2da839773cc6 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 17:15:04 -0400 Subject: [PATCH 32/37] better text --- .../routes/{inertia.yaml => mercuryseries_inertia.yaml} | 4 ++++ mercuryseries/inertia-bundle/0.1/post-install.txt | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) rename mercuryseries/inertia-bundle/0.1/config/routes/{inertia.yaml => mercuryseries_inertia.yaml} (74%) diff --git a/mercuryseries/inertia-bundle/0.1/config/routes/inertia.yaml b/mercuryseries/inertia-bundle/0.1/config/routes/mercuryseries_inertia.yaml similarity index 74% rename from mercuryseries/inertia-bundle/0.1/config/routes/inertia.yaml rename to mercuryseries/inertia-bundle/0.1/config/routes/mercuryseries_inertia.yaml index d9ec16f6c..3f87868b3 100644 --- a/mercuryseries/inertia-bundle/0.1/config/routes/inertia.yaml +++ b/mercuryseries/inertia-bundle/0.1/config/routes/mercuryseries_inertia.yaml @@ -1,3 +1,7 @@ +# |-------------------------------------------------------------------------- +# | CSRF Protection +# |-------------------------------------------------------------------------- + # uncomment if you use PHP attributes # controllers: # resource: diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index d590a10b8..c596432a6 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -5,7 +5,7 @@ Configure your transformations: 1. React stack: symfony console inertia:install react --ssr --webpack for Webpack Encore or symfony console inertia:install react --ssr --vite for Vite. 2. Vue stack: symfony console inertia:install vue --ssr --webpack for Webpack Encore or symfony console inertia:install vue --ssr --vite for Vite. - 3. Update if necessary the configuration file in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml. - 4. Install npm and run npm install. + 3. Uncomment the appropriate route configuration boilerplate in %CONFIG_DIR%/routes/mercuryseries_inertia.yaml to enable CSRF protection. + 4. Update if necessary the configuration file in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml. 5. Start the development server: npm run dev-server. 6. Start coding into assets/js/pages/ From 1cbe24f0ccc524c7d0afc51f3cdfac510d9ce906 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 17:19:52 -0400 Subject: [PATCH 33/37] better text --- mercuryseries/inertia-bundle/0.1/post-install.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index c596432a6..5bb48cd7a 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -6,6 +6,6 @@ 1. React stack: symfony console inertia:install react --ssr --webpack for Webpack Encore or symfony console inertia:install react --ssr --vite for Vite. 2. Vue stack: symfony console inertia:install vue --ssr --webpack for Webpack Encore or symfony console inertia:install vue --ssr --vite for Vite. 3. Uncomment the appropriate route configuration boilerplate in %CONFIG_DIR%/routes/mercuryseries_inertia.yaml to enable CSRF protection. - 4. Update if necessary the configuration file in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml. + 4. Adjust the configuration in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml according to your needs. 5. Start the development server: npm run dev-server. 6. Start coding into assets/js/pages/ From ab3daa0b4d777b530ba41403bb6af3b1bacdc18a Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 17:23:52 -0400 Subject: [PATCH 34/37] comment out domain --- .../0.1/config/packages/mercuryseries_inertia.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml b/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml index 81abc78fc..9ad87e914 100644 --- a/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml +++ b/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml @@ -33,6 +33,6 @@ mercuryseries_inertia: csrf_cookie: expire: 0 path: / - domain: null + # domain: null secure: true sameSite: lax From 05d4106eed04153c8968683457dd45b9eb2616ed Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Tue, 30 May 2023 17:38:15 -0400 Subject: [PATCH 35/37] move route config logic to bundle --- .../config/routes/mercuryseries_inertia.yaml | 23 ------------------- .../inertia-bundle/0.1/post-install.txt | 7 +++--- 2 files changed, 3 insertions(+), 27 deletions(-) delete mode 100644 mercuryseries/inertia-bundle/0.1/config/routes/mercuryseries_inertia.yaml diff --git a/mercuryseries/inertia-bundle/0.1/config/routes/mercuryseries_inertia.yaml b/mercuryseries/inertia-bundle/0.1/config/routes/mercuryseries_inertia.yaml deleted file mode 100644 index 3f87868b3..000000000 --- a/mercuryseries/inertia-bundle/0.1/config/routes/mercuryseries_inertia.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# |-------------------------------------------------------------------------- -# | CSRF Protection -# |-------------------------------------------------------------------------- - -# uncomment if you use PHP attributes -# controllers: -# resource: -# path: ../../src/Controller/ -# namespace: App\Controller -# type: attribute -# defaults: -# csrf: -# create: true -# require: ['POST', 'PUT', 'PATCH', 'DELETE'] - -# uncomment if you use annotations -# controllers: -# resource: ../../src/Controller/ -# type: annotation -# defaults: -# csrf: -# create: true -# require: ['POST', 'PUT', 'PATCH', 'DELETE'] diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index 5bb48cd7a..ebba2eec8 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -5,7 +5,6 @@ Configure your transformations: 1. React stack: symfony console inertia:install react --ssr --webpack for Webpack Encore or symfony console inertia:install react --ssr --vite for Vite. 2. Vue stack: symfony console inertia:install vue --ssr --webpack for Webpack Encore or symfony console inertia:install vue --ssr --vite for Vite. - 3. Uncomment the appropriate route configuration boilerplate in %CONFIG_DIR%/routes/mercuryseries_inertia.yaml to enable CSRF protection. - 4. Adjust the configuration in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml according to your needs. - 5. Start the development server: npm run dev-server. - 6. Start coding into assets/js/pages/ + 3. Adjust the configuration in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml according to your needs. + 4. Start the development server: npm run dev-server. + 5. Start coding into assets/js/pages/ From 4039ee9341cb9222befeec7b99c4f9b39e65e995 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 19 Jun 2023 02:53:51 -0400 Subject: [PATCH 36/37] update post-install.txt --- mercuryseries/inertia-bundle/0.1/post-install.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index ebba2eec8..d762e3b79 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -3,8 +3,8 @@ Configure your transformations: - 1. React stack: symfony console inertia:install react --ssr --webpack for Webpack Encore or symfony console inertia:install react --ssr --vite for Vite. - 2. Vue stack: symfony console inertia:install vue --ssr --webpack for Webpack Encore or symfony console inertia:install vue --ssr --vite for Vite. + 1. React stack: symfony console inertia:install react --ssr --buildtool=webpack for Webpack or symfony console inertia:install react --ssr --buildtool=vite for Vite. + 2. Vue stack: symfony console inertia:install vue --ssr --buildtool=webpack for Webpack or symfony console inertia:install vue --ssr --buildtool=vite for Vite. 3. Adjust the configuration in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml according to your needs. 4. Start the development server: npm run dev-server. 5. Start coding into assets/js/pages/ From 06ead9d8cd8c040b6081c71bc3ada23963cab164 Mon Sep 17 00:00:00 2001 From: Honore Hounwanou Date: Mon, 19 Jun 2023 03:05:50 -0400 Subject: [PATCH 37/37] renaming to bundler --- mercuryseries/inertia-bundle/0.1/post-install.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt index d762e3b79..c2c154ba6 100644 --- a/mercuryseries/inertia-bundle/0.1/post-install.txt +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -3,8 +3,8 @@ Configure your transformations: - 1. React stack: symfony console inertia:install react --ssr --buildtool=webpack for Webpack or symfony console inertia:install react --ssr --buildtool=vite for Vite. - 2. Vue stack: symfony console inertia:install vue --ssr --buildtool=webpack for Webpack or symfony console inertia:install vue --ssr --buildtool=vite for Vite. + 1. React stack: symfony console inertia:install react --ssr --bundler=webpack for Webpack or symfony console inertia:install react --ssr --bundler=vite for Vite. + 2. Vue stack: symfony console inertia:install vue --ssr --bundler=webpack for Webpack or symfony console inertia:install vue --ssr --bundler=vite for Vite. 3. Adjust the configuration in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml according to your needs. 4. Start the development server: npm run dev-server. 5. Start coding into assets/js/pages/