Über-Karte in der Administration, docker-publish entfernt
Some checks are pending
CI / PHP Lint (push) Waiting to run
CI / PHP Lint-1 (push) Waiting to run
CI / Unit Tests & Static Analysis (push) Waiting to run
CI / PHP Lint (pull_request) Successful in 35s
CI / PHP Lint-1 (pull_request) Successful in 46s
CI / Unit Tests & Static Analysis (pull_request) Successful in 37s
Some checks are pending
CI / PHP Lint (push) Waiting to run
CI / PHP Lint-1 (push) Waiting to run
CI / Unit Tests & Static Analysis (push) Waiting to run
CI / PHP Lint (pull_request) Successful in 35s
CI / PHP Lint-1 (pull_request) Successful in 46s
CI / Unit Tests & Static Analysis (pull_request) Successful in 37s
Die Lizenzhinweise standen bisher nur in den Dateien. Unter Integration & Wartung gibt es jetzt eine Karte "Über diese Installation" mit Version, PHP-Version, Lizenz, Entwickler und Quellcode sowie einer Tabelle der mitgelieferten Komponenten Dritter, die direkt auf die ausgelieferten Lizenztexte verlinkt. Die Liste kommt aus Ui::thirdParty(), damit Oberfläche und THIRD-PARTY-NOTICES.md nicht auseinanderlaufen; drei Tests prüfen, dass jede gelistete Komponente ihren Lizenztext wirklich mitliefert, in den Notices auftaucht und LICENSE vorhanden ist. Außerdem: - docker-publish.yml entfernt – der Workflow veröffentlichte nach ghcr.io und stammte noch aus der GitHub-Zeit - Readme: der Actions-Runner läuft jetzt, entsprechende Hinweise angepasst; Test-Badge durch das echte CI-Badge der Forgejo-Instanz ersetzt Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
9b43eee9e6
commit
f5081a4b11
8 changed files with 196 additions and 47 deletions
|
|
@ -230,6 +230,35 @@ class Ui
|
|||
. self::CREDIT_NAME . '</a></p>';
|
||||
}
|
||||
|
||||
/** Lizenz der Anwendung selbst (siehe LICENSE im Wurzelverzeichnis). */
|
||||
public const LICENSE = 'MIT';
|
||||
public const REPOSITORY_URL = 'https://git.loheide.cloud/friloo/Unifi-Voucher-Tool';
|
||||
public const LICENSE_URL = self::REPOSITORY_URL . '/src/branch/main/LICENSE';
|
||||
|
||||
/**
|
||||
* Mitgelieferte Komponenten Dritter – dieselbe Liste wie in
|
||||
* THIRD-PARTY-NOTICES.md, nur maschinenlesbar fuer die Uebersicht in der
|
||||
* Administration. 'license_file' zeigt auf den ausgelieferten Lizenztext;
|
||||
* ein Test stellt sicher, dass die Dateien wirklich vorhanden sind.
|
||||
*
|
||||
* @return array<int, array{name: string, version: string, license: string, license_file: string, url: string}>
|
||||
*/
|
||||
public static function thirdParty(): array
|
||||
{
|
||||
return [
|
||||
['name' => 'Inter', 'version' => '4.0', 'license' => 'SIL OFL 1.1',
|
||||
'license_file' => 'assets/vendor/inter/LICENSE.txt', 'url' => 'https://github.com/rsms/inter'],
|
||||
['name' => 'Font Awesome Free', 'version' => '6.4.0', 'license' => 'CC BY 4.0 / SIL OFL 1.1 / MIT',
|
||||
'license_file' => 'assets/vendor/fontawesome/LICENSE.txt', 'url' => 'https://fontawesome.com'],
|
||||
['name' => 'Chart.js', 'version' => '4.4.0', 'license' => 'MIT',
|
||||
'license_file' => 'assets/vendor/chartjs/LICENSE.txt', 'url' => 'https://www.chartjs.org'],
|
||||
['name' => 'qrcodejs', 'version' => '1.0.0', 'license' => 'MIT',
|
||||
'license_file' => 'assets/vendor/qrcodejs/LICENSE.txt', 'url' => 'https://github.com/davidshimjs/qrcodejs'],
|
||||
['name' => 'TinyMCE', 'version' => '6.8.3', 'license' => 'MIT',
|
||||
'license_file' => 'assets/vendor/tinymce/license.txt', 'url' => 'https://www.tiny.cloud'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Standard-Druckvorlage (wird nur verwendet, solange keine eigene
|
||||
* Vorlage gespeichert ist). {QR_CODE} fuellt der Browser.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue