Commit Graph
13 Commits
Author SHA1 Message Date
Jeremy Rifkin 974159bdbe Fix CE not working without internet (#5188)
Fixes #4252
2023-06-21 18:10:55 +02:00
Jeremy Rifkin c779507000 Create a print view (#5161)
This PR adds a print view for CE

Closes #4617


![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/92e5ceab-10cc-4289-a742-592e379627ef)

At the moment syntax highlighting isn't working. I think we need a way
to get style definitions from monaco. I've opened an issue at
https://github.com/microsoft/monaco-editor/issues/4031. For the CFG
pane, using the monaco classes "just works", but for some reason when
@media print is applied those definitions go away. We'd want to always
use light mode colors anyway.
2023-06-19 22:13:45 -04:00
Jeremy Rifkin 7a5d21338c Fix color scheme flash on page load for pink theme (#5174)
Updating the logic in #4488
2023-06-18 15:32:34 -04:00
Rubén Rincón Blanco 95876c37fc Avoid flash on pageload for System and Dark+ themes (#4488) 2022-12-23 21:12:46 +01:00
Rubén Rincón Blancoandpartouf a61b877eb1 Adds date filtering for ads (#3916)
* Adds date filtering for ads

No idea how to get test to work though :(

* move motd test to frontend testing

* bugfix isValidAd

* Add missing testcases

Co-authored-by: partouf <partouf@gmail.com>
2022-07-30 10:01:59 +02:00
Rubén Rincón Blanco a4565fb352 Updates some Pug files (#3842)
* Move popup views to their own file each

* Make simple monacopane mixin in templates

* Also extract templates to their files

Compiler got some mixin love too :)

* Also split templates to their own files

* More mixin love for more files
2022-07-10 17:43:28 +02:00
Austin Morton 93dfe4812c Remove es6-shim (#3316)
The shim was only ever loaded for internet explorer
2022-02-03 10:12:57 +01:00
Patrick Quist 6f12ca6b80 Let IE11 users still use the site somewhat (#2661)
* let IE11 users use the noscript pages

* simplify
2021-05-20 18:24:44 +02:00
Austin Morton f8826fd250 Refactor theme system to apply them earlier in page load (#2249) 2020-10-02 06:56:46 -04:00
Patrick Quist 32aadc90e7 [#RandomThingsNobodyAskedFor] Noscript pages (#2120)
* hello world again

* alt texts for sponsor icons

* lintfixes

* moved noscript alongside normal views and things

* language listitems

* offer link to noscript version when needed

* filter fixes and add execution output to text output

* reuse more things, add special css, support filters and execution to noscript

* bugfix

* bugfixes

* add icons because why not

* main sponsor urls

* support noscript z links

* start of better mobile view in noscript mode

* move files to noscript folder, fixes

* try to run script in mobile

* script works now

* refactoring

* scale textarea when theres css

* fix sponsorlink

* hide hidden compilers

* duplicate change from trunk
2020-08-29 21:33:37 +02:00
Austin Morton ba6b49b2e9 Split vendor code into separate webpack bundle and reduce amount of monaco code bundled (#2113)
Additionally minify css bundles.
2020-08-02 19:03:39 -04:00
Austin Morton 419458530f Support serving static content externally 2019-11-13 23:35:53 -05:00
Austin Morton a2f9261c87 Use pug template inheritance
Additionally move the javascript code blocks to
the end of the html body, instead of the header.

This is generally good practice, but it also fixes
an issue with the cookie consent overlay due to
a html element not existing on the page at the time
of script execution.
2019-09-06 19:39:31 -04:00