Skip to content

Commit

Permalink
publish Page_Menu (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn authored Feb 16, 2024
1 parent 34b97b7 commit d3296fc
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 50 deletions.
5 changes: 5 additions & 0 deletions .changeset/green-foxes-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ryanatkn/fuz': patch
---

publish `Page_Menu`
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@
"default": "./dist/Page_Header.svelte",
"types": "./dist/Page_Header.svelte.d.ts"
},
"./Page_Menu.svelte": {
"svelte": "./dist/Page_Menu.svelte",
"default": "./dist/Page_Menu.svelte",
"types": "./dist/Page_Menu.svelte.d.ts"
},
"./Pending_Animation.svelte": {
"svelte": "./dist/Pending_Animation.svelte",
"default": "./dist/Pending_Animation.svelte",
Expand Down
9 changes: 6 additions & 3 deletions src/lib/Page_Footer.svelte
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
<script lang="ts">
import type {Url} from '@ryanatkn/gro/paths.js';
import Breadcrumb from '$lib/Breadcrumb.svelte';
import Library_Footer from '$lib/Library_Footer.svelte';
import type {Package_Meta} from '$lib/package_meta.js';
export let pkg: Package_Meta;
export let pkg: Package_Meta | {url: string; package_json: null};
export let root_url: Url | null = null;
</script>

<footer>
{#if pkg.package_json}
<Library_Footer {pkg} root_url="https://www.spiderspace.org/" />
<Library_Footer {pkg} {root_url} />
{/if}
<slot />
<div class="breadcrumb_wrapper">
<Breadcrumb>{pkg.package_json.icon}</Breadcrumb>
<Breadcrumb>{pkg.package_json?.icon}</Breadcrumb>
</div>
</footer>

Expand Down
4 changes: 2 additions & 2 deletions src/lib/Page_Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import Breadcrumb from '$lib/Breadcrumb.svelte';
import type {Package_Meta} from '$lib/package_meta.js';
export let pkg: Package_Meta;
export let pkg: Package_Meta | {url: string; package_json: null};
</script>

<div>
<Breadcrumb>{pkg.package_json.icon}</Breadcrumb>
<Breadcrumb>{pkg.package_json?.icon}</Breadcrumb>
</div>

<style>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Page_Menu.svelte → src/lib/Page_Menu.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import {base} from '$app/paths';
// TODO upstream
// TODO rethink this, is just for deployments (which also needs to be renamed because it's more like repos)
</script>

<menu>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import Library_Footer from '$lib/Library_Footer.svelte';
import Card from '$lib/Card.svelte';
import {parse_package_meta} from '$lib/package_meta.js';
import Page_Menu from '$routes/Page_Menu.svelte';
import Page_Menu from '$lib/Page_Menu.svelte';
import {package_json, src_json} from '$routes/package.js';
// TODO set in context
Expand Down
27 changes: 0 additions & 27 deletions src/routes/Page_Footer.svelte

This file was deleted.

16 changes: 0 additions & 16 deletions src/routes/Page_Header.svelte

This file was deleted.

6 changes: 6 additions & 0 deletions src/routes/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ export const package_json = {
default: './dist/Page_Header.svelte',
types: './dist/Page_Header.svelte.d.ts',
},
'./Page_Menu.svelte': {
svelte: './dist/Page_Menu.svelte',
default: './dist/Page_Menu.svelte',
types: './dist/Page_Menu.svelte.d.ts',
},
'./Pending_Animation.svelte': {
svelte: './dist/Pending_Animation.svelte',
default: './dist/Pending_Animation.svelte',
Expand Down Expand Up @@ -505,6 +510,7 @@ export const src_json = {
'./Package_Summary.svelte': {path: 'Package_Summary.svelte', declarations: []},
'./Page_Footer.svelte': {path: 'Page_Footer.svelte', declarations: []},
'./Page_Header.svelte': {path: 'Page_Header.svelte', declarations: []},
'./Page_Menu.svelte': {path: 'Page_Menu.svelte', declarations: []},
'./Pending_Animation.svelte': {path: 'Pending_Animation.svelte', declarations: []},
'./Pending_Button.svelte': {path: 'Pending_Button.svelte', declarations: []},
'./Pull_Requests_Detail.svelte': {path: 'Pull_Requests_Detail.svelte', declarations: []},
Expand Down

0 comments on commit d3296fc

Please sign in to comment.