Commit Graph

27 Commits

Author SHA1 Message Date
Matt Godbolt
bba64c6b94 Update; apply lint/format (#6085) 2024-02-04 14:45:04 -06:00
Matt Godbolt
61b979cd58 Update all the minor packages; reformat and bump (#6064)
Formats all the things too.
2024-01-29 21:37:48 -06:00
Mats Larsen
da1a3ab7dc Make it possible to share types in /types directory between front and backend (#3211)
* Make it possible to share types in /types directory between front and backend

* Add new tsconfig files to gh-dist-files
2021-12-28 15:53:34 +01:00
Matt Godbolt
eb002af78f Update prettier, reformat json files 2021-12-13 23:12:25 -06:00
Mats Larsen
cd1f67aa45 Enable downLevelIteration and tslib for TypeScript (#3038)
* Install tslib for TypeScript runtime

* Enable downlevel iteration and tslib in tsconfig
2021-10-22 08:56:17 -05:00
Austin Morton
1828965a69 Remove explicit files and outDir values from tsconfig (#2992)
When `files` is unspecified `input` defaults to `**/*`.
This pattern still only matches valid typescript extensions.

When `outDir` is specified it is implicitly added to `exclude`,
which takes priority over `include` and breaks the build.

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2021-10-04 22:55:16 -05:00
Markus
7a754a3664 Convert codelens-handler.js to typescript (#2990)
* Convert codelens-handler.js to typescript

Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com>
Co-authored-by: Matt Godbolt <matt@godbolt.org>
2021-10-04 22:49:16 -05:00
Markus
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
Markus
f24c4efe4e Convert colour.js to typescript (#2991)
This will convert static/colour.js to typescript (see #2981)

Changes are pretty much the same as with the other conversions I did.

Assumed that param colours in applyColours is of type number[] as this is the only fitting type.

Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com>
2021-10-03 23:26:59 +02:00
Mats Larsen
278d28b313 Add rustc Macro Expansion view (#2932)
Adds a new pane for producing the macro expansion of Rust code compiled with rustc.
2021-09-27 00:33:09 +02: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
Mats Larsen
6907507570 Add missing tsconfig entries and alphabetically sort existing ones (#2953) 2021-09-22 16:02:11 +02:00
Patrick Quist
e24f724e47 Options cleanup (#2924)
* getting rid of compiler.libs

* old widget no longer needed

* move supportedLibraries code to base-compiler

* bugfix

* oops

* grmbl

* bugfix remote msvc compilers
2021-09-13 20:22:39 +02:00
Mats Larsen
d93bd31f40 Add base Pane component and migrate RustMirView to TypeScript (#2917)
* Implement generic pane skeleton

* Implement abstract Pane class

* Port RustMirView to typescript

* Fix nits in code

* Adjust method names and add override modifiers

* Add remaining settings keys (and fix a bug)

* Use this-binding in registerStandardCallbacks

* Address review comments

* Use utils.updateAndCalcTopBarHeight in base pane

* Add notice about adding an entry in interfaces.ts

* Use .bind instead of context parameter

GoldenLayout has moved away from the context parameter, so .bind is a safer for the future

* [200~Check for editor presence + fix typo~

* Remove trailing comma

Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-09-10 23:42:47 +02:00
Mats Larsen
000e147431 [NFC] Port monaco-config.js to TypeScript (#2918)
* Port monaco-config.js to TypeScript

* Properly type the inputs of extendConfig()

* Sort tsconfig
2021-09-10 23:40:52 +02:00
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 &nbsp; 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
RabsRincon
46cb319e88 Fix json syntax error
Thanks jrtc27 for the headsup :)
2021-08-28 02:44:02 +02:00
Mats Larsen
3f4d18a78a Implement code document formatting through monaco (#2874)
* MVP implementation of Monaco code formatting

* Lint fixes

* Replace Ctrl + F9 keybind with monaco command to invoke formatDocument

* Use window.httpRoot definition from tree.ts

* Add definitions for C and Rust

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2021-08-28 02:01:17 +02:00
RabsRincon
03a983c532 Avoid adding uncommited files to the ts list :) 2021-08-27 22:33:01 +02:00
RabsRincon
170023c498 Did I forget the important step? Yes 2021-08-27 22:31:56 +02:00
RabsRincon
7a49b18c7d Move static/url.js to TypeScript 2021-08-27 21:34:47 +02:00
Mats Larsen
7a9663d1af Move global declarations into its own file (#2878) 2021-08-27 16:25:43 +02:00
Patrick Quist
5e5e60159a Multifile/IDE mode (#2725) 2021-08-26 21:57:07 +02:00
RabsRincon
1dc6ddbe96 Revert "Stop removing old cookies as they will have expired by now"
This reverts commit 1a5c5ede38.
2021-08-13 06:57:44 +02:00
RabsRincon
1a5c5ede38 Stop removing old cookies as they will have expired by now 2021-08-13 06:36:07 +02: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