mirror of
https://github.com/arx-research/libhalo.git
synced 2026-01-08 20:58:02 -05:00
2.1 KiB
2.1 KiB
HaLo Gateway: Creating custom themes
Creating a new theme
- Obtain recent halo-tools release.
- In the working directory with the
halo-gatewaybinary, run the following command:git clone https://github.com/arx-research/halo-gateway-themes themes - Your resulting directory structure should resemble this:
$ find . . ./halo-gateway ./themes ./themes/example ./themes/example/gateway_executor.html ./themes/example/lennyface.png ./themes/example/style.css - Copy the
themes/exampledirectory asthemes/your_theme_nameand edit it.
Testing your theme
-
Launch
./halo-gateway --disable-cachelocally to so spin up a local server. -
Connect with your server using LibHaLo Demo on using Gateway, fill out the form as follows:
Setting name Setting value Override the default gateway URL ws://127.0.0.1:32842Override the default URL in QR code http://127.0.0.1:32842/eOverride theme name your_theme_nameHow would you like to sign the message (whatever) Hex-encoded message to be signed with ECDSA/Keccak (whatever) -
Click on "Pair and request to sign with key #1" which should create a QR code (and a link) pointing to the gateway with your desired theme.
Deploying your theme to public Arx HaLo Gateway servers
Feel free to create a Pull Request on arx-research/halo-gateway-themes repository.
Using your theme
Pass the themeName option when constructing HaloGateway object to instruct which theme should be used.
let gate = new HaloGateway('wss://s1.halo-gateway.arx.org', {
themeName: "your_theme_name"
});