Skip to content

Commit

Permalink
litter IDs throughout app
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenClontz committed Dec 8, 2023
1 parent 104dd9e commit 0cd005d
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/viewer/src/components/Properties/List.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{#each $index as property (property.id)}
<tr>
<td>
<Link.Property {property}>{property.id}</Link.Property>
<Link.Property {property}>P{property.id}</Link.Property>
</td>
<td>
<Typeset body={property.name} />
Expand Down
2 changes: 2 additions & 0 deletions packages/viewer/src/components/Properties/Show.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

<Title title={property.name} />

<h3>Property P{property.id}</h3>

<h1>
<Typeset body={property.name} />
{#if property?.aliases}
Expand Down
2 changes: 1 addition & 1 deletion packages/viewer/src/components/Properties/Spaces.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</script>

<Related mode="spaces" {related}>
<Link.Space slot="id" let:space {space}>{space.id}</Link.Space>
<Link.Space slot="id" let:space {space}>S{space.id}</Link.Space>

<Link.Space slot="name" let:space {space} />
</Related>
6 changes: 5 additions & 1 deletion packages/viewer/src/components/Shared/Link/Theorem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
export let theorem: { id: number }
</script>

<a href="/theorems/{Id.format('T', theorem.id)}">{theorem.id}</a>
<a href="/theorems/{Id.format('T', theorem.id)}">
<slot>
T{theorem.id}
</slot>
</a>
2 changes: 1 addition & 1 deletion packages/viewer/src/components/Spaces/List.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{#each $index as space (space.id)}
<tr>
<td>
<Link.Space {space}>{space.id}</Link.Space>
<Link.Space {space}>S{space.id}</Link.Space>
</td>
<td>
<Typeset body={space.name} />
Expand Down
2 changes: 1 addition & 1 deletion packages/viewer/src/components/Spaces/Properties.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</script>

<Related mode="properties" {related}>
<Link.Property slot="id" let:property {property}>{property.id}</Link.Property>
<Link.Property slot="id" let:property {property}>P{property.id}</Link.Property>

<Link.Property slot="name" let:property {property} />
</Related>
2 changes: 2 additions & 0 deletions packages/viewer/src/components/Spaces/Show.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

<Title title={space.name} />

<h3>Space S{space.id}</h3>

<h1>
<Typeset body={space.name} />
{#if space?.aliases}
Expand Down
2 changes: 1 addition & 1 deletion packages/viewer/src/components/Theorems/List.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{#each $index as theorem (theorem.id)}
<tr>
<td>
<Link.Theorem {theorem} />
<Link.Theorem {theorem}>T{theorem.id}</Link.Theorem>
</td>
<td>
<Formula value={theorem.when} />
Expand Down
2 changes: 2 additions & 0 deletions packages/viewer/src/components/Theorems/Show.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

<Title title={theorem.name} />

<h3>Theorem T{theorem.id}</h3>

<h1>
<Name {theorem} />
</h1>
Expand Down
2 changes: 1 addition & 1 deletion packages/viewer/src/components/Theorems/Table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{#each theorems as theorem (theorem.id)}
<tr>
<td>
<Link.Theorem {theorem} />
<Link.Theorem {theorem}>T{theorem.id}</Link.Theorem>
</td>
<td>
<Formula value={theorem.when} />
Expand Down
2 changes: 2 additions & 0 deletions packages/viewer/src/components/Traits/Show.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
{:then { property, space, trait, proof, meta }}
<Title title={`${space.name}: ${property.name}`} />

<h3>Property P{property.id} | Space S{space.id}</h3>

<h1>
{#if proof}
<Robot />
Expand Down
2 changes: 1 addition & 1 deletion packages/viewer/src/components/Traits/Table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{#each spaces as space (space.id)}
<tr>
<td>
<Link.Space {space}>{space.id}</Link.Space>
<Link.Space {space}>S{space.id}</Link.Space>
</td>
<td>
<Link.Space {space} />
Expand Down
2 changes: 2 additions & 0 deletions packages/viewer/src/routes/(app)/properties/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
export let data: PageData
</script>

<h1>Properties</h1>

<List properties={data.properties} />
2 changes: 2 additions & 0 deletions packages/viewer/src/routes/(app)/spaces/all/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
export let data: PageData
</script>

<h1>Spaces</h1>

<List spaces={data.spaces} />
2 changes: 2 additions & 0 deletions packages/viewer/src/routes/(app)/theorems/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
export let data: PageData
</script>

<h1>Theorems</h1>

<List theorems={data.theorems} />

0 comments on commit 0cd005d

Please sign in to comment.