-
Notifications
You must be signed in to change notification settings - Fork 874
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
Circuit compiler UI #4144
Circuit compiler UI #4144
Conversation
✅ Deploy Preview for remixproject ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
useEffect(() => { | ||
new CircomPluginClient() | ||
const plugin = new CircomPluginClient() |
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.
setting plugin clients in useeffect and in a state will cause problems. especially when using strict mode. I've seen situations with other plugins doing this where it would either try to connect to Remix twice or never connect at all. You can can listen on the onload event here just fine. but I'd set the plugin as a const and export it.
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.
Can you make a commit with your recommended changes?
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.
sure
9aefc74
to
7144c89
Compare
The name should updated to: |
Links to docs and we need a medium article. |
Needs a button to make some example files - but if this is a workspace and a workspace is created - somehow the user needs to be informed that a workspace has been created. So you could generate workspace and automatically get switched to the FE. |
and we need documentation for this plugin |
e2fec28
to
75bd995
Compare
@@ -8,8 +8,8 @@ | |||
"canActivate": [], | |||
"url": "", | |||
"description": "Enables circuit compilation and computing a witness for ZK proofs", | |||
"icon": "https://docs.circom.io/assets/images/favicon.png", | |||
"location": "hiddenPanel", | |||
"icon": "assets/img/circom.webp", |
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.
the icon doesn't show up...
|
||
constructor() { | ||
super() | ||
createClient(this) | ||
this.internalEvents = new EventManager() | ||
this.methods = ['init', 'parse'] |
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.
set the methods before the createclient
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.
If I remember correctly :D
5c7f5de
to
ba4cfea
Compare
583b275
to
ddcdf3f
Compare
I think you can add the plugin tor required plugins in app manager so you don't have to give permissions. |
@@ -255,13 +255,13 @@ class FileManager extends Plugin { | |||
* @param {string} path path of the file | |||
* @returns {string} content of the file | |||
*/ | |||
async readFile(path) { | |||
async readFile(path, isBuffer?) { |
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.
if we start doing this we should maybe just add encoding as a param, which is the standard fs way. so we can support everything.
46562f3
to
26ddc61
Compare
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.
For translations, you have updated the index.js and the circuit.json file in remix-ide/src/app/tabs/locales/en.
You don't need to add the circuit.json file in the es, fr, and zh folders. Please remove these .json files - only keep the one in the en folder.
e0c3490
to
1849efb
Compare
User Interface for Circom Plugin