Phase 0: Fundament für Inhaus
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m19s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m22s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m35s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m7s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m19s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m22s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m35s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m7s
- Laravel 13 mit Filament 5 (Admin), Inertia 3 + Vue 3 + Vuetify 4 (Material 3) - Anmeldung über Fortify (Login, Passwort vergessen/ändern), keine Selbstregistrierung - Profil mit Profilbild (WebP in festen Größen), Personenseiten, Header mit Avatar-Menü - Material-3-Farbschema aus der Primärfarbe, hell/dunkel/System pro Person - Basis-Branding (Portalname, Logo, Primärfarbe) im Admin unter „Erscheinungsbild“ - Benutzerverwaltung im Admin, Zugang vorläufig über is_admin - vendor/ (ohne Dev-Pakete) und Frontend-Build mitversioniert, Dev-Pakete in vendor-dev/ - PHPUnit-Tests gegen MySQL/MariaDB, Forgejo-CI-Matrix, Docker-Entwicklungsumgebung - VERSION, CHANGELOG.md und CONTRIBUTING.md mit Release-Ablauf Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7197eaebf2
commit
9c0f8de791
15771 changed files with 1564103 additions and 5 deletions
111
vendor/laravel/prompts/src/Support/Logger.php
vendored
Normal file
111
vendor/laravel/prompts/src/Support/Logger.php
vendored
Normal file
|
|
@ -0,0 +1,111 @@
|
|||
<?php
|
||||
|
||||
namespace Laravel\Prompts\Support;
|
||||
|
||||
class Logger
|
||||
{
|
||||
/**
|
||||
* Create a new Logger instance.
|
||||
*
|
||||
* @param resource|null $socket
|
||||
*/
|
||||
public function __construct(protected string $identifier, protected $socket = null)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* The buffer for streaming text.
|
||||
*/
|
||||
protected string $streamBuffer = '';
|
||||
|
||||
/**
|
||||
* Log a line to the process log.
|
||||
*/
|
||||
public function line(string $message): void
|
||||
{
|
||||
$this->write(rtrim($message));
|
||||
}
|
||||
|
||||
/**
|
||||
* Append a chunk of text, accumulating on the current line(s).
|
||||
*/
|
||||
public function partial(string $chunk): void
|
||||
{
|
||||
$this->streamBuffer .= $chunk;
|
||||
$this->write($this->streamBuffer, 'partial');
|
||||
}
|
||||
|
||||
/**
|
||||
* Commit the accumulated partial text and start fresh.
|
||||
*/
|
||||
public function commitPartial(): void
|
||||
{
|
||||
$this->streamBuffer = '';
|
||||
$this->write('', 'commitpartial');
|
||||
}
|
||||
|
||||
/**
|
||||
* Log a success message to the process log.
|
||||
*/
|
||||
public function success(string $message): void
|
||||
{
|
||||
$this->write($message, 'success');
|
||||
}
|
||||
|
||||
/**
|
||||
* Log a warning message to the process log.
|
||||
*/
|
||||
public function warning(string $message): void
|
||||
{
|
||||
$this->write($message, 'warning');
|
||||
}
|
||||
|
||||
/**
|
||||
* Log an error message to the process log.
|
||||
*/
|
||||
public function error(string $message): void
|
||||
{
|
||||
$this->write($message, 'error');
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the label of the process log.
|
||||
*/
|
||||
public function label(string $message): void
|
||||
{
|
||||
$this->write($message, 'label');
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the sub-label of the process log. Pass an empty string to clear.
|
||||
*/
|
||||
public function subLabel(string $message): void
|
||||
{
|
||||
$this->write($message, 'sublabel');
|
||||
}
|
||||
|
||||
/**
|
||||
* Write a message to the socket.
|
||||
*/
|
||||
protected function write(string $message, ?string $type = null): void
|
||||
{
|
||||
if ($this->socket === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($type !== null) {
|
||||
fwrite($this->socket, $this->prefix($type, $message).PHP_EOL);
|
||||
} else {
|
||||
fwrite($this->socket, $message.PHP_EOL);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Prefix a message with the identifier and type.
|
||||
*/
|
||||
protected function prefix(string $type, string $message): string
|
||||
{
|
||||
return $this->identifier.'_'.$type.':'.rtrim($message, PHP_EOL);
|
||||
}
|
||||
}
|
||||
23
vendor/laravel/prompts/src/Support/Result.php
vendored
Normal file
23
vendor/laravel/prompts/src/Support/Result.php
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
namespace Laravel\Prompts\Support;
|
||||
|
||||
/**
|
||||
* Result.
|
||||
*
|
||||
* This is a 'sentinel' value. It wraps a return value, which can
|
||||
* allow us to differentiate between a `null` return value and
|
||||
* a `null` return value that's intended to continue a loop.
|
||||
*/
|
||||
final class Result
|
||||
{
|
||||
public function __construct(public readonly mixed $value)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public static function from(mixed $value): self
|
||||
{
|
||||
return new self($value);
|
||||
}
|
||||
}
|
||||
53
vendor/laravel/prompts/src/Support/Utils.php
vendored
Normal file
53
vendor/laravel/prompts/src/Support/Utils.php
vendored
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<?php
|
||||
|
||||
namespace Laravel\Prompts\Support;
|
||||
|
||||
use Closure;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
class Utils
|
||||
{
|
||||
/**
|
||||
* Determine if all items in an array match a truth test.
|
||||
*
|
||||
* @param array<array-key, mixed> $values
|
||||
*/
|
||||
public static function allMatch(array $values, Closure $callback): bool
|
||||
{
|
||||
foreach ($values as $key => $value) {
|
||||
if (! $callback($value, $key)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the last item from an array or null if it doesn't exist.
|
||||
*
|
||||
* @param array<array-key, mixed> $array
|
||||
*/
|
||||
public static function last(array $array): mixed
|
||||
{
|
||||
return array_reverse($array)[0] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the key of the first element in the array that satisfies the callback.
|
||||
*
|
||||
* @param array<array-key, mixed> $array
|
||||
*/
|
||||
public static function search(array $array, Closure $callback): int|string|false
|
||||
{
|
||||
foreach ($array as $key => $value) {
|
||||
if ($callback($value, $key)) {
|
||||
return $key;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue