mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-22 19:22:19 +00:00
* feat: Implement Site Commands (#298) - Introduced a Commands widget/table for Site view, allowing users to create, edit, delete, and execute commands. - Each Site Type now has a predefined set of commands inserted upon site creation. - A migration script ensures commands are created for existing sites. - Implemented necessary policies for command management. - Added feature tests to validate functionality. * I'm trying to fix the tests, but it seems like it might not work. I'm having trouble running the tests locally for some reason. * I'm trying to fix the tests, but it seems like it might not work. I'm having trouble running the tests locally for some reason. * I'm trying to fix the tests, but it seems like it might not work. I'm having trouble running the tests locally for some reason. * I'm trying to fix the tests, but it seems like it might not work. I'm having trouble running the tests locally for some reason. * Remove feature tests for commands due to inconsistencies for now * fixes * add tests for commands * ui fix and add to wordpress --------- Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
25 lines
474 B
PHP
Executable File
25 lines
474 B
PHP
Executable File
<?php
|
|
|
|
namespace App\SiteTypes;
|
|
|
|
interface SiteType
|
|
{
|
|
public function language(): string;
|
|
|
|
public function supportedFeatures(): array;
|
|
|
|
public function createRules(array $input): array;
|
|
|
|
public function createFields(array $input): array;
|
|
|
|
public function data(array $input): array;
|
|
|
|
public function install(): void;
|
|
|
|
public function editRules(array $input): array;
|
|
|
|
public function edit(): void;
|
|
|
|
public function baseCommands(): array;
|
|
}
|