You've already forked tribes-plugin-template
13
assets/css/my_plugin.css
Normal file
13
assets/css/my_plugin.css
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Plugin CSS entry point.
|
||||
*
|
||||
* Served at /plugins-assets/my_plugin/my_plugin.css
|
||||
* and included in the page layout if declared in manifest.json assets.global_css.
|
||||
*
|
||||
* Prefix all selectors with your plugin name to avoid collisions
|
||||
* with host or other plugin styles.
|
||||
*/
|
||||
|
||||
.my-plugin {
|
||||
/* Plugin-scoped styles go here */
|
||||
}
|
||||
15
assets/js/my_plugin.js
Normal file
15
assets/js/my_plugin.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// Plugin JavaScript entry point.
|
||||
//
|
||||
// This file is served by the host at /plugins-assets/my_plugin/my_plugin.js
|
||||
// and included in the page layout if declared in manifest.json assets.global_js.
|
||||
//
|
||||
// To register LiveView hooks:
|
||||
//
|
||||
// window.TribesPluginHooks = window.TribesPluginHooks || {};
|
||||
// window.TribesPluginHooks["MyPluginHook"] = {
|
||||
// mounted() {
|
||||
// console.log("MyPlugin hook mounted");
|
||||
// }
|
||||
// };
|
||||
|
||||
console.log("my_plugin loaded");
|
||||
Reference in New Issue
Block a user