mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
4e654f369d
- Rename apps/hooks → apps/hook (singular) - Add .claude-plugin/plugin.json manifest - Add hooks/hooks.json for PermissionRequest hook - Add root .claude-plugin/marketplace.json for install via: /plugin marketplace add backnotprop/plannotator - Refactor server to read stdin directly (removes bash/jq dependency) - Delete shell wrapper script Plugin tested successfully with: claude --plugin-dir ./apps/hook 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
16 lines
400 B
TypeScript
16 lines
400 B
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom/client';
|
|
import App from '@plannotator/editor';
|
|
import '@plannotator/editor/styles';
|
|
|
|
const rootElement = document.getElementById('root');
|
|
if (!rootElement) {
|
|
throw new Error("Could not find root element to mount to");
|
|
}
|
|
|
|
const root = ReactDOM.createRoot(rootElement);
|
|
root.render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>
|
|
); |