-
Notifications
You must be signed in to change notification settings - Fork 67
Feature: Surface console logs into the UI #182
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
Comments
👋 I've been doing some experiments on how we could possibly tackle this and I've got two proposals: 1) Using JSON.stringify() with a bit of formatting;
2) Using vue-object-view;
I'm in favour of using (1) and getting the syntax highlighting working, but as I lost some time on trying (2) it's worth mentioning it! Haven't found any other lib like |
Oh, I forgot to mention it, the way I've wired this up is that you just have to pass a key/value to the object of the return of the |
@fsdiogo for syntax highlighting, you should just be able to use the markdown library we’re already importing because it has syntax highlighting enabled and loaded. |
per a chat with @fsdiogo...
Currently there are a few lessons where we ask the user to open their console and see something printed there. For example, we might ask them to view a CID to see how it's different before and after an action. It would be great if we could print console logs (or even better, only specific ones) to the screen instead so the user doesn't need to figure out how to open the console and can keep their focus in our UI.
Something similar is done in IPLD Explorer.
The text was updated successfully, but these errors were encountered: