Commit Graph
427 Commits
Author SHA1 Message Date
RabsRincon 16ff1a8a4b Add api/version and api/releaseBuild GET endpoints 2021-08-13 05:31:40 +02:00
Matt Godbolt 009d448402 Fix up error when there's no languages 2021-07-08 21:35:16 -05:00
Patrick Quist 36524372fc New calls for embed and code (#2680)
* support embedded from clientstate

* unstored code handler

* rename
2021-06-10 17:33:59 +02:00
Matt Godbolt cb50486d27 Bump eslint dependencies and suppress most of the warnings 2021-05-27 23:06:42 -05:00
Matt Godbolt 4562542c20 A big fat update of packages 2021-05-27 21:45:05 -05:00
Austin Morton b8bdd322b3 Use route parameters in legacy google shortlink route
This will fix the sentry performance metrics for this route.
Also clean up the error behavior while we are there.
2021-04-06 09:58:16 -04:00
Austin Morton 9e678ebd75 Exclude healthcheck from sentry tracing 2021-03-30 04:48:31 -04:00
RabsRincon a877144445 Fix previous commit
Oopos
2021-03-15 13:35:54 +01:00
RabsRincon a630eafce4 Add compiler scan count log 2021-03-15 12:54:39 +01:00
Austin Morton 28219f9e1e Add loki log transport (#2302) 2021-02-19 08:20:51 -05:00
Matt Godbolt 17b2bb8a58 Move /shortener to /api/shortener (#2426)
We still support /shortener (though will scrape logs to see when
we can remove).

The route under /api/shortener will have the CORS headers set up
properly for things like @foonathan's lexy visualiser.
2021-02-15 12:52:46 -06:00
Matt Godbolt 459afeb426 Goodbye, travis 2021-02-13 09:23:17 -06:00
Melven Roehrig-Zoellner 829500f408 Allow to listen on unix socket instead of port (#2393)
* Allow to listen on unix socket instead of port
2021-01-19 08:54:14 -06:00
Matt Godbolt 69d830740b Log 500+ errors so without sentry one has a chance of debugging locally 2021-01-16 14:36:16 -06:00
Austin Morton 82883c27db Add cumulative event loop lag metric 2020-10-16 17:34:14 -04: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 9e36ef238a Enable request ip logging in server-side sentry reports 2020-10-11 13:08:07 -04:00
Austin Morton 8bc2b57c32 Avoid re-stringifying client-options.js on every request 2020-10-11 12:04:23 -04:00
Austin Morton 8695b51663 Enable sentry performance tracing 2020-10-11 11:07:49 -04:00
Austin Morton 8c130eda2d Disable webpack development middleware statistic logging (#2247) 2020-10-02 07:17:44 -04: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
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Austin Morton bac07fea6d Eliminate all dynamic require statements (#2230) 2020-09-25 11:21:30 -04:00
Austin Morton a49c0523a2 Refactor shortener implementation in preparation for es6 modules 2020-09-23 16:09:34 -04:00
Austin Morton dde5ef02fa Move some files in preparation for es6 modules 2020-09-23 04:30:15 -04:00
Patrick Quist 0f01b99846 Fix curl API (#2184)
* manually parse formdata to be compatible with curl examples

* only parse formdata when /noscript/compile, add unittests

* no need to parse formdata in these cases

* use specific handling per url
2020-09-05 12:22:44 +02:00
Patrick Quist 32aadc90e7 [#RandomThingsNobodyAskedFor] Noscript pages (#2120)
* hello world again

* alt texts for sponsor icons

* lintfixes

* moved noscript alongside normal views and things

* language listitems

* offer link to noscript version when needed

* filter fixes and add execution output to text output

* reuse more things, add special css, support filters and execution to noscript

* bugfix

* bugfixes

* add icons because why not

* main sponsor urls

* support noscript z links

* start of better mobile view in noscript mode

* move files to noscript folder, fixes

* try to run script in mobile

* script works now

* refactoring

* scale textarea when theres css

* fix sponsorlink

* hide hidden compilers

* duplicate change from trunk
2020-08-29 21:33:37 +02:00
Austin Morton 01f198bfa8 Restrict bit names to normal word characters 2020-08-08 07:13:06 -04: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 fb2f43b579 Ensure sentry environment is set for node backend
fixes #2104
2020-07-27 14:11:52 -04: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
RabsRincon b7fc8b1759 Ensure backend options are always generated 2020-06-15 12:47:31 +02:00
Matt Godbolt bc042d22af Fix inevitable typo in a late-breaking rename 2020-04-12 18:13:55 -05:00
Matt Godbolt ecffaefaab Read thanks/sponsors on demand.
Implement @apmorton's idea. Not sure about either `partial`, `_partial` or
the `bits` I went with...thoughts welcomed!
2020-04-12 18:12:08 -05:00
RabsRincon 433e5ad895 Use path.join to... join the paths 2020-04-12 05:20:24 +02:00
Matt Godbolt 420462bdfd Move thanks to "sponsors"
* Implement (server-side) templating and parsing of sponsors to take some
  of the toil out of updating what was thanks.html, and pave the way for
  making this dynamically loaded outside of the codebase.
* Support corporate sponsorships. Currently showing two (unapproved, NOT
  for merging) ideas of possible sponsors.
* Some minor tweaks to try and support small screens better for these.
2020-04-11 18:11:41 -05:00
Austin Morton cadbdf59ff Switch to p-queue package, implement compilationEnvTimeoutMs, and improve temp cleanup logging (#1877)
These changes are an attempt to help diagnose a queue halting issue that decreases parallelism and prevents temp dir cleanup.

see #1875
2020-03-07 01:50:49 -05:00
Austin Morton 4760ae92de Update dependencies (#1842) 2020-02-25 02:46:41 -05:00
Austin MortonandRubén Rincón Blanco 7ce90a3388 Update to latest monaco webpack plugin (#1836)
* Update to latest monaco webpack plugin to get content hashes on worker script path
* Move to Monaco built-in Pascal mode

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2020-02-17 17:09:47 -05:00
Austin Morton 95cd401609 Apparently express requires the 4th argument be present to consider a handler for errors 2020-02-14 14:46:37 -05:00
Matt Godbolt 627a244da9 Merge branch 'master' into mg/async_tweaks 2020-02-05 07:54:55 -06:00
Austin Morton ac363db579 Log slow requests to sentry (#1813) 2020-01-31 13:40:36 -05:00
Matt Godbolt 2b0a072c02 Asyncify app.js 2020-01-14 22:06:04 -06:00
Matt Godbolt 6d939696cd Ensure HTML stuff uses new sentry scheme 2020-01-11 18:02:47 -06:00
Matt Godbolt 2a39859c99 Use a more useful environment name in sentry 2020-01-11 17:45:45 -06:00
Matt Godbolt f8b5c64b8d Use travis build number as sentry release 2020-01-11 15:42:03 -06:00
Matt Godbolt d1c237fca2 Redact request data from sentry unless user has allowCodeStoreDebug. Closes #1769 2020-01-11 10:59:01 -06:00
Rubén Rincón 56968947d5 Fix compiler id duplication on cloning 2019-12-17 22:11:37 +01:00
Matt Godbolt f53ad05442 Merge pull request #1643 from mattgodbolt/features/cdn
Support serving static content externally
2019-11-15 07:36:02 -06:00