348 Commits
Author SHA1 Message Date
dependabot[bot] e08368fd2e Bump yaml from 2.2.1 to 2.2.2 (#4995)
Bumps [yaml](https://github.com/eemeli/yaml) from 2.2.1 to 2.2.2.
2023-04-25 17:14:49 -05:00
Gaurav Gautam ea6adf0f26 Modify debugger command so that node inspector works with ts-node-esm (#4948) 2023-04-07 14:42:56 +02:00
Matt Godbolt 54a99f6d51 Upgrade all minor versions; format; bump sonar and css minimizer (#4920) 2023-04-01 20:29:06 -05:00
Matt Godbolt 7abd84e1dc Bump lru cache (see isaacs/node-lru-cache#282) 2023-03-15 15:45:22 -05:00
partouf 850cee9e08 dont fetch approvals from github 2023-03-14 21:03:51 +01:00
Matt Godbolt a8f832f80c Bump to latest cypress (#4853)
Latest cypress:
- updated all the tests
- fixed up warnings
- got rid of isolation stuff, it's now isolated by default
- added simple docs
- added `--noLocal` to prevent any local config from screwing up when
testing locally
- store screenshot artifacts if things go wrong
2023-03-14 10:00:40 -05:00
Matt Godbolt e6625f8288 Bump to the latest chart.js (#4865)
Nothing scary in the release notes; did a quick spot check of the timings page.
2023-03-13 07:29:16 -05:00
Matt Godbolt 8623251b02 Bump scroll into view (#4866)
Checked notes and tested locally.
2023-03-13 07:28:52 -05:00
Jeremy RifkinandMatt Godbolt 55dc09017e Compiler Picker UI Improvements (#4849)
Alrighty, round 2!

This PR makes the compiler picker dropdown taller (max height is to the
bottom of the screen)

![image](https://user-images.githubusercontent.com/51220084/224517409-17706ba6-fe85-444a-ad3b-f244f66eea5b.png)

I've added a toolbar button for opening the popout as well as a button
when the dropdown is open:


![image](https://user-images.githubusercontent.com/51220084/224517304-6478fca5-7bc1-4f87-b2ae-e9091d7d48bc.png)

![image](https://user-images.githubusercontent.com/51220084/224517317-83468805-1e9d-4bc6-8a4f-8786325f1e7b.png)

Then the modal interface allows text searching, filtering by compiler
category, and filtering by compiler instruction set. In the future I'd
like to replace the instructionSet property with an architecture
property so the filtering here can be a little better.


![image](https://user-images.githubusercontent.com/51220084/224517348-9cf40866-c5af-4274-84ba-21eb640ab2ea.png)

Demo of the category filtering:


![image](https://user-images.githubusercontent.com/51220084/224517529-5370b3f9-9ad3-4340-838a-b2d0a47c7467.png)

The text filtering highlights results the same as tomselect does:


![image](https://user-images.githubusercontent.com/51220084/224517490-d0dfa6d0-9b61-4be4-8cc7-ca4a4729a532.png)

I moved the favorites permanently to their own column so compilers
aren't jarringly shifted around the screen when favoriting /
unfavoriting.

Also added media queries so the modal looks ok on smaller screens:


![image](https://user-images.githubusercontent.com/51220084/224517563-bdf409c1-7e3a-4c73-812b-f02179b55799.png)


![image](https://user-images.githubusercontent.com/51220084/224517574-07fa2c8b-67d2-496d-9174-b1343e22bd62.png)

I think the only other two changes from the first PR are now the active
compiler is highlighted like it is in the tomselect dropdown and I
figured out how to reliably focus the search bar on modal open. (Oh, and
now clicking a compiler actually does something!)

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-03-12 17:07:44 -04:00
Matt Godbolt ce2098951d Bump eslint-formatter-github in the hope of fixing some whinges 2023-03-12 14:37:31 -05:00
Matt Godbolt 14eb2b0802 Bump to latest LRU library and use new clear() method (#4852)
Tested locally; read release notes, all seems good.
2023-03-12 12:58:52 -05:00
Matt Godbolt 82b1ca9cce Bump to latest monaco (#4854)
Fixes #4355
2023-03-12 12:58:22 -05:00
Matt Godbolt 3f7def7e38 Upgrade LRU-Cache (#4833)
- rephrase a few LRUs in terms of the new API
- add `okToCache` to the `CompilationResult` to make typing more correct
(I _think_)
2023-03-08 10:58:56 -06:00
Matt Godbolt 2b6500203e Update to latest AWS SDK (#4818)
We're not using the new `send` functionality, but this gets everything
running and tests passing. It has _not_ been tested against real AWS
yet. That's next. I might move stuff over to the new `send` API, but
also I might not if it's just working.
2023-03-07 18:10:56 -06:00
Matt Godbolt d14d338fa9 Update all non-critical packages (#4824)
eslint, nopt, url-join and sinon. All seem OK and nothing scary in
release notes.
2023-03-07 17:18:46 -06:00
Jeremy Rifkin ea107a5ff9 More work needed, thanks for the comments Ruben and Matt! :)
Revert "Compiler picker UI improvements (#4789)"

This reverts commit d4a8c2bdb2.
2023-03-07 10:46:33 -05:00
Matt Godbolt f229d281bd Update the webpack-related things (#4823)
Move the magical webpack things to the latest, and handle the seemingly
minimal changes needed (ran locally both with `make` and `make dev`)
2023-03-06 22:34:08 -06:00
Jeremy Rifkin d4a8c2bdb2 Compiler picker UI improvements (#4789)
Makes the compiler picker dropdown a bit taller, prevents the dropdown from overflowing the page, and also adds a compiler picker popup
2023-03-04 19:55:25 -05:00
Matt Godbolt 8cb8f6ff84 Update to yaml and drop some unneeded deps (#4811)
Also add some tests
2023-03-02 19:02:57 -06:00
Matt Godbolt 05f32f4860 Update type packages 2023-03-01 07:26:39 -06:00
Mats Jun LarsenandMatt Godbolt 633eb82d18 Transition to ECMAScript Modules (#4780)
Makes the Compiler Explorer app, and all the tooling ESM compatible.
Things that have been done:

1. The package.json has `type: module` now
2. All relative imports have a .js ending
3. All directory imports are now directory/index.js to comply with ESM
standards
4. Dependency node-graceful is now imported into tree, because the
package is broken under esm
5. Dependency p-queue has been bumped to 7.x with ESM support
6. Dependency profanities has been bumped to 3.x with ESM support
7. Webpack config is now both ESM and CommonJS compatible
8. Non-ESM compatible imports have been rewritten
9. ESLint configuration has been tweaked to not fail on .js imports
10. Mocha is now hacked together and ran with ts-node-esm
11. Webpack is now hacked together and ran with ts-node-esm
12. Webpack config is now ESM compatible, so that it can be used in the
dev server
13. Cypress code still runs commonjs, and has been excluded from the
tsconfig
14. All sinon mock tests have been commented out, because sinon module
mocks do not work with ESModules (because ESModules are immutable)

A lot of tests are now giving warnings/errors to stdout, yet still pass.
Docenizer codegenerator scripts have been updated, but I did not re-run
them, and instead just changed their code.

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-02-27 18:06:38 -06:00
Jeremy c6ffaaa16c Oops, fix typo from #4767 2023-02-23 17:32:15 -05:00
Jeremy Rifkin 6bd5c43f62 Tsify app.js (#4767)
I forgot about app.js, now this is actually the last file in our ts
conversion (other than test/)
2023-02-23 17:15:59 -05:00
Mats Jun Larsen 2b7c771fec build: re-arrange and remove unused dependencies (#4758) 2023-02-20 00:32:04 +01:00
Mats Jun Larsen ea49349a43 fix: use definitely typed types for node-targz (#4757) 2023-02-19 22:11:21 +00:00
Matt Godbolt 79772a92a1 Precommit errors (#4739)
- make all things we mention in our lintrc `errors`
- `max-warnings=0` too
- allow `!` null checks in tests
2023-02-13 21:52:48 -06:00
Jeremy Rifkin 31925e2468 Tsify some tests (#4684) 2023-02-02 21:37:22 -05:00
Mats Jun Larsen 39b81c963f Tsify asm-docs-tests to typescript with utils (#4670) 2023-01-31 22:00:48 +01:00
Jeremy Rifkin 7309443a9b Setup TS testing infrastructure (#4659) 2023-01-29 18:58:11 -05:00
Jeremy Rifkin 6a6efaefe6 Tsify lib/compilers (#4609) 2023-01-29 13:22:30 -05:00
Jeremy Rifkin cde3212b1e Handle super long symbols in the cfg (#4616) 2023-01-24 15:44:56 -05:00
Jeremy Rifkin 1ca6525abc Improve graph layout core hack now that types have been fixed upstream (#4610) 2023-01-17 01:41:58 -05:00
Jeremy Rifkin 33167a3024 Tsify main (#4520) 2023-01-13 19:52:00 -05:00
Jeremy Rifkin aaf13f6e47 Try to address an unhandled exception that's crashing instances (#4519)
* Try to address an unhandled exception that's crashing instances

* Quick amendment
2022-12-29 17:14:22 -07:00
Matt Godbolt 749319f791 Slightly more controversial bumpings (#4503)
- latest sentry, tar-stream, which, some yamljs versions
- latest eslint-* stuff
- latest webpack manifest
- Applies all the automatic fixes for newer lint rules
- Bump the webpack version

applies new tslint stuff
2022-12-28 11:42:14 -06:00
Jeremy Rifkin 92b17d203d Tsify lib/shorteners (#4504)
* Convert lib/shorteners to ts

* Improved types
2022-12-28 10:18:37 -07:00
Matt Godbolt b497dca512 Hopefully uncontroversial bumpings (#4502)
* Bump monaco-vim
* Bump typescript things
* Update other easily updated things
2022-12-27 17:45:57 -06:00
Matt Godbolt 640ab3197a Bump to latest webpack because why not (#4500) 2022-12-27 15:59:55 -06:00
Matt Godbolt d94eb203c1 Add lint rule for unused imports, and fix (#4476) 2022-12-20 15:51:39 -06:00
Jeremy Rifkin 5ee5386678 Upgrade and audit npm packages (#4457)
* Upgrade and audit npm packages

* Go back to mocha 8.4.0

* Fix build, update for new api
2022-12-18 12:53:17 -05:00
Jeremy Rifkin ce5d673078 Fix #4444 (#4453) 2022-12-18 10:30:38 -05:00
Jeremy Rifkin 10ba9a10cd Add svg exports for cfgs (#4424)
* Added svg exports for cfgs

* Quick refactor

* Fix background colorfor chrome exports
2022-12-12 18:22:26 -05:00
Jeremy Rifkin 1294c3f949 Control flow graph tool rework (#3899)
* Removed old code

* Base functionality

* Work on edge offsets

* Setup interval trees for edges

* linter things

* Formatting

* Added syntax highlighting

* Cleanup and simplification. Improved handling of direct dropdown edges.

* Basic zoom/pan

* Remove old blocks from output

* Fix distance calculation

* Added function selector

* Improved zoom behavior

* figue 8 logic

* Canvas scaling / repainting, updated colors

* Don't truncate output, also removed some console.logs

* Tweak to zoom system

* Replaced canvas stuff with svg

* Experimenting with adding shadows to edges

* Removed shadows, was causing problems. Improved how blocks with lots of incident edges are handled.

* Slightly improved edge system

* some work on implementing segment priority system from cutter

* Optimization to rendering process. I was worried the graph layout algorithm was causing the page to hang but it turns out it was adding elements to the page with +=

* Removed need for storing the previous segment

* refactor, splitting up some logic

* Cleaned up logic and got horizontal edges working better

* Remove vis-network dependency

* Updated package-lock, removed @import vis-network css stuff, added a todo for myself

* Cleaned up notes and error messages. Added comments. Clear the pane if there's no function to display

* Added layout time information, implemented .resize

* Light theme

* State work and bug fix for dragiing

* Re-dading lost dark theme changes

* Added jquery import

* Cleaned up console.logs

* Added basic block count

* Incorporated PR review comments; Fixed cypress (hopefully), added documentation, improved the dropdown, and fixed dropdown items not being cleared with an empty result.cfg

* Ran format
2022-11-29 22:28:10 -05:00
Matt Godbolt f276f73dab First pass at making compile.js into TS (#4313) 2022-11-22 07:27:43 -06:00
Matt Godbolt e80e321334 Split out lint staged config; lint tsc (#4197)
* Split out lint staged config; lint tsc

Per https://www.npmjs.com/package/lint-staged#using-js-configuration-files
this is how to run `tsc` appropriately without passing it the config files
(which doesn't work with `-p <>` which we also need to supply consistent
tsc configuration).

* suppress warnings
2022-10-31 22:42:55 -05:00
ddafb32feb Try to fix main (#4173)
* Fix Editor not being able to load full links
* Better type for this.filename in compiler.ts
* Updates editor.ts and improves compilation types
* Fix some of the type issues, lots still remain
* fixes to language selection & refactoring of hub and some inits
* fix flow of events
* Fix llvm opt handling (cc @jeremy-rifkin)

Co-authored-by: partouf <partouf@gmail.com>
Co-authored-by: Matt Godbolt <matt@godbolt.org>
2022-10-22 13:59:51 -05:00
J. Ryan Stinnett a65b527eb8 Fix check script (#3968)
This removes the extra `npm run` from the check script so it can run as
expected.

Regressed by https://github.com/compiler-explorer/compiler-explorer/pull/3847
2022-08-18 13:10:55 +02:00
github-actions[bot]andCompiler Explorer Bot 61b55e2eef Automated checkin - update browsers list (#3933)
Co-authored-by: Compiler Explorer Bot <mattgodbolt@users.noreply.github.com>
2022-08-01 11:38:45 +02:00
Patrick Quist 9b65532be9 more explicit that path-browserify should be used (#3901) 2022-07-28 23:33:58 +02:00
Mats Larsen 18160be477 Use eslint-plugin-prettier to fix and check formatting problems (#3847) 2022-07-12 22:56:03 +02:00