Go to file
Egor Savkin 5fdf5f1ea0 Fix tec counter
Signed-off-by: Egor Savkin <es@m-labs.hk>
2024-12-23 12:51:39 +08:00
content add link to OffsetStabilizer 2024-11-16 11:55:30 +08:00
sass/css Optimize the download button 2024-10-21 17:46:40 +08:00
server rfq: use password file 2024-01-08 17:53:04 +08:00
static Fix tec counter 2024-12-23 12:51:39 +08:00
templates Optimize the download button 2024-10-21 17:46:40 +08:00
.gitignore feat(place-order): Adds order hardware system 2019-11-06 14:49:00 +08:00
config.toml remove invalid entry from config.toml 2024-12-04 23:01:19 +08:00
package-lock.json Update and clean up NPM dependencies 2024-08-05 11:26:28 +08:00
package.json Update and clean up NPM dependencies 2024-08-05 11:26:28 +08:00
README.md Inject JS in templates with correct domains 2024-07-18 11:56:58 +08:00
webpack.config.js Spare cards is always last 2024-01-09 10:14:53 +08:00
Website design specs.docx add design specs document 2019-07-26 21:11:05 +08:00

M-Labs.hk website source code

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. For deployment, see the nix-scripts repository. Commits to https://git.m-labs.hk/M-Labs/web2019.git are automatically deployed to m-labs.hk through Hydra.

Clone the project:

git clone https://git.m-labs.hk/M-Labs/web2019.git
cd web2019

Install Zola.

Start with targeting m-labs.hk domain:

zola serve

Environmental variable DOMAINNAME can be specified to substitute links on the website.

To build the .bundle.js from .jsx files:

nix-shell -p nodejs
npm install
npm run build

Development builds are also available. npm run build-dev to re/build once, or npm run start-dev for incremental continuous builds as source files change.

Domain handling

Environmental variable DOMAINNAME controls only the following links on the website:

  • email mailto: links
  • hook for the RFQ server (window.API_RFQ) variable

If absent, DOMAINNAME defaults to m-labs.hk.