Schneller und stabiler bei Updates (0.45.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 12m25s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 12m51s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 10m43s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 10m37s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 12m42s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 13m38s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m39s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m33s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 44s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 12m25s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 12m51s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 10m43s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 10m37s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 12m42s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 13m38s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m39s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m33s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 44s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
- Ladefehler während eines Updates schalten keine Plugins mehr ab: Wartungsmodus merkt sich den Update-Zeitraum (+2 min Nachlauf), Plugin-Uploads markieren den Dateiaustausch ohne Wartungsmodus; guard/recoverFromCrash prüfen das, betroffene Plugins (mit disabled_at im Zeitraum) werden wieder eingeschaltet - Plugin-Oberflächen werden nach public/plugin-assets kopiert (Webserver statt PHP), bei Deaktivieren/Löschen/Neu-Hochladen entfernt; Route bleibt als Rückfall - RichTextEditor in SDK, Leichte-Sprache-Leiste und Glossar asynchron; fehlende Menü-Symbole kuratiert → kein Laden des kompletten Symbolsatzes - Inertia-Prefetch (hover, 10 s) für Menülinks und Neuigkeiten-Vorschauen; Prefetch zählt nicht als Lesen (Reach) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
55a26e3f8e
commit
bf68be68f9
205 changed files with 773 additions and 464 deletions
|
|
@ -24,6 +24,7 @@ class PluginSdkTest extends TestCase
|
|||
$this->dir = sys_get_temp_dir().'/inhaus-sdk-'.bin2hex(random_bytes(4));
|
||||
mkdir($this->dir.'/core', 0777, true);
|
||||
mkdir($this->dir.'/custom', 0777, true);
|
||||
config(['inhaus.plugin_assets_path' => $this->dir.'/public']);
|
||||
}
|
||||
|
||||
protected function tearDown(): void
|
||||
|
|
@ -114,6 +115,26 @@ class PluginSdkTest extends TestCase
|
|||
$this->assertNull(app(PluginAssets::class)->file('mit-ui', '../plugin-geheim.js'));
|
||||
}
|
||||
|
||||
public function test_assets_are_published_for_the_web_server_and_removed_again(): void
|
||||
{
|
||||
$this->makeUiPlugin('mit-ui');
|
||||
file_put_contents($this->dir.'/custom/mit-ui/dist/geheim.php', '<?php echo 1;');
|
||||
$manager = $this->boot('mit-ui');
|
||||
@mkdir($this->dir.'/public/mit-ui/1.0.0', 0777, true); // ältere Version
|
||||
|
||||
app(PluginAssets::class)->forFrontend();
|
||||
|
||||
$published = $this->dir.'/public/mit-ui/1.2.3';
|
||||
$this->assertFileExists($published.'/pages/Index.js');
|
||||
$this->assertFileExists($published.'/style.css');
|
||||
$this->assertFileDoesNotExist($published.'/geheim.php', 'Nur erlaubte Dateitypen');
|
||||
$this->assertDirectoryDoesNotExist($this->dir.'/public/mit-ui/1.0.0');
|
||||
$this->assertSame(file_get_contents($this->dir.'/custom/mit-ui/dist/pages/Index.js'), file_get_contents($published.'/pages/Index.js'));
|
||||
|
||||
$manager->deactivate('mit-ui');
|
||||
$this->assertDirectoryDoesNotExist($this->dir.'/public/mit-ui');
|
||||
}
|
||||
|
||||
public function test_pages_carry_import_map_and_plugin_manifest(): void
|
||||
{
|
||||
$this->makeUiPlugin('mit-ui');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue