{"id":22674549,"url":"https://github.com/afroborg/strapi-plugin-custom-dashboard","last_synced_at":"2025-03-29T12:21:41.077Z","repository":{"id":185585591,"uuid":"673774815","full_name":"afroborg/strapi-plugin-custom-dashboard","owner":"afroborg","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-02T13:56:26.000Z","size":170,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T13:23:05.944Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afroborg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-02T11:49:23.000Z","updated_at":"2023-08-02T11:49:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"a714041a-2366-49f3-8f34-350d55a4a0bb","html_url":"https://github.com/afroborg/strapi-plugin-custom-dashboard","commit_stats":null,"previous_names":["afroborg/strapi-plugin-custom-dashboard"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afroborg%2Fstrapi-plugin-custom-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afroborg%2Fstrapi-plugin-custom-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afroborg%2Fstrapi-plugin-custom-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afroborg%2Fstrapi-plugin-custom-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afroborg","download_url":"https://codeload.github.com/afroborg/strapi-plugin-custom-dashboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246181715,"owners_count":20736610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-09T17:17:02.091Z","updated_at":"2025-03-29T12:21:41.057Z","avatar_url":"https://github.com/afroborg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom Dashboard\n\nThis plugin adds an injection zone to the homepage of your Strapi admin panel (`/admin`.)\n\nIt enables injection of your own custom Component instead of the default.\n\n## Installation\n\n```bash\n# with npm\nnpm i strapi-plugin-custom-dashboard\n# or yarn\nyarn add strapi-plugin-custom-dashboard\n```\n\n## Usage\n\nThis plugin by itself only removes the default dashboard and adds an injection zone. You'll have to create your own plugin to inject into the zone.\n\n### Creating a plugin\n\n```bash\n# with npm\nnpm run strapi generate\n# or yarn\nyarn strapi generate\n```\n\nThen select `plugin` and give it a name. For this example we'll use `dashboard`.\n\n\u003e **Note**: if you select to use typescript, remember to cd into your plugin folder and run `yarn build` or `npm run build` before starting your strapi server.\n\n### Registering the plugins\n\nOpen `./config/plugins.js` and add the following:\n\n```js\nmodule.exports = ({ env }) =\u003e ({\n  // ...\n  'custom-dashboard': {\n    enabled: true,\n  },\n  // name of your own plugin\n  'dashboard': {\n    enabled: true,\n    resolve: './src/plugins/dashboard' // replace dashboard with your plugin name\n  },\n  // ...\n});\n```\n\n### Inject Component\n\nIn your own plugin, open the `./admin/src/index.[js|ts|jsx|tsx]` file and add the following:\n\n```js\nmodule.exports = {\n    // ...\n\n    bootstrap(app) {\n        app.getPlugin(\"custom-dashboard\").injectComponent(\"dashboard\", \"content\", {\n        name: \"any-name\",\n        Component: Component, // the base component to inject\n        });\n  },\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafroborg%2Fstrapi-plugin-custom-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafroborg%2Fstrapi-plugin-custom-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafroborg%2Fstrapi-plugin-custom-dashboard/lists"}