Commit Graph
67 Commits
Author SHA1 Message Date
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
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
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
Patrick Quist 5e5e60159a Multifile/IDE mode (#2725) 2021-08-26 21:57:07 +02:00
Rubén Rincón Blanco d3af770eec Simplify timing chart handling (#2749)
* Simplify timing char handling

It also removes some duplicated code concerning the settings
 while at it

* No need to make Timing a "class" anymore

* Address @partouf PR review
2021-06-29 19:16:28 +02:00
Matt Godbolt f68198af9e Reassign copyright to Compiler Explorer Authors (#2233) 2020-09-26 17:50:40 -05: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
RabsRincon ed03ef34b4 Make tabWidth setting a numeric input
Closes #1977
2020-05-20 01:46:54 +02:00
Matt Godbolt cfed3e77b8 Add an option to disable indent. Seemingly needs a restart (tried all the things I could think of), so gave up and just put a comment to say so. 2020-04-24 20:42:10 -05:00
RabsRincon 0afe3aeb88 Allow user to select tabs for identation
Closes #1819
2020-02-07 03:26:58 +01:00
RabsRincon 5924fd3bc7 Add option to keep current source on lang change
Closes #1604
2019-12-24 12:33:32 +01:00
Rubén Rincón 9b31ce2da4 Sets ligatures to false by default
The setting name changed so the default applies to users
 who have visited the site between now and when it was pushed

As noticed by @vincentisambart on #1653, it turns out that having
 ligatures enabled by default is not a wise idea
2019-11-04 16:47:14 +01:00
Rubén Rincón 6e4ec410f1 Enable font ligatures by default
They can be disabled in the settings pane
Closes #1653
2019-11-01 16:27:03 +01:00
Partouf 0a2115e13d add setting vim, refactor, bugfix vim visualmode 2019-08-30 16:06:45 +02:00
alclol 385987eff7 merge new 2019-08-26 13:27:03 -07:00
alclol 841b783549 merge new 2019-08-26 13:19:58 -07:00
alclol 21b050addc benchmark 2019-08-26 05:34:39 -07:00
RabsRincon 47d96e4f69 Differenciate from default lang and subdomain one 2019-08-24 15:42:01 +02:00
alclol e18bf5f5b0 merge 2019-08-24 02:44:44 -07:00
RabsRincon 9a080bbf9e Add opt-out setting for the new policy changes 2019-08-05 11:45:06 +02:00
alclol 4f12babb76 vim keybinding feature. Need support to redesign the UI. 2019-07-16 11:26:56 -07:00
alclol 6e85c6fdc5 vim keybinding feature. Need support to redesign the UI. 2019-07-16 10:56:29 -07:00
RabsRincon 0d4f6d61dd Set dark theme as default if the user ask for it
The feature does not have great browser support yet,
        (Firefox just got it) but it's better than nothing

Plans for automatically asking the user if they want to switch
        when they change the default values
2019-05-22 17:07:17 +02:00
RabsRincon 5706da42e1 * Add ability to use custom font family in editors
As suggested by @brainplot in #803
2018-12-26 21:45:38 +01:00
RabsRincon 4d65917574 Add source editor word wrapping behaviour 2018-11-25 20:57:52 +01:00
RabsRincon 77da7fc7b7 Add setting to toggle CtrlS behaviour 2018-11-03 19:33:28 +01:00
RabsRincon 4d2296f9a5 Make ads message obey user settings 2018-07-31 17:49:46 +02:00
RabsRincon ca793a4178 Rename views folder to pane 2018-07-17 07:23:59 +02:00
RabsRincon 79f3e90535 Reestructure static with new views and mode dirs 2018-07-16 07:48:47 +02:00
RabsRincon b8c8c65020 Reimplement code formatting 2018-04-20 22:07:40 +02:00
RabsRincon abb391f112 Enforce max-statement/line & further unify UI 2018-03-24 23:12:27 +01:00
RabsRincon 6ef87b5ef9 Fix copyright dates and normalize text 2018-02-27 14:58:21 +01:00
Rubén a63f3f3fd7 Further improve settings' defaultLanguage 2018-02-25 00:02:36 +01:00
RabsRincon d0f69370f4 Fix default language setting for good this time
Closes #837
2018-02-24 23:28:33 +01:00
RabsRincon 5bf7e6b30a Address PR reviews 2018-02-03 14:30:54 +01:00
jaredwy 70556a6c65 first pass at using webpack/yarn rather than bower and require.js 2018-01-28 19:09:33 +11:00
RabsRincon 5be9998ddf Fix language selection from subdomain 2018-01-05 23:34:38 +01:00
RabsRincon 43bca16dac Setup new language behaviour by @mattgodbolt
This should be enough for #735 Test away!
2018-01-05 20:56:19 +01:00
RabsRincon fc75208dac New year, new date 2018-01-01 16:44:04 +01:00
RabsRincon 9e120e1ade Add ability to select default language 2017-12-29 13:42:49 +01:00
Matt Godbolt e55b9138bc Add separate jshint configs for client and server. Make them much more strict, and fix up the issues brought up 2017-11-21 22:52:58 -06:00
Rubén 5ba8bb7495 Make minimap display togglable
Minor problem. Opt-view does not get the onSettingsChange events

Will fix once I know the cause
2017-07-04 21:20:54 +02:00
Rubén 2e76244c31 Add ability to disable Monaco's context menu
The custom context menu is enabled by default.

Thanks to @matt on Slack for the suggestion
2017-05-29 14:10:02 +02:00
Rubén Rincón 54dad1f010 Checkbox for quick suggestins. Disable dby default 2017-05-02 06:56:20 +02:00
Rubén Rincón 20fc836d38 Merge branch 'master' of github.com:mattgodbolt/compiler-explorer into themes 2017-04-24 16:49:49 +02:00
Rubén Rincón 0080c27f52 Allow to save current text of the editor as a file. Load now only allows files with certain extensions 2017-04-24 16:22:50 +02:00
Rubén Rincón c51ceaae92 Proposed changes on review (Except dist urls) 2017-04-15 20:06:23 +02:00
Rubén 1d600fde38 4 is the new default tab size 2017-04-14 01:25:17 +02:00
Rubén 589934c88d Merge branch 'master' into themes 2017-04-12 23:40:38 +02:00
Rubén Rincón 1f1d0cdc87 Adds a global setting for width size. Closes #381 for now, until more changes are suggested 2017-04-12 21:04:48 +02:00