-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: whats new * update apps/web/src/components/Home/Popping/index.tsx * feat: scroll * update LiveStreamCard.tsx, trimLensHandle.ts and packages/helpers/generic/index.ts * update 6 files * update 6 files * update ZoraNft.tsx * update Metadata.tsx and ZoraNft.tsx * update ZoraNft.tsx * update LiveStreamCard.tsx, ZoraNft.tsx, UnlonelyStreams.tsx and useDid.ts * update apps/web/src/components/Stream/index.tsx * update 5 files * style: format code with Prettier This commit fixes the style issues introduced in 98b2105 according to the output from Prettier. Details: #1063 * update 5 files * update Collect.tsx, ZoraNft.tsx, UnlonelyStreams.tsx and WhatsPoppingSectionShimmer.tsx * chore: i18n * build(deps): update yarn.lock * update 6 files * update 13 files * build(deps): update package.json and yarn.lock * Merge branch 'main' into streams * style: format code with Prettier This commit fixes the style issues introduced in 795475f according to the output from Prettier. Details: #1063 * update messages.po * update messages.po, messages.po, messages.po and messages.po * update Feed.tsx and TimelineShimmer.tsx * update Collect.tsx, Metadata.tsx and apps/web/src/components/Home/Popping/index.tsx * update LiveVideo.tsx and apps/web/src/components/Stream/index.tsx * update apps/web/src/components/Home/Popping/index.tsx * update apps/web/src/components/Home/Popping/index.tsx, apps/web/src/components/Stream/index.tsx and general.ts * delete 5 files * update apps/web/src/components/Stream/index.tsx * chore: i18n * chore: i18n * update Metadata.tsx and ZoraNft.tsx * update Collect.tsx * update SignInWithQR.tsx, general.ts and wrangler.toml --------- Co-authored-by: Sasi <me@sasi.codes> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
- Loading branch information
1 parent
6b2f980
commit 8c2badd
Showing
39 changed files
with
5,861 additions
and
5,119 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
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 |
---|---|---|
@@ -1,11 +1,20 @@ | ||
/** @type {import('@lingui/conf').LinguiConfig} */ | ||
module.exports = { | ||
locales: ['en', 'es', 'fr', 'zh'], | ||
sourceLocale: 'en', | ||
catalogs: [ | ||
{ | ||
path: 'src/locales/{locale}/messages', | ||
include: ['src'] | ||
} | ||
], | ||
format: 'po' | ||
orderBy: 'origin', | ||
format: 'po', | ||
fallbackLocales: { | ||
default: 'en' | ||
}, | ||
formatOptions: { | ||
origins: true, | ||
lineNumbers: false | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
import { getShortHandTime } from '@lib/formatTime' | ||
import { FALLBACK_COVER_URL } from '@tape.xyz/constants' | ||
import { | ||
getRandomProfilePicture, | ||
trimLensHandle, | ||
useDid | ||
} from '@tape.xyz/generic' | ||
import Link from 'next/link' | ||
import type { FC, ReactNode } from 'react' | ||
import React from 'react' | ||
|
||
type Props = { | ||
name: string | ||
description: string | ||
thumbnailUrl: string | ||
isLive: boolean | ||
address: string | ||
username: string | ||
createdAt: string | ||
slug: string | ||
app: ReactNode | ||
} | ||
|
||
const LiveStreamCard: FC<Props> = ({ | ||
name, | ||
description, | ||
thumbnailUrl, | ||
address, | ||
isLive, | ||
createdAt, | ||
username, | ||
app, | ||
slug | ||
}) => { | ||
const { did } = useDid({ address, enabled: Boolean(address) }) | ||
|
||
return ( | ||
<div className="w-72"> | ||
<Link href={`/stream/${slug}`}> | ||
<div className="aspect-w-16 aspect-h-9 relative overflow-hidden"> | ||
<img | ||
src={thumbnailUrl} | ||
className="h-full w-full rounded-xl bg-gray-100 object-cover object-center dark:bg-gray-900 lg:h-full lg:w-full" | ||
alt="thumbnail" | ||
draggable={false} | ||
onError={({ currentTarget }) => { | ||
currentTarget.src = FALLBACK_COVER_URL | ||
}} | ||
/> | ||
{isLive && ( | ||
<div> | ||
<span className="absolute bottom-1 right-1 rounded-xl bg-red-500 px-2 text-sm font-semibold text-white"> | ||
Live | ||
</span> | ||
</div> | ||
)} | ||
</div> | ||
</Link> | ||
<div className="py-1"> | ||
<div className="flex items-start space-x-2.5"> | ||
<img | ||
className="mt-1 h-8 w-8 rounded-full" | ||
src={getRandomProfilePicture(address ?? '')} | ||
alt={username} | ||
draggable={false} | ||
/> | ||
<div className="grid flex-1"> | ||
<div className="flex w-full min-w-0 items-start justify-between space-x-1.5"> | ||
<div className="ultrawide:line-clamp-1 ultrawide:break-all line-clamp-2 break-words font-semibold"> | ||
{name} | ||
</div> | ||
</div> | ||
<p className="line-clamp-1">{description}</p> | ||
<div className="flex items-center overflow-hidden text-xs opacity-70"> | ||
<span>{trimLensHandle(did) ?? username}</span> | ||
<span className="middot" /> | ||
{app} | ||
<span className="middot" /> | ||
{createdAt && ( | ||
<span className="whitespace-nowrap"> | ||
{getShortHandTime(createdAt)} | ||
</span> | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default LiveStreamCard |
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
Oops, something went wrong.
8c2badd
There was a problem hiding this comment.
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:
web – ./apps/web
web-git-main-tapexyz.vercel.app
www.tape.xyz
tape.xyz
web-tapexyz.vercel.app
8c2badd
There was a problem hiding this comment.
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:
api – ./apps/api
api-tapexyz.vercel.app
api-git-main-tapexyz.vercel.app
api.tape.xyz
api.lenstube.xyz
8c2badd
There was a problem hiding this comment.
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:
embed – ./apps/embed
embed-tapexyz.vercel.app
embed-git-main-tapexyz.vercel.app
embed.lenstube.xyz
embed.tape.xyz