forked from FINAKON/HelpProject
1. Initial Commit - a boiler plate code and POC to realize the concept of context sensitive help 2. Frontend code written in ReactJS 3. Backend code written in Java, Spring Boot Framework 4. Frontend Start: pre-requisites : node, npm npm run dev ==> to start the frontend vite server 5. Backend Start: pre-requisites : java, mvn mvn spring-boot:run ==> to start the backend server 6. Visit http://localhost:5173/ for basic demo of help, press F1 in textboxes 7. Visit http://localhost:5173/editor and enter "admin123" to add/modify texts. Happy Coding !!! Thank you, Bhargava.
65 lines
1.5 KiB
JavaScript
65 lines
1.5 KiB
JavaScript
import {blockquote} from './blockquote.js'
|
|
import {hardBreak} from './break.js'
|
|
import {code} from './code.js'
|
|
import {strikethrough} from './delete.js'
|
|
import {emphasis} from './emphasis.js'
|
|
import {footnoteReference} from './footnote-reference.js'
|
|
import {heading} from './heading.js'
|
|
import {html} from './html.js'
|
|
import {imageReference} from './image-reference.js'
|
|
import {image} from './image.js'
|
|
import {inlineCode} from './inline-code.js'
|
|
import {linkReference} from './link-reference.js'
|
|
import {link} from './link.js'
|
|
import {listItem} from './list-item.js'
|
|
import {list} from './list.js'
|
|
import {paragraph} from './paragraph.js'
|
|
import {root} from './root.js'
|
|
import {strong} from './strong.js'
|
|
import {table} from './table.js'
|
|
import {tableRow} from './table-row.js'
|
|
import {tableCell} from './table-cell.js'
|
|
import {text} from './text.js'
|
|
import {thematicBreak} from './thematic-break.js'
|
|
|
|
/**
|
|
* Default handlers for nodes.
|
|
*
|
|
* @satisfies {import('../state.js').Handlers}
|
|
*/
|
|
export const handlers = {
|
|
blockquote,
|
|
break: hardBreak,
|
|
code,
|
|
delete: strikethrough,
|
|
emphasis,
|
|
footnoteReference,
|
|
heading,
|
|
html,
|
|
imageReference,
|
|
image,
|
|
inlineCode,
|
|
linkReference,
|
|
link,
|
|
listItem,
|
|
list,
|
|
paragraph,
|
|
// @ts-expect-error: root is different, but hard to type.
|
|
root,
|
|
strong,
|
|
table,
|
|
tableCell,
|
|
tableRow,
|
|
text,
|
|
thematicBreak,
|
|
toml: ignore,
|
|
yaml: ignore,
|
|
definition: ignore,
|
|
footnoteDefinition: ignore
|
|
}
|
|
|
|
// Return nothing for nodes that are ignored.
|
|
function ignore() {
|
|
return undefined
|
|
}
|