mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
10 lines
318 B
TypeScript
10 lines
318 B
TypeScript
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>;
|
|
});
|
|
}
|