Frontend uudelleenrakennettu: Astro-komponentit, Wasm pääsäikeessä, ei Workeria
Vanha frontend siirretty temp/. Uusi rakenne: - StatusBar.astro, Terminal.astro, Editor.astro, Guide.astro - global.css erillinen - Wasm pääsäikeessä (ei Worker — yksinkertainen, debugattava) - Tab-completion, dropdown, projektikortti, Monaco, GUIDE.md - Ei tokenisointia eikä koodilaboratoriota Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
17
network-poc/frontend/node_modules/@astrojs/prism/Prism.astro
generated
vendored
Normal file
17
network-poc/frontend/node_modules/@astrojs/prism/Prism.astro
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
import { runHighlighterWithAstro } from './dist/highlighter';
|
||||
|
||||
interface Props {
|
||||
class?: string;
|
||||
lang?: string;
|
||||
code: string;
|
||||
}
|
||||
|
||||
const { class: className, lang, code } = Astro.props as Props;
|
||||
const { classLanguage, html } = runHighlighterWithAstro(lang, code);
|
||||
---
|
||||
|
||||
<pre
|
||||
class={[className, classLanguage]
|
||||
.filter(Boolean)
|
||||
.join(' ')}><code class={classLanguage} set:html={html} /></pre>
|
||||
Reference in New Issue
Block a user