mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-27 09:57:44 +02:00
style: auto-format codebase with Prettier
Applied formatting to 1487+ files using pnpm format:write - TypeScript/JavaScript files - Svelte components - Astro pages - JSON configs - Markdown docs 13 files still need manual review (Astro JSX comments)
This commit is contained in:
parent
0241f5554c
commit
d36b321d9d
3952 changed files with 661498 additions and 739751 deletions
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"name": "@presi/shared",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"main": "./src/index.ts",
|
||||
"types": "./src/index.ts",
|
||||
"scripts": {
|
||||
"type-check": "tsc --noEmit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.7.2"
|
||||
}
|
||||
"name": "@presi/shared",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"main": "./src/index.ts",
|
||||
"types": "./src/index.ts",
|
||||
"scripts": {
|
||||
"type-check": "tsc --noEmit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.7.2"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,86 +3,86 @@
|
|||
*/
|
||||
|
||||
export interface Deck {
|
||||
id: string;
|
||||
userId: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
themeId?: string;
|
||||
isPublic: boolean;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
id: string;
|
||||
userId: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
themeId?: string;
|
||||
isPublic: boolean;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface Slide {
|
||||
id: string;
|
||||
deckId: string;
|
||||
order: number;
|
||||
content: SlideContent;
|
||||
createdAt: string;
|
||||
id: string;
|
||||
deckId: string;
|
||||
order: number;
|
||||
content: SlideContent;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface SlideContent {
|
||||
type: 'title' | 'content' | 'image' | 'split';
|
||||
title?: string;
|
||||
subtitle?: string;
|
||||
body?: string;
|
||||
imageUrl?: string;
|
||||
bulletPoints?: string[];
|
||||
type: 'title' | 'content' | 'image' | 'split';
|
||||
title?: string;
|
||||
subtitle?: string;
|
||||
body?: string;
|
||||
imageUrl?: string;
|
||||
bulletPoints?: string[];
|
||||
}
|
||||
|
||||
export interface Theme {
|
||||
id: string;
|
||||
name: string;
|
||||
colors: ThemeColors;
|
||||
fonts: ThemeFonts;
|
||||
isDefault: boolean;
|
||||
id: string;
|
||||
name: string;
|
||||
colors: ThemeColors;
|
||||
fonts: ThemeFonts;
|
||||
isDefault: boolean;
|
||||
}
|
||||
|
||||
export interface ThemeColors {
|
||||
primary: string;
|
||||
secondary: string;
|
||||
background: string;
|
||||
text: string;
|
||||
accent: string;
|
||||
primary: string;
|
||||
secondary: string;
|
||||
background: string;
|
||||
text: string;
|
||||
accent: string;
|
||||
}
|
||||
|
||||
export interface ThemeFonts {
|
||||
heading: string;
|
||||
body: string;
|
||||
heading: string;
|
||||
body: string;
|
||||
}
|
||||
|
||||
export interface SharedDeck {
|
||||
id: string;
|
||||
deckId: string;
|
||||
shareCode: string;
|
||||
expiresAt?: string;
|
||||
createdAt: string;
|
||||
id: string;
|
||||
deckId: string;
|
||||
shareCode: string;
|
||||
expiresAt?: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
// DTOs
|
||||
export interface CreateDeckDto {
|
||||
title: string;
|
||||
description?: string;
|
||||
themeId?: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
themeId?: string;
|
||||
}
|
||||
|
||||
export interface UpdateDeckDto {
|
||||
title?: string;
|
||||
description?: string;
|
||||
themeId?: string;
|
||||
isPublic?: boolean;
|
||||
title?: string;
|
||||
description?: string;
|
||||
themeId?: string;
|
||||
isPublic?: boolean;
|
||||
}
|
||||
|
||||
export interface CreateSlideDto {
|
||||
content: SlideContent;
|
||||
order?: number;
|
||||
content: SlideContent;
|
||||
order?: number;
|
||||
}
|
||||
|
||||
export interface UpdateSlideDto {
|
||||
content?: SlideContent;
|
||||
order?: number;
|
||||
content?: SlideContent;
|
||||
order?: number;
|
||||
}
|
||||
|
||||
export interface ReorderSlidesDto {
|
||||
slides: { id: string; order: number }[];
|
||||
slides: { id: string; order: number }[];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"outDir": "./dist"
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"outDir": "./dist"
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue