diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml new file mode 100644 index 0000000..e69de29 diff --git a/ExamplePlugin.php b/ExamplePlugin.php new file mode 100644 index 0000000..af2cbe9 --- /dev/null +++ b/ExamplePlugin.php @@ -0,0 +1,62 @@ +loadViewsFrom(__DIR__ . '/resources/views', 'discussions'); + $this->loadTranslationsFrom(__DIR__ . '/src/Lang', 'discussions'); + $this->loadMigrationsFrom(__DIR__ . '/database/migrations'); + + $this->publishes([ + __DIR__ . '/config/discussions.php' => config_path('discussions.php'), + ], 'discussions_config'); + + $this->publishes([ + __DIR__ . '/database/migrations/' => database_path('migrations'), + ], 'discussions_migrations'); + + $this->publishes([ + __DIR__ . '/database/seeders/' => database_path('seeders'), + ], 'discussions_seeders'); + + $this->publishes([ + __DIR__ . '/src/Lang' => resource_path('lang/discussions'), + ], 'discussions_lang'); + + $this->loadRoutesFrom(__DIR__ . '/routes/web.php'); + + Livewire::component('discussion', \Wave\Plugins\Discussions\Components\Discussion::class); + Livewire::component('discussions', \Wave\Plugins\Discussions\Components\Discussions::class); + Livewire::component('posts', \Wave\Plugins\Discussions\Components\Posts::class); + } + + public function getPluginInfo(): array + { + return [ + 'name' => $this->name, + 'description' => $this->description, + 'version' => $this->getPluginVersion() + ]; + } + + public function getPluginVersion(): array + { + return File::json(__DIR__ . '/version.json'); + } +} \ No newline at end of file diff --git a/plugin.jpg b/plugin.jpg new file mode 100644 index 0000000..6a1f988 Binary files /dev/null and b/plugin.jpg differ diff --git a/version.json b/version.json new file mode 100644 index 0000000..efbc5d0 --- /dev/null +++ b/version.json @@ -0,0 +1,3 @@ +{ + "version" : "0.0.1" +} \ No newline at end of file