forked from documenso/documenso
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
121 changed files
with
3,807 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title: Launch Week II - Day 3 - API | ||
description: Documenso's mission is to create a plattform developers all around the world can build upon. Today we are releasing the first version of our public API, included in all plans! | ||
authorName: 'Timur Ercan' | ||
authorImage: '/blog/blog-author-timur.jpeg' | ||
authorRole: 'Co-Founder' | ||
date: 2024-02-28 | ||
tags: | ||
- Launch Week | ||
- API | ||
--- | ||
|
||
<video | ||
id="vid" | ||
width="100%" | ||
src="https://github.com/documenso/design/assets/1309312/cb74d6cb-a127-4cac-a166-ad6b56c6140d" | ||
autoPlay | ||
loop | ||
muted | ||
></video> | ||
|
||
> TLDR; The public API is now availible for all plans. | ||
## Introducing the public Documenso API | ||
|
||
Launch. Week. Day. 3 🎉 Documenso's mission is to create a platform that developers all around the world can build upon. Today we are releasing the first version of our public API, and we are pumped. Since this is the first version, we focused on the basics. With the new API you can: | ||
|
||
- Get Documents (Individual or all Accessible) | ||
- Upload Documents | ||
- Delete Documents | ||
- Create Documents from Templates | ||
- Trigger Sending Documents for Singing | ||
|
||
You can check out the detailed API documentation here: | ||
|
||
> API DOCUMENTATION: [https://app.documenso.com/api/v1/openapi](https://app.documenso.com/api/v1/openapi) | ||
## Pricing | ||
|
||
We are building Documenso to be an open and extendable platform; therefore the API is included in all current plans. The API is authenticated via auth tokens, which every user can create at no extra cost, as can teams. Existing limits still apply (i.e., the number of included documents for the free plan). While we don't have all the details yet, we don't intend to price the API usage in itself (rather the accounts using it) since we want you to build on Documenso without being smothered by API costs. | ||
|
||
> Try the API here for free: [https://documen.so/api](https://documen.so/api) | ||
## What's next for the API | ||
|
||
You tell us. This is by far the most requested feature, so we would like to hear from you. What should we add? How can we integrate even better? | ||
|
||
Connect with us on [Twitter / X](https://twitter.com/eltimuro) (DM open) or [Discord](https://documen.so/discord) if you have any questions or comments! We're always here and would love to hear from you :) | ||
|
||
> 🚨 We need you help to help us to make this the biggest launch week yet: <a href="https://twitter.com/intent/tweet?text=It's @Documenso Launch Week Day 3! The public API is here 👀 Check it out https://documen.so/day3"> Support us on Twitter </a> or anywhere to spread awareness for open signing! The best posts will receive merch codes 👀 | ||
Best from Hamburg\ | ||
Timur |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/marketing/src/components/(marketing)/faster-smarter-beautiful-bento.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,7 +199,7 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => { | |
className="bg-foreground/5 col-span-12 flex flex-col rounded-2xl p-6 lg:col-span-5" | ||
onSubmit={handleSubmit(onFormSubmit)} | ||
> | ||
<h3 className="text-2xl font-semibold">Sign up for the early adopters plan</h3> | ||
<h3 className="text-xl font-semibold">Sign up to Community Plan</h3> | ||
<p className="text-muted-foreground mt-2 text-xs"> | ||
with Timur Ercan & Lucas Smith from MonTampon | ||
</p> | ||
|
@@ -208,7 +208,7 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => { | |
|
||
<AnimatePresence> | ||
<motion.div key="email"> | ||
<label htmlFor="email" className="text-foreground text-lg font-semibold lg:text-xl"> | ||
<label htmlFor="email" className="text-foreground font-medium "> | ||
What’s your email? | ||
</label> | ||
|
||
|
@@ -220,7 +220,7 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => { | |
<Input | ||
id="email" | ||
type="email" | ||
placeholder="" | ||
placeholder="[email protected]" | ||
className="bg-background w-full pr-16" | ||
disabled={isSubmitting} | ||
onKeyDown={(e) => | ||
|
@@ -265,11 +265,8 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => { | |
transform: 'translateX(25%)', | ||
}} | ||
> | ||
<label | ||
htmlFor="name" | ||
className="text-foreground text-lg font-semibold lg:text-xl" | ||
> | ||
and your name? | ||
<label htmlFor="name" className="text-foreground font-medium "> | ||
And your name? | ||
</label> | ||
|
||
<Controller | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
apps/web/src/app/(dashboard)/documents/upcoming-profile-claim-teaser.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
'use client'; | ||
|
||
import { useCallback, useEffect, useState } from 'react'; | ||
|
||
import type { User } from '@documenso/prisma/client'; | ||
import { useToast } from '@documenso/ui/primitives/use-toast'; | ||
|
||
import { ClaimPublicProfileDialogForm } from '~/components/forms/public-profile-claim-dialog'; | ||
|
||
export type UpcomingProfileClaimTeaserProps = { | ||
user: User; | ||
}; | ||
|
||
export const UpcomingProfileClaimTeaser = ({ user }: UpcomingProfileClaimTeaserProps) => { | ||
const { toast } = useToast(); | ||
|
||
const [open, setOpen] = useState(false); | ||
const [claimed, setClaimed] = useState(false); | ||
|
||
const onOpenChange = useCallback( | ||
(open: boolean) => { | ||
if (!open && !claimed) { | ||
toast({ | ||
title: 'Claim your profile later', | ||
description: 'You can claim your profile later on by going to your profile settings!', | ||
}); | ||
} | ||
|
||
setOpen(open); | ||
localStorage.setItem('app.hasShownProfileClaimDialog', 'true'); | ||
}, | ||
[claimed, toast], | ||
); | ||
|
||
useEffect(() => { | ||
const hasShownProfileClaimDialog = | ||
localStorage.getItem('app.hasShownProfileClaimDialog') === 'true'; | ||
|
||
if (!user.url && !hasShownProfileClaimDialog) { | ||
onOpenChange(true); | ||
} | ||
}, [onOpenChange, user.url]); | ||
|
||
return ( | ||
<ClaimPublicProfileDialogForm | ||
open={open} | ||
onOpenChange={onOpenChange} | ||
onClaimed={() => setClaimed(true)} | ||
user={user} | ||
/> | ||
); | ||
}; |
Oops, something went wrong.