2021-12-12 10:31:08 +01:00
|
|
|
<script lang="ts">
|
|
|
|
import { Container, Row, Col, Card, CardHeader, CardTitle, CardBody, Input, Button } from 'sveltestrap';
|
2021-12-12 15:31:15 +01:00
|
|
|
import { Link, navigate } from 'svelte-navigator';
|
2021-12-12 10:31:08 +01:00
|
|
|
import FaRocket from 'svelte-icons/fa/FaRocket.svelte';
|
|
|
|
|
|
|
|
let sysInput: string = "";
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<Container>
|
|
|
|
<Row>
|
|
|
|
<Col class="mx-auto" xs={12} lg={10}>
|
|
|
|
<Card>
|
|
|
|
<CardHeader>
|
|
|
|
<CardTitle style="margin-top: 8px; outline: none;">
|
|
|
|
<div class="icon d-inline-block">
|
|
|
|
<FaRocket />
|
|
|
|
</div>Profile
|
|
|
|
</CardTitle>
|
|
|
|
</CardHeader>
|
|
|
|
<CardBody>
|
|
|
|
Submit a <b>system ID</b> to view that system's profile.
|
|
|
|
<Row>
|
|
|
|
<Col xs={12} lg={9} class="my-2">
|
2021-12-12 15:31:15 +01:00
|
|
|
<Input on:keyup={(event) => {if (event.key === "Enter" && sysInput !== "") navigate(`/public/s/${sysInput.toLowerCase().trim()}`)}} bind:value={sysInput} />
|
2021-12-12 10:31:08 +01:00
|
|
|
</Col>
|
|
|
|
<Col xs={12} lg={3} class="my-2 d-flex">
|
|
|
|
{#if sysInput !== ""}
|
2021-12-12 14:34:09 +01:00
|
|
|
<Link style="text-decoration: none; flex: 1 0 auto" to="/public/s/{sysInput.toLowerCase().trim()}"><Button class="w-100" color="primary">View</Button></Link>
|
2021-12-12 10:31:08 +01:00
|
|
|
{:else}
|
|
|
|
<Button class="w-100" disabled color="primary">View</Button>
|
|
|
|
{/if}
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</CardBody>
|
|
|
|
</Card>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</Container>
|