-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add replacement map feature #176
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are all variables prefixed with REPL_
? Seems unrelated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oddly enough, if I run yarn dev locally, it puts the server on localhost: 9180 but I imagine that's a simple change in the local.json to update. Optionally, you can drop a line in the README to mention that.
|
This PR is not ready atm. Will merge after double checking some configs. |
dbafd78
to
bc55877
Compare
bc55877
to
4c69e13
Compare
This reverts commit 4c69e13.
It was very confusing to have two applications
QueryApi.dev-App
vsQueryApi.App
. As a result, we have removed thedev-App
component and use a feature frombos-loader
which allows you to write json files with keys/values that are used as replacements in your widgets.To run local setup, run
yarn start:widgets:local
--
Replacement Files
The replacement files should have the following format:
We have three different versions. For local, dev, and mainnet.
{
"REPL_PLACEHOLDER1": "value1",
"REPL_PLACEHOLDER2": "value2"
}
The placeholders in widgets are replaced with specified values. For example the code for the following widget:
return <>
</>;
will be resolved to:
return <>
</>;