jcubic / jquery.terminal

jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands
https://terminal.jcubic.pl
MIT License
3.12k stars 568 forks source link

Add docking window extension #826

Open jcubic opened 2 years ago

jcubic commented 2 years ago

I have an idea for a new feature for jQuery Terminal

Include with the package:

Ref: https://codepen.io/jcubic/pen/ExwpEwB?editors=0110

API:

$.terminal.docking(function(command, term) {

}, { options });

alternative:

$.terminal.docking({ options }).terminal(...);

And docking will return div inside the container for adding the terminal.

An additional option will be the initial state, docking: boolean;

TODO:

Adarsh-Dhar commented 1 year ago

Hey can I contribute to this issue .I am a first year undergrad and want to start my opensource journey

jcubic commented 1 year ago

Sure

jcubic commented 1 year ago

@Adarsh-Dhar Do you need help?

Adarsh-Dhar commented 1 year ago

can you list what all techstack i need to know for this issue.I already know html , css, js, react., jQuery

jcubic commented 1 year ago

JavaScript, CSS, HTML, jQuery

Adarsh-Dhar commented 1 year ago

also could you please elaborate what i have to do

jcubic commented 1 year ago

You need to take the code that is in the links in the issue and put it together. You can start by using one of the files in js directory as base, because you need UMD module definition in the file.

jcubic commented 9 months ago

Working Window Docking demo with localStorage persistance

It's better to name the extension window() because docking({ docking: true }) would look odd.