generated from OneFineStarstuff/AGI-Pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Genspark ai developer #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d454d20
feat(privacy,safety,telemetry): add consent ledger API (hash-chained)…
fea6321
feat(risk): add /risk page embedding interactive AI Risk Matrix and G…
540eac6
docs(gov): add capacity-aware roadmap, glossary mapping, readiness ch…
96b5edf
feat(governance): capability matrix UI reading data/maturity.json; do…
e0b9110
Merge branch 'main' into genspark_ai_developer
gstraccini[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import { NextRequest } from 'next/server'; | ||
| import { appendConsentEvent, exportConsent } from '@/lib/privacy/consentLedger'; | ||
|
|
||
| export const runtime = 'nodejs'; | ||
|
|
||
| export async function POST(req: NextRequest) { | ||
| const { userId = 'demo', sessionId, action } = await req.json(); | ||
| if (!['persist_on','persist_off','export'].includes(action)) return new Response('bad action', { status: 400 }); | ||
| const ev = await appendConsentEvent({ userId, sessionId, action, ts: new Date().toISOString() as any }); | ||
| return Response.json(ev); | ||
| } | ||
|
|
||
| export async function GET(req: NextRequest) { | ||
| const { searchParams } = new URL(req.url); | ||
| const userId = searchParams.get('userId') ?? 'demo'; | ||
| const data = await exportConsent(userId); | ||
| return Response.json(data); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| export const runtime = 'nodejs'; | ||
| export async function GET() { | ||
| // Mock time-series risk per layer: core/operational/context | ||
| const now = Date.now(); | ||
| const series = ['core','operational','context'].map((k, i) => ({ | ||
| key: k, | ||
| points: Array.from({ length: 12 }, (_, j) => ({ t: now - (11 - j) * 3600_000, v: clamp(0, 100, 30 + i*20 + Math.sin(j/2+i)*15 + Math.random()*10) })) | ||
| })); | ||
| return Response.json({ series }); | ||
| } | ||
| function clamp(min:number,max:number,v:number){return Math.max(min,Math.min(max,v));} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { readFileSync } from 'fs'; | ||
| import path from 'path'; | ||
| export const dynamic = 'force-static'; | ||
| export default function Page() { | ||
| const md = readFileSync(path.join(process.cwd(), 'next-app', 'docs', 'governance-terms-mapping.md'), 'utf8'); | ||
| return <pre className="whitespace-pre-wrap text-sm">{md}</pre>; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { readFileSync } from 'fs'; | ||
| import path from 'path'; | ||
| export const dynamic = 'force-static'; | ||
| export default function Page() { | ||
| const md = readFileSync(path.join(process.cwd(), 'next-app', 'docs', 'readiness-checklist.md'), 'utf8'); | ||
| return <pre className="whitespace-pre-wrap text-sm">{md}</pre>; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { readFileSync } from 'fs'; | ||
| import path from 'path'; | ||
| export const dynamic = 'force-static'; | ||
| export default function Page() { | ||
| const md = readFileSync(path.join(process.cwd(), 'next-app', 'docs', 'roadmap.md'), 'utf8'); | ||
| return <pre className="whitespace-pre-wrap text-sm">{md}</pre>; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { readFileSync } from 'fs'; | ||
| import path from 'path'; | ||
| export const dynamic = 'force-static'; | ||
| export default function Page() { | ||
| const md = readFileSync(path.join(process.cwd(), 'next-app', 'docs', 'strategy-map.md'), 'utf8'); | ||
| return <pre className="whitespace-pre-wrap text-sm">{md}</pre>; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| import { readFileSync } from 'fs'; | ||
| import path from 'path'; | ||
|
|
||
| export const metadata = { title: 'Governance Capability Matrix' } as const; | ||
| export const dynamic = 'force-static'; | ||
|
|
||
| type Dimension = { | ||
| id: string; | ||
| name: string; | ||
| phase: string; | ||
| score: number; // 0-5 | ||
| evidence: string[]; | ||
| gaps: string[]; | ||
| remediation: string[]; | ||
| links?: Record<string, string>; | ||
| }; | ||
|
|
||
| type Maturity = { dimensions: Dimension[] }; | ||
|
|
||
| function gateText(score: number) { | ||
| if (score < 2) return { label: 'Do not advance', color: '#dc2626', note: 'Address gaps before proceeding' }; | ||
| if (score < 4) return { label: 'Proceed with guardrails', color: '#f59e0b', note: 'Monitor and document mitigations' }; | ||
| return { label: 'Clear to advance', color: '#16a34a', note: 'Maintain controls and evidence' }; | ||
| } | ||
|
|
||
| function scoreColor(score: number) { | ||
| if (score <= 1) return '#b91c1c'; | ||
| if (score === 2) return '#e11d48'; | ||
| if (score === 3) return '#f59e0b'; | ||
| if (score === 4) return '#10b981'; | ||
| return '#059669'; | ||
| } | ||
|
|
||
| export default function Page() { | ||
| const file = path.join(process.cwd(), 'next-app', 'data', 'maturity.json'); | ||
| const data: Maturity = JSON.parse(readFileSync(file, 'utf8')); | ||
| return ( | ||
| <main className="space-y-4"> | ||
| <h1 className="text-2xl font-semibold">Governance Capability Matrix</h1> | ||
| <p className="text-sm text-slate-600">Scores (0–5), evidence, gaps, remediation and gating guidance per dimension.</p> | ||
|
|
||
| <div className="grid gap-4 md:grid-cols-2 xl:grid-cols-3"> | ||
| {data.dimensions.map((d) => { | ||
| const gate = gateText(d.score); | ||
| return ( | ||
| <section key={d.id} className="rounded border bg-white p-4 shadow-sm"> | ||
| <header className="mb-2 flex items-center justify-between"> | ||
| <div> | ||
| <div className="text-base font-semibold text-slate-800">{d.name}</div> | ||
| <div className="text-xs text-slate-500">Phase: {d.phase}</div> | ||
| </div> | ||
| <div className="text-right"> | ||
| <span className="inline-flex items-center gap-1 rounded border px-2 py-0.5 text-xs" style={{ borderColor: scoreColor(d.score), color: scoreColor(d.score) }}> | ||
| Score <strong className="ml-1">{d.score}</strong> | ||
| </span> | ||
| <div className="mt-1 text-xs" style={{ color: gate.color }}>{gate.label}</div> | ||
| </div> | ||
| </header> | ||
|
|
||
| {d.evidence?.length ? ( | ||
| <div className="mb-2"> | ||
| <div className="mb-1 text-xs font-semibold text-slate-700">Evidence</div> | ||
| <ul className="list-disc pl-5 text-sm text-slate-700"> | ||
| {d.evidence.map((e, i) => (<li key={i}>{e}</li>))} | ||
| </ul> | ||
| </div> | ||
| ) : null} | ||
|
|
||
| {d.gaps?.length ? ( | ||
| <div className="mb-2"> | ||
| <div className="mb-1 text-xs font-semibold text-slate-700">Gaps</div> | ||
| <ul className="list-disc pl-5 text-sm text-slate-700"> | ||
| {d.gaps.map((g, i) => (<li key={i}>{g}</li>))} | ||
| </ul> | ||
| <div className="mt-2 rounded bg-red-50 p-2 text-xs text-red-700">{gate.note}</div> | ||
| </div> | ||
| ) : null} | ||
|
|
||
| {d.remediation?.length ? ( | ||
| <div className="mb-2"> | ||
| <div className="mb-1 text-xs font-semibold text-slate-700">Remediation</div> | ||
| <ul className="list-disc pl-5 text-sm text-slate-700"> | ||
| {d.remediation.map((r, i) => (<li key={i}>{r}</li>))} | ||
| </ul> | ||
| </div> | ||
| ) : null} | ||
|
|
||
| {d.links && Object.keys(d.links).length > 0 ? ( | ||
| <div className="mt-3 flex flex-wrap gap-2 text-xs"> | ||
| {Object.entries(d.links).map(([k, v]) => ( | ||
| <a key={k} href={v} className="rounded border border-amber-300 bg-amber-50 px-2 py-1 text-amber-800 underline"> | ||
| {k} | ||
| </a> | ||
| ))} | ||
| </div> | ||
| ) : null} | ||
| </section> | ||
| ); | ||
| })} | ||
| </div> | ||
| </main> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import Link from 'next/link'; | ||
|
|
||
| export const metadata = { title: 'Governance Cockpit' }; | ||
| export default function GovernancePage() { | ||
| return ( | ||
| <main className="space-y-4"> | ||
| <h1 className="text-2xl font-semibold">Governance Cockpit</h1> | ||
| <p className="text-sm text-slate-600">Board-ready artifact hub with live roadmap, mappings, and templates.</p> | ||
| <ul className="list-disc pl-6 text-amber-800"> | ||
| <li><Link href="/docs/roadmap" className="underline">Roadmap (capacity-aware)</Link></li> | ||
| <li><Link href="/docs/governance-terms-mapping" className="underline">Integrated 18‑Point Mapping</Link></li> | ||
| <li><Link href="/docs/readiness-checklist" className="underline">Implementation Readiness Checklist</Link></li> | ||
| <li><Link href="/templates/artefact-templates" className="underline">Governance Artefact Templates</Link></li> | ||
| <li><Link href="/governance/maturity" className="underline">Governance Capability Matrix</Link></li> | ||
| <li><Link href="/risk" className="underline">Interactive Risk & Governance Demos</Link></li> | ||
| </ul> | ||
| </main> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| export const metadata = { title: 'AI Risk Navigator' } as const; | ||
| import { PULSE_SCRIPT } from './pulse-script'; | ||
|
|
||
| export default function RiskPage() { | ||
| return ( | ||
| <main className="space-y-4"> | ||
| <h1 className="text-2xl font-semibold">Interactive 10-Stage AI Risk Matrix <span id="pulse" className="ml-2 text-xs text-slate-500"></span></h1> | ||
| <p className="text-sm text-slate-600">Filterable matrix and governance dashboard demos.</p> | ||
| <iframe id="riskFrame" srcDoc={RISK_HTML} className="h-[80vh] w-full rounded border" /> | ||
| <script dangerouslySetInnerHTML={{__html: PULSE_SCRIPT}} /> | ||
| </main> | ||
| ); | ||
| } | ||
|
|
||
| const RISK_HTML = `<!DOCTYPE html> | ||
| <html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <style>html,body{margin:0;padding:0}</style> | ||
| </head><body> | ||
| ${MATRIX_SECTION} | ||
| ${GOV_DASHBOARD} | ||
| <script>window.addEventListener('message',e=>{if(e.data&&e.data.type==='risk-pulse'){document.body.style.boxShadow='inset 0 0 0 3px rgba(234,179,8,.6)';setTimeout(()=>{document.body.style.boxShadow='none';},300);}})</script> | ||
| </body></html>`; | ||
|
|
||
| const MATRIX_SECTION = ` | ||
| <div style="padding:16px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);"> | ||
| <div style="background:rgba(255,255,255,0.95);backdrop-filter:blur(10px);border-radius:16px;padding:16px;max-width:1400px;margin:0 auto;"> | ||
| <h2 style="margin:0 0 8px 0;color:#2c3e50;font-size:20px;font-weight:600;text-align:center">Interactive Cross-Stage AI Risk Matrix</h2> | ||
| <div style="text-align:center;margin-bottom:8px"> | ||
| <button onclick="toggleColumn('persistent')" style="margin:0 4px;padding:6px 10px;border:none;border-radius:6px;background:#4a5568;color:#fff;cursor:pointer;font-size:12px">Toggle Persistent</button> | ||
| <button onclick="toggleColumn('evolving')" style="margin:0 4px;padding:6px 10px;border:none;border-radius:6px;background:#4a5568;color:#fff;cursor:pointer;font-size:12px">Toggle Evolving</button> | ||
| <button onclick="toggleColumn('emergent')" style="margin:0 4px;padding:6px 10px;border:none;border-radius:6px;background:#4a5568;color:#fff;cursor:pointer;font-size:12px">Toggle Emergent</button> | ||
| </div> | ||
| <table id="matrix" style="width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.1)"> | ||
| <thead> | ||
| <tr> | ||
| <th style="background:#1a202c;color:#fff;padding:10px;font-size:13px;border:1px solid #4a5568">Development Stage</th> | ||
| <th class="persistent" style="background:#1a202c;color:#fff;padding:10px;font-size:13px;border:1px solid #4a5568">Persistent Risks</th> | ||
| <th class="evolving" style="background:#1a202c;color:#fff;padding:10px;font-size:13px;border:1px solid #4a5568">Evolving Risks</th> | ||
| <th class="emergent" style="background:#1a202c;color:#fff;padding:10px;font-size:13px;border:1px solid #4a5568">Emergent Risks</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| ${[1,2,3,4,5,6,7,8,9,10].map(n=>`<tr> | ||
| <td style="padding:10px;border:1px solid #e2e8f0;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-weight:600">Stage ${n}</td> | ||
| <td class="persistent" style="padding:10px;border:1px solid #e2e8f0">Persistent risk ${n}</td> | ||
| <td class="evolving" style="padding:10px;border:1px solid #e2e8f0">Evolving risk ${n}</td> | ||
| <td class="emergent" style="padding:10px;border:1px solid #e2e8f0">Emergent risk ${n}</td> | ||
| </tr>`).join('')} | ||
| </tbody> | ||
| </table> | ||
| <div style="display:flex;gap:12px;justify-content:center;margin-top:8px;flex-wrap:wrap"> | ||
| <span style="display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.8);padding:6px 10px;border-radius:16px"><span style="width:14px;height:14px;background:#38b2ac;border-radius:3px"></span>Persistent</span> | ||
| <span style="display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.8);padding:6px 10px;border-radius:16px"><span style="width:14px;height:14px;background:#ed8936;border-radius:3px"></span>Evolving</span> | ||
| <span style="display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.8);padding:6px 10px;border-radius:16px"><span style="width:14px;height:14px;background:#d53f8c;border-radius:3px"></span>Emergent</span> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <script> | ||
| function toggleColumn(cls){ | ||
| const cells=[...document.querySelectorAll('#matrix .'+cls)]; | ||
| const isHidden=cells.every(td=>td.style.display==='none'); | ||
| cells.forEach(td=>td.style.display=isHidden?'table-cell':'none'); | ||
| } | ||
| </script> | ||
| `; | ||
|
|
||
| const GOV_DASHBOARD = ` | ||
| <div style="padding:16px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);"> | ||
| <div style="background:rgba(255,255,255,0.95);backdrop-filter:blur(10px);border-radius:16px;padding:16px;max-width:1400px;margin:12px auto;"> | ||
| <h2 style="margin:0 0 8px 0;color:#2c3e50;font-size:20px;font-weight:600;text-align:center">AGI/ASI Governance Dashboard (Lite)</h2> | ||
| <div id="status" style="text-align:center;color:#475569;font-size:13px;margin-bottom:8px">Design Phase Active • 4 checkpoints scheduled</div> | ||
| <div style="display:grid;grid-template-columns:1fr 340px;gap:16px"> | ||
| <div style="position:relative;min-height:360px;background:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.08);padding:16px"> | ||
| <div id="rings" style="position:relative;width:320px;height:320px;margin:0 auto"> | ||
| <div data-layer="context" style="position:absolute;top:4px;left:4px;width:312px;height:312px;border-radius:50%;border:3px solid #667eea;display:flex;align-items:center;justify-content:center;background:linear-gradient(45deg,#55a3ff,#667eea);color:#fff;font-weight:700">Context & Safeguards</div> | ||
| <div data-layer="operational" style="position:absolute;top:34px;left:34px;width:252px;height:252px;border-radius:50%;border:3px solid #0984e3;display:flex;align-items:center;justify-content:center;background:linear-gradient(45deg,#74b9ff,#0984e3);color:#fff;font-weight:700">Operational Framework</div> | ||
| <div data-layer="core" style="position:absolute;top:94px;left:94px;width:132px;height:132px;border-radius:50%;border:3px solid #ee5a24;display:flex;align-items:center;justify-content:center;background:linear-gradient(45deg,#ff6b6b,#ee5a24);color:#fff;font-weight:700">Core Elements</div> | ||
| </div> | ||
| </div> | ||
| <div style="background:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.08);padding:16px"> | ||
| <div style="font-size:14px;font-weight:700;margin-bottom:6px">Layer Detail</div> | ||
| <div id="layerTitle" style="font-size:13px;color:#334155;margin-bottom:6px">System Overview</div> | ||
| <div style="font-size:12px;color:#475569;margin-bottom:6px">Aggregated Risk: <span id="aggRisk" style="font-weight:700;color:#16a34a">Low</span></div> | ||
| <div style="font-size:12px;color:#475569;margin-bottom:6px">Governance: <span id="govBody">Safety Oversight Board</span></div> | ||
| <div style="display:flex;gap:8px;margin-top:8px"> | ||
| <button onclick="parent.postMessage({type:'risk-pulse'},'*')" style="flex:1;padding:8px 10px;border:none;border-radius:8px;background:#667eea;color:#fff;font-weight:600">Export Report</button> | ||
| <button onclick="parent.postMessage({type:'risk-pulse'},'*')" style="flex:1;padding:8px 10px;border:none;border-radius:8px;background:#764ba2;color:#fff;font-weight:600">Schedule Review</button> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <script> | ||
| const layerRisks={core:'Medium',operational:'Medium',context:'High'}; | ||
| const govBodies={core:'Model Review Board & Algorithm Ethics Panel',operational:'System Integration Board',context:'Safety Oversight Board'}; | ||
| document.querySelectorAll('#rings [data-layer]').forEach(el=>{ | ||
| el.addEventListener('click',()=>{ | ||
| const layer=el.getAttribute('data-layer'); | ||
| document.getElementById('layerTitle').textContent = layer.charAt(0).toUpperCase()+layer.slice(1)+' Layer'; | ||
| document.getElementById('aggRisk').textContent = layerRisks[layer]; | ||
| document.getElementById('aggRisk').style.color = layerRisks[layer]==='High'?'#e11d48':(layerRisks[layer]==='Medium'?'#f59e0b':'#16a34a'); | ||
| document.getElementById('govBody').textContent = govBodies[layer]; | ||
| }) | ||
| }) | ||
| </script> | ||
| `; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| export const PULSE_SCRIPT = ` | ||
| (async function(){ | ||
| const pulseEl = document.getElementById('pulse'); | ||
| async function tick(){ | ||
| try{ | ||
| const res = await fetch('/api/risk/scores'); | ||
| const json = await res.json(); | ||
| const ctx = json.series.find((s:any)=>s.key==='context'); | ||
| const last = ctx?.points?.[ctx.points.length-1]?.v ?? 0; | ||
| if(pulseEl){ pulseEl.textContent = 'Context risk: ' + Math.round(last); } | ||
| const iframe = document.getElementById('riskFrame') as HTMLIFrameElement | null; | ||
| iframe?.contentWindow?.postMessage({type:'risk-pulse'}, '*'); | ||
| }catch(e){ if(pulseEl) pulseEl.textContent = 'Risk: n/a'; } | ||
| setTimeout(tick, 6000); | ||
| } | ||
| tick(); | ||
| })(); | ||
| `; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { readFileSync } from 'fs'; | ||
| import path from 'path'; | ||
| export const dynamic = 'force-static'; | ||
| export default function Page() { | ||
| const md = readFileSync(path.join(process.cwd(), 'next-app', 'templates', 'artefact-templates.md'), 'utf8'); | ||
| return <pre className="whitespace-pre-wrap text-sm">{md}</pre>; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { readFileSync } from 'fs'; | ||
| import path from 'path'; | ||
| export const dynamic = 'force-static'; | ||
| export default function Page() { | ||
| const md = readFileSync(path.join(process.cwd(), 'next-app', 'templates', 'kpi-alignment.md'), 'utf8'); | ||
| return <pre className="whitespace-pre-wrap text-sm">{md}</pre>; | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.