feat: 앱 계정 레벨 — 하루 출석 각, 아바타 Lv 표시, 내 정보 레벨 카드, 내 레벨·레벨업 창, 공유하면 하루 한 번 각, 각을 주는 일 뒤 레벨 다시 받기. 아이콘 목록을 웹 아이콘 전부로 (GA sheet_open level·levelUp)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
01b5f917b9
commit
e40a9a0539
16 files changed
+360
-19
No files matched your search
@@ -15,7 +15,7 @@ import { slideBg, SlideView, type Slide } from '@/components/post/slides';
|
||||
import { Ic, Skel } from '@/components/ui';
|
||||
import { track } from '@/lib/analytics';
|
||||
import { useSheet } from '@/lib/sheet';
|
||||
import { shareView } from '@/lib/share-image';
|
||||
import { useShare } from '@/lib/share-image';
|
||||
import { SITE_URL } from '@/lib/site';
|
||||
|
||||
const ACCOUNTS: Partial<Record<PostType, readonly [string, string]>> = {
|
||||
@@ -133,6 +133,7 @@ function FullCard({ post }: PostProps) {
|
||||
const comments = () => open({ type: 'comments', postId: post.post_id });
|
||||
const shot = useRef<View>(null);
|
||||
// 지금 보고 있는 슬라이드를 이미지로
|
||||
const shareView = useShare();
|
||||
const share = () => void shareView(shot, { title: post.title, message: `${post.title} · 날씨각 ${SITE_URL}` });
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -10,7 +10,7 @@ import { Text } from '@/components/text';
|
||||
import { Ic } from '@/components/ui';
|
||||
import { usePinnedLike } from '@/lib/pinned-like';
|
||||
import { useSheet } from '@/lib/sheet';
|
||||
import { shareView } from '@/lib/share-image';
|
||||
import { useShare } from '@/lib/share-image';
|
||||
import { SITE_URL } from '@/lib/site';
|
||||
|
||||
type Props = { title: string; account: string; avatar: string; caption?: string; more?: ReactNode; pinned?: { key: PinnedKey; post?: PostReaction | null }; children: ReactNode };
|
||||
@@ -22,6 +22,7 @@ export function PostFrame({ title, account, avatar, caption, more, pinned, child
|
||||
const like = usePinnedLike(pinned?.key ?? 'gak_post', pinned?.post);
|
||||
const postId = pinned?.post?.post_id;
|
||||
const shot = useRef<View>(null);
|
||||
const shareView = useShare();
|
||||
const share = () => void shareView(shot, { title, message: `${title} · 날씨각 ${SITE_URL}` });
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user