Skip to content

Commit 82640e5

Browse files
committed
precommit-fixes
1 parent 4dfeea4 commit 82640e5

File tree

96 files changed

+51
-141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+51
-141
lines changed

apps/mongostory/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ yarn-error.log*
3131

3232
# typescript
3333
*.tsbuildinfo
34-
next-env.d.ts
34+
next-env.d.ts

apps/mongostory/README.md

+14-14

apps/mongostory/app/api/analytics/page-view/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ export async function POST(req: Request) {
5151
return NextResponse.json({ error: "Failed to record page view" }, { status: 500 })
5252
}
5353
}
54-

apps/mongostory/app/api/analytics/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,3 @@ export async function GET(req: Request) {
206206
)
207207
}
208208
}
209-

apps/mongostory/app/api/analytics/session/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ export async function POST(req: Request) {
3838
return NextResponse.json({ error: "Failed to record session" }, { status: 500 })
3939
}
4040
}
41-

apps/mongostory/app/api/analyze/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ export async function POST(req: Request) {
2323
return NextResponse.json({ error: errorMessage }, { status: 500 })
2424
}
2525
}
26-

apps/mongostory/app/api/auth/login/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,3 @@ export async function POST(request: Request) {
8686
return NextResponse.json({ error: "An error occurred during login" }, { status: 500 })
8787
}
8888
}
89-

apps/mongostory/app/api/auth/logout/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ export async function POST() {
1212

1313
return response
1414
}
15-

apps/mongostory/app/api/auth/me/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ export async function GET() {
5757
return NextResponse.json({ error: "Unauthorized" }, { status: 401 })
5858
}
5959
}
60-

apps/mongostory/app/api/auth/register/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ export async function POST(request: Request) {
5151
return NextResponse.json({ error: "An error occurred during registration" }, { status: 500 })
5252
}
5353
}
54-

apps/mongostory/app/api/clusters/regenerate/route.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ async function generateClusterLabel(keywords: string[], contentSamples: string[]
135135
const { text } = await generateText({
136136
model,
137137
prompt: `Generate a concise, descriptive label (3-5 words) for a content cluster with these keywords: ${keywords.join(", ")}.
138-
138+
139139
Sample content from this cluster:
140140
${contentSample}
141141
@@ -151,4 +151,3 @@ Return ONLY the label, nothing else.`,
151151
return `${label.charAt(0).toUpperCase() + label.slice(1)} Cluster`
152152
}
153153
}
154-

apps/mongostory/app/api/clusters/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,3 @@ export async function GET(req: Request) {
4141
return NextResponse.json({ error: "Failed to get clusters" }, { status: 500 })
4242
}
4343
}
44-

apps/mongostory/app/api/content/[id]/ai-revise/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,3 @@ Provide only the new title, nothing else.`,
111111
)
112112
}
113113
}
114-

apps/mongostory/app/api/content/[id]/publish/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ export async function POST(req: Request, { params }: { params: { id: string } })
3838
return NextResponse.json({ error: "Failed to update content status" }, { status: 500 })
3939
}
4040
}
41-

apps/mongostory/app/api/content/[id]/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,3 @@ export async function DELETE(req: Request, { params }: { params: { id: string }
8282
return NextResponse.json({ error: "Failed to delete content" }, { status: 500 })
8383
}
8484
}
85-

apps/mongostory/app/api/content/[id]/translate/route.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export async function POST(req: Request, { params }: { params: { id: string } })
4141
const { text: translatedTitle } = await generateText({
4242
model,
4343
prompt: `Translate the following title to ${SUPPORTED_LANGUAGES[targetLanguage]}:
44-
44+
4545
Original: ${content.title}
4646
4747
Provide ONLY the translated text, nothing else.`,
@@ -50,7 +50,7 @@ Provide ONLY the translated text, nothing else.`,
5050
// Translate content
5151
const { text: translatedContent } = await generateText({
5252
model,
53-
prompt: `Translate the following content to ${SUPPORTED_LANGUAGES[targetLanguage]}.
53+
prompt: `Translate the following content to ${SUPPORTED_LANGUAGES[targetLanguage]}.
5454
Maintain all markdown formatting:
5555
5656
Original:
@@ -89,4 +89,3 @@ Provide ONLY the translated text, nothing else.`,
8989
)
9090
}
9191
}
92-

apps/mongostory/app/api/content/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,3 @@ export async function POST(req: Request) {
4040
return NextResponse.json({ error: "Failed to create content" }, { status: 500 })
4141
}
4242
}
43-

apps/mongostory/app/api/content/semantic-search/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,3 @@ export async function POST(req: Request) {
4848
return NextResponse.json({ error: "Failed to perform semantic search" }, { status: 500 })
4949
}
5050
}
51-

apps/mongostory/app/api/generate-content/route.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export async function POST(req: Request) {
4545
// Generate title with a specific prompt for concise titles
4646
const { text: titleResponse } = await generateText({
4747
model,
48-
prompt: `Create a concise, engaging title (maximum 60 characters) for an article about ${topic}.
48+
prompt: `Create a concise, engaging title (maximum 60 characters) for an article about ${topic}.
4949
The title should be appropriate for ${expertiseLevel} level readers.
5050
Return ONLY the title, nothing else.
5151
@@ -63,14 +63,14 @@ Generate title:`,
6363
model,
6464
prompt: `Write a comprehensive article in markdown format about ${topic}.
6565
${expertiseLevelPrompts[expertiseLevel as ExpertiseLevel]}
66-
66+
6767
Include the following sections:
6868
- Introduction
6969
- Main concepts
7070
- Practical examples
7171
- Best practices
7272
- Conclusion
73-
73+
7474
Make sure to use proper markdown formatting with headings, lists, code blocks where appropriate, and emphasis.`,
7575
})
7676

@@ -87,4 +87,3 @@ Generate title:`,
8787
return NextResponse.json({ error: "Failed to generate content" }, { status: 500 })
8888
}
8989
}
90-

apps/mongostory/app/api/generate-social-post/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ export async function POST(req: Request) {
2020
return NextResponse.json({ error: "Failed to generate social media post" }, { status: 500 })
2121
}
2222
}
23-

apps/mongostory/app/api/generate/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ export async function POST(req: Request) {
5050
return NextResponse.json({ error: "Failed to generate AI content" }, { status: 500 })
5151
}
5252
}
53-

apps/mongostory/app/api/mongodb-playground/route.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function POST(req: Request) {
1515
const db = client.db("mongostory")
1616

1717
// Execute the query in a safe sandbox environment
18-
const result = await eval(`(async () => {
18+
const result = await eval(`(async () => {
1919
const db = client.db("mongostory")
2020
return ${query}
2121
})()`)
@@ -35,4 +35,3 @@ export async function POST(req: Request) {
3535
)
3636
}
3737
}
38-

apps/mongostory/app/api/settings/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,3 @@ export async function POST(req: Request) {
7272
return NextResponse.json({ error: "Failed to update settings" }, { status: 500 })
7373
}
7474
}
75-

apps/mongostory/app/api/social-media-posts/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,3 @@ export async function GET(req: Request) {
4848
return NextResponse.json({ error: "Failed to fetch social media posts" }, { status: 500 })
4949
}
5050
}
51-

apps/mongostory/app/api/user/profile/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,3 @@ export async function PUT(request: Request) {
130130
return NextResponse.json({ error: "Failed to update profile" }, { status: 500 })
131131
}
132132
}
133-

apps/mongostory/app/content/[id]/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,3 @@ export default async function ContentPage({ params, searchParams }: ContentPageP
9797
</article>
9898
)
9999
}
100-

apps/mongostory/app/dashboard/analytics/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,3 @@ export default function AnalyticsPage() {
191191
</div>
192192
)
193193
}
194-

apps/mongostory/app/dashboard/content-intelligence/loading.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,3 @@ export default function Loading() {
4040
</div>
4141
)
4242
}
43-

apps/mongostory/app/dashboard/content-intelligence/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -496,4 +496,3 @@ export default function ContentIntelligencePage() {
496496
</div>
497497
)
498498
}
499-

apps/mongostory/app/dashboard/content/analysis-comparison-dialog.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -260,4 +260,3 @@ export function AnalysisComparisonDialog({
260260
</Dialog>
261261
)
262262
}
263-

apps/mongostory/app/dashboard/content/layout.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ export default function ContentLayout({
66
}) {
77
return children
88
}
9-

apps/mongostory/app/dashboard/content/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -325,4 +325,3 @@ export default function ContentPage() {
325325
</div>
326326
)
327327
}
328-

apps/mongostory/app/dashboard/layout.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ export default function DashboardLayout({
1515
</div>
1616
)
1717
}
18-

apps/mongostory/app/dashboard/mongodb-schema/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ export default function MongoDBSchemaPage() {
2626
</div>
2727
)
2828
}
29-

apps/mongostory/app/dashboard/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,3 @@ export default function DashboardPage() {
184184
</div>
185185
)
186186
}
187-

apps/mongostory/app/dashboard/settings/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,3 @@ export default function SettingsPage() {
241241
</div>
242242
)
243243
}
244-

apps/mongostory/app/globals.css

-1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,3 @@
6666
font-size: 1.125rem;
6767
}
6868
}
69-

apps/mongostory/app/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ export default function RootLayout({
2828

2929

3030

31-
import './globals.css'
31+
import './globals.css'

apps/mongostory/app/loading.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export default function Loading() {
22
return null
33
}
4-

apps/mongostory/app/login/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ export default function LoginPage() {
2222
</div>
2323
)
2424
}
25-

apps/mongostory/app/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,3 @@ function FeatureCard({ icon, title, description, onClick }) {
199199
</div>
200200
)
201201
}
202-

apps/mongostory/app/profile/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -278,4 +278,3 @@ export default function ProfilePage() {
278278
</div>
279279
)
280280
}
281-

apps/mongostory/app/register/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ export default function RegisterPage() {
2222
</div>
2323
)
2424
}
25-

apps/mongostory/components.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"hooks": "@/hooks"
1919
},
2020
"iconLibrary": "lucide"
21-
}
21+
}

apps/mongostory/components/analysis-comparison-dialog.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,3 @@ export function AnalysisComparisonDialog({
277277
</Dialog>
278278
)
279279
}
280-

apps/mongostory/components/auth/login-form.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,3 @@ export function LoginForm() {
9292
</Card>
9393
)
9494
}
95-

apps/mongostory/components/auth/register-form.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,3 @@ export function RegisterForm() {
108108
</Card>
109109
)
110110
}
111-

apps/mongostory/components/bottom-navigation.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,3 @@ export function BottomNavigation() {
6161
</div>
6262
)
6363
}
64-

apps/mongostory/components/code-block.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ export function CodeBlock({ code, className }: CodeBlockProps) {
3232
</div>
3333
)
3434
}
35-

0 commit comments

Comments
 (0)