Commit Graph
84 Commits
Author SHA1 Message Date
Rubén Rincón Blanco 924799919c Make Alert and Compiler-Picker widgets (#4366) 2022-11-30 12:41:54 +01:00
Rubén Rincón Blanco e962c3ef8b Fix errorResponse return value (#4248) 2022-11-09 03:12:01 +01:00
Rubén Rincón Blanco d104aa628f Add some support for execution line linking in non tree mode (#4080) 2022-10-01 03:50:52 +02:00
Rubén Rincón Blanco 712814f6b5 Adds way to disable executor recompilation on parameter change (#3862)
* Adds way to disable executor recompilation on parameter change

Now that this is here, maybe another toggle for tools would also be good
to have. Maybe even for the compiler itself.

And if we go that route, why not 1 for all three kind of panes?

Closes #3783

* Address PR reviews

Sometimes I wonder why I don't think of this things myself :)

* Do the state saving always
2022-07-18 14:18:22 +02:00
partouf 2d94bfa8c1 fix executor 2022-06-24 15:06:06 +02:00
Mats Larsen 50f4e061ac Fix unexpected es6 code in /static (#3753) 2022-06-13 02:40:21 +02:00
Patrick Quist bf061d81a5 urls werent being expanded in tree/ide mode (#3711)
* urls werent being expanded in tree/ide mode

* also expand mainsource
2022-05-26 13:50:24 +02:00
Jeremy Rifkin 371e8e6241 Reset stream styles between outputs (#3662) 2022-05-14 15:19:08 -04:00
Jeremy Rifkin 646e641b14 Fix resize bug (#3618) 2022-05-04 07:34:34 -05:00
Rubén Rincón BlancoandMatt Godbolt 2dbca646f0 Address some low-hanging fruits from webstorm code inspection (#3582)
* Address some low-hanging fruits from webstorm code inspection
* Change editor code to silence eslint

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2022-04-29 14:24:29 -05:00
Mats Larsen a1a1026a8e Move static/modes/_all.js to TypeScript (#3540) 2022-04-24 20:54:58 +02:00
Patrick Quist 17c01cf349 Fix for msvc library issue (#3501)
* fetch remote libraries on startup and put into client-options
* support remote libs in executor and conformanceview
2022-04-09 17:09:13 -05:00
Jeremy Rifkin 17b4f2ebc4 Fix Editor #false bug (#3360)
* Fix Editor: #false bug
* Refactoring, a couple small fixes to handling, and made changes for opt view
* Fixed Editor #false bug for diff pane
2022-02-23 07:46:40 -06:00
Rubén Rincón Blanco 48eee26d2c Group some files to their own folders (#3384)
* Group some files to their own folders

In etc/scripts/, added disasms/, docenizers/, and util/ folders
In lib/, added mapfiles/, and parsers/ folders (+moved google.js to
shortener)
In static/, added widgets/ folder

Added cypress folder to .gitignore

* Address Matt's PR reviews

* Move new Pane renaming to folder
2022-02-22 00:18:21 +01:00
Luca Natilla 26cbd6e63c Pane renaming saves the name of the panes into their state (#3364)
* Renaming works for compiler with local storage saving

* Remove closed panes from local storage

* Feature working for almost every pane

* Working except for editor and tool-input-view

* Save pane name into its state instead of local storage

* Remove unnecessary local storage code

* Apply Ruben's suggestions

* Check for CMakeLists.txt always on default name

* Change pane renaming's modal placeholder's text, code cleanup
2022-02-22 00:07:31 +01:00
Rubén Rincón Blanco f83e20af43 Makes notification messages more readable (#3383)
* Makes notification messages more readable

* Fix lint error

* Fix autohide always being false

* Contrast fixes
2022-02-21 22:42:57 +01:00
Luca Natilla 810cb5ad6f Ability to name panes (#3323) 2022-02-11 15:25:02 +01:00
Rubén Rincón Blanco ed90053a4c Fixes Executor pane for Python (+ possibly more) (#3354)
* Fixes executor pane for Python

It possibly also fixes it for more languages that behave like it.

* Typerrror has .message
2022-02-11 14:57:02 +01:00
Rubén Rincón BlancoandMats Larsen f4315c561b Move static/settings.js to TypeScript (#3297)
* Rename settings.js to ts

* Move Settings to TS

* Remove underscore from settings

* Update static/settings.ts

Co-authored-by: Mats Larsen <me@supergrecko.com>

* Update static/settings.ts

Co-authored-by: Mats Larsen <me@supergrecko.com>

* Improve Settings implementation

* Move Settings interfaces to same file

* Update static/settings.ts

Co-authored-by: Mats Larsen <me@supergrecko.com>

Co-authored-by: Mats Larsen <me@supergrecko.com>
2022-01-29 02:00:10 +01:00
Rubén Rincón Blanco fc19400855 Move static/libs-widget-ext.js to TypeScript (#3077)
* Rename static/libs-widget-ext.js to static/libs-widget-ext.ts

* Initial Typescript copy&paste

* File now compiles its TS

* First TSfy pass

Types need to still be sorted out, but this now compiles and works
:)

* Further work towards porting libs widget to TS

* Expand the scope of the PR and fix some TS issues elsewhere

Still releated to libs though

* Renames

* Address PR review

* Fixes some minor errors and finishes the tests

* Remove unused interface properties
As suggested by partouf in the PR

* Remove unused this
Noticed by Partouf in the PR review

* Remove more unused options interface properties

* Fixes last issues with the ts libs widget

* Remove console.log
2021-12-12 17:42:44 +01:00
Mats Larsen 025325e6d5 Replace CommonJS default exports with named exports (#3021)
This patch refactors every single CommonJS default export and TypeScript `export =` to use named exports.
2021-10-12 11:30:10 +02:00
Mats Larsen 71af750227 Warn if Execution Only is added for compiler without execution (#2962)
Shows a warning in the alert system and cancels the execution request if the compiler does not support execution.
2021-09-24 02:37:39 +02:00
Patrick Quist e24f724e47 Options cleanup (#2924)
* getting rid of compiler.libs

* old widget no longer needed

* move supportedLibraries code to base-compiler

* bugfix

* oops

* grmbl

* bugfix remote msvc compilers
2021-09-13 20:22:39 +02:00
RabsRincon fb7fa30403 Make executor spinner spin too 2021-09-04 06:20:28 +02:00
Rubén Rincón Blanco 6a1dbe14f7 Some general UI touches (#2910)
* Touches and changes to the UI to make it more consistent

It fixes some problems, improves the UX of certain actions,
 and clears some code up

* More minor tweaks to the UI

* Fix class typo

* Add compiler picker opt group header background color in default theme

* Fix conformance view

* Removes some &nbsp; in favour of margins

Removes boostrap-slider, there's a built-in html solution
Fixes tab width setting having a wrong input type

* More UI tweaks

* Remove empty CSS rule
2021-09-03 05:51:05 +02:00
Patrick Quist 31050a81ac Cmakeproms (#2906)
* new counters for cmake and bugfix executeCounter

* bugfix execution counter

* bugfix for when switching language
2021-08-31 17:46:21 +02:00
partouf 30a88625b5 grmbl lintfix 2021-08-31 12:56:01 +00:00
partouf 490b7da81c bugfix execution compilation status 2021-08-31 12:50:57 +00:00
partouf df04975cca fix #2902 2021-08-31 08:59:23 +00:00
partouf a0138c6c08 recovery option if tree suddenly disappears 2021-08-27 10:18:10 +00:00
Patrick Quist 5e5e60159a Multifile/IDE mode (#2725) 2021-08-26 21:57:07 +02:00
RabsRincon aacfdad6d4 Reorder panes names and set what they are first 2021-08-11 06:36:30 +02:00
Mats Larsen 648ebf9ecf Migrate /static/alert.js to TypeScript (#2829)
* Migrate static/alert.js to TypeScript

* Update copyright and extract interfaces

* Implement @partouf's Alert.enterSomething from Multifile UI
2021-08-01 12:02:34 +02:00
RabsRincon e0c5a73f0b Adds toggle for full compiler version output
Thanks to @JohanEngelen for suggesting it, almost a year ago :/

Closes #2298
2021-07-16 00:18:27 +02:00
Rubén Rincón Blanco d3af770eec Simplify timing chart handling (#2749)
* Simplify timing char handling

It also removes some duplicated code concerning the settings
 while at it

* No need to make Timing a "class" anymore

* Address @partouf PR review
2021-06-29 19:16:28 +02:00
RabsRincon 7074739ecf Remove self usages and apply styles 2021-06-28 11:27:09 +02:00
Rubén Rincón Blanco a80b37c34b Adds a way for panes to filter compilers (#2734)
* Adds a way for panes to filter compilers

I don't really like this solution, but I haven't been able to come
 up with a cleaner one, so unless someone finds a better way,
 this will have to do

* Address PR review comments
2021-06-25 17:34:09 +02:00
Matt Godbolt 0214876179 New compiler selectors (#2666)
* Extract a compiler picker and fix up edge cases
* Use it across the three places that let you pick compilers.
* Fix a number of minor UI issues.
* When reloading a page, prefer the 'favorite' compiler selection in the selectize. Thanks @oyejorge

Co-authored-by: RabsRincon <ruben@rinconblanco.es>
Co-authored-by: partouf <partouf@gmail.com>
With huge thanks to @oyejorge
2021-06-21 21:53:44 -05:00
RabsRincon b2308878ea Improve how we handle status icon and output info
This should help a bit in a few issues,
 but there's still work to do on all of them:

Issues #1034 #2674 #2696
2021-06-15 10:25:31 +02:00
Matt Godbolt 52e43774d1 Revert "Compiler Selection Improvements (#2660)"
This reverts commit 9c06156782.
2021-05-15 14:43:01 -05:00
Josh SchmidtandMatt Godbolt 9c06156782 Compiler Selection Improvements (#2660)
* allows favourites to be picked
* replace selectize with tom-select 1.7

Addresses (if not closes) #1917 & #257.

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2021-05-15 10:35:41 -05:00
Arseniy Zaostrovnykh c0633d087c Highlight individual tokens in the source file and the corresponding nodes in the LLVM AST pane (#2572)
* Enable the editor to highlight spans in the highlighted line
* Parse and send the column numbers for LLVM AST nodes
* Highlight the part of the line corresponding to a node

For nodes that fit on a single line
* Highlight the nodes directly corresponding to symbol hovered over

Also highlight entire tokens in the source, not just their first character

* Fix the squiggly underline for string literals
2021-04-06 14:59:46 -05:00
Patrick Quist 7edd6d40ac Time all the things (#2462)
* time executeDirect in ms

* measure library download and extract time

* time package download

* download timings when using execution checkbox

* proof of concept timing graph implementation

* use vertical bars for graph

* add objdump time

* add timing for asm parsing

* add timing graph to execution pane as well

* download timings on execution pane

* things
2021-03-11 17:37:57 +01:00
partouf eac712651a lintfix 2021-02-20 18:32:40 +00:00
Sam Elliott 3677ad6389 Add Notification to Compiler Info Popup (#2399)
This also adds the same changes to an executor instance.

Signed-off-by: Sam Elliott <sam@lenary.co.uk>
2021-02-20 19:22:50 +01:00
Peter Schussheim a0bcc9b8c2 add text wrapping toggle to executor pane (#2362) 2020-12-22 14:19:36 +01:00
Austin Morton 6400315650 Fix extra blank lines when copying from some panes
Closes #1260
2020-11-03 04:42:16 -05:00
Patrick Quist 4a158e1ff4 Library widget revamp (#2223)
* Use new widget for the ever-expanding library count
2020-09-27 01:59:40 +02:00
Patrick Quist d6a86198b7 Copy compiler arguments for 'Executor from this' (#2191)
* copy compiler args to executor

* disable executor-from-this if no supportsExecute for compiler

* also hide hidden compilers
2020-09-06 16:36:22 +02:00
Patrick Quist 837fc3cd00 Filter compilers in execution panel (#2181)
* basic supportsExecute filter

* dont mess up existing compiler selections

* dont execute if the compiler doesn't support it, do try to build still

* disable execute for clang arm compilers

* require at least 1 supportsExecute before default adding and selecting anything

* gcc 1.27 dont execute

* get rid of -Wl,-rpath error message
2020-09-04 21:28:14 +02:00