518 Commits
Author SHA1 Message Date
Christopher Smyth a5c45b6f0b Pony Lang Config (#3855) 2022-07-10 21:58:19 +02:00
Fred Tingaud 02ef879986 Move severity parsing with the rest of the output parsing. (#3821) 2022-07-01 00:30:57 +02:00
Fred Tingaud e76115f152 Make tools output parsing overridable. (#3819) 2022-07-01 00:30:49 +02:00
Mats Larsen 540981ccef Port lib/languages.js to TypeScript (#3740) 2022-06-24 14:14:32 +02:00
Matt Godbolt 7179b8aef4 Properly async await so exceptions are processed in getVersion as one would expect (#3797) 2022-06-20 12:38:17 -05:00
Jeremy Rifkin ca7ebb4583 Updated site templates (#3767)
- Better naming of functions in existing templates
- Added LLVM Ir and Preprocessor templates
- Improved screenshot generation script
- Improved config file format (now the full URL can just be copied in instead of manually trimming the `https://godbolt.org/#`)
- Added `docs/AddingASiteTemplate.md`
2022-06-12 13:38:12 -04:00
Jeremy Rifkin 4c2fe0a5ba Site templates feature (#3747)
* Baseline for the ui

* Backend system / frontend baseline

* Automated screenshot generation / integration

* added copyright

* Style improvements

* Reworked config / integrated images into webpack

* Added tree ide template and updated the screenshot generation script

* Added screenshots for each theme

* Updated screenshots to use embed mode and hide the site header

* Added test case, removed leftover console.log

* Renamed /api/getSiteTemplates to /api/siteTemplates

* Renamed site template type
2022-06-09 16:52:45 -04:00
Mats Larsen a1d6f453e3 Assembly documentation for LLVM IR (#3737) 2022-05-31 14:47:48 +02:00
partouf bc1a2d3746 formatfix 2022-05-27 23:59:35 +02:00
partouf 7573e69fbd extra unittests to see what happens if ppl are being cheeky 2022-05-27 23:49:51 +02:00
Patrick Quist fe2687f864 allow hashes in arguments (#3726) 2022-05-27 22:51:03 +02:00
Ben Barsdell d9151b9d39 Fix unused label filter for CUDA PTX output (#3717)
- Previously this filter did not correctly identify used labels in
  CUDA PTX output, which caused it to remove important labels.
2022-05-26 13:59:16 +02:00
partouf d0b38ab86e bugfix apphome 2022-05-25 18:34:06 +02:00
Ben Barsdell f703928293 Add demangler tests for CUDA PTX (#3715) 2022-05-25 09:20:31 -05:00
Jeremy Rifkin 3d2b895e02 Support 24-bit rgb ansi sequences (#3664)
* Add 24-bit rgb color support

* Added test case for 24-bit ansi sequences
2022-05-15 01:12:43 -04:00
Jeremy Rifkin 371e8e6241 Reset stream styles between outputs (#3662) 2022-05-14 15:19:08 -04:00
Rubén Rincón Blanco 0c2070aa85 Renable license checks (#3619)
* Renable license checks

* Set correct copyright date for unfurl-tests

* Fix small typo

* Fix license check line spacing

* Disable license check

* Go to old format for gcc dump view
2022-05-12 03:18:42 +02:00
Matt Godbolt f2c1e0bd31 The Grand Reformat (#3643)
* The Grand Reformat

- everything made prettier...literally
- some tweaks to include a few more files, including documentation
- minor changes to format style
- some tiny `// prettier-ignore` changes to keep a few things the way we like them
- a couple of super minor tweaks to embedded document types to ensure they format correctly
2022-05-09 23:13:50 -05:00
Matt Godbolt 19ddc3384e Port cache code to Typescript (#3605)
* Port cache subsystem to typescript
* Extract an interface class
* Use async for s3 cache; add tests for failure case
2022-05-02 15:19:13 -05:00
Patrick Quist 5969633862 handle vt100 reverse video escape code (#3598) 2022-04-29 14:14:03 -05:00
Rubén Rincón Blanco 4965bd6c81 All semver comparisons now ensure it's safe to do so (#3562)
* All semver comparisons now ensure it's safe to do so

* Oops, use correct class

* Remove leftover import

* Leave the Zig fixes for another PR

* Fix linter

* Fix test issues

* Make linter happy, yet again

* What?

* Address PR review
2022-04-26 15:24:40 +02:00
RabsRincon 40fe769459 Set comma-dangle to always in server code and es5 in client code 2022-04-26 05:26:48 +02:00
Matt Godbolt 21b764f392 Unify comma configuration; and apply format to some files. (#3559) 2022-04-25 18:22:11 -05:00
Jeremy Rifkin 16b071b9f0 Updated x86 docenizer to read adjacent tables (#3541)
* Updated x86 docenizer to read adjacent tables

* Added regression test
2022-04-23 22:04:09 +02:00
Matt Godbolt 074549fea4 Introducing Backtrace.io as a sponsor (#3342)
* Introducing Backtrace.io as a sponsor
2022-03-16 21:39:10 -05:00
Jeremy Rifkin 419d386bd9 Added keyword-spacing eslint rule and fixed instances of inconsistent spacing (#3428) 2022-03-07 22:38:58 -06:00
Matt Godbolt dc06a85242 Handle lines with no opcodes (#3416)
Fixes #3276
2022-03-01 05:55:45 -06:00
Jeremy Rifkin af4a55ed5e Fix preprocessor filtering with url #includes (#3398) 2022-02-26 13:34:54 -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
partouf 3a885634e8 lintfix 2022-02-11 15:43:41 +01:00
Jeremy Rifkin 74efcfa754 Preprocessor output panel (#3330) 2022-02-11 15:42:41 +01:00
partouf a894faf1eb lintfixes 2022-02-11 00:19:16 +01:00
Yusuf Bham 41853b4a8c Fixes check for empty request body (#3350)
Check `req.body` being empty in addition to `source` being `undefined`.

Closes #3349
2022-02-10 23:43:16 +01:00
Matt Godbolt 5f0a3a7f23 Re-enable ansi tests. CC @matsjla 2022-01-31 22:17:30 -06:00
Mats Larsen 9b890b1656 Refactor handling of Assembly Documentation Providers (#3247) 2022-01-31 14:05:21 +01:00
Mats Larsen 1406669452 Move BaseFormatter into /lib/formatters (#3250) 2022-01-24 21:07:52 -06:00
Elektron72 bf9d2334b9 Add AVR assembly documentation (#3218) 2022-01-07 16:30:56 +01:00
partouf 7e294e7473 fix unittest 2021-12-28 14:50:40 +00:00
Elektron72 5a350691bb Add assembly documentation for 6502 (#3210)
This PR adds assembly documentation for the MOS 6502 and WDC 65C02 instruction sets, which are output by cc65.
2021-12-23 16:34:08 +01:00
Mats Larsen 810a1d0918 Describe which opcode and arch was not found (#3175) 2021-12-15 19:10:50 +01:00
Matt Godbolt eb002af78f Update prettier, reformat json files 2021-12-13 23:12:25 -06:00
Matt Godbolt 73c758671a Update eslint et al 2021-12-13 22:40:03 -06:00
Mats Larsen d7c4eecbf7 Refactor and return 404 from AsmDocs APIs (#3143)
Refactors the handler for the AsmDocs API to reduce code duplication.

**Breaking changes proposed**

- API will now return 404. This used to return 200 with "Unknown opcode" which is what led to issue #3117. Following cases has been changed:
  1. archiecture was not found
  2. instruction opcode was not found
- API will now return 406 not acceptable when the accepted content type is not text or json
- There is no longer a `result` field on a 200 request, instead the assembly documentation object is returned.
- There is no longer a `found` field on any request, the HTTP codes indicate whether it was found or not (200 means found)

**New features**

- The frontend will only request the opcode for an instruction set at most once, caching every single outgoing request.
- The "There was an error fetching the documentation for this opcode" has been adjusted to contain what went wrong.

Relevant tests have been added and updated.
2021-12-07 11:43:08 +01:00
Rubén Rincón Blanco f7d77bd07e Modify the path include guard to fix some false-positives (#3083)
Closes #3045
2021-11-21 13:45:50 +01:00
Matt Godbolt cf7d70402e Await for things (#3086)
* Await for things

We had a number of things that aren't await()ing their promises.
That led to non-deterministic compiler settings like Intel support.
I used the IDE to find them all and fix the ones that I thought looked
important.

More generally we should use tslint (once we're all typescript) to
ensure this more generally. I tried the eslint equivalent but it
either overreacted or didn't catch anything.

Closes #3085
2021-10-31 15:31:45 -05:00
Patrick Quist 379a89f41f skip demangling (c++filt) tests when not on linux to allow more people to run the unittests (#3013) 2021-10-06 20:15:52 +02:00
MarkusandMats Larsen 511236c8ec Convert ansi-to-html.js to typescript (#2988)
* Convert ansi-to-html.js to typescript

Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com>
Co-authored-by: Mats Larsen <me@supergrecko.com>
2021-10-04 22:29:41 -05:00
Mats Larsen 66e5734da3 Create test case for #2995 (#3002)
Adds a Java assembly test case for issue #2995 which was resolved in #2996
2021-10-05 01:45:05 +02:00
Austin Morton dc49b67741 Fix sinon lint warnings in tests 2021-10-03 14:16:57 -04:00
Mats Larsen e7b9cbda91 Respect tab width and tabs/spaces settings for format APIs (#2957)
Site settings for tab width and tabs vs spaces are now being used when sent to the /api/format APIs.

This patch also includes some tiny internal refactoring on the bits related to the formatting API.
2021-09-26 23:56:39 +02:00