Skip to content

Conversation

@Dsaquel
Copy link
Contributor

@Dsaquel Dsaquel commented Apr 12, 2025

inspiration from #201 (thanks)

This solution does not require a network connection, it is opt-in and way much lighter than loading the whole chobitsu devtool.

@vercel
Copy link

vercel bot commented Apr 12, 2025

@Dsaquel is attempting to deploy a commit to the vuejs Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Apr 12, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@vue/repl@333

commit: 898ef23

@Dsaquel Dsaquel changed the title Feat/console feat(Sandbox): add console Apr 12, 2025
@Dsaquel Dsaquel marked this pull request as ready for review April 12, 2025 14:27
@edison1105 edison1105 requested a review from wangcch April 13, 2025 12:43
@wangcch
Copy link
Collaborator

wangcch commented Apr 14, 2025

Cool ~

To make the sandbox lighter while preserving iframe-container, can we integrate the console into the Output? Or should we build a plugin instead?

more: svelte playground (console)
play repo

@Dsaquel
Copy link
Contributor Author

Dsaquel commented Apr 14, 2025

To make the sandbox lighter while preserving iframe-container, can we integrate the console into the Output ?

Sure i can definitely do this

Or should we build a plugin instead?

Anyway im ok with any solution we integrate a console 👍, maybe we can ask others people their opinions.

@Dsaquel Dsaquel changed the title feat(Sandbox): add console feat(Output): add console Apr 14, 2025
@Dsaquel Dsaquel requested a review from wangcch April 16, 2025 20:42
Copy link
Contributor Author

@Dsaquel Dsaquel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of changes caused by pnpm format

@wangcch
Copy link
Collaborator

wangcch commented Apr 17, 2025

🤔 Maybe can use emit(log) + slot(console) + store.callback to implement the console plugin. Like the editor, the main package also does not depend on luna-console.

@Dsaquel
Copy link
Contributor Author

Dsaquel commented Apr 17, 2025

🤔 Maybe can use emit(log) + slot(console) + store.callback to implement the console plugin. Like the editor, the main package also does not depend on luna-console.

I think this is good, thansk for advice i'll try it.

@Dsaquel Dsaquel requested a review from wangcch April 17, 2025 23:27
@Dsaquel Dsaquel requested a review from wangcch May 18, 2025 19:32
ackzell added a commit to ackzell/yehyecoa-vue that referenced this pull request Sep 24, 2025
ackzell added a commit to ackzell/yehyecoa-vue that referenced this pull request Sep 27, 2025
* #15: Starting to integrate luna-console

Modifying the vue-repl based on vuejs/repl#333

* Missing file.

* fix: Hiding container for controls when none of them are presented.

* #15: Serializing and rebuilding the messages.

This enables elements to be rendered, for example.

* Updating lock file

* Updating lock file once more

* #15: Adding some configs to show and hide the console and to display horizontally/vertically within the preview

* #15 #28 Adding toggles for the different layout configs

For some reason I had to rename LunaConsole.vue to luna-console.vue or vite would lose my luna-console.css and break the built component (not the build process, but the dist files got messed up and yv would not load it).

* #15: Adding some animations

Working on some styles too

* #15: Making luna console theme reactive

* #15: Actually making luna console theme reactive this time

* Small tweak on the history snapshots

* chore: bump version to 0.2.0-beta

* Fixing variation in the position for the connected/disconnected indicator

It was driving me mad.

* #28: Adding a toggle for reverse layout

Abstracting the layout menu into its own component

* #28: WIP fixing mobile output layout

* #28: Fixing resizing for output in horizontal mode

* Using more specific class names to preserve resizing on horizontal layout even after building the package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants