diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts index 887460bdd..426257e50 100644 --- a/frontend/src/app/app.module.ts +++ b/frontend/src/app/app.module.ts @@ -50,6 +50,7 @@ import { faFilter, faAngleDown, faAngleUp, faAngleRight, faAngleLeft, faBolt, fa faLink, faList, faSearch, faCaretUp, faCaretDown, faTachometerAlt, faThList, faTint, faTv, faAngleDoubleDown, faSortUp, faAngleDoubleUp, faChevronDown, faFileAlt, faRedoAlt, faArrowAltCircleRight, faExternalLinkAlt, faBook, faListUl } from '@fortawesome/free-solid-svg-icons'; import { ApiDocsComponent } from './components/docs/api-docs.component'; import { DocsComponent } from './components/docs/docs.component'; +import { ApiDocsNavComponent } from './components/docs/api-docs-nav.component'; import { CodeTemplateComponent } from './components/docs/code-template.component'; import { TermsOfServiceComponent } from './components/terms-of-service/terms-of-service.component'; import { PrivacyPolicyComponent } from './components/privacy-policy/privacy-policy.component'; @@ -101,6 +102,7 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; SponsorComponent, PushTransactionComponent, DocsComponent, + ApiDocsNavComponent, ], imports: [ BrowserModule.withServerTransition({ appId: 'serverApp' }), diff --git a/frontend/src/app/components/docs/api-docs-nav.component.html b/frontend/src/app/components/docs/api-docs-nav.component.html new file mode 100644 index 000000000..2103dd776 --- /dev/null +++ b/frontend/src/app/components/docs/api-docs-nav.component.html @@ -0,0 +1,63 @@ +
General
+GET Difficulty Adjustment + +Markets
+GET Market Currencies +GET Market Depth +GET Market HLOC +GET Markets +GET Market Offers +GET Market Ticker +GET Market Trades +GET Market Volumes + +General
+GET Stats + +Addresses
+GET Address +GET Address Transactions +GET Address Transactions Chain +GET Address Transactions Mempool +GET Address UTXO + +Assets
+GET Assets +GET Asset Transactions +GET Asset Supply + +Blocks
+GET Block +GET Block Header +GET Block Height +GET Block Raw +GET Block Status +GET Block Tip Height +GET Block Tip Hash +GET Block Transaction ID +GET Block Transaction IDs +GET Block Transactions +GET Blocks +GET Blocks + +Fees
+GET Mempool Blocks Fees +GET Recommended Fees + +Mempool
+GET Mempool +GET Mempool Transaction IDs +GET Mempool Recent + +Transactions
+GET Children Pay for Parent +GET Transaction +GET Transaction Hex +GET Transaction Merkleblock Proof +GET Transaction Merkle Proof +GET Transaction Outspend +GET Transaction Outspends +GET Transaction Raw +GET Transaction Status +GET Transactions +POST Transaction diff --git a/frontend/src/app/components/docs/api-docs-nav.component.scss b/frontend/src/app/components/docs/api-docs-nav.component.scss new file mode 100644 index 000000000..225209275 --- /dev/null +++ b/frontend/src/app/components/docs/api-docs-nav.component.scss @@ -0,0 +1,17 @@ +p { + color: #4a68b9; + font-weight: 700; + margin: 10px 0; + margin: 15px 0 10px 0; +} + +p:first-child { + margin-top: 0 +} + +a { + color: #fff; + text-decoration: none; + display: block; + margin: 5px 0; +} diff --git a/frontend/src/app/components/docs/api-docs-nav.component.ts b/frontend/src/app/components/docs/api-docs-nav.component.ts new file mode 100644 index 000000000..860e1d7ad --- /dev/null +++ b/frontend/src/app/components/docs/api-docs-nav.component.ts @@ -0,0 +1,17 @@ +import { Component, OnInit, Input } from '@angular/core'; + +@Component({ + selector: 'app-api-docs-nav', + templateUrl: './api-docs-nav.component.html', + styleUrls: ['./api-docs-nav.component.scss'] +}) +export class ApiDocsNavComponent implements OnInit { + + @Input() network: any; + + constructor() { } + + ngOnInit(): void { + } + +} diff --git a/frontend/src/app/components/docs/api-docs.component.html b/frontend/src/app/components/docs/api-docs.component.html index a9821375d..b661dc494 100644 --- a/frontend/src/app/components/docs/api-docs.component.html +++ b/frontend/src/app/components/docs/api-docs.component.html @@ -4,71 +4,7 @@Placeholder.
+