Сообщение бесплатное
Прием сообщений ведущим доступен через telegram-бота.
Было бы вам удобно писать в эфир через бота в Telegram вместо сайта?
However, your query "pc book.in dita" is a bit ambiguous. Let me break down the most likely interpretations and give you a direction for each. 1. Most likely: You want to render DITA content inside a SolidJS app for a "PC Book" (a book about PCs / PC manual) If your goal is to load and display DITA topics ( .dita or .ditamap ) in a SolidJS component:
// Simple DITA-to-HTML converter (expand as needed) function convertDitaToHtml(xmlDoc: Document): string { const body = xmlDoc.querySelector("body"); if (!body) return "No DITA body found."; // Serialize with basic transformation (or use a library like dita-ot-js) return body.innerHTML; } pc book.in dita
export const DitaViewer = (props: { src: string }) => { const [data] = createResource(() => props.src, fetchDita); However, your query "pc book
export const PcBookFeature = () => { const [bookings] = createResource(fetchBookingData); const [selectedSlot, setSelectedSlot] = createStore({}); Most likely: You want to render DITA content
However, your query "pc book.in dita" is a bit ambiguous. Let me break down the most likely interpretations and give you a direction for each. 1. Most likely: You want to render DITA content inside a SolidJS app for a "PC Book" (a book about PCs / PC manual) If your goal is to load and display DITA topics ( .dita or .ditamap ) in a SolidJS component:
// Simple DITA-to-HTML converter (expand as needed) function convertDitaToHtml(xmlDoc: Document): string { const body = xmlDoc.querySelector("body"); if (!body) return "No DITA body found."; // Serialize with basic transformation (or use a library like dita-ot-js) return body.innerHTML; }
export const DitaViewer = (props: { src: string }) => { const [data] = createResource(() => props.src, fetchDita);
export const PcBookFeature = () => { const [bookings] = createResource(fetchBookingData); const [selectedSlot, setSelectedSlot] = createStore({});