mirror of
https://github.com/strapi/strapi.git
synced 2025-08-09 17:26:11 +00:00

* feat: add vite * fix: CheckPagePermissions was buggy * fix: vite CJS warning & double print of experimental message * chore: move to use plugins-workspace folder * chore: update deps --------- Co-authored-by: Paul <45032974+hide-me@users.noreply.github.com>
30 lines
613 B
JavaScript
30 lines
613 B
JavaScript
import PluginIcon from './components/PluginIcon';
|
|
import pluginPkg from '../../package.json';
|
|
import pluginId from './pluginId';
|
|
|
|
const name = pluginPkg.strapi.name;
|
|
|
|
export default {
|
|
register(app) {
|
|
app.addMenuLink({
|
|
to: `/plugins/${pluginId}`,
|
|
icon: PluginIcon,
|
|
intlLabel: {
|
|
id: `${pluginId}.plugin.name`,
|
|
defaultMessage: 'My plugin',
|
|
},
|
|
Component: async () => {
|
|
const component = await import('./pages/App');
|
|
|
|
return component;
|
|
},
|
|
permissions: [],
|
|
});
|
|
|
|
app.registerPlugin({
|
|
id: pluginId,
|
|
name,
|
|
});
|
|
},
|
|
};
|