Skip to content

Releases: milafrerichs/browser-repl-js

Fix Reset

03 Jan 17:52
02b7de3
Compare
Choose a tag to compare

Resetting files

Fix a few minor things

  • Resetting of the code now works again
  • destroying of the component resulted in an error
  • add width of viewer/console layout back in

Console & Internals

03 Jan 17:35
16d0154
Compare
Choose a tag to compare

Update Console & internals

Upgrade the console to not use an iframe but just plain HTML. we get the console back via a window event and can display it at will

update the internals how the code is saved and updates to your code will not get lost when switching files.
this was the most annoying thing that I wanted to change. the code now does not reset unless you set the files back to the originals.

Console Upgrade

02 Jan 08:49
a6b825d
Compare
Choose a tag to compare

Console Upgrade

Add https://github.com/tanhauhau/svelte-json-tree to the project to prettify and format the console output.
It adds syntax highlighting and drilling down to the objects.

Adds support for more types of console outputs.

Fix layout changes

20 Dec 11:25
2cbf993
Compare
Choose a tag to compare

This release will fix a failure when you change the layout once the component is loaded.

Fix: Width and height for Layouts

20 Sep 12:23
daede96
Compare
Choose a tag to compare

Fix the component binding of width and height for layouts.

New View only layout

19 Sep 12:40
8f735fd
Compare
Choose a tag to compare

Add a layout to just show the viewer (result)
Used in my course tutorials.

Responsiveness for result

07 Sep 09:47
48fe5f7
Compare
Choose a tag to compare

Add responsiveness to the result

The result is an iframe so we need to set the width and height to the parent. and handle resize as well.

Layouts

05 Sep 15:50
da2c2d6
Compare
Choose a tag to compare

Layouts

We now use Layouts and using slots to make layouts work.
Instead of a lot of if/else statements in the Repl html code we now have separate layouts for the use cases.

  • Default (shows everything)
  • Minimal (show just the editor and the result)
    . MinimalReverse (shows the editor and result, but result first and editor second, for my examples)

Stores

We now use the Svelte store to save the code, html, files, etc.
Reduces the amount of props that are passed through components. make it more manageable. and through the derived property we can clean up even more code.

Add new prop mode

28 Aug 09:05
4f2d3b1
Compare
Choose a tag to compare

New Mode

Not adds three types of mode to the lib

default mode

Shows everything

view mode

is the replacement for the viewOnly prop
only shows the result

minimal

Only shows the code editor and the result, but hides the file names and the tabs for switching between console and result.

Deprecated

viewOnly prop

v0.2.5: Merge pull request #36 from milafrerichs/fix-debugger

11 Aug 12:05
5681446
Compare
Choose a tag to compare