Migrate the faucet page to Redocly (#2243)

* Get basic HTML loading for faucet page

* Add xrpl.js implementation

* Add sidebar and fix throbber

* Add translates

* Try to format sidebar

* Fix formatting

* Support xrpl.js

* Fix links

* Comment out XRPLGuard for now

* Make AMM Devnet faucet work

* Improve readability

* Update all instances of link + fix topnav

* Remove unnecessary file

* Use a more current version of xrpl

* Add missing loader while keys are generating

* Type with xrpl and remove unnecessary script

* Use string interpolation instead of multiple trans

* Move faucets into a json file

* Remove the old faucet code

* Use xrpl-beta directly

* Use dropsToXRP

* Support hooks natively

* Remove AMM-Devnet

* Revert changes to link path

* Revert link changes pt 2

* Revert pt 3

* Use XRPLoader for loading icon

* Fix small mistakes

* Remove unnecessary changes
This commit is contained in:
Jackson Mills
2023-12-13 14:15:41 -08:00
committed by mDuo13
parent fdfd5692d4
commit 64a91fc0a8
9 changed files with 363 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
import * as React from 'react';
export interface XRPLoaderProps {
message?: string
}
export default function XRPLoader(props: XRPLoaderProps) {
return (
<div id="loader" style={{ display: "inline" }}>
<img alt="(loading)" className="throbber" src="/img/xrp-loader-96.png" />
{props.message}
</div>);
}