commit | b899ec56016293af14d14591ac51a3db5d1ece2c | [log] [tgz] |
---|---|---|
author | Paladox none <thomasmulhall410@yahoo.com> | Thu Nov 22 20:44:10 2018 +0000 |
committer | Paladox none <thomasmulhall410@yahoo.com> | Tue Feb 05 10:56:08 2019 +0000 |
tree | 259d604a02100347113296686a91091dbeb2eab9 | |
parent | 32c182d44ff6532e755939938884212efcb98528 [diff] |
Use "resemblejs" dep This fixes it so it uses the resemblejs dependency from gerrit core. This is because resemblejs was not being injected into the plugin thus failed to load. I tested this by doing: bazel build plugins/image-diff Then deploying (and uploaded a png file to test) Bug: Issue 9911 Change-Id: I239d93a4352429ae3b09eb132cbf159c67f0913e
A plugin that provides a rich image diffing experience in PolyGerrit. Currently, the plugin features two modes: Highlight Mode and Onion Skin.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Yarn - Node package manager
Use Homebrew to install yarn on macOS:
brew install yarn
Reference here for instruction on how to install on other systems.
Clone the repo and run
yarn install
to install the dependencies.
This mode uses the Resemble.JS (1.2.1) library in its development The following features are included in this mode:
Onion Skin mode is a great way for users to notice changes in the images that might be overlooked when you look at them side by side. By overlaying the new image on top of the old image, the users can change the opacity to see the transition that were made.
The following features are included in this mode:
This plugin uses polymer-cli to test.
Inside your image-diff repo, run polymer serve
to start a local web server and open localhost:8080/test
to view your tests. See here for more info.
Reference here on how to set up your Gerrit testsite and here for PolyGerrit plugin development.