feat(new tool): JSON to .env converter #349
Merged
sharevb merged 18 commits intosharevb:chore/all-my-stuffsfrom May 3, 2026
Merged
feat(new tool): JSON to .env converter #349sharevb merged 18 commits intosharevb:chore/all-my-stuffsfrom
sharevb merged 18 commits intosharevb:chore/all-my-stuffsfrom
Conversation
… and watermarker (CorentinTh#337) * i18n(zh): fix incorrect translation in image-comparer * i18n(zh): fix incorrect translation in heic-converter and watermarker
…entinTh#341) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Added sections for staging, stashing, inspecting, remote, tags, cherry-pick, and cleaning commands.
Add JavaScript MIME types.
Include default /etc/nginx/mime.types --------- Co-authored-by: sharevb <sharevb@gmail.com>
|
@hakimilg is attempting to deploy a commit to the sharevb's projects Team on Vercel. A member of the Team first needs to authorize it. |
Converts a flat JSON object into a .env file. Keys are upper-cased, values are safely quoted when they contain whitespace, quotes, or env special characters (#, $, `, \). Nested objects and arrays are JSON-stringified and always quoted; null/undefined become "". Follows the existing FormatTransformer pattern used by the other json-to-* converters, including i18n via useI18n and the built-in .env download button.
d2e86cd to
b712ac4
Compare
206c857 to
385a327
Compare
385a327 to
7b15118
Compare
…re/json-to-env-converter # Conflicts: # Dockerfile # src/pages/Home.page.vue
d4ec8e9 to
832ff90
Compare
Remove onlyLocales configuration from AutoImport.
Owner
|
Hi @hakimilg thanks for this PR now merged |
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.
Summary
.envfile.#,$,`,\).JSON.stringify-ed and always quoted;null/undefinedbecome"".FormatTransformerpattern used by the otherjson-to-*converters.Files
src/tools/json-to-env/(service + tests + Vue component + e2e spec)src/tools/index.ts(Converter category)tools.json-to-envinlocales/en.ymlTest plan
pnpm test:unit src/tools/json-to-env --run→ 15/15pnpm test:e2e(Playwright)/json-to-env, paste a flat JSON, verify output + copy button