Added ability to pass in (url encoded) blueprints using bp query parameter#7
Open
ricardoboss wants to merge 2 commits intopiebro:masterfrom
Open
Added ability to pass in (url encoded) blueprints using bp query parameter#7ricardoboss wants to merge 2 commits intopiebro:masterfrom
ricardoboss wants to merge 2 commits intopiebro:masterfrom
Conversation
Author
|
@piebro as discussed, I added a simple HTML file just for viewing the blueprint. It also takes in the blueprint via a |
piebro
reviewed
Nov 18, 2025
Comment on lines
+16
to
+23
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/codemirror.min.css"> | ||
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/theme/monokai.min.css"> | ||
| <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/codemirror.min.js"></script> | ||
| <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/mode/javascript/javascript.min.js"></script> | ||
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/addon/lint/lint.min.css"> | ||
| <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/addon/lint/lint.min.js"></script> | ||
| <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/addon/lint/json-lint.min.js"></script> | ||
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jsonlint/1.6.0/jsonlint.min.js"></script> |
Owner
|
This looks good. I think this should also be documented in the README somewhere and maybe a link where people can encode a Blueprint, e.g. https://meyerweb.com/eric/tools/dencoder/ or this can also be a small extra website, I think either way is good. I tested it for example with: bp=0eJyd1M1qwzAMAOB30dktcf5W59jXGGUkrRiGRAm2uzaEvPvkdbAxdxD7FMeRPoEdaYGuv%2BJkNDloFtDnkSw0rwtY%2FU5t7%2FfcPCE0YPCseSGA2sG%2FO9OSnUbjdh32DlYBmi54h0auJwFITjuND%2Bt5hoBptBw0kq%2FCiTu5rwTMvMj2FXsXzTUf37NvcX6j69Ch8VVEAiz%2FwmUA5zFwFgEXEXCMW0a4%2Fx%2FEIXCrFDe4udCtE9wN7EsCG5yCzAP3kHBtW1yV8p9tgWWW0hqB%2FKTlknpuSy%2FnfmRohwPDP%2FNIwAca%2B5VT1bkqleJHoYqahb7lshx9%2FBV94xp%2B4JzW9RNuVpWmI added two comment. |
piebro
reviewed
Nov 18, 2025
| <script defer data-domain="piebro.github.io/factorio-blueprint-visualizer" src="https://plausible.io/js/plausible.js"></script> | ||
| <script src="https://cdnjs.cloudflare.com/ajax/libs/pako/2.1.0/pako.min.js"></script> | ||
| <!-- for deflating the blueprint string --> | ||
| <script src="website/startExampleBlueprintString.js"></script> |
Owner
There was a problem hiding this comment.
remove this and expect that bp is set, otherwise maybe show a small text that no blueprint is set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6