Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
fix: deprecating Bespoke
Browse files Browse the repository at this point in the history
  • Loading branch information
zifahm committed Jul 24, 2023
1 parent 51c6cbd commit 6aeb1d9
Show file tree
Hide file tree
Showing 20 changed files with 41 additions and 33,488 deletions.
24 changes: 11 additions & 13 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
⚠️ Bespoke has seized maintenance. This repository has been archived.

<hr>
<br/>
<div align="center">
<picture>
Expand All @@ -10,17 +13,17 @@
<br/>

<strong>
<h3 align="center">Open Source Personalized Marketing Platform.</h3></strong>
<h3 align="center">Open Source Mailchimp Alternative.</h3></strong>
<p align="center">Combining best parts of Mailchimp, Kalviyo's automation, Substack's newsletter and Typeform for surveys.</p>
<p align="center"><a href="https://bespoke.surf">Bespoke Cloud</a> · <a href="https://bespoke-api.readme.io/reference">API Reference</a></p>
<!-- <p align="center"><a href="https://bespoke-api.readme.io/reference">API Reference</a></p> -->

<p align="center">
<a href="https://discord.gg/h8gekTtq">
<!-- <a href="https://discord.gg/h8gekTtq">
<img src="https://img.shields.io/discord/957706478670712893?label=Discord" alt="Bespoke on Discord" />
</a>
<a href="https://twitter.com/intent/follow?screen_name=bespoke_surf">
</a> -->
<!-- <a href="https://twitter.com/intent/follow?screen_name=bespoke_surf">
<img alt="Follow us on Twitter" src="https://img.shields.io/twitter/follow/bespoke_surf?style=social"/>
</a>
</a> -->
</p>

<br />
Expand Down Expand Up @@ -51,15 +54,10 @@ We gather customer data through various means, including API's, behavioral inten
- [ ] Surveys
- [ ] Behavioral Intent API

> For full feature breakdown see Bespoke Cloud [Pricing Page](https://bespoke.surf/pricing)
## Documentation & Links

- [API Reference](https://bespoke-api.readme.io/reference/introduction-to-bespoke) for Bespoke REST API
- Details about Bespoke's [Suppression](https://bespoke-api.readme.io/reference/supression-hit-tier) process
- Join
[Discord](https://discord.gg/h8gekTtq)
to talk to devs
- Suggest
[Feature and Integration Requests](https://feedback.bespoke.surf).
- Open a [GitHub issue](https://github.com/bespoke-surf/bespoke/issues) to
Expand Down Expand Up @@ -224,9 +222,9 @@ Now that everything is set up you can commit and push your changes to your repo.
- `git push origin my-new-branch`
4. Go to the repository page in GitHub and click on "Compare & pull request"

## Support
<!-- ## Support

If you have any questions about Bespoke, would like to discuss a bug report, or have questions about new integrations, feel free to join us at [our Discord server](https://discord.gg/h8gekTtq).
If you have any questions about Bespoke, would like to discuss a bug report, or have questions about new integrations, feel free to join us at [our Discord server](https://discord.gg/h8gekTtq). -->

Bespoke engineers are checking this regularly.

Expand Down
9 changes: 0 additions & 9 deletions apps/web/app/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useRouteLoaderData } from "@remix-run/react";
import dayjs from "dayjs";

import { Flex, Link, TapArea, Text } from "gestalt";
import { Suspense, lazy, useState } from "react";
Expand Down Expand Up @@ -55,14 +54,6 @@ export default function Footer() {
</Text>
</TapArea>
</Flex>
{rootLoaderData.ENV.OPEN_SOURCE === "true" ? null : (
<Text size="100" color="subtle">
© {dayjs().get("year")}{" "}
{rootLoaderData.store?.name
? rootLoaderData.store.name
: "Cartegan Software, Pvt Ltd."}
</Text>
)}
{cookie && (
<Suspense>
<CookiePrefrences dismiss={() => setCookie(false)} />
Expand Down
2 changes: 0 additions & 2 deletions apps/web/app/components/PageLayout/UnauthPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import type { PageHeaderProps } from "gestalt";
import { Box, Container, Flex, PageHeader } from "gestalt";
import BigContainer from "../BigContainer";
import { UnauthNav } from "../Navigation/UnauthNav";

export default function UnauthPageLayot({
children,
Expand All @@ -14,7 +13,6 @@ export default function UnauthPageLayot({
return (
<BigContainer>
<Flex alignItems="start">
<UnauthNav />
<Flex.Item flex="grow">
<Container>
<PageHeader {...pageHeaderPorps} />
Expand Down
76 changes: 1 addition & 75 deletions apps/web/app/components/SideNav/UnauthSideNav.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { useLocation, useRouteLoaderData } from "@remix-run/react";
import { useLocation } from "@remix-run/react";
import { Avatar, Flex, Link, SideNavigation, Text } from "gestalt";
import type { RootData } from "../../root";
import Footer from "../Footer/Footer";

export default function UnauthSideNav({
closeMobileNav,
Expand All @@ -11,7 +9,6 @@ export default function UnauthSideNav({
showHeader?: boolean;
}) {
const location = useLocation();
const rootLoaderData = useRouteLoaderData("root") as RootData;
return (
<SideNavigation
title="Menu"
Expand All @@ -34,84 +31,13 @@ export default function UnauthSideNav({
</Flex>
) : undefined
}
footer={<Footer />}
>
<SideNavigation.TopItem
href="/"
active={location.pathname === "/" ? "page" : undefined}
label="What is Bespoke?"
onClick={closeMobileNav}
/>

{rootLoaderData.ENV.OPEN_SOURCE === "true" ? null : (
<SideNavigation.TopItem
href="/pricing"
active={location.pathname === "/pricing" ? "page" : undefined}
label="Pricing"
onClick={closeMobileNav}
/>
)}

<SideNavigation.Section label="App">
<SideNavigation.TopItem
active={location.pathname === "/signup" ? "page" : undefined}
href="/signup"
label="Sign Up"
onClick={closeMobileNav}
/>
<SideNavigation.TopItem
active={location.pathname === "/login" ? "page" : undefined}
href="/login"
label="Login"
onClick={closeMobileNav}
/>
</SideNavigation.Section>

<SideNavigation.Section label="External Links">
{rootLoaderData.ENV.OPEN_SOURCE === "true" ? null : (
<SideNavigation.TopItem
href="https://github.com/bespoke-surf/bespoke"
label="Self Host Guide | Github"
onClick={closeMobileNav}
/>
)}
<SideNavigation.TopItem
href="https://bespoke-api.readme.io/"
label="API Reference"
onClick={closeMobileNav}
/>
<SideNavigation.TopItem
href="https://bespoke.bespoke.surf"
label="Blog"
onClick={closeMobileNav}
/>

<SideNavigation.TopItem
href="https://feedback.bespoke.surf/changelog"
label="See What's New"
onClick={closeMobileNav}
/>

{rootLoaderData.ENV.OPEN_SOURCE === "true" ? null : (
<SideNavigation.Group label="Support">
<SideNavigation.NestedItem
href="https://discord.gg/h8gekTtq"
label="Devs on Discord"
onClick={closeMobileNav}
/>
<SideNavigation.NestedItem
href="https://twitter.com/bespoke_surf"
label="Twitter"
onClick={closeMobileNav}
/>
<SideNavigation.NestedItem
href="mailto:[email protected]"
label="Email Us"
onClick={closeMobileNav}
/>
</SideNavigation.Group>
)}
</SideNavigation.Section>
</SideNavigation>
);
}
Loading

0 comments on commit 6aeb1d9

Please sign in to comment.