Fix logo URLs

Change-Id: Ibf968a8e5c7a4154929c33457391e22315ab081a
1 file changed
tree: 38b15e23de3269537667f93e42096f546a2490ed
  1. web/
  2. codereview.settings
  3. LICENSE
  4. OWNERS
  5. README.md
README.md

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

For checking or fixing eslint formatter problems run:

bazel test //plugins/chromium-style/web:lint_test
bazel run //plugins/chromium-style/web:lint_bin -- --fix "$(pwd)/plugins/chromium-style/web"

For testing the plugin with Gerrit FE Dev Helper build the JavaScript bundle and copy it to the plugins/chromium-style folder:

bazel build //plugins/chromium-style/web:chromium-style
cp -f bazel-bin/plugins/chromium-style/web/chromium-style.js plugins/chromium-style

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/