forked from Azuriom/Azuriom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Azuriom:master' into master
- Loading branch information
Showing
216 changed files
with
6,406 additions
and
7,204 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: "Bug report" | ||
description: "Report something that isn't working as expected with Azuriom" | ||
assignees: [] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: "Something is not working as expected with Azuriom and the answer isn't in the [documentation](https://azuriom.com/docs)." | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: "Bug description" | ||
description: "A clear and concise description of what the bug is." | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: reproduce-step | ||
attributes: | ||
label: "Step to reproduce" | ||
description: "Explain all step to reproduce, with some element that can be particular to your setup and help us to fix it." | ||
placeholder: "To reproduce, I do ... then ..." | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: error-logs | ||
attributes: | ||
label: "Errors / Logs" | ||
description: "If you have an error 500, please add error logs (located in `storage/logs`)" | ||
placeholder: "<!-- Paste your logs here -->" | ||
- type: dropdown | ||
id: webserver | ||
attributes: | ||
label: "Web server" | ||
multiple: true | ||
options: | ||
- Apache | ||
- Nginx | ||
- Other | ||
- type: dropdown | ||
id: database | ||
attributes: | ||
label: "Database type" | ||
options: | ||
- MySQL | ||
- MariaDB | ||
- PostgreSQL | ||
- SQLite | ||
- SQLServer | ||
- type: input | ||
id: php-version | ||
attributes: | ||
label: "PHP version" | ||
- type: textarea | ||
id: context | ||
attributes: | ||
label: "Additional context" | ||
description: "Add any other context about the problem here." |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Documentation | ||
url: https://azuriom.com/docs | ||
about: Check out our documentation and FAQ for common questions. | ||
- name: Discord for quick support | ||
url: https://azuriom.com/discord | ||
about: You can join our Discord server to get support about installing and using Azuriom. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: "Suggestion" | ||
description: "Suggest an idea for Azuriom" | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: "Suggest an idea for Azuriom. Before posting a suggestion, please check to see if your suggestion was already proposed in the [issues](https://github.com/Azuriom/Azuriom/issues). Suggestions for plugins/themes should be posted on the corresponding GitHub repository." | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: "Description of your suggestion" | ||
description: "Explain your idea with screenshoots, example, etc" | ||
placeholder: "Explain your idea" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: advantages | ||
attributes: | ||
label: "Advantages" | ||
description: "What are the advantages of your suggestion or the alternatives you've considered?" |
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace Azuriom\Console\Commands; | ||
|
||
use Azuriom\Extensions\Plugin\PluginManager; | ||
use Illuminate\Console\Command; | ||
|
||
class PluginDisableCommand extends Command | ||
{ | ||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'plugin:disable {id : The id of the plugin}'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Disable an enabled plugin'; | ||
|
||
/** | ||
* Execute the console command. | ||
*/ | ||
public function handle(PluginManager $plugins) | ||
{ | ||
$id = $this->argument('id'); | ||
|
||
if (! $plugins->disable($id)) { | ||
$this->error('Unable to disable plugin with id '.$id); | ||
|
||
return 1; | ||
} | ||
|
||
$this->info('Plugin "'.$id.'" disabled.'); | ||
|
||
return 0; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
namespace Azuriom\Console\Commands; | ||
|
||
use Azuriom\Extensions\Plugin\PluginManager; | ||
use Illuminate\Console\Command; | ||
|
||
class PluginDownloadCommand extends Command | ||
{ | ||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'plugin:download | ||
{id : The id of the plugin} | ||
{version? : The version of the plugin}'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Download a plugin from market.azuriom.com'; | ||
|
||
/** | ||
* Execute the console command. | ||
*/ | ||
public function handle(PluginManager $plugins) | ||
{ | ||
$extensionId = $this->argument('id'); | ||
|
||
$plugin = $plugins->getOnlinePlugins() | ||
->first(fn ($plugin) => $plugin['extension_id'] === $extensionId); | ||
|
||
if ($plugin === null) { | ||
$this->error('There is no plugin with id "'.$extensionId | ||
.'", it is already downloaded or does not support this installation.'); | ||
|
||
return 1; | ||
} | ||
|
||
$plugins->install($plugin['id'], $this->argument('version')); | ||
$this->info('Plugin '.$extensionId.' downloaded.'); | ||
|
||
return 0; | ||
} | ||
} |
Oops, something went wrong.