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.
* 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 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
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
* 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
* 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
* 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>
* 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>
* 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
* 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>
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>
* 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
* 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.
* 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