Skip to content

Commit

Permalink
rename title bars to zap.cooking
Browse files Browse the repository at this point in the history
  • Loading branch information
chakany committed Mar 28, 2024
1 parent 37de003 commit 1a94d3d
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 18 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# nostr.cooking
# zap.cooking

_A recipe-sharing client for nostr._
Check it out at [nostr.cooking](https://zap.cooking)!
Check it out at [zap.cooking](https://zap.cooking)!

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nostr.cooking",
"name": "zap.cooking",
"license": "MIT",
"version": "2.0.0",
"private": true,
Expand Down
10 changes: 10 additions & 0 deletions src/components/Recipe/Recipe.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import { clickOutside } from '$lib/clickOutside';
import AuthorProfile from '../AuthorProfile.svelte';
import { fade } from 'svelte/transition';
import { recipeTags, type recipeTagSimple } from '$lib/consts';
export let event: NDKEvent;
const naddr = nip19.naddrEncode({
Expand Down Expand Up @@ -126,6 +127,11 @@
if (toggleLists.has(id)) toggleLists.delete(id);
else toggleLists.add(id);
}
const firstTag = recipeTags.find(
(e) => e.title.toLowerCase().replaceAll(' ', '-') == event.getMatchingTags("t").filter((t) => t[1].slice(13)[0])[0][1].slice(13)
);
</script>

<ZapModal bind:open={zapModal} submit={zapEvt} cancel={() => (zapModal = false)} />
Expand Down Expand Up @@ -271,6 +277,10 @@
<h2>Enjoy this recipe?</h2>
<Button on:click={() => zapModal = true}>Zap it</Button>
</div>
<div class="flex flex-col gap-4">
{firstTag}
<h2>More {firstTag[1].split("nostrcooking-")[1]}</h2>
</div>
<Comments {event} />
</div>
{:else}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/bookmarks/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
</script>

<svelte:head>
<title>your bookmarks on nostr.cooking</title>
<title>your bookmarks on zap.cooking</title>
</svelte:head>

{#if event}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/bookmarks/edit/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
</script>

<svelte:head>
<title>edit bookmarks nostr.cooking</title>
<title>edit bookmarks zap.cooking</title>
</svelte:head>

{#if loaded == false}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/create/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
</script>

<svelte:head>
<title>create a recipe on nostr.cooking</title>
<title>create a recipe on zap.cooking</title>
</svelte:head>

<form on:submit|preventDefault={publishRecipe} class="flex flex-col max-w-[760px] mx-auto gap-6">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/fork/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
</script>

<svelte:head>
<title>edit recipe {title} on nostr.cooking</title>
<title>edit recipe {title} on zap.cooking</title>
</svelte:head>

<form on:submit|preventDefault={publishRecipe} class="flex flex-col gap-6 max-w-[760px] mx-auto">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/list/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</script>

<svelte:head>
<title>{event ? event.tags.find((t) => t[0] == 'title')?.[1] : '...'} on nostr.cooking</title>
<title>{event ? event.tags.find((t) => t[0] == 'title')?.[1] : '...'} on zap.cooking</title>
</svelte:head>

{#if event}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/list/[slug]/fork/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
</script>

<svelte:head>
<title>fork list {loaded == true ? title : '...'} on nostr.cooking</title>
<title>fork list {loaded == true ? title : '...'} on zap.cooking</title>
</svelte:head>

{#if loaded == false}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/list/create/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</script>

<svelte:head>
<title>create a list on nostr.cooking</title>
<title>create a list on zap.cooking</title>
</svelte:head>

<form on:submit|preventDefault={createList} class="flex flex-col gap-6 max-w-[760px] mx-auto">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
</script>

<svelte:head>
<title>login to nostr.cooking</title>
<title>login to zap.cooking</title>
</svelte:head>

<Modal open={nsecModal} cleanup={nsecModalCleanup}>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/onboarding/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
<!-- TODO -->

<svelte:head>
<title>welcome to nostr.cooking</title>
<title>welcome to zap.cooking</title>
</svelte:head>

<div class="prose flex flex-col text-black mb-4 mx-auto">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/recent/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</script>

<svelte:head>
<title>recent recipes on nostr.cooking</title>
<title>recent recipes on zap.cooking</title>
</svelte:head>

<div class="flex flex-col gap-3 md:gap-10">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/recipe/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
? event.tags.find((e) => e[0] == 'title')?.[1]
? event.tags.find((e) => e[0] == 'title')?.[1]
: event.tags.find((e) => e[0] == 'd')?.[1]
: '...'} on nostr.cooking</title
: '...'} on zap.cooking</title
>
</svelte:head>

Expand Down
2 changes: 1 addition & 1 deletion src/routes/settings/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
</script>

<svelte:head>
<title>nostr.cooking settings</title>
<title>zap.cooking settings</title>
</svelte:head>

<div class="flex flex-col gap-5">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/tag/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</script>

<svelte:head>
<title>recipes with tag "{$page.params.slug}" on nostr.cooking</title>
<title>recipes with tag "{$page.params.slug}" on zap.cooking</title>
</svelte:head>

<div class="flex flex-col gap-8">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/tags/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</script>

<svelte:head>
<title>all tags on nostr.cooking</title>
<title>all tags on zap.cooking</title>
</svelte:head>

<div class="flex flex-col gap-4">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/user/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
</script>

<svelte:head>
<title>{profile && profile.name ? profile.name : '...'} on nostr.cooking</title>
<title>{profile && profile.name ? profile.name : '...'} on zap.cooking</title>
</svelte:head>

<ZapModal open={zapModal} submit={zapEvt} cancel={() => (zapModal = false)} />
Expand Down

0 comments on commit 1a94d3d

Please sign in to comment.