feat(webui): add section links from Home
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
parent
33b52a3452
commit
b48655f169
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
export let passthrough = false;
|
export let passthrough = false;
|
||||||
export let title: string | undefined = undefined;
|
export let title: string | undefined = undefined;
|
||||||
|
export let text = false;
|
||||||
export let to: {
|
export let to: {
|
||||||
entity?: Address;
|
entity?: Address;
|
||||||
attribute?: string;
|
attribute?: string;
|
||||||
|
@ -60,6 +61,7 @@
|
||||||
|
|
||||||
<a
|
<a
|
||||||
class="uplink"
|
class="uplink"
|
||||||
|
class:text
|
||||||
class:passthrough
|
class:passthrough
|
||||||
class:unresolved={targetHref === NOOP}
|
class:unresolved={targetHref === NOOP}
|
||||||
href="/#/browse/{targetHref}"
|
href="/#/browse/{targetHref}"
|
||||||
|
@ -74,6 +76,9 @@
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
:global(.uplink.text) {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
:global(.uplink.passthrough) {
|
:global(.uplink.passthrough) {
|
||||||
display: contents;
|
display: contents;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
ATTR_LABEL,
|
ATTR_LABEL,
|
||||||
HIER_ROOT_ADDR,
|
HIER_ROOT_ADDR,
|
||||||
} from "@upnd/upend/constants";
|
} from "@upnd/upend/constants";
|
||||||
|
import UpLink from "../components/display/UpLink.svelte";
|
||||||
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
|
@ -185,7 +186,9 @@
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<section class="roots">
|
<section class="roots">
|
||||||
<h2>{$i18n.t("Roots")}</h2>
|
<h2>
|
||||||
|
<UpLink text to={{ entity: HIER_ROOT_ADDR }}>{$i18n.t("Roots")}</UpLink>
|
||||||
|
</h2>
|
||||||
{#await roots}
|
{#await roots}
|
||||||
<Spinner centered />
|
<Spinner centered />
|
||||||
{:then data}
|
{:then data}
|
||||||
|
@ -208,7 +211,9 @@
|
||||||
{#await keyed then data}
|
{#await keyed then data}
|
||||||
{#if data}
|
{#if data}
|
||||||
<section class="keyed">
|
<section class="keyed">
|
||||||
<h2>{$i18n.t("Keyed")}</h2>
|
<h2>
|
||||||
|
<UpLink text to={{ attribute: ATTR_KEY }}>{$i18n.t("Keyed")}</UpLink>
|
||||||
|
</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{#each data as address}
|
{#each data as address}
|
||||||
<li class="root">
|
<li class="root">
|
||||||
|
|
Loading…
Reference in New Issue