Commit Graph
223 Commits
Author SHA1 Message Date
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
Rubén Rincón Blanco 3d68f5382e Implements Prettier formatting (#2766) 2021-08-28 14:41:28 +02:00
Rubén Rincón Blanco 958906d5c0 Bump monaco editor to latest version (#2876) 2021-08-28 01:59:17 +02:00
Patrick Quist 5e5e60159a Multifile/IDE mode (#2725) 2021-08-26 21:57:07 +02:00
Mats Larsen b6c2380c56 Assembly API documentation for Java Bytecode (#2817)
* Add assembly documentation endpoint for Java bytecode
* Upstream asm docenizer for Java
* Remove jvms.html from gitattributes as it is never checked into vcs
* EOF line for docenizer-java.js
* Use find-node to locate nodejs
* Format code according to style guide
2021-08-14 12:56:33 -05: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
Patrick Quist 1a2d0ffa34 enable typescript for clientside static scripts (#2820) 2021-07-29 15:16:14 +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
Matt Godbolt cb50486d27 Bump eslint dependencies and suppress most of the warnings 2021-05-27 23:06:42 -05:00
Matt Godbolt d4a2b6267f Upgrade some test packages 2021-05-27 22:38:00 -05:00
Matt Godbolt f216852edd Upgrade fs-extra 2021-05-27 22:30:15 -05:00
Matt Godbolt 72972ee73e Upgrade monaco
Hopefully fixes #2529 (sorry @partouf but I'm sure we'll have plenty
of other opportunities to drop back to script mode!)
2021-05-27 21:54:29 -05:00
Matt Godbolt 4562542c20 A big fat update of packages 2021-05-27 21:45:05 -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
dependabot[bot] 2ec3c4b023 Bump lodash from 4.17.20 to 4.17.21 (#2653)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-09 15:29:18 +02:00
dependabot[bot] 1cc291d0cb Bump underscore from 1.11.0 to 1.12.1 (#2650)
Bumps [underscore](https://github.com/jashkenas/underscore) from 1.11.0 to 1.12.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](https://github.com/jashkenas/underscore/compare/1.11.0...1.12.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 00:13:36 +02:00
Dan OkkenandPatrick Quist 5a62baa397 Add doc for Windows Debugging (#2593)
* Remove ref and link to the wiki

* Add doc for Windows debugging

* Add Windows debugging doc

* fix typo

* Fix wording

* fix wording again

* revert package lock changes

Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-04-13 10:26:16 +02:00
Matt Godbolt 8b3064afdc Bump sentry version. Add even more MOTD debug for #1057 2021-04-01 16:18:58 -05:00
Matt Godbolt c197574a3c Bump to monaco-vim that doesn't complain about the versin of monaco we have. 2021-04-01 14:33:41 -05:00
Matt Godbolt bddbe30753 Add an update-browserslist npm run (not yet run) 2021-04-01 10:56:01 -05:00
Austin Morton 884ff9a3e0 Upgrade to latest sentry sdk 2021-03-29 02:54:32 -04:00
Matt Godbolt de70a734be Merge branch 'main' of github.com:compiler-explorer/compiler-explorer into main 2021-03-28 16:13:15 -05:00
Matt Godbolt d2ccba8926 Upgrade to monaco 0.23
* Fixes a few cases where we weren't require()ing monaco
* Removes unneeded change to cppp now it's been upstreamed.

Closes #878
2021-03-28 16:08:48 -05:00
Matt Godboltandpartouf 657866b86c Approval tests (#2491)
* Approval tests

Move to approvals to do the approval-style tests we had in filters-cases.

You can configure which diff viewer it uses with ~/.approvalsConfig

Pros:
* standard diff-based thing
* easy to "bless" all the differences (see `forceApproveAll`)
* fairly standard pattern
* forces a comprehensive all permutations and combinations vs
  the ad hoc subset we picked before
Cons:
* really wants to name the files *.approved.txt
* spawns _all the diffs_ at once and so an overarching change
  can crush your computer with diff (e.g. if you use `meld` like
  I do, you end up with 100+ diffs opening)
* comprehensive testing means this takes longer, now ~16s to do
  all these tests

* use latest approvals and its new settings

* Normalize line endings in the hope of getting windows passing

* fix for windows

* oops

Co-authored-by: partouf <partouf@gmail.com>
2021-03-28 22:57:40 +02:00
Matt Godbolt 0044536dcd Bump to pug 3.0.2 2021-03-11 18:48:32 -06: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
Austin Morton 28219f9e1e Add loki log transport (#2302) 2021-02-19 08:20:51 -05:00
Matt Godbolt 62e4c241b2 Argh 2021-02-13 10:48:09 -06:00
Matt Godbolt 6a46f724d4 This'll be the fix.
ref: https://gitter.im/Angular-Karma-Test-Explorer/Bugs?at=5d9e2a1a940b4c2fc0a3bdb6
2021-02-13 10:38:44 -06:00
Matt Godbolt d17db6767e Dear me 2021-02-13 10:28:40 -06:00
Matt Godbolt 2bd7bbf42c Hopeful? 2021-02-13 10:23:46 -06:00
Matt Godbolt afca73b2eb Update codecov, try and get sentry working 2021-02-13 09:38:07 -06:00
Matt Godbolt 5a59cbacfa Tweaks to mocha setup to let IDE users run individual tests again 2021-01-16 09:58:31 -06:00
Matt Godbolt 43343cdd56 Only install and use sentry-cli on travis; sentry-cli doesn't work on BSD. See #2307 2020-11-03 08:09:28 -06:00
Matt Godbolt 6962bc739b Very simple metrics (#2289)
If --metricsPort XX is supplied, run a server on port XX that
responds with metrics. Configure only default node metrics for
now; hope to get more interesting stats in soon.
2020-10-15 22:59:19 -05:00
Austin Morton 8695b51663 Enable sentry performance tracing 2020-10-11 11:07:49 -04:00
Austin Morton 91f11667a1 Update dependencies (#2248) 2020-10-02 13:31:19 -04:00
Austin Morton f8826fd250 Refactor theme system to apply them earlier in page load (#2249) 2020-10-02 06:56:46 -04:00
Austin Morton de85aecc7d Normalize and enforce license disclaimer headers (#2234) 2020-09-27 00:20:19 -04:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Austin Morton ca437e15b6 Consolidate eslint configuration (#2224) 2020-09-23 02:09:32 -04:00
Austin Morton ff5e454b49 Fix codecov 2020-08-05 02:47:23 -04:00
RabsRincon e0a5e9e56b Bump eslint to version 7.6.0
Note that eslint-plugin-sonarjs asks for a peer fo <= 6,
 but we have no incompatibilities (We dropped node 8 support)

Check https://github.com/SonarSource/eslint-plugin-sonarjs/pull/155
2020-08-05 07:19:04 +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
Austin Morton ba6b49b2e9 Split vendor code into separate webpack bundle and reduce amount of monaco code bundled (#2113)
Additionally minify css bundles.
2020-08-02 19:03:39 -04:00
dependabot[bot] 06d42a3bb9 Bump codecov from 3.6.5 to 3.7.1 (#2091)
Bumps [codecov](https://github.com/codecov/codecov-node) from 3.6.5 to 3.7.1.
- [Release notes](https://github.com/codecov/codecov-node/releases)
- [Commits](https://github.com/codecov/codecov-node/compare/v3.6.5...v3.7.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-21 15:17:47 +02:00
dependabot[bot] e052522dd9 Bump lodash from 4.17.15 to 4.17.19 (#2085)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 10:16:47 +02:00
Austin Morton 1035440125 Prevent editor selection changes from overwriting shortlink url (#2039)
fixes #2016
2020-06-20 20:39:34 +02:00
Matt Godbolt e86bdf89ed Update to latest sentry 2020-06-09 20:10:00 -05:00