Initial commit: Expo app with Better Auth integration

- Complete Expo React Native app setup with TypeScript
- Better Auth authentication system integration
- Secure storage implementation for session tokens
- Authentication flow with login/logout functionality
- API client configuration for backend communication
- Responsive UI components with themed styling
- Expo Router navigation setup
- Development configuration and scripts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
imeepos
2025-10-14 10:32:52 +08:00
commit 7e3f94bae3
71 changed files with 20800 additions and 0 deletions

55
lib/types/template.ts Normal file
View File

@@ -0,0 +1,55 @@
export interface Category {
id: string;
name: string;
nameEn: string;
createdAt: string;
updatedAt: string;
}
export interface Tag {
id: string;
name: string;
nameEn: string;
description: string;
descriptionEn: string;
createdAt: string;
updatedAt: string;
}
export interface Template {
id: string;
title: string;
titleEn: string;
description: string;
descriptionEn: string;
coverImageUrl: string;
previewUrl: string;
aspectRatio: string;
userId: string;
categoryId: string;
content?: unknown;
formSchema?: unknown;
status: string;
createdAt: string;
updatedAt: string;
category: Category | null;
tags: Tag[];
}
export interface PaginationMeta {
page: number;
size: number;
total: number;
totalPages: number;
}
export interface TemplatesResponse {
success: boolean;
data: Template[];
pagination: PaginationMeta;
}
export interface TemplateResponse {
success: boolean;
data: Template;
}