fix problems
This commit is contained in:
parent
a416be6e8e
commit
a5137cce1c
5 changed files with 2 additions and 29 deletions
|
@ -37,7 +37,6 @@ function main() {
|
|||
app.use(ssr());
|
||||
|
||||
app.route("/", page(require("./views/home")));
|
||||
app.route("/api", page(require("./views/api")));
|
||||
app.route("/api/*", page(require("./views/api")));
|
||||
app.route("/*", page(require("./views/redirect")));
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"/tour" : "/playground",
|
||||
"/play" : "/playground",
|
||||
"/api" : "/resources",
|
||||
"/api/protocol" : "/api/sdk",
|
||||
"/api/lbry" : "/api/sdk",
|
||||
"/api/lbrycrd" : "/api/blockchain",
|
||||
|
|
|
@ -106,7 +106,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.api__content {
|
||||
float: right;
|
||||
width: calc(100% - 200px);
|
||||
|
|
|
@ -38,8 +38,8 @@ $width-feature-link: 320px;
|
|||
}
|
||||
|
||||
.feature-link__title {
|
||||
top: 85px;
|
||||
position: relative;
|
||||
top: 85px;
|
||||
font-weight: normal;
|
||||
text-align: center;
|
||||
z-index: 1;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
|
||||
|
||||
// P A C K A G E S
|
||||
|
||||
import asyncHtml from "choo-async/html";
|
||||
import dedent from "dedent";
|
||||
import redirectOr404 from "../modules/redirectOr404";
|
||||
|
@ -12,28 +8,6 @@ import headerSdk from "../components/api/header-sdk";
|
|||
|
||||
const fetch = require("make-fetch-happen").defaults({ cacheManager: "./cache" });
|
||||
|
||||
/*
|
||||
module.exports = exports = state => parseApiFile(state.params.wildcard).then(response => asyncHtml`
|
||||
<div class="api__header">
|
||||
I am a walrus.
|
||||
</div>
|
||||
<div class="__slate">
|
||||
<aside class="api__toc">
|
||||
<div class="api__toc__search">
|
||||
<input class="api__toc__search__field" id="input-search" placeholder="Search" type="search"/>
|
||||
<div class="api__toc__search__clear" id="clear-search" title="Clear search query">×</div>
|
||||
<ul class="api__toc__search__results"></ul>
|
||||
</div>
|
||||
|
||||
<ul class="api__toc__items" id="toc" role="navigation">${createApiSidebar(response)}</ul>
|
||||
</aside>
|
||||
|
||||
<section class="api__content" id="toc-content">${createApiContent(response)}</section>
|
||||
</div>
|
||||
|
||||
`);
|
||||
*/
|
||||
|
||||
module.exports = exports = state => parseApiFile(state.params.wildcard).then(response => {
|
||||
/*
|
||||
state.lbry = {
|
||||
|
|
Loading…
Reference in a new issue