From 42851d080e0aedb67463959de65a614661cb2752 Mon Sep 17 00:00:00 2001 From: Mohammad AbuAboud Date: Mon, 2 Oct 2023 08:47:59 +0300 Subject: [PATCH] Revert "fix: disable prefetch globally" This reverts commit ac6d51723e66c3b5bbdb70600c64fe729e6330e9. --- app/blog/[id]/page.tsx | 6 +-- app/blog/page.tsx | 6 +-- app/features/page.tsx | 6 +-- app/find-apps/[id]/page.tsx | 15 ++++--- app/find-apps/page.tsx | 14 +++---- app/pieces/[id]/page.tsx | 6 +-- app/pieces/branches/page.tsx | 6 +-- app/pieces/loops/page.tsx | 6 +-- app/pieces/webhook/page.tsx | 6 +-- components/CookieConsent.tsx | 4 +- components/Footer.tsx | 40 +++++++++---------- components/GithubWidget.tsx | 10 ++--- components/MyLink.tsx | 11 ----- components/Navbar.tsx | 36 ++++++++--------- components/PricingCard.tsx | 6 +-- .../AutomateWithActivepieces.tsx | 6 +-- components/features-page/FeaturesCarousel.tsx | 6 +-- components/features-page/PiecesCarousel.tsx | 14 +++---- components/landing-page/AiCard.tsx | 7 ++-- components/landing-page/CenterOfWorldCard.tsx | 6 +-- components/landing-page/ComparisonSection.tsx | 6 +-- components/landing-page/GitHubContributor.tsx | 7 ++-- components/landing-page/MainSection.tsx | 8 ++-- components/landing-page/OpenSourceStat.tsx | 7 ++-- .../landing-page/PiecesDictionarySection.tsx | 8 ++-- components/landing-page/TemplatesListItem.tsx | 8 ++-- components/pieces/BranchCard.tsx | 6 +-- components/pieces/List.tsx | 12 +++--- components/pieces/LoopActionCard.tsx | 6 +-- components/pieces/TriggerOrActionCard.tsx | 6 +-- components/pieces/WebhookTriggerCard.tsx | 6 +-- components/pricing-page/FeatureList.tsx | 6 +-- components/pricing-page/FeaturesSection.tsx | 6 +-- .../pricing-page/PricingMainSection.tsx | 6 +-- components/pricing-page/WhiteLabelSection.tsx | 6 +-- components/voting/ExistingPieces.tsx | 6 +-- .../voting/RequestedAndInProgressIssues.tsx | 10 ++--- components/voting/SimilarIssues.tsx | 6 +-- .../SuccessfulIssueSubmissionSection.tsx | 4 +- 39 files changed, 167 insertions(+), 180 deletions(-) delete mode 100644 components/MyLink.tsx diff --git a/app/blog/[id]/page.tsx b/app/blog/[id]/page.tsx index 58159f1..c548763 100644 --- a/app/blog/[id]/page.tsx +++ b/app/blog/[id]/page.tsx @@ -7,8 +7,8 @@ import { Metadata } from "next"; import { NavigationProps } from "../../../components/navigationProps"; import { formatDate } from "@/utils/date-helper"; import { createClient } from "@supabase/supabase-js"; -import { ApLink } from "../../../components/MyLink"; import { redirect } from "next/navigation"; +import Link from "next/link"; export interface Blog { @@ -122,12 +122,12 @@ export default async function BlogPost({ params, searchParams }: NavigationProps

diff --git a/app/blog/page.tsx b/app/blog/page.tsx index bc9392b..84c8f2a 100644 --- a/app/blog/page.tsx +++ b/app/blog/page.tsx @@ -1,8 +1,8 @@ import Image from "next/image"; +import Link from "next/link"; import { Metadata } from "next"; import { AutomateWithActivepieces } from "../../components/animated-curtains/AutomateWithActivepieces"; import { BlogPost, getBlogs } from "@/utils/blogs-helper"; -import { ApLink } from "../../components/MyLink"; import { redirect } from "next/navigation"; @@ -32,7 +32,7 @@ export async function generateMetadata(): Promise { function BlogCard({ post }: { post: BlogPost }) { return ( - +
{post.meta.author} | Published On {post.meta.publishedOn}

-
+ ); } diff --git a/app/features/page.tsx b/app/features/page.tsx index 888125a..c60c173 100644 --- a/app/features/page.tsx +++ b/app/features/page.tsx @@ -1,4 +1,5 @@ import { Metadata } from "next"; +import Link from "next/link"; import { Arrow } from "../../components/arrow"; import { AnimatedCurtains } from "../../components/animated-curtains/AnimatedCurtains"; import { TestimoniesSection } from "../../components/features-page/TestimoniesSection"; @@ -10,7 +11,6 @@ import CombinationsMakerSection from "../../components/landing-page/Combinations import { VisibilitySection } from "../../components/features-page/VisibilitySection"; import { FeaturesSection } from "../../components/features-page/FeaturesSection"; import { FeaturesCarousel } from "../../components/features-page/FeaturesCarousel"; -import { ApLink } from "../../components/MyLink"; import { redirect } from "next/navigation"; @@ -48,9 +48,9 @@ export default async function FindAppsPage() { Meant to be simple yet

so powerful

- + Get Started - +
diff --git a/app/find-apps/[id]/page.tsx b/app/find-apps/[id]/page.tsx index d66ddc7..7cbe707 100644 --- a/app/find-apps/[id]/page.tsx +++ b/app/find-apps/[id]/page.tsx @@ -1,10 +1,9 @@ import { Metadata } from "next"; - +import Link from "next/link"; import { NavigationProps } from "../../../components/navigationProps"; import { GetPieces } from "../../../utils/piece-helper"; import { allPiecesSort, corePieces } from "../../../components/utils"; -import { ApLink } from "../../../components/MyLink"; import { redirect } from "next/navigation"; const alphabet = "abcdefghijklmnopqrstuvwxyz".toUpperCase().split(""); @@ -47,19 +46,19 @@ export default async function FindAppsPage({ params }: NavigationProps) { {`Browse apps starting with ${params.id.toUpperCase()}`}
- {alphabet.map((letter, idx) => {letter} )} + {alphabet.map((letter, idx) => {letter} )}
    {filteredPieces.map((piece, idx) =>
  • { - piece === "webhook" ? Webhook : - piece === "loops" ? Loops : - piece === "branches" ? Branches : - Webhook : + piece === "loops" ? Loops : + piece === "branches" ? Branches : + {piece.displayName} + )}?`} > {piece.displayName} }
  • )}
diff --git a/app/find-apps/page.tsx b/app/find-apps/page.tsx index 5285ce5..5e79a43 100644 --- a/app/find-apps/page.tsx +++ b/app/find-apps/page.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; import { GetPieces } from "../../utils/piece-helper"; +import Link from "next/link"; import { allPiecesSort, corePieces } from "../../components/utils"; -import { ApLink } from "../../components/MyLink"; import { redirect } from "next/navigation"; const alphabet = "abcdefghijklmnopqrstuvwxyz".toUpperCase().split(""); export const metadata: Metadata = { @@ -37,19 +37,19 @@ export default async function FindAppsPage() { Browse all apps
- {alphabet.map((letter, idx) => {letter} )} + {alphabet.map((letter, idx) => {letter} )}
    {allPieces.map((piece, idx) =>
  • { - piece === "webhook" ? Webhook : - piece === "loops" ? Loops : - piece === "branches" ? Branches : - Webhook : + piece === "loops" ? Loops : + piece === "branches" ? Branches : + {piece.displayName} + )}?`} > {piece.displayName} }
  • )} diff --git a/app/pieces/[id]/page.tsx b/app/pieces/[id]/page.tsx index 6cfe612..3a7f92d 100644 --- a/app/pieces/[id]/page.tsx +++ b/app/pieces/[id]/page.tsx @@ -5,8 +5,8 @@ import Image from "next/image"; import TriggerOrActionCard from "../../../components/pieces/TriggerOrActionCard"; import { Metadata } from "next"; import { NavigationProps } from "../../../components/navigationProps"; +import Link from "next/link"; import { AutomateWithActivepieces } from "../../../components/animated-curtains/AutomateWithActivepieces"; -import { ApLink } from "../../../components/MyLink"; import { redirect } from 'next/navigation' @@ -142,9 +142,9 @@ export default async function PiecePage({ params }: NavigationProps) {
    - +
    Start for free
    -
    +
diff --git a/app/pieces/branches/page.tsx b/app/pieces/branches/page.tsx index a738403..b05f5f8 100644 --- a/app/pieces/branches/page.tsx +++ b/app/pieces/branches/page.tsx @@ -1,9 +1,9 @@ import Image from "next/image"; import { Metadata } from "next"; +import Link from "next/link"; import { AutomateWithActivepieces } from "../../../components/animated-curtains/AutomateWithActivepieces"; import BranchActionCard from "../../../components/pieces/BranchCard"; -import { ApLink } from "../../../components/MyLink"; const conditions: { firstValue: string, operator: string; secondValue?: string; caseSensitive?: boolean }[][] = [ [ @@ -204,9 +204,9 @@ export default async function branchPage() {
- +
Start for free
-
+
diff --git a/app/pieces/loops/page.tsx b/app/pieces/loops/page.tsx index 211f99f..d7da42f 100644 --- a/app/pieces/loops/page.tsx +++ b/app/pieces/loops/page.tsx @@ -1,9 +1,9 @@ import Image from "next/image"; import { Metadata } from "next"; +import Link from "next/link"; import { AutomateWithActivepieces } from "../../../components/animated-curtains/AutomateWithActivepieces"; import LoopsActionsCard from "../../../components/pieces/LoopActionCard"; -import { ApLink } from "../../../components/MyLink"; export async function generateMetadata(): Promise { @@ -98,9 +98,9 @@ export default async function LoopsPage() {
- +
Start for free
-
+
diff --git a/app/pieces/webhook/page.tsx b/app/pieces/webhook/page.tsx index 673f5f8..fa44eeb 100644 --- a/app/pieces/webhook/page.tsx +++ b/app/pieces/webhook/page.tsx @@ -1,9 +1,9 @@ import Image from "next/image"; import { Metadata } from "next"; +import Link from "next/link"; import { AutomateWithActivepieces } from "../../../components/animated-curtains/AutomateWithActivepieces"; import WebhookTriggerCard from "../../../components/pieces/WebhookTriggerCard"; -import { ApLink } from "../../../components/MyLink"; export async function generateMetadata(): Promise { @@ -98,9 +98,9 @@ export default async function WebhookPage() {
- +
Start for free
-
+
diff --git a/components/CookieConsent.tsx b/components/CookieConsent.tsx index 7a843cd..bef8c3d 100644 --- a/components/CookieConsent.tsx +++ b/components/CookieConsent.tsx @@ -1,5 +1,5 @@ +import Link from "next/link" import posthog from "posthog-js"; -import { ApLink } from "./MyLink"; export const CokkieConsent = (props: { show: boolean, setShow: (show: boolean) => void }) => { const acceptCookies = () => { @@ -13,7 +13,7 @@ export const CokkieConsent = (props: { show: boolean, setShow: (show: boolean) = return <>
- This website uses cookies to ensure you get the best experience on our website. Learn more + This website uses cookies to ensure you get the best experience on our website. Learn more
- Features - Pricing - Pieces - Pieces Roadmap + Features + Pricing + Pieces + Pieces Roadmap
@@ -45,9 +45,9 @@ export default function Footer() { Open Source
- GitHub - Contribute - MIT License + GitHub + Contribute + MIT License
@@ -56,9 +56,9 @@ export default function Footer() { Resources
- {/* Tutorials */} - Docs - Blog + {/* Tutorials */} + Docs + Blog
@@ -67,10 +67,10 @@ export default function Footer() { Get Help
- {/* Support */} - Community - Discord - System Status + {/* Support */} + Community + Discord + System Status
@@ -92,11 +92,11 @@ export default function Footer() { Backed by Y Combinator
- Privacy + Privacy
-
- Terms + Terms
-
- Google API Disclosure + Google API Disclosure
diff --git a/components/GithubWidget.tsx b/components/GithubWidget.tsx index e609e44..654e03e 100644 --- a/components/GithubWidget.tsx +++ b/components/GithubWidget.tsx @@ -1,18 +1,18 @@ -import { ApLink } from "./MyLink"; +import Link from "next/link"; const GithubWidget = ({ stars, extraClass }: { stars: number, extraClass?: string }) => { return (
- + - + { stars > 0 ? ( - + {stars.toLocaleString()} - ) : (null) + ) : (null) } diff --git a/components/MyLink.tsx b/components/MyLink.tsx deleted file mode 100644 index 6f76673..0000000 --- a/components/MyLink.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import Link, { type LinkProps } from 'next/link'; - -type CustLink = LinkProps & { children: React.ReactNode } & { target?: string} & {id?: string} & { rel?: string } & { className?: string } & { style?: React.CSSProperties } & { href: string } & { prefetch?: boolean }; - -export function ApLink({ href, prefetch = false, children, ...rest }: CustLink) { - return ( - - {children} - - ); -} \ No newline at end of file diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 74cdda9..98edfca 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -1,9 +1,9 @@ 'use client'; +import Image from "next/image"; +import Link from "next/link"; import React, { useRef } from "react"; import GithubWidget from "./GithubWidget"; -import { ApLink } from "./MyLink"; -import Image from "next/image"; const Navbar = ({ stars }: { stars: number }) => { const routesList = useRef(null); @@ -19,7 +19,7 @@ const Navbar = ({ stars }: { stars: number }) => {
- + Activepieces Logo { height={35} className="w-[152px] h-[25px] lg:w-[215px] lg:h-[35px]" /> - +
- +
Try free
-
+
{props.features.map((feature, idx) => ( diff --git a/components/animated-curtains/AutomateWithActivepieces.tsx b/components/animated-curtains/AutomateWithActivepieces.tsx index 1cd0870..94dd904 100644 --- a/components/animated-curtains/AutomateWithActivepieces.tsx +++ b/components/animated-curtains/AutomateWithActivepieces.tsx @@ -1,7 +1,7 @@ 'use client'; import { useEffect } from "react"; import { AnimatedCurtains } from "./AnimatedCurtains" -import { ApLink } from "../MyLink"; +import Link from "next/link"; let automatedThingIdx = 0; const automatedThings = [ { @@ -65,9 +65,9 @@ export const AutomateWithActivepieces = () => {
Automate

tasks

with

Activepieces
- + Start free - +
diff --git a/components/features-page/FeaturesCarousel.tsx b/components/features-page/FeaturesCarousel.tsx index 809ea2a..fb03988 100644 --- a/components/features-page/FeaturesCarousel.tsx +++ b/components/features-page/FeaturesCarousel.tsx @@ -1,8 +1,8 @@ 'use client'; +import Link from "next/link" import { Arrow } from "../arrow" import { useRef, useState } from "react"; import Image from "next/image" -import { ApLink } from "../MyLink"; type FeatureVideo = { mp4: string; @@ -104,9 +104,9 @@ const CarouselItemTemplate = (props: { active: boolean, index: number, setActive
{props.feat.description}
- + Start free - +
diff --git a/components/features-page/PiecesCarousel.tsx b/components/features-page/PiecesCarousel.tsx index 76061cf..185b42d 100644 --- a/components/features-page/PiecesCarousel.tsx +++ b/components/features-page/PiecesCarousel.tsx @@ -2,20 +2,20 @@ import 'react-tooltip/dist/react-tooltip.css' import Image from 'next/image' import { Arrow } from '../arrow' +import Link from 'next/link' import { PieceBase } from '../../utils/piece-helper' import { Tooltip } from 'react-tooltip' import { allPiecesSort, corePieces, CorePiece } from '../utils' -import { ApLink } from '../MyLink' const PieceElement = (props: { piece: (PieceBase), idx: number }) => { const piece = props.piece; const idx = props.idx; return <> - {piece.displayName} - + { const displayName = piece === "webhook" ? "Webhook" : piece === "loops" ? "Loops" : "Branches"; const logoUrl = piece === "webhook" ? "https://cloud.activepieces.com/assets/img/custom/piece/webhook.svg" : piece === "loops" ? "https://cloud.activepieces.com/assets/img/custom/piece/loop.svg" : "https://cloud.activepieces.com/assets/img/custom/piece/branch.svg"; return <> - + {displayName} - + {
- + Explore all pieces - +
} \ No newline at end of file diff --git a/components/landing-page/AiCard.tsx b/components/landing-page/AiCard.tsx index f4d7ade..8368336 100644 --- a/components/landing-page/AiCard.tsx +++ b/components/landing-page/AiCard.tsx @@ -1,6 +1,5 @@ import Image from "next/image"; -import { ApLink } from "../MyLink"; - +import Link from "next/link"; export interface AiCardProps { id: string, piecesIcons: string[], @@ -11,7 +10,7 @@ const AiCard = (props: AiCardProps) => { return ( <> - +
{ @@ -32,7 +31,7 @@ const AiCard = (props: AiCardProps) => {
View automation
- + diff --git a/components/landing-page/CenterOfWorldCard.tsx b/components/landing-page/CenterOfWorldCard.tsx index 874b17d..45f9c03 100644 --- a/components/landing-page/CenterOfWorldCard.tsx +++ b/components/landing-page/CenterOfWorldCard.tsx @@ -1,13 +1,13 @@ import Image from "next/image"; +import Link from "next/link"; import { CenterOfWorldCard } from "../flowTemplateGenerator" -import { ApLink } from "../MyLink"; const CenterOfWorldCard = (props: CenterOfWorldCard) => { return ( <> - +
@@ -30,7 +30,7 @@ const CenterOfWorldCard = (props: CenterOfWorldCard) => {
Try it arrow
- + diff --git a/components/landing-page/ComparisonSection.tsx b/components/landing-page/ComparisonSection.tsx index d00fc9d..2f84a56 100644 --- a/components/landing-page/ComparisonSection.tsx +++ b/components/landing-page/ComparisonSection.tsx @@ -3,7 +3,7 @@ import { ControlledMenu, MenuItem, useClick } from '@szhsin/react-menu'; import Image from 'next/image'; import { MutableRefObject, useRef, useState } from 'react'; import { ComparisonCard } from './ComparisonCard'; -import { ApLink } from '../MyLink'; +import Link from 'next/link'; type ComparisonApp = { icon: string; @@ -129,9 +129,9 @@ export const ComparisionSection = () => {
Activepieces is the best alternative to {selectedApp.appName} - + Get started arrow - +
diff --git a/components/landing-page/GitHubContributor.tsx b/components/landing-page/GitHubContributor.tsx index 34473c7..2716a4d 100644 --- a/components/landing-page/GitHubContributor.tsx +++ b/components/landing-page/GitHubContributor.tsx @@ -1,6 +1,5 @@ import Image from "next/image"; -import { ApLink } from "../MyLink"; - +import Link from "next/link"; export interface ContributorProps { imageUrl: string, githubAccount: string, @@ -15,9 +14,9 @@ const Contributor = (stat: ContributorProps) => {
{stat.githubAccount} - + @{stat.githubAccount} - +
diff --git a/components/landing-page/MainSection.tsx b/components/landing-page/MainSection.tsx index 04f2549..171660f 100644 --- a/components/landing-page/MainSection.tsx +++ b/components/landing-page/MainSection.tsx @@ -1,5 +1,5 @@ - -import { ApLink } from "../MyLink"; +import Link from 'next/link'; +import Image from 'next/image' import ImageSlider from "./imageSlider"; const MainSection = () => <> @@ -44,9 +44,9 @@ const MainSection = () =>
- + Get Started - +
diff --git a/components/landing-page/OpenSourceStat.tsx b/components/landing-page/OpenSourceStat.tsx index 2da2480..08fdcfa 100644 --- a/components/landing-page/OpenSourceStat.tsx +++ b/components/landing-page/OpenSourceStat.tsx @@ -1,4 +1,5 @@ -import { ApLink } from "../MyLink"; +import Image from "next/image"; +import Link from "next/link"; import { Arrow } from "../arrow"; export interface OpenSourceStatProps { logo: JSX.Element, @@ -11,7 +12,7 @@ export interface OpenSourceStatProps { const OpenSourceStat = (stat: OpenSourceStatProps) => { return ( <> - +
{stat.logo} {stat.statText} @@ -21,7 +22,7 @@ const OpenSourceStat = (stat: OpenSourceStatProps) => { {stat.ctaText}
-
+ diff --git a/components/landing-page/PiecesDictionarySection.tsx b/components/landing-page/PiecesDictionarySection.tsx index df7207a..3c41a43 100644 --- a/components/landing-page/PiecesDictionarySection.tsx +++ b/components/landing-page/PiecesDictionarySection.tsx @@ -1,4 +1,4 @@ -import { ApLink } from "../MyLink"; +import Link from "next/link" const alphabet = "abcdefghijklmnopqrstuvwxyz".toUpperCase().split(""); const popularStuff = [ @@ -83,7 +83,7 @@ export const PiecesDictionarySection = () => { popularThing.separator &&
{ popularThing.items.map((item, idx) => { - return {item.title} {idx === popularThing.items.length - 1 ? "" :
}
+ return {item.title} {idx === popularThing.items.length - 1 ? "" :
} }) }
@@ -93,7 +93,7 @@ export const PiecesDictionarySection = () => { !popularThing.separator &&
{ popularThing.items.map((item, idx) => { - return {item.title} + return {item.title} }) }
@@ -110,7 +110,7 @@ export const PiecesDictionarySection = () => {
{ - alphabet.map((letter, idx) => { return {letter} {idx === alphabet.length - 1 ? "" :
-
}
}) + alphabet.map((letter, idx) => { return {letter} {idx === alphabet.length - 1 ? "" :
-
} }) }
diff --git a/components/landing-page/TemplatesListItem.tsx b/components/landing-page/TemplatesListItem.tsx index f8d0fb8..c9f9cdc 100644 --- a/components/landing-page/TemplatesListItem.tsx +++ b/components/landing-page/TemplatesListItem.tsx @@ -1,7 +1,7 @@ import { FlowTemplate } from "@activepieces/shared"; -import { Arrow } from "../arrow"; import Image from "next/image"; -import { ApLink } from "../MyLink"; +import Link from "next/link"; +import { Arrow } from "../arrow"; export interface TemplatesListItemProps { template: FlowTemplate, piecesIcons: string[], @@ -10,7 +10,7 @@ export interface TemplatesListItemProps { const TemplatesListItem = (props: TemplatesListItemProps) => { return ( <> - +
{ props.piecesIcons.map((icon, idx) => ( @@ -33,7 +33,7 @@ const TemplatesListItem = (props: TemplatesListItemProps) => { - + ); }; diff --git a/components/pieces/BranchCard.tsx b/components/pieces/BranchCard.tsx index 7baf871..97896b2 100644 --- a/components/pieces/BranchCard.tsx +++ b/components/pieces/BranchCard.tsx @@ -2,7 +2,7 @@ import PieceLogo from "./PieceLogo"; import Image from "next/image"; import { FlowTemplate, TriggerType } from "@activepieces/shared"; -import { ApLink } from "../MyLink"; +import Link from "next/link"; let template: FlowTemplate = { "id": "OJCiwfSX6UrOeY4NCucfo", @@ -73,9 +73,9 @@ const BranchActionCard = (props: { condition: { firstValue: string, operator: st
- + Try it arrow - +
); }; diff --git a/components/pieces/List.tsx b/components/pieces/List.tsx index 6aae3fb..ef59cdd 100644 --- a/components/pieces/List.tsx +++ b/components/pieces/List.tsx @@ -4,9 +4,9 @@ import { useRef, useState } from "react"; import { PieceBase } from "../../utils/piece-helper"; import PieceLogo from "./PieceLogo"; +import Link from "next/link"; import Image from "next/image"; import { allPiecesSort, corePieces } from "../utils"; -import { ApLink } from "../MyLink"; const PiecesList = ({ pieces }: { pieces: PieceBase[] }) => { const searchInput = useRef(null); @@ -30,7 +30,7 @@ const PiecesList = ({ pieces }: { pieces: PieceBase[] }) => { return CorePieceHTML({ title: "Branches", image: "https://cloud.activepieces.com/assets/img/custom/piece/branch.svg", path: "/pieces/branches" }) default: return ( - {

{piece.displayName}

- + ); } }); const allFilteredPieces = () => <>{mapPieceToHTML(filteredPieces)} const first30FilteredPieces = () => <>{mapPieceToHTML(filteredPieces.slice(0, 30))} const CorePieceHTML = (props: { path: string, title: string, image: string }) => { - return {

{props.title}

-
+ } return (
- You can check our future pieces roadmap or request a piece on this page + You can check our future pieces roadmap or request a piece on this page
diff --git a/components/pieces/LoopActionCard.tsx b/components/pieces/LoopActionCard.tsx index 34810ff..a946cdd 100644 --- a/components/pieces/LoopActionCard.tsx +++ b/components/pieces/LoopActionCard.tsx @@ -2,7 +2,7 @@ import PieceLogo from "./PieceLogo"; import Image from "next/image"; import { FlowTemplate, TriggerType } from "@activepieces/shared"; -import { ApLink } from "../MyLink"; +import Link from "next/link"; let template: FlowTemplate = { "id": "ANGedXCk9bb6eIHOpmo3T", @@ -52,9 +52,9 @@ const LoopsActionsCard = () => {
- + Try it arrow - +
); }; diff --git a/components/pieces/TriggerOrActionCard.tsx b/components/pieces/TriggerOrActionCard.tsx index c3081ac..ca0eedf 100644 --- a/components/pieces/TriggerOrActionCard.tsx +++ b/components/pieces/TriggerOrActionCard.tsx @@ -5,7 +5,7 @@ import Image from "next/image"; import CollapsibleProperties from "./CollapsibleProperties"; import { ActionBase, TriggerBase, TriggerStrategy } from "../../utils/piece-helper"; import { ActionType, FlowTemplate, TriggerType } from "@activepieces/shared"; -import { ApLink } from "../MyLink"; +import Link from "next/link"; let template: FlowTemplate = { "id": "YiwKlvgwmhYIIVKT0EMqx", @@ -128,9 +128,9 @@ const TriggerOrActionCard = ({ triggerOrAction, logoUrl, pieceName, pieceVersion
{Object.entries(triggerOrAction.props).length > 0 ? () : null} - + Try it arrow - + ); }; diff --git a/components/pieces/WebhookTriggerCard.tsx b/components/pieces/WebhookTriggerCard.tsx index 2032710..eaec13d 100644 --- a/components/pieces/WebhookTriggerCard.tsx +++ b/components/pieces/WebhookTriggerCard.tsx @@ -2,7 +2,7 @@ import PieceLogo from "./PieceLogo"; import Image from "next/image"; import { FlowTemplate, TriggerType } from "@activepieces/shared"; -import { ApLink } from "../MyLink"; +import Link from "next/link"; let template: FlowTemplate = { "id": "44kXPGoLr6m9iy2awmt54", @@ -55,9 +55,9 @@ const WebhookTriggerCard = () => { - + Try it arrow - + ); }; diff --git a/components/pricing-page/FeatureList.tsx b/components/pricing-page/FeatureList.tsx index 52e33b1..5a09152 100644 --- a/components/pricing-page/FeatureList.tsx +++ b/components/pricing-page/FeatureList.tsx @@ -1,4 +1,4 @@ -import { ApLink } from "../MyLink" +import Link from "next/link"; import { FeatureCard, FeatureCardProps } from "./FeatureCard" import Image from "next/image" @@ -11,11 +11,11 @@ export const FeaturesList = (props: { expandList: boolean, features: FeatureCard } - + Activepieces logo Start free arrow - + } \ No newline at end of file diff --git a/components/pricing-page/FeaturesSection.tsx b/components/pricing-page/FeaturesSection.tsx index d8fbf7b..0b3473a 100644 --- a/components/pricing-page/FeaturesSection.tsx +++ b/components/pricing-page/FeaturesSection.tsx @@ -1,9 +1,9 @@ 'use client'; import Image from "next/image"; import { useState } from "react"; +import Link from "next/link"; import { FeaturesList } from "./FeatureList"; import { FeatureCardProps } from "./FeatureCard"; -import { ApLink } from "../MyLink"; const features: FeatureCardProps[] = [ { featImage: "/pricing/feat_1.svg", @@ -68,14 +68,14 @@ export const FeaturesSection = () => {
Activepieces is an open core software, you can self host it on your machine for free. Our cloud version is built on this core but has more features.
- + github
Visit GitHub
arrow -
+
dog diff --git a/components/pricing-page/PricingMainSection.tsx b/components/pricing-page/PricingMainSection.tsx index ac7ae50..b6ab987 100644 --- a/components/pricing-page/PricingMainSection.tsx +++ b/components/pricing-page/PricingMainSection.tsx @@ -1,8 +1,8 @@ import PricingCard from "../../components/PricingCard"; +import Link from "next/link"; import ImageSlider from "../../components/landing-page/imageSlider"; import { AnimatedCurtains } from "../animated-curtains/AnimatedCurtains"; import Image from "next/image"; -import { ApLink } from "../MyLink"; const businessPlans = [{ "tasks": 5000, "price": "115" }, { "tasks": 10000, "price": "125" }, { "tasks": 25000, "price": "155" }, { "tasks": 50000, "price": "200" }, { "tasks": 100000, "price": "275" }, { "tasks": 200000, "price": "400" }, { "tasks": 500000, "price": "600" }] const proPlans = [{ "tasks": 5000, "price": "15" }, { "tasks": 10000, "price": "25" }, { "tasks": 25000, "price": "55" }, { "tasks": 50000, "price": "100" }, { "tasks": 100000, "price": "175" }, { "tasks": 200000, "price": "300" }, { "tasks": 500000, "price": "500" }]; const hobbyistFeats = ["Unlimited users", "Instant triggers", "15 mins update time", "3 connected accounts", "Community support"] @@ -38,9 +38,9 @@ export const PricingMainSection = () => { Looking for more?

Check out our Enterprise offering - + Contact us - +
diff --git a/components/pricing-page/WhiteLabelSection.tsx b/components/pricing-page/WhiteLabelSection.tsx index a6c4b21..f4ba2b9 100644 --- a/components/pricing-page/WhiteLabelSection.tsx +++ b/components/pricing-page/WhiteLabelSection.tsx @@ -1,5 +1,5 @@ import Image from 'next/image' -import { ApLink } from '../MyLink' +import Link from 'next/link' export const WhiteLabelSection = () => { return <>
@@ -86,11 +86,11 @@ export const WhiteLabelSection = () => {
- +
Contact us
-
+
diff --git a/components/voting/ExistingPieces.tsx b/components/voting/ExistingPieces.tsx index ad9dfb4..3496751 100644 --- a/components/voting/ExistingPieces.tsx +++ b/components/voting/ExistingPieces.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from "react"; import { DetailedPiece } from "../../utils/piece-helper"; +import Link from "next/link"; import Image from "next/image"; -import { ApLink } from "../MyLink"; export const ExisttingPieces = (props: { pieces: DetailedPiece[], search: string, setNoExistingPieces: (none: boolean) => void }) => { const [suggestedPieces, setSuggestedPiece] = useState<{ displayName: string, logoUrl: string, pieceName: string }[]>([]); const [showMore, setShowMore] = useState(false); @@ -51,13 +51,13 @@ export const ExisttingPieces = (props: { pieces: DetailedPiece[], search: string
{ suggestedPieces.slice(0, showMore ? undefined : 20).map((piece, index) => { - return {piece.displayName} {piece.displayName} - + }) } diff --git a/components/voting/RequestedAndInProgressIssues.tsx b/components/voting/RequestedAndInProgressIssues.tsx index 48c4f10..865f646 100644 --- a/components/voting/RequestedAndInProgressIssues.tsx +++ b/components/voting/RequestedAndInProgressIssues.tsx @@ -1,6 +1,6 @@ +import Link from "next/link"; import { GitHubIssue, IssueVotes } from "../utils"; import { User } from "@supabase/supabase-js"; -import { ApLink } from "../MyLink"; export const RequestedAndInProgressIssues = (props: { issues: GitHubIssue[], search: string, showEmptyResult: boolean, votes: IssueVotes[], userState: User | null, vote: (issueId: string, userState: User | null) => void }) => { @@ -27,7 +27,7 @@ export const RequestedAndInProgressIssues = (props: { issues: GitHubIssue[], sea
- +
{issue.title}
@@ -43,7 +43,7 @@ export const RequestedAndInProgressIssues = (props: { issues: GitHubIssue[], sea
} - + })} @@ -58,7 +58,7 @@ export const RequestedAndInProgressIssues = (props: { issues: GitHubIssue[], sea
{props.issues.filter(issue => issue.state === "open" && issue.assignees.length > 0).map((issue, index) => { - return + return
{issue.title} @@ -67,7 +67,7 @@ export const RequestedAndInProgressIssues = (props: { issues: GitHubIssue[], sea Requested on {issue.created_at && new Date(issue.created_at).toLocaleDateString('en-US', { year: 'numeric', month: 'short', day: 'numeric' })}
-
+ })}
diff --git a/components/voting/SimilarIssues.tsx b/components/voting/SimilarIssues.tsx index 9131570..f8ac9e2 100644 --- a/components/voting/SimilarIssues.tsx +++ b/components/voting/SimilarIssues.tsx @@ -1,7 +1,7 @@ +import Link from "next/link"; import { GitHubIssue, IssueVotes } from "../utils"; import { User } from "@supabase/supabase-js"; import { useEffect, useState } from "react"; -import { ApLink } from "../MyLink"; export const SimilarIssues = (props: { issues: GitHubIssue[], search: string, vote: (issueId: string, userState: User | null) => void, userState: User | null, votes: IssueVotes[], setNoSimilarIssues: (none: boolean) => void }) => { const [showMore, setShowMore] = useState(false); @@ -31,7 +31,7 @@ export const SimilarIssues = (props: { issues: GitHubIssue[], search: string, vo
- +
{issue.title}
@@ -41,7 +41,7 @@ export const SimilarIssues = (props: { issues: GitHubIssue[], search: string, vo
0 ? (issue.state === "open" ? "text-[#AC44B5] font-normal" : "text-[#258D3C] font-normal") : "text-black text-opacity-60 font-normal"}> {issue.assignees.length > 0 ? (issue.state === "open" ? "In Progress" : "Completed") : "Requested"}
-
+ })} diff --git a/components/voting/SuccessfulIssueSubmissionSection.tsx b/components/voting/SuccessfulIssueSubmissionSection.tsx index d61970c..0e163da 100644 --- a/components/voting/SuccessfulIssueSubmissionSection.tsx +++ b/components/voting/SuccessfulIssueSubmissionSection.tsx @@ -1,4 +1,4 @@ -import { ApLink } from "../MyLink"; +import Link from "next/link"; export const SuccessfullIssueSubmissionSection = ({ setShowSuccessfulSubmissionSection, toggleRequestAPieceSection }: { setShowSuccessfulSubmissionSection: (show: boolean) => void, toggleRequestAPieceSection: (show: boolean) => void }) => { return (<> @@ -25,7 +25,7 @@ export const SuccessfullIssueSubmissionSection = ({ setShowSuccessfulSubmissionS setShowSuccessfulSubmissionSection(false); toggleRequestAPieceSection(true) }} className="bg-black text-white rounded overflow-hidden p-5 w-full lg:w-auto">New request - Go to homepage + Go to homepage )