commit | b6d7be3818ee3d7e455999cb8b6208958c878402 | [log] [tgz] |
---|---|---|
author | Ben Rohlfs <brohlfs@google.com> | Tue Nov 09 07:16:18 2021 |
committer | Ben Rohlfs <brohlfs@google.com> | Tue Nov 09 07:16:18 2021 |
tree | 38b15e23de3269537667f93e42096f546a2490ed | |
parent | 8149998f64768c7a1be2364d4cd62c6244142091 [diff] |
Fix logo URLs Change-Id: Ibf968a8e5c7a4154929c33457391e22315ab081a
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
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
.
ln -s /path/to/chromium-style.js plugins/