ui-next: page registration (#1159)

This commit is contained in:
Baoshuo authored and GitHub committed 2026-05-23 20:27:15 +08:00
1 parent 66a8a0ab9e
commit bbd7fbc852
28 files changed
+238 -98

No files matched your search

@@ -0,0 +1,9 @@
import type { PluginAPI } from '@hydrooj/ui-next';
export function setup(api: PluginAPI) {
api.before('page:app', () => {
console.log('before app');
// throw new Error('test error boundary in before interceptor');
return <div>before app via @hydrooj/ui-next-plugin-sample</div>;
});
}