Commit Graph
1864 Commits
Author SHA1 Message Date
Patrick Quist 00f226fa2a fix skipasm (#2931) 2021-09-12 02:43:15 +02:00
partouf 85cda71b9b fix #2929 2021-09-11 22:50:09 +00:00
Mats LarsenandPatrick Quist 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
Robert Andrzejuk 4484943659 Update styles available in clang-format (#2926)
* Update styles availabe in clang-format

* Update compiler-explorer.amazon.properties
2021-09-10 12:41:53 +02:00
Patrick Quist 902a6a8777 search on cloogle (#2921) 2021-09-10 02:48:52 +02:00
RabsRincon 5525c40bc6 Fix current cursor pos bug 2021-09-07 17:39:24 +02:00
RabsRincon 0e296f27d0 Improve new cursor position label 2021-09-05 13:46:20 +02:00
RabsRincon a779f6005d Add current caret position to source pane 2021-09-04 17:06:28 +02:00
RabsRincon fb7fa30403 Make executor spinner spin too 2021-09-04 06:20:28 +02:00
RabsRincon fa0aa1afcc Extremely minor tweaks to UI 2021-09-03 07:33:22 +02:00
RabsRincon c9e8e7a9a1 Remove leftover comment 2021-09-03 07:11:58 +02:00
RabsRincon cfbcf4e87d Make quick link share available for everyone 2021-09-03 07:09:09 +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 9f1373be08 Reenables social shares for whole site
Fixes a bug introduced in #2510
(In which I totally deleted working code by mistake...)
2021-09-02 08:53:20 +02:00
Patrick Quist e812888b0c tree sometimes doesn't exist anymore 2021-09-01 22:56:57 +02:00
RabsRincon f82b0114d9 Adds drag support for Tree pane
It also fixes a bug where multiple sources could be created if dropped
into the same dragSource button

Moves somes _.bind(fn to fn.bind( in ts code

Closes #2895
2021-08-31 20:16:13 +02:00
Patrick Quist 31050a81ac Cmakeproms (#2906)
* new counters for cmake and bugfix executeCounter

* bugfix execution counter

* bugfix for when switching language
2021-08-31 17:46:21 +02:00
partouf 30a88625b5 grmbl lintfix 2021-08-31 12:56:01 +00:00
partouf 490b7da81c bugfix execution compilation status 2021-08-31 12:50:57 +00:00
partouf df04975cca fix #2902 2021-08-31 08:59:23 +00:00
partouf 370633e091 fix #2896 2021-08-29 14:21:44 +00:00
Matt Godbolt fda2704fc8 Add tooltips to files in tree view. (#2894)
* Makes the two buttons (stage/unstage) separate so the template
  file has all the title etc in it.
* Hides/unhides to show the appropriate button only.
2021-08-28 15:20:10 -05:00
partouf c8cf80a12a Merge branch 'main' of https://github.com/compiler-explorer/compiler-explorer into main 2021-08-28 14:04:31 +00:00
partouf d7ec20d865 fix #2888 2021-08-28 14:03:19 +00:00
RabsRincon 50197b7fdf Properly allow prettier pragma 2021-08-28 16:02:35 +02:00
RabsRincon 1c59f9153f Disable eslint-license-header until we incorporate prettier 2021-08-28 15:31:19 +02:00
RabsRincon 46cb319e88 Fix json syntax error
Thanks jrtc27 for the headsup :)
2021-08-28 02:44:02 +02:00
Mats LarsenandRubén Rincón Blanco 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 9b17656ac4 Listen for ClipboardJS events on clippy button 2021-08-27 23:49:14 +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 4259ea91ff Load stored libs from state
Closes #2880
2021-08-27 22:14:57 +02:00
RabsRincon 6c053b8a62 Move static/sharing.js to TypeScript 2021-08-27 22:08:27 +02:00
RabsRincon 7a49b18c7d Move static/url.js to TypeScript 2021-08-27 21:34:47 +02:00
RabsRincon 55ab80ca6c Change some tree code based on WebStorm suggestions 2021-08-27 18:25:50 +02:00
RabsRincon ac87204fa7 Add color to linked compiler output lines 2021-08-27 18:00:53 +02:00
Mats Larsen 7a9663d1af Move global declarations into its own file (#2878) 2021-08-27 16:25:43 +02:00
partouf a0138c6c08 recovery option if tree suddenly disappears 2021-08-27 10:18:10 +00:00
partouf c549892cdf bugfix timing 2021-08-27 09:46:51 +00:00
Patrick Quist 5e5e60159a Multifile/IDE mode (#2725) 2021-08-26 21:57:07 +02:00
Rubén Rincón Blanco 8f99cae29f Fix Conformance View problems (#2872)
* Some initial sketchs for fixing conf view

* Fix problems regarding Conformance View pane

The fav issue on #2824 is still there though

Fixes #2841

* Update CompilerPicker.lastCompilerId on compiler change

Fixes #2824
2021-08-26 18:18:10 +02:00
Mats LarsenandMatt Godbolt 53b9e0ac59 Support multiple formatter types for /api/format (#2818)
* Make /api/format handle multiple formatter types
* Ignore preferred style if the formatter is a 'one true style' formatter
* Add tests for base formatter
* Document /api/formats and /api/format/<formatter> usage
* Document adding a new formatter
* Update amazon config

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2021-08-24 18:46:38 -05:00
Jason Zheng 750f076f8d Add generic keywords to OpenCL C and C++ for OpenCL (#2869)
The generic and __generic keywords are currently reserved in the OpenCL C
specification. They have already been added as keywords in Clang. Without
highlighting, it can seem as if generic is not an address space, as the
other address spaces are highlighted. This can be seen in the AST viewer
on Compiler Explorer. The lack of highlighting makes the AST less convenient
from a user-perspective.

C++ for OpenCL inherits address space behavior from OpenCL C v2.0 s6.5, so
this change applies to both OpenCL C and C++ for OpenCL.
2021-08-24 15:23:28 +02:00
RabsRincon 562512b319 Add current lib count to dropdown button 2021-08-15 12:06:32 +02:00
RabsRincon 617257f015 Add more sanity checks for _onContextMenu 2021-08-15 06:55:44 +02:00
Patrick Quist cb28c31453 bugfix asm keyword (#2852) 2021-08-14 13:07:27 -05:00
ca017bac31 Add support for heterogeneous compute (#2836)
* Extract device code from assembly files.

This commit by itself does not actually add any viewing panes for the
extracted device code, nor does it provide any means to provide
device-specific postprocessing steps.

* Add a rudimentary device view.

This doesn't handle multiple device outputs correctly at the moment, and
it provides no opportunity to view device code differently from
non-device code for now.

* Lint issues

* Some more WIP getting it working.

* Add device extraction code

* More fixes, and keep state

Co-authored-by: Joshua Cranmer <joshua.cranmer@intel.com>
Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-08-14 12:53:22 -05:00
RabsRincon 20ffd36a3a Stop removing expired old cookies 2021-08-13 06:58:48 +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