Merge pull request #15509 from overleaf/jpa-ide-react-pug-tweaks

[web] editor: use CSS/JavaScript loading primitives from base template

GitOrigin-RevId: fb570f62e37517f2a4444d469435e854fd890db6
This commit is contained in:
Miguel Serrano 2023-10-31 13:15:58 +01:00 committed by Copybot
parent 93b7e65f6c
commit d62f2c6a40
2 changed files with 3 additions and 10 deletions

View file

@ -7,9 +7,8 @@ block vars
- var suppressCookieBanner = true - var suppressCookieBanner = true
- metadata.robotsNoindexNofollow = true - metadata.robotsNoindexNofollow = true
block css block entrypointVar
each file in entrypointStyles('ide') - entrypoint = 'ide'
link(rel='stylesheet', href=file)
block content block content
.editor(ng-controller="IdeController").full-size .editor(ng-controller="IdeController").full-size
@ -119,9 +118,7 @@ block content
block append meta block append meta
include ./editor/meta include ./editor/meta
block foot-scripts block prepend foot-scripts
each file in (useOpenTelemetry ? entrypointScripts("tracing") : []) each file in (useOpenTelemetry ? entrypointScripts("tracing") : [])
script(type="text/javascript", nonce=scriptNonce, src=file) script(type="text/javascript", nonce=scriptNonce, src=file)
script(type="text/javascript", nonce=scriptNonce, src=(wsUrl || '/socket.io') + '/socket.io.js') script(type="text/javascript", nonce=scriptNonce, src=(wsUrl || '/socket.io') + '/socket.io.js')
each file in entrypointScripts("ide")
script(type="text/javascript", nonce=scriptNonce, src=file)

View file

@ -9,10 +9,6 @@ block vars
block entrypointVar block entrypointVar
- entrypoint = 'pages/ide' - entrypoint = 'pages/ide'
block css
each file in entrypointStyles('ide')
link(rel='stylesheet', href=file)
block content block content
main#ide-root main#ide-root
.loading-screen .loading-screen