Clone this repo:

Branches

  1. 34a8148 [chromium-style] Add Makefile. by Joanna Wang · 3 years, 6 months ago main
  2. b6d7be3 Fix logo URLs by Ben Rohlfs · 4 years ago
  3. 8149998 Convert to TypeScript by Gavin Mak · 4 years ago
  4. 6635dc3 Rename and refactor code by Gavin Mak · 4 years ago
  5. c4b5592 Remove obsolete styling of change-metadata by Ben Rohlfs · 4 years, 2 months ago

Chrome/Chromium style theme for Gerrit

Setup

This plugin must be placed inside the Gerrit plugins directory:

git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit/plugins git clone https://chromium.googlesource.com/infra/gerrit-plugins/chromium-style 

Web Plugin Development

Run the commands below in web/.

For checking or fixing eslint formatter problems run:

make lint_test make lint_fix 

For testing the plugin with Gerrit FE Dev Helper the following command builds the JavaScript bundle and copies it to the plugins/chromium-style folder:

make build 

Start polygerit-ui server:

./polygerrit-ui/run-server.sh --plugins="plugins" 

and let the Dev Helper redirect from .+/plugins/chromium-style/static/chromium-style.js to http://localhost:8081/plugins_/chromium-style/chromium-style.js,

.+/plugins/chromium-style/web/chromium_logo.png to http://localhost:8081/plugins_/chromium-style/web/chromium_logo.png, and

.+/plugins/chromium-style/web/chrome_logo.png to http://localhost:8081/plugins_/chromium-style/web/chrome_logo.png.

To use with the local testsite

ln -s /path/to/chromium-style.js plugins/