{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":815880772,"defaultBranch":"main","name":"vite","ownerLogin":"olivere","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2024-06-16T12:09:48.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/134848?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1722679347.0","currentOid":""},"activityList":{"items":[{"before":"a7a77c182fca2e4d90da4ae2d3a7f87cefa0d4bd","after":"a33480a256121b0d3423911f07f8a649ec3b03ae","ref":"refs/heads/main","pushedAt":"2024-09-14T08:40:00.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Add documentation on HTMLFragment (#14)\n\nWe have added instructions for the new `vite.HTMLFragment` function to the README.\r\n\r\nWe favor the usage of `vite.HTMLFragment` over `vite.Handler` currently, so we put it at the top.","shortMessageHtmlLink":"Add documentation on HTMLFragment (#14)"}},{"before":"c8f2bf870b3b1e56e2193071ee73142fdea18473","after":"a7a77c182fca2e4d90da4ae2d3a7f87cefa0d4bd","ref":"refs/heads/main","pushedAt":"2024-09-10T16:00:39.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Add Basic Integration Tests (#11)\n\nThis PR adds some initial integration tests for the helper function part of this library; by integration tests I mean that I am only tested exported functionality of the library, by creating a Vite Fragment and then checking the contents of that generated HTML fragment.\r\n\r\nThe tests are based on the instructions in the [Vite docs for backend integration](https://vitejs.dev/guide/backend-integration), so I have added the manifest they use in those docs, and then I check that each of the HTML tags the docs say should be generated are contained in the fragment we produce with this library.\r\n\r\nAfter writing the tests, they failed initially, as I think we are generating the `modulepreload` links incorrectly. So I have added a change to fix how we generate the `` elements for preloading.\r\n\r\nCo-authored-by: Oliver Eilhard ","shortMessageHtmlLink":"Add Basic Integration Tests (#11)"}},{"before":"ec8e68dd3ad1b2014567223df4a8620a1a71784f","after":"c8f2bf870b3b1e56e2193071ee73142fdea18473","ref":"refs/heads/main","pushedAt":"2024-09-02T15:47:21.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Add HTMLFragment helper for minimal integration (#10)\n\nThis PR introduces a new helper function `HTMLFragment` that generates\r\nthe necessary HTML for Vite integration, allowing users to easily incorporate\r\nVite assets into their own HTML templates.\r\n\r\nThe new `HTMLFragment` function has the following signature:\r\n\r\n```go\r\nfunc HTMLFragment(config Config) (*Fragment, error)\r\n```\r\n\r\nThis function generates a struct that returns the necessary\r\nHTML snippets to be injected into the templating solution of your\r\nchoice, e.g. `html/template` from Go standard library.\r\n\r\nSee the [`examples` folder](https://github.com/olivere/vite/tree/main/examples)\r\nfor some working code, especially [`examples/helper-function-basic`](https://github.com/olivere/vite/tree/main/examples/helper-function-basic)\r\nand [`router`]([`examples/helper-function-basic`](https://github.com/olivere/vite/tree/main/examples/router).\r\n\r\nClose #8","shortMessageHtmlLink":"Add HTMLFragment helper for minimal integration (#10)"}},{"before":"e3d9a50148ae349be4686b16621f8bcfaafbc462","after":"ec8e68dd3ad1b2014567223df4a8620a1a71784f","ref":"refs/heads/main","pushedAt":"2024-08-05T17:26:14.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Fix link to new example in README (#7)\n\nFix link in README.","shortMessageHtmlLink":"Fix link to new example in README (#7)"}},{"before":"c8f6664f231319baa82f6178abedff3d0931715a","after":"e3d9a50148ae349be4686b16621f8bcfaafbc462","ref":"refs/heads/main","pushedAt":"2024-08-05T16:49:00.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Allow overriding default templates (#6)\n\nThis PR allows overriding the default templates previously registered as `index.html`. Users can now provide their own `index.html` by calling the respective `RegisterTemplate` function. See `examples/template-registry` for an example of how to do this.\r\n\r\nClose #5","shortMessageHtmlLink":"Allow overriding default templates (#6)"}},{"before":"a6f5a86920f35586a18e7291617e61551e4f5188","after":"c8f6664f231319baa82f6178abedff3d0931715a","ref":"refs/heads/main","pushedAt":"2024-08-03T10:12:24.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Multi page apps (#4)\n\nThis pull request adds the ability to handle Vite apps with multiple entry points.\r\n\r\nYou can now set a `ViteEntry` in the new `vite.Handler` to specify the entry point to pick up when handling a route in the Go backend.\r\n\r\nThe examples have been restructured. We now have a `examples/basic` to illustrated the simplest setup, and `examples/multi-page-app` for a Vite app with multiple entry points.\r\n\r\nCloses #1 \r\n\r\nCo-authored-by: ge3224 ","shortMessageHtmlLink":"Multi page apps (#4)"}},{"before":"62c29a25504d027037453d45f077f463c3c6770c","after":"5169e2974910066872470a9a6bcab78c57e35242","ref":"refs/heads/multi-page-apps","pushedAt":"2024-08-03T10:12:03.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Fix merge conflicts","shortMessageHtmlLink":"Fix merge conflicts"}},{"before":null,"after":"62c29a25504d027037453d45f077f463c3c6770c","ref":"refs/heads/multi-page-apps","pushedAt":"2024-08-03T10:02:27.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Fixed a few small details","shortMessageHtmlLink":"Fixed a few small details"}},{"before":"a905e73cbd1a3d0c0c7cc1dae74114820c0a55c3","after":"62c29a25504d027037453d45f077f463c3c6770c","ref":"refs/heads/ge3224-multientry","pushedAt":"2024-08-03T10:01:27.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Fixed a few small details","shortMessageHtmlLink":"Fixed a few small details"}},{"before":null,"after":"a905e73cbd1a3d0c0c7cc1dae74114820c0a55c3","ref":"refs/heads/ge3224-multientry","pushedAt":"2024-08-03T10:00:45.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Update README files in examples","shortMessageHtmlLink":"Update README files in examples"}},{"before":"a905e73cbd1a3d0c0c7cc1dae74114820c0a55c3","after":null,"ref":"refs/heads/ge3224-multientry","pushedAt":"2024-08-03T09:48:04.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"}},{"before":"2ba57b5c2a1bb1dbac999c96dfaf93b483412c91","after":"a6f5a86920f35586a18e7291617e61551e4f5188","ref":"refs/heads/main","pushedAt":"2024-08-03T09:48:00.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Handle multi-page app entry points (#3)\n\nThis pull request adds the ability to handle Vite apps with multiple entry points.\r\n\r\nYou can now set a `ViteEntry` in the new `vite.Handler` to specify the entry point to pick up when handling a route in the Go backend.\r\n\r\nThe examples have been restructured. We now have a `examples/basic` to illustrated the simplest setup, and `examples/multi-page-app` for a Vite app with multiple entry points.\r\n\r\nCloses #1 \r\n\r\nCo-authored-by: ge3224 ","shortMessageHtmlLink":"Handle multi-page app entry points (#3)"}},{"before":null,"after":"a905e73cbd1a3d0c0c7cc1dae74114820c0a55c3","ref":"refs/heads/ge3224-multientry","pushedAt":"2024-08-03T09:38:44.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Update README files in examples","shortMessageHtmlLink":"Update README files in examples"}},{"before":"45e2bbe85942d9fedf50d794430fca27aa5040c8","after":"2ba57b5c2a1bb1dbac999c96dfaf93b483412c91","ref":"refs/heads/main","pushedAt":"2024-06-28T12:51:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Fix syntax error","shortMessageHtmlLink":"Fix syntax error"}},{"before":"31e5388f14ce0923ea532b331222902080fb651c","after":"45e2bbe85942d9fedf50d794430fca27aa5040c8","ref":"refs/heads/main","pushedAt":"2024-06-28T12:50:36.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Normalize URL path with path.Clean\n\nThe `filepath.Abs` was the wrong way of doing the cleanup and\nnormalization.","shortMessageHtmlLink":"Normalize URL path with path.Clean"}},{"before":"9a1181dd8a6cf1e034788b83c9df5295d6c6b4d5","after":"31e5388f14ce0923ea532b331222902080fb651c","ref":"refs/heads/main","pushedAt":"2024-06-28T12:02:29.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Add 404 for assets that do not exist\n\nThis commit changes the code such that it returns 404 for endpoints that\ndo not exist. Before, it rendered the default template (`index.html`)\nby default.","shortMessageHtmlLink":"Add 404 for assets that do not exist"}},{"before":"214a1037ac9e58bfe5c5a7596a1d03b9e13d0fe7","after":"9a1181dd8a6cf1e034788b83c9df5295d6c6b4d5","ref":"refs/heads/main","pushedAt":"2024-06-19T15:30:41.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Add example and provide a walkthrough\n\nThis commit adds an example React app, powered by Vite, and a short\nwalkthrough on how to configure your app to use Go templates to serve\nyour React app.","shortMessageHtmlLink":"Add example and provide a walkthrough"}},{"before":"45655395091961d9eb3a442547c0880f057d92bf","after":"214a1037ac9e58bfe5c5a7596a1d03b9e13d0fe7","ref":"refs/heads/main","pushedAt":"2024-06-18T20:23:56.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Tidy up the code\n\nThis commit changes the library to use a `vite.Config` for\nconfiguration. The list of parameters is too sensitive to future\nchanges.\n\nFurthermore, we add the ability to pass a public directory that will\nserver static files. In Vite apps, these are typically found in the\n\"public\" directory. Public files are only served in development mode.\nIf there is no \"PublicFS\" specified in the configuration passed to the\nhandler, we will peek into the \"FS\" if there is a directory called\n\"public\" and use that by default.\n\nFinally, we will also initialize \"ViteURL\" in development mode with\n\"http://localhost:5173\" if nothing else is specified.","shortMessageHtmlLink":"Tidy up the code"}},{"before":"e83e5a076a1298ab93221dbe7722811708ff2cb1","after":"45655395091961d9eb3a442547c0880f057d92bf","ref":"refs/heads/main","pushedAt":"2024-06-16T12:12:29.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Add comment about configuring Vite project","shortMessageHtmlLink":"Add comment about configuring Vite project"}},{"before":null,"after":"e83e5a076a1298ab93221dbe7722811708ff2cb1","ref":"refs/heads/main","pushedAt":"2024-06-16T12:10:10.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"olivere","name":"Oliver Eilhard","path":"/olivere","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/134848?s=80&v=4"},"commit":{"message":"Initial commit","shortMessageHtmlLink":"Initial commit"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"startCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wOS0xNFQwODo0MDowMC4wMDAwMDBazwAAAAS2Iv2Q","endCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wNi0xNlQxMjoxMDoxMC4wMDAwMDBazwAAAARmncy-"}},"title":"Activity ยท olivere/vite"}