Commit Graph
140 Commits
Author SHA1 Message Date
Matt Godbolt 4eccbf8742 Upgrade monaco and monaco-webpack-plugin (#3204) 2021-12-21 16:09:40 -06:00
Mats Larsen 0b32c7e916 Automatically enable text search for language dropdown (#3162) 2021-12-12 17:43:19 +01:00
RabsRincon 8886821da4 Add a way to ensure no tracking is done and now 3rd party is available 2021-10-26 20:31:38 +02: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
Rubén Rincón Blanco b6338e0897 Adds supportsExecute language option (#2963)
* Adds supportsExecute language option

It's recalculated every time the compilers change
2021-10-04 21:47:29 -05:00
partouf ee3370501a always escape 2021-09-27 16:12:36 +00:00
RabsRincon e33a52bfd6 Closes #2967 2021-09-27 17:04:54 +02:00
Mats Larsen 3faf881e95 Bind duplicate selection to Ctrl + D (#2956) 2021-09-22 21:16:36 +02:00
Patrick Quist 902a6a8777 search on cloogle (#2921) 2021-09-10 02:48:52 +02:00
RabsRincon 5525c40bc6 Fix current cursor pos bug 2021-09-07 17:39:24 +02:00
RabsRincon 0e296f27d0 Improve new cursor position label 2021-09-05 13:46:20 +02:00
RabsRincon a779f6005d Add current caret position to source pane 2021-09-04 17:06: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   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 e812888b0c tree sometimes doesn't exist anymore 2021-09-01 22:56:57 +02:00
RabsRincon f82b0114d9 Adds drag support for Tree pane
It also fixes a bug where multiple sources could be created if dropped
into the same dragSource button

Moves somes _.bind(fn to fn.bind( in ts code

Closes #2895
2021-08-31 20:16:13 +02:00
partouf 370633e091 fix #2896 2021-08-29 14:21:44 +00:00
Mats LarsenandRubén Rincón Blanco 3f4d18a78a Implement code document formatting through monaco (#2874)
* MVP implementation of Monaco code formatting

* Lint fixes

* Replace Ctrl + F9 keybind with monaco command to invoke formatDocument

* Use window.httpRoot definition from tree.ts

* Add definitions for C and Rust

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2021-08-28 02:01:17 +02:00
Patrick Quist 5e5e60159a Multifile/IDE mode (#2725) 2021-08-26 21:57:07 +02:00
Mats LarsenandMatt Godbolt 53b9e0ac59 Support multiple formatter types for /api/format (#2818)
* Make /api/format handle multiple formatter types
* Ignore preferred style if the formatter is a 'one true style' formatter
* Add tests for base formatter
* Document /api/formats and /api/format/<formatter> usage
* Document adding a new formatter
* Update amazon config

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2021-08-24 18:46:38 -05:00
RabsRincon 7f5099272d Try to guess what CppReference language is best
Closes #2204
2021-08-04 09:40:24 +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 e41fb815d0 Make editor and compilers remember reveal jumps
Closes #2825
2021-07-29 11:33:05 +02:00
RabsRincon 6cd6a37f86 Rename all-editor-modes.js to _all.js 2021-07-27 10:41:16 +02:00
RabsRincon 209c8f4de6 Check lineNumber is valid before getting its tokens 2021-07-24 00:12:24 +02:00
RabsRincon 9389bec2c0 Move editor moves to a single file 2021-07-23 05:00:51 +02:00
Jason Zheng 18a03e5577 Add C++ for OpenCL language (#2771) 2021-07-13 09:24:13 -05:00
Quinton MillerandPatrick Quist 94ecb093a0 Add Crystal support (#2732)
* Add Crystal support

* Fix copyright

* Add ASM parser for Crystal

* Add supportsLibraryCodeFilter

* Update crystal-mode.js

* use baseName

* Force `square` call

* Update default snippet

Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-07-08 00:23:48 +02:00
Jason Zheng 70cb841daf Add OpenCL C language (#2752) 2021-07-06 08:32:22 -05: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
Matt Godbolt 8c2bed4819 Updates to better support cppx-blue
With @hsutter
2021-06-25 17:23:51 -05: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
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
Matt Godbolt ce5db61ea6 Typo fix 2021-04-06 15:00:08 -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
RabsRincon e7be9f59db Comment out a line that's too talktive
It seems like clearSelection is not available anymore (Was it ever?)

Comment it out - The folding does not work as it stands,
 so little is being lost as it stands right now

See issue #2561
2021-04-02 00:43:08 +02:00
Austin Morton de85aecc7d Normalize and enforce license disclaimer headers (#2234) 2020-09-27 00:20:19 -04:00
Matt Godbolt f68198af9e Reassign copyright to Compiler Explorer Authors (#2233) 2020-09-26 17:50:40 -05:00
Rubén Rincón BlancoandPatrick Quist 14a60bb46a Add base monaco editor config (#2157)
* Add base monaco editor config and extend from it

* Don't modify config object

Co-authored-by: Patrick Quist <partouf@gmail.com>
2020-08-29 21:32:03 +02:00
Austin Morton 21fea37af5 Fix #2150 2020-08-27 07:47:47 -04:00
Partouf 9dde240d98 allow scrolling beyond last line in editors 2020-08-23 13:56:29 +02:00
sdgoodrick a41d7becf6 add support for cppx blue and gold languages (#2144) 2020-08-20 16:27:15 +02:00
Rubén Rincón BlancoandAustin Morton ccff4b9ee5 Add new eslint rules (#2121)
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible

In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules

This PR attempts to not change code behavior when possible.  In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the 
code base to silence the error.  You can find these by searching for `eslint-disable-next-line`.

Co-authored-by: Austin Morton <austinpmorton@gmail.com>
2020-08-04 16:39:02 -04:00
Patrick Quist a68ba64740 cppreference search action (#2110)
* cppreference search action

* noopener
2020-07-31 10:40:10 +02:00
Patrick Quist ea66990bac Mobile context menu bugfix (#2048)
* make contextmenu on mobile disappear when you click somewhere else

* lintfix

* Update editor.js

* Update editor.js
2020-07-09 14:22:07 +02:00
Patrick Quist 01f59fd22c [WIP] Mobile View-only mode (#2037)
* just the important bits

* hide arrows by default

* remove share button when in mobileviewmode

* oops

* support executor

* compiler output support, tools, executor, lot of refactoring

* support skipAsm filter
2020-06-20 21:32:41 +02:00
Matt Godbolt 84e9b282fd Canonical URLs now https://github.com/compiler-explorer/compiler-explorer! Hooray :) 2020-05-16 11:09:30 -05:00
Matt Godbolt cfed3e77b8 Add an option to disable indent. Seemingly needs a restart (tried all the things I could think of), so gave up and just put a comment to say so. 2020-04-24 20:42:10 -05:00
Patrick Quist 08772b9804 select extra options in quickbench (#1834)
* select extra options in quickbench

* lintfixes

* use regex to determine optimization lvl

* bugfixes + better semver recognition

* fix optimization flags to quickbench

* Also add c++std to cppinsights link
2020-03-03 19:52:21 +01:00