Commit Graph
221 Commits
Author SHA1 Message Date
Patrick Quist 51047b6ad7 Frontend testing (#3169) 2022-02-04 18:35:04 +01:00
Rubén Rincón Blanco 2978b90ee5 IE11 is no longer supported, no need to shim includes (#3321) 2022-02-04 14:37:57 +01:00
Rubén Rincón BlancoandMats Larsen f4315c561b Move static/settings.js to TypeScript (#3297)
* Rename settings.js to ts

* Move Settings to TS

* Remove underscore from settings

* Update static/settings.ts

Co-authored-by: Mats Larsen <me@supergrecko.com>

* Update static/settings.ts

Co-authored-by: Mats Larsen <me@supergrecko.com>

* Improve Settings implementation

* Move Settings interfaces to same file

* Update static/settings.ts

Co-authored-by: Mats Larsen <me@supergrecko.com>

Co-authored-by: Mats Larsen <me@supergrecko.com>
2022-01-29 02:00:10 +01:00
Mats Larsen 0976d65bdd Fix issue where changelog would not show, because it grabbed the entire ESModule (#3268) 2022-01-17 14:04:09 -06:00
Matt Godbolt 5109414485 Fix privacy and cookie policy display post-webpack5 (presumably). See #3214 2021-12-24 08:51:35 -06:00
Matt Godbolt 883223f2f3 Fix up jscookie api 2021-12-14 12:13:08 -06:00
Mats Larsen 85a287c011 Introduce whatwg-fetch as fetch polyfill (#3016)
Fetch is a modern, promise-based API for sending HTTP requests from the browser (https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)

This patch introduces whatwg-fetch as the polyfill for fetch, as well as installing it inside the main script.
2021-10-12 11:54:10 +02:00
Markus 9e00d2f896 Convert simplecook.js to typescript (#3010)
Converts simple cookies handler to TypeScript and refactors to use setOn handlers instead of directly mutating the simplecook instance properties
2021-10-12 11:50:33 +02:00
Mats Larsen 025325e6d5 Replace CommonJS default exports with named exports (#3021)
This patch refactors every single CommonJS default export and TypeScript `export =` to use named exports.
2021-10-12 11:30:10 +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 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 5e5e60159a Multifile/IDE mode (#2725) 2021-08-26 21:57:07 +02: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
RabsRincon 1a5c5ede38 Stop removing old cookies as they will have expired by now 2021-08-13 06:36:07 +02:00
Rubén Rincón Blanco 48a3317d75 Set sameSite: 'strict' for cookies (#2839)
Firefox kept complaining
2021-08-13 05:00:43 +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
Matt Godbolt 9a07e40048 Ensure history is updated on every change. Closes #2762 (#2791) 2021-07-19 21:59:34 -05:00
Matt Godbolt 7fddb70e22 Add optional support for noting page loads with which icons are visible (#2774)
* Add optional support for noting page loads with which icons are visible
* Add an endpoint
2021-07-11 17:06:48 -05: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 0214876179 New compiler selectors (#2666)
* Extract a compiler picker and fix up edge cases
* Use it across the three places that let you pick compilers.
* Fix a number of minor UI issues.
* When reloading a page, prefer the 'favorite' compiler selection in the selectize. Thanks @oyejorge

Co-authored-by: RabsRincon <ruben@rinconblanco.es>
Co-authored-by: partouf <partouf@gmail.com>
With huge thanks to @oyejorge
2021-06-21 21:53:44 -05:00
Matt GodboltandRabsRincon ec8ba0906b Adds a faster way to copy share links (#2673)
* Improve the Sharing code & UX

Co-authored-by: RabsRincon <ruben@rinconblanco.es>
2021-06-21 21:42:39 -05:00
RabsRincon 298cb01144 Clear up some UI messes and prettify it a bit 2021-06-06 21:35:28 +02:00
Matt Godbolt 52e43774d1 Revert "Compiler Selection Improvements (#2660)"
This reverts commit 9c06156782.
2021-05-15 14:43:01 -05:00
Josh SchmidtandMatt Godbolt 9c06156782 Compiler Selection Improvements (#2660)
* allows favourites to be picked
* replace selectize with tom-select 1.7

Addresses (if not closes) #1917 & #257.

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2021-05-15 10:35:41 -05:00
Rubén Rincón Blancoandpartouf 192af60701 Sketch a possible solution for #2436 (#2510)
* Sketch a possible solution for #2436

* Do the dirty and just call setupSharing twice

* add embeds share, reuse embed dialog and get rid of old popup

* styling fixes

* rename dialog

* refactor and reintroduce ctrl+s implementation

* reintroduce analytics sending

Co-authored-by: partouf <partouf@gmail.com>
2021-05-13 19:41:43 +02:00
Rubén Rincón Blanco 004119efaa Add bells to policies when a new version is available (#2516)
* Sketch possible solution for #2464

* Save all element lookups when not necessary

Varible names are weird because var is weird

* Actually change varible names

* Remove lefover classes from previous tests

* Add some breathing room to bells

* Use Jquery selectors

* Hide bells when a simpleCooks consent choice is made
2021-03-27 20:05:35 +01:00
RabsRincon 214889f467 Remove duplicate date calculation code 2021-03-25 00:56:52 +01:00
Matt GodboltandRabsRincon ed7f003651 Privacy policy updates. Closes #2276 (#2419)
* Privacy policy updates. Closes #2276

* Improve policies timestamp generation

* Remove leftover debug print

* Python3 all the things

Also uses the short hash for policy commits

* More master->main.

Co-authored-by: RabsRincon <ruben@rinconblanco.es>
2021-02-15 00:09:13 +01:00
Austin Morton f8826fd250 Refactor theme system to apply them earlier in page load (#2249) 2020-10-02 06:56:46 -04:00
Austin Morton de85aecc7d Normalize and enforce license disclaimer headers (#2234) 2020-09-27 00:20:19 -04: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
Austin Morton 05e2d09be2 Workaround for goldenlayout maximized item bug
fixes #2056
2020-07-01 10:42:34 -04:00
Patrick Quist 01f59fd22c [WIP] Mobile View-only mode (#2037)
* just the important bits

* hide arrows by default

* remove share button when in mobileviewmode

* oops

* support executor

* compiler output support, tools, executor, lot of refactoring

* support skipAsm filter
2020-06-20 21:32:41 +02:00
Austin Morton 1035440125 Prevent editor selection changes from overwriting shortlink url (#2039)
fixes #2016
2020-06-20 20:39:34 +02:00
Matt Godbolt d953a00732 Rename sponsor to ces in te CSS to alleviate blocker woes. Closes #2023 2020-06-12 09:10:34 -05:00
Matt Godbolt 84e9b282fd Canonical URLs now https://github.com/compiler-explorer/compiler-explorer! Hooray :) 2020-05-16 11:09:30 -05:00
Matt Godbolt 1334711d90 Fix sponsors open GA 2020-04-21 23:37:40 -05:00
Matt Godbolt ecffaefaab Read thanks/sponsors on demand.
Implement @apmorton's idea. Not sure about either `partial`, `_partial` or
the `bits` I went with...thoughts welcomed!
2020-04-12 18:12:08 -05:00
Matt Godbolt 14062b0307 Merge remote-tracking branch 'origin/master' into mg/sponsors 2020-04-12 09:12:11 -05:00
Matt Godbolt 0c07215ab4 Escape an ampersand 2020-04-12 09:11:15 -05:00
Matt Godbolt 420462bdfd Move thanks to "sponsors"
* Implement (server-side) templating and parsing of sponsors to take some
  of the toil out of updating what was thanks.html, and pave the way for
  making this dynamically loaded outside of the codebase.
* Support corporate sponsorships. Currently showing two (unapproved, NOT
  for merging) ideas of possible sponsors.
* Some minor tweaks to try and support small screens better for these.
2020-04-11 18:11:41 -05:00
Rubén Rincón 141512ba86 Add gitReleaseCommit field to options
Fixes #1825
2020-02-11 10:26:05 +01:00
RabsRincon 76d9ea84a6 Polyfill String.includes
Fixes #1792
2020-01-15 20:48:22 +01:00
Patrick Quist 6648d56f55 History (localstorage) (#1735)
* add history to localstorage + way to restore state

* lintfixes

* work in progress; diffing of history

* lintfix

* inline diff

* set editor layout

* lintfix

* refactoring

* able to load from history from loadsave dialog

* different menu icon

* capitalisation consistency

* remove id's, dont seem to be needed

* maxHistoryEntries const

* refactor

* use class instead of id for inlinediff checkbox

* lintfix
2019-12-31 13:42:46 +01:00
Austin Morton 419458530f Support serving static content externally 2019-11-13 23:35:53 -05:00
Matt Godbolt 78907a2793 Fix up comment 2019-10-12 15:50:59 -05:00
Matt Godbolt 13b54c84d4 Support language-specific extra decorations 2019-10-12 15:31:46 -05:00
Partouf f3f4096a85 oops 2019-09-05 17:16:58 +02:00