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
102
vendor/league/commonmark/src/Input/MarkdownInput.php
vendored
Normal file
102
vendor/league/commonmark/src/Input/MarkdownInput.php
vendored
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* This file is part of the league/commonmark package.
|
||||
*
|
||||
* (c) Colin O'Dell <colinodell@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace League\CommonMark\Input;
|
||||
|
||||
use League\CommonMark\Exception\UnexpectedEncodingException;
|
||||
|
||||
class MarkdownInput implements MarkdownInputInterface
|
||||
{
|
||||
/**
|
||||
* @var array<int, string>|null
|
||||
*
|
||||
* @psalm-readonly-allow-private-mutation
|
||||
*/
|
||||
private ?array $lines = null;
|
||||
|
||||
/** @psalm-readonly-allow-private-mutation */
|
||||
private string $content;
|
||||
|
||||
/** @psalm-readonly-allow-private-mutation */
|
||||
private ?int $lineCount = null;
|
||||
|
||||
/** @psalm-readonly */
|
||||
private int $lineOffset;
|
||||
|
||||
public function __construct(string $content, int $lineOffset = 0)
|
||||
{
|
||||
if (! \mb_check_encoding($content, 'UTF-8')) {
|
||||
throw new UnexpectedEncodingException('Unexpected encoding - UTF-8 or ASCII was expected');
|
||||
}
|
||||
|
||||
// Strip any leading UTF-8 BOM
|
||||
if (\substr($content, 0, 3) === "\xEF\xBB\xBF") {
|
||||
$content = \substr($content, 3);
|
||||
}
|
||||
|
||||
$this->content = $content;
|
||||
$this->lineOffset = $lineOffset;
|
||||
}
|
||||
|
||||
public function getContent(): string
|
||||
{
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getLines(): iterable
|
||||
{
|
||||
$this->splitLinesIfNeeded();
|
||||
|
||||
\assert($this->lines !== null);
|
||||
|
||||
/** @psalm-suppress PossiblyNullIterator */
|
||||
foreach ($this->lines as $i => $line) {
|
||||
yield $this->lineOffset + $i + 1 => $line;
|
||||
}
|
||||
}
|
||||
|
||||
public function getLineCount(): int
|
||||
{
|
||||
$this->splitLinesIfNeeded();
|
||||
|
||||
\assert($this->lineCount !== null);
|
||||
|
||||
return $this->lineCount;
|
||||
}
|
||||
|
||||
private function splitLinesIfNeeded(): void
|
||||
{
|
||||
if ($this->lines !== null) {
|
||||
return;
|
||||
}
|
||||
|
||||
$lines = \preg_split('/\r\n|\n|\r/', $this->content);
|
||||
if ($lines === false) {
|
||||
throw new UnexpectedEncodingException('Failed to split Markdown content by line');
|
||||
}
|
||||
|
||||
$this->lines = $lines;
|
||||
|
||||
// Remove any newline which appears at the very end of the string.
|
||||
// We've already split the document by newlines, so we can simply drop
|
||||
// any empty element which appears on the end.
|
||||
if (\end($this->lines) === '') {
|
||||
\array_pop($this->lines);
|
||||
}
|
||||
|
||||
$this->lineCount = \count($this->lines);
|
||||
}
|
||||
}
|
||||
26
vendor/league/commonmark/src/Input/MarkdownInputInterface.php
vendored
Normal file
26
vendor/league/commonmark/src/Input/MarkdownInputInterface.php
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* This file is part of the league/commonmark package.
|
||||
*
|
||||
* (c) Colin O'Dell <colinodell@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace League\CommonMark\Input;
|
||||
|
||||
interface MarkdownInputInterface
|
||||
{
|
||||
public function getContent(): string;
|
||||
|
||||
/**
|
||||
* @return iterable<int, string>
|
||||
*/
|
||||
public function getLines(): iterable;
|
||||
|
||||
public function getLineCount(): int;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue