Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(server-views): refactor public assets and styles for dynamic server views #1307

Merged
merged 5 commits into from
Mar 17, 2021

Conversation

orbitalsqwib
Copy link
Contributor

@orbitalsqwib orbitalsqwib commented Mar 16, 2021

Problem

Currently, our server view pages use static assets, which need to be converted to dynamic assets based on the ASSET_VARIANT env var.

Part of work for #777

Solution

  • reorganized public assets and styles to prepare them for path switching
  • implemented dynamic loading of assets at render time for server views
  • implemented toggling of mastheads for server views in edu build

… server views

Currently, our server view pages use static assets, which need to be converted to dynamic assets
based on the `ASSET_VARIANT` env var.

-reorganised public assets and styles
-implemented dynamic
loading of assets at render time
-implemented toggling of mastheads for server views
Copy link
Contributor

@LoneRifle LoneRifle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm otherwise. take care when writing commit messages:

  • subject line should be no more than 72 chars, 50 char limit generally preferable
  • things done should be written in the imperative, so use present tense, not past

See Chris Beam's article for more information

src/server/config.ts Outdated Show resolved Hide resolved
src/server/views/transition-page.ejs Outdated Show resolved Hide resolved
orbitalsqwib and others added 4 commits March 17, 2021 10:16
…sets

-updated the top level directories for assets, locales and index files
-updated asset sources in
server views, i18n and webpack
Co-authored-by: LoneRifle <LoneRifle@users.noreply.github.com>
-dynamically hide masthead for edu build base layout
-updated instances of golink.edu.sg/edu.edu.sg
to for.edu.sg
@LoneRifle LoneRifle merged commit 7e7f88b into develop Mar 17, 2021
@LoneRifle LoneRifle deleted the build/server-views/golink branch March 17, 2021 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants