--- // src/pages/contribute/knowledgebase.astro - SIMPLIFIED: Issues only, minimal validation import BaseLayout from '../../layouts/BaseLayout.astro'; import { withAuth } from '../../utils/auth.js'; import { getToolsData } from '../../utils/dataService.js'; export const prerender = false; // Check authentication const authResult = await withAuth(Astro); if (authResult instanceof Response) { return authResult; } const { authenticated, userEmail, userId } = authResult; // Load tools for reference (optional dropdown) const data = await getToolsData(); const sortedTools = data.tools.sort((a: any, b: any) => a.name.localeCompare(b.name)); --- Submit Knowledge Base Article Share documentation, tutorials, or insights about DFIR tools and methods. Your contribution will be submitted as an issue for maintainer review. {userEmail && Submitting as: {userEmail}} Basic Information Related Tool (Optional) Select a tool... {sortedTools.map(tool => ( {tool.name} ({tool.type}) ))} Difficulty Level (Optional) Select difficulty... Novice Beginner Intermediate Advanced Expert Article Title (Optional) Description (Optional) Content Article Content (Optional) External Link (Optional) Upload Files Documents, Images, Videos (Optional) Click to select files or drag & drop PDFs, documents, images, archives, etc. Selected Files Additional Information Categories (Optional) Comma-separated categories Tags (Optional) Comma-separated tags Reason for Contribution (Optional) Cancel Submit Article ⏳ ✅ Article Submitted! Your knowledge‑base article has been submitted as an issue for review by maintainers. View Issue Back to Home
Share documentation, tutorials, or insights about DFIR tools and methods. Your contribution will be submitted as an issue for maintainer review.
Submitting as: {userEmail}
Click to select files or drag & drop
Your knowledge‑base article has been submitted as an issue for review by maintainers.