Last active
February 6, 2025 13:22
-
-
Save MuhammedKpln/8d3c5a674f1574773da68116d2d99bdc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "my-awesome-plugin", | |
"version": "1.0.0", | |
"description": "An awesome plugin", | |
"author": "Your Name", | |
"main": "plugin.js", | |
"dependencies": [] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
const CustomComponent = () => ( | |
<div className="bg-blue-100 p-4 rounded"> | |
<h2>Custom Plugin Component</h2> | |
</div> | |
); | |
export default { | |
name: 'example-remote-plugin', | |
version: '1.0.0', | |
description: 'A plugin loaded from URL', | |
author: 'Your Name', | |
components: [ | |
{ | |
name: 'custom-component', | |
component: CustomComponent, | |
slot: 'watch-page-content', | |
priority: 10, | |
} | |
], | |
initialize: async () => { | |
console.log('Remote plugin initialized'); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment