quark icon indicating copy to clipboard operation
quark copied to clipboard

added online compiler feature

Open monikasingh20 opened this issue 7 years ago • 10 comments

Fixes issue: 44

Changes: I have added Online Compiler link which would link to https://codecompilerun.herokuapp.com/ api . But this api supports languages : c, c++,java,python,javascript, c# only. These compiler donts have post requests feature , so user have to copy paste the code to compiler in order to run code.

monikasingh20 avatar Feb 23 '18 07:02 monikasingh20

Sir , please review this and suggest any changes required .

monikasingh20 avatar Feb 23 '18 07:02 monikasingh20

Nice work :+1:

A compiler is useful for our users but at the same time, placing a link will not help much in the sense that it will require an internet connection. The initial issue was concerned with integrating a compiler with Quark which would have been different as it would have provided a native solution defaulting to an editor while offline.

You may work on this issue further to achieve the above objective. The first step would be to provide an editable interface for the code results. :+1:

AdiChat avatar Mar 02 '18 23:03 AdiChat

We are unable to run shell commands from js file instead we need nodejs for the same. Please suggest a good option.

monikasingh20 avatar Mar 05 '18 18:03 monikasingh20

Yes, for the extension, we need to rely on external APIs or develop our own API (which should be simple to build). This will be an online feature and should stay disabled while offline. To achieve this, we must move one step at a time.

A good progress would be to develop an editor within Quark where users can create and edit files. Note, that the editor will work offline. Once done, we must move to develop a feature to enable the codes to open up in the editor instead of a new tab with no formatting. Similarly, we will move through further steps.

You may proceed to develop the editor. :+1:

AdiChat avatar Mar 05 '18 20:03 AdiChat

I have added compiler option , clicking on compiler option will open editor html page, in which user can either choose file and load ,edit the file. Or directly copy file and edit and save in local system.

monikasingh20 avatar Mar 07 '18 17:03 monikasingh20

Sir, please review and suggest any changes and what next to be done.

monikasingh20 avatar Mar 07 '18 17:03 monikasingh20

Great work. :+1:

You may use the term "Editor" instead of "Compiler" for the current state in the button and editor. You may, also, consider increasing the font size within the editor. The position of the control buttons should be better You may place it on the header of the editor as dropdowns in compact form or experiment with other designs.

Kindly take a look at the above points and make appropriate changes. :+1:

AdiChat avatar Mar 09 '18 12:03 AdiChat

@AdiChat I have done few changes as suggested by you:

  1. replaced compiler with Editor name.
  2. Improved UI design of Editor.
  3. Added features like zoomin, zoomout, clear,undo, save,upload code.
  4. used dropdown menu.

screenshot from 2018-03-11 23-32-23 screenshot from 2018-03-11 23-32-33

monikasingh20 avatar Mar 11 '18 18:03 monikasingh20

@AdiChat please review above changes.

monikasingh20 avatar Mar 11 '18 18:03 monikasingh20

Great work :+1:

The text typed in the editor must be saved locally by default. You must provide a clear option as well. Also, the OpenGenus logo must appear at the top left corner.

In the editor.html, the header should be Editor instead of Edit your code.

I have added some comments as well.

Kindly take a look into this and make appropriate changes. :+1:

AdiChat avatar Mar 16 '18 23:03 AdiChat