@@ -1,11 +1,12 @@
1<script lang="ts">
1<script lang="ts">
2 import { link, replace } from 'svelte-spa-router'
2 import { link, replace } from 'svelte-spa-router'
3+ import docs from '../stores/docs';
3 import { SearchAnalysis } from '../lib/id';
4 import { SearchAnalysis } from '../lib/id';
4 import { linkToShip } from '../lib/link';
5 import { linkToShip } from '../lib/link';
5 import SearchBar from "../components/SearchBar.svelte";
6 import SearchBar from "../components/SearchBar.svelte";
6 import ShipView from '../components/ShipView.svelte';
7 import ShipView from '../components/ShipView.svelte';
7 import ValidationProblems from '../components/ValidationProblems.svelte';
8 import ValidationProblems from '../components/ValidationProblems.svelte';
8− import DocModal from '../components/DocModal.svelte';
9+ import DocModal from '../components/Doc.svelte';
9 export let params: any = {};
10 export let params: any = {};
10 let patp: string;
11 let patp: string;
11 let analysis: SearchAnalysis = new SearchAnalysis();
12 let analysis: SearchAnalysis = new SearchAnalysis();
@@ -35,10 +36,10 @@
35 <!-- <a use:link={"/"} class="p-4 bg-white rounded-lg text-center">Go Home</a> -->
36 <!-- <a use:link={"/"} class="p-4 bg-white rounded-lg text-center">Go Home</a> -->
36 <!-- <SearchBar bind:searchText={search} bind:analysis /> -->
37 <!-- <SearchBar bind:searchText={search} bind:analysis /> -->
37 <SearchBar bind:analysis bind:search />
38 <SearchBar bind:analysis bind:search />
39+ <button on:click={() => docs.show('urbit-id')}>docs</button>
38 {#if analysis.patpIsValid}
40 {#if analysis.patpIsValid}
39 <ShipView patp={analysis.patp} />
41 <ShipView patp={analysis.patp} />
40 {:else if (search.length > 0)}
42 {:else if (search.length > 0)}
41 <ValidationProblems problems={analysis.patpProblems} />
43 <ValidationProblems problems={analysis.patpProblems} />
43− <DocModal path="test" />