Skip to content

Commit

Permalink
Merge pull request #163 from ln-dev7/release
Browse files Browse the repository at this point in the history
add redirectOnCompletion
  • Loading branch information
ln-dev7 authored Aug 21, 2023
2 parents 443fdab + f14c9a2 commit c68e6ce
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 114 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @ln-dev7/sharuco

## 1.0.0

### Major Changes

- Thanks [@ln-dev7](https://github.com/ln-dev7)!

**Full Changelog**: https://github.com/ln-dev7/sharuco/compare/v0.2.0...v1.0.0

## 0.2.0

### Minor Changes
Expand Down Expand Up @@ -32,7 +40,7 @@

### Patch Changes

- [Change of star icon by heart icon ,add trash icon on delete button, use react-query for fetxh contributors and many update.](https://github.com/ln-dev7/sharuco/pull/141)
- [Change of star icon by heart icon ,add trash icon on delete button, use react-query for fetch contributors and many update.](https://github.com/ln-dev7/sharuco/pull/141)

- Update dependencies.

Expand Down
6 changes: 3 additions & 3 deletions components/search-bar/search-bar-code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function SearchBarCode({ ...props }: DialogProps) {
defaultChecked={false}
variant="outline"
className={cn(
"text-muted-foreground relative h-9 w-full justify-start rounded-[0.5rem] text-sm sm:pr-12 lg:w-72"
"relative h-9 w-full justify-start rounded-[0.5rem] text-sm text-muted-foreground sm:pr-12 lg:w-72"
)}
onClick={() => setOpen(true)}
{...props}
Expand All @@ -40,12 +40,12 @@ export function SearchBarCode({ ...props }: DialogProps) {
Search publics codes ...
</span>
<span className="inline-flex sm:hidden">Search...</span>
<kbd className="bg-muted pointer-events-none absolute right-1.5 top-2 hidden h-5 select-none items-center gap-1 rounded border px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex">
<kbd className="pointer-events-none absolute right-1.5 top-2 hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex">
<span className="text-xs"></span>K
</kbd>
</Button>
</DialogTrigger>
<DialogContent className="max-h-[640px] overflow-hidden overflow-y-auto p-0 scrollbar-hide">
<DialogContent className="scrollbar-hide max-h-[640px] overflow-hidden overflow-y-auto p-0">
<AlgoliaSearchCode />
</DialogContent>
</Dialog>
Expand Down
6 changes: 3 additions & 3 deletions components/search-bar/search-bar-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ export function SearchBarLink({ ...props }: DialogProps) {
defaultChecked={false}
variant="outline"
className={cn(
"text-muted-foreground relative h-9 w-full justify-start rounded-[0.5rem] text-sm sm:pr-12 lg:w-72"
"relative h-9 w-full justify-start rounded-[0.5rem] text-sm text-muted-foreground sm:pr-12 lg:w-72"
)}
onClick={() => setOpen(true)}
{...props}
>
<span className="hidden sm:inline-flex">Search links ...</span>
<span className="inline-flex sm:hidden">Search links ...</span>
<kbd className="bg-muted pointer-events-none absolute right-1.5 top-2 hidden h-5 select-none items-center gap-1 rounded border px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex">
<kbd className="pointer-events-none absolute right-1.5 top-2 hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex">
<span className="text-xs"></span>K
</kbd>
</Button>
</DialogTrigger>
<DialogContent className="max-h-[640px] overflow-hidden overflow-y-auto p-0 scrollbar-hide">
<DialogContent className="scrollbar-hide max-h-[640px] overflow-hidden overflow-y-auto p-0">
<AlgoliaSearchLink />
</DialogContent>
</Dialog>
Expand Down
4 changes: 2 additions & 2 deletions components/ui/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Card = React.forwardRef<
<div
ref={ref}
className={cn(
"bg-card text-card-foreground rounded-lg border shadow-sm",
"rounded-lg border bg-card text-card-foreground shadow-sm",
className
)}
{...props}
Expand Down Expand Up @@ -50,7 +50,7 @@ const CardDescription = React.forwardRef<
>(({ className, ...props }, ref) => (
<p
ref={ref}
className={cn("text-muted-foreground text-sm", className)}
className={cn("text-sm text-muted-foreground", className)}
{...props}
/>
))
Expand Down
2 changes: 1 addition & 1 deletion components/ui/skeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Skeleton({
}: React.HTMLAttributes<HTMLDivElement>) {
return (
<div
className={cn("bg-muted animate-pulse rounded-md", className)}
className={cn("animate-pulse rounded-md bg-muted", className)}
{...props}
/>
)
Expand Down
58 changes: 0 additions & 58 deletions constants 2/languages.js

This file was deleted.

3 changes: 0 additions & 3 deletions constants 2/nbr-codes.js

This file was deleted.

1 change: 0 additions & 1 deletion constants 2/super-admin.js

This file was deleted.

41 changes: 0 additions & 41 deletions constants 2/supports.js

This file was deleted.

1 change: 0 additions & 1 deletion pages/changelog.mdx

This file was deleted.

4 changes: 4 additions & 0 deletions pages/form/view/[form]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ export default function FormViewPage() {
})
}

if (dataForm?.data?.redirectOnCompletion && isSuccessUpdateForm) {
window.location.href = dataForm.data.redirectOnCompletion
}

return (
<Layout>
<Head>
Expand Down

1 comment on commit c68e6ce

@vercel
Copy link

@vercel vercel bot commented on c68e6ce Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sharuco – ./

sharuco-ln-dev7.vercel.app
sharuco-git-master-ln-dev7.vercel.app
sharuco.lndev.me

Please sign in to comment.