Commit Graph
233 Commits
Author SHA1 Message Date
Vaascoo 836d97b6ea Add an alert to fix #3518 (#3771) 2022-06-14 13:16:14 +02:00
Jeremy Rifkin 4c2fe0a5ba Site templates feature (#3747)
* Baseline for the ui

* Backend system / frontend baseline

* Automated screenshot generation / integration

* added copyright

* Style improvements

* Reworked config / integrated images into webpack

* Added tree ide template and updated the screenshot generation script

* Added screenshots for each theme

* Updated screenshots to use embed mode and hide the site header

* Added test case, removed leftover console.log

* Renamed /api/getSiteTemplates to /api/siteTemplates

* Renamed site template type
2022-06-09 16:52:45 -04: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 a4e4295465 Respect the default language setting when doing code and ui reset (#3666) 2022-05-15 01:13:14 -04:00
RabsRincon b2b2de71f8 Prettier changes 2022-05-12 03:55:21 +02:00
Rubén Rincón Blanco 5087a9ec0d Add icons to languages in dropdown (#3298) 2022-05-12 03:53:40 +02:00
Matt Godbolt 58337bb5bf Improvements to policy handling (#3595)
* Use webpack loaders to generate both the pug output and the SHA256 hash of it
* Uniformly use pug for HTML templating
* Policy hashes are entirely client-side
* No longer need to have the policy documents available to the server side
2022-04-28 15:19:06 -05:00
Matt Godbolt 5ae6b304e4 Pre-compile typescript in releases (#3570)
* build the release in-place in out/dist
* run the tsc compiler on the code so everything is pre-transpiled
* serve the various generated html snippets uniformly from the web page so they come from one place.
2022-04-27 16:24:50 -05:00
Rubén Rincón Blanco 4f8def9bd6 Catches the rison deserialization exception to allow page loads (#3515) 2022-04-14 02:45:43 +02:00
Rubén Rincón Blanco ffe2c621d1 Remove some deprecated functions (#3399) 2022-02-24 14:55:46 +01:00
Mats Larsen f17dbed786 Move static/presentation.js to TypeScript (#3395) 2022-02-23 20:26:24 +00: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
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