Commit Graph
10 Commits
Author SHA1 Message Date
Matt Godbolt 72d2fdccc1 Apply the font scale when we know the target (#6849)
This fixes an ordering issue with font scales. The issue would happen if
you changed the default font scale and then e.g. opened a tool window.
It would have the "default" size selected; but it wouldn't apply to the
editor window.
2024-09-10 16:00:13 -05:00
Ofek 2055f087d5 Make scroll-up increase the font size and scroll-down decrease it (#6705)
Just feels more natural
2024-07-23 16:22:46 -04: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
Mats Larsen 1f5fbe0e28 Replace provide-plugin jquery imports with import statements (#3943) 2022-08-07 11:58:16 +02:00
Jeremy Rifkin 14ddad0376 Jr/editor font size setting (#3670)
* Two quick code cleanups while I'm here

* Added default font size user setting

* Better addSelector solution

* Fix and clarification, thanks Ruben

* Updated typing

* Added font scale broadcast
2022-05-18 15:31:53 -04:00
Jeremy Rifkin cc95e37d0a Remove unecessary jquery imports in ts files (#3576) 2022-04-27 05:48:05 +02:00
Jeremy Rifkin be41342f01 Fontscale ctrl+click (#3531)
* Added a ctrl+click handler to the fontscale button to reset to default

* Added tops to font scale widget tooltip about being able to use the mousewheel and ctrl+click
2022-04-21 21:05:55 +02:00
Jeremy Rifkin 6a19a65d43 Resolve @typescript-eslint/no-unnecessary-condition for static/*.ts files (#3525) 2022-04-17 22:48:57 +02:00
Jeremy Rifkin c4415586aa Output pane ts conversion (#3495)
* Converted output pane to ts

* Updated copyright year

* Remove jquery import

* Quick refactor
2022-04-13 00:18:07 +02: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