Skip to content

Commit

Permalink
Include proper copyright notices everywhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnomad committed Oct 9, 2023
1 parent 36cea83 commit f00951b
Show file tree
Hide file tree
Showing 51 changed files with 114 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
SPDX-License-Identifier: CC0-1.0
-->
# Nextcloud Calibre2OPDS app

The Calibre2OPDS app provides access to user's [Calibre](https://calibre-ebook.com/) library
Expand Down
3 changes: 3 additions & 0 deletions generate-icon.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh
#
# SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
# SPDX-License-Identifier: CC0-1.0
#
# This requires:
# - librsvg2-bin (for `rsvg-convert`);
# - netpbm (for `pngtopam` and `pamtowinicon`).
Expand Down
4 changes: 4 additions & 0 deletions img/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions js/settings.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/**
* SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
* Update Calibre2OPDS settings
*/
(function (window, document, $) {
Expand Down
2 changes: 2 additions & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\AppInfo;

Expand Down
2 changes: 2 additions & 0 deletions lib/Calibre/CalibreDB.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Calibre;

Expand Down
2 changes: 2 additions & 0 deletions lib/Calibre/CalibreItem.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Calibre;

Expand Down
2 changes: 2 additions & 0 deletions lib/Calibre/ICalibreDB.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Calibre;

Expand Down
4 changes: 4 additions & 0 deletions lib/Calibre/Types/CalibreAuthor.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Calibre\Types;

use OCA\Calibre2OPDS\Calibre\CalibreItem;
Expand Down
2 changes: 2 additions & 0 deletions lib/Calibre/Types/CalibreAuthorPrefix.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Calibre\Types;

Expand Down
2 changes: 2 additions & 0 deletions lib/Calibre/Types/CalibreBook.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Calibre\Types;

Expand Down
2 changes: 2 additions & 0 deletions lib/Calibre/Types/CalibreBookCriteria.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Calibre\Types;

Expand Down
2 changes: 2 additions & 0 deletions lib/Calibre/Types/CalibreBookFormat.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Calibre\Types;

Expand Down
2 changes: 2 additions & 0 deletions lib/Calibre/Types/CalibreBookId.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Calibre\Types;

Expand Down
2 changes: 2 additions & 0 deletions lib/Calibre/Types/CalibreLanguage.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Calibre\Types;

Expand Down
2 changes: 2 additions & 0 deletions lib/Calibre/Types/CalibrePublisher.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Calibre\Types;

Expand Down
2 changes: 2 additions & 0 deletions lib/Calibre/Types/CalibreSeries.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Calibre\Types;

Expand Down
2 changes: 2 additions & 0 deletions lib/Calibre/Types/CalibreTag.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Calibre\Types;

Expand Down
2 changes: 2 additions & 0 deletions lib/Controller/OpdsController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Controller;

Expand Down
2 changes: 2 additions & 0 deletions lib/Controller/SettingsController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Controller;

Expand Down
2 changes: 2 additions & 0 deletions lib/FeedBuilder/IOpdsFeedBuilder.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\FeedBuilder;

Expand Down
2 changes: 2 additions & 0 deletions lib/FeedBuilder/OpdsFeedBuilder.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\FeedBuilder;

Expand Down
2 changes: 2 additions & 0 deletions lib/Opds/OpdsApp.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Opds;

Expand Down
2 changes: 2 additions & 0 deletions lib/Opds/OpdsAttribute.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Opds;

Expand Down
2 changes: 2 additions & 0 deletions lib/Opds/OpdsAuthor.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Opds;

Expand Down
2 changes: 2 additions & 0 deletions lib/Opds/OpdsCategory.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Opds;

Expand Down
2 changes: 2 additions & 0 deletions lib/Opds/OpdsEntry.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Opds;

Expand Down
2 changes: 2 additions & 0 deletions lib/Opds/OpdsLink.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Opds;

Expand Down
2 changes: 2 additions & 0 deletions lib/Opds/OpdsResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Opds;

Expand Down
2 changes: 2 additions & 0 deletions lib/Opds/OpenSearchResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Opds;

Expand Down
2 changes: 2 additions & 0 deletions lib/Service/CalibreService.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Service;

Expand Down
2 changes: 2 additions & 0 deletions lib/Service/ICalibreService.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Service;

Expand Down
2 changes: 2 additions & 0 deletions lib/Service/IOpdsFeedService.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Service;

Expand Down
2 changes: 2 additions & 0 deletions lib/Service/ISettingsService.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Service;

Expand Down
2 changes: 2 additions & 0 deletions lib/Service/OpdsFeedService.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Service;

Expand Down
2 changes: 2 additions & 0 deletions lib/Service/SettingsService.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Service;

Expand Down
2 changes: 2 additions & 0 deletions lib/Settings/PersonalSettings.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Settings;

Expand Down
2 changes: 2 additions & 0 deletions lib/Util/MapIterator.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Util;

Expand Down
2 changes: 2 additions & 0 deletions lib/Util/MimeTypes.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace OCA\Calibre2OPDS\Util;

Expand Down
7 changes: 6 additions & 1 deletion templates/settings.personal.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php script('calibre_opds', 'settings'); ?>
<?php
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

script('calibre_opds', 'settings');
?>
<div id="calibre_opds" class="section">
<h2><?php p($l->t('Calibre OPDS library')); ?></h2>
<form action="personal.php">
Expand Down
2 changes: 2 additions & 0 deletions tests/stubs/CalibreStub.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace Stubs;

Expand Down
2 changes: 2 additions & 0 deletions tests/stubs/L10NStub.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace Stubs;

Expand Down
2 changes: 2 additions & 0 deletions tests/stubs/LoggerInterfaceStub.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace Stubs;

Expand Down
2 changes: 2 additions & 0 deletions tests/stubs/SettingsServiceStub.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

declare(strict_types=1);
// SPDX-FileCopyrightText: 2023 Alec Kojaev <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later

namespace Stubs;

Expand Down
Loading

0 comments on commit f00951b

Please sign in to comment.