Commit abb85eda authored by onny's avatar onny

change app name

parent 97dc979f
Pipeline #29 failed with stages
......@@ -9,9 +9,9 @@ declare(strict_types=1);
* See the COPYING-README file.
*/
namespace OCA\Files_PdfViewer\AppInfo;
namespace OCA\Files_EbookReader\AppInfo;
use OCP\Util;
Util::addScript('files_pdfviewer', 'previewplugin');
Util::addStyle('files_pdfviewer', 'style');
Util::addScript('files_ebookreader', 'previewplugin');
Util::addStyle('files_ebookreader', 'style');
......@@ -17,7 +17,7 @@ about the PDF.js project at [https://mozilla.github.io/pdf.js/](https://mozilla.
<version>0.1</version>
<licence>mit</licence>
<author>Jonas Heinrich</author>
<namespace>Files_PdfViewer</namespace>
<namespace>Files_EbookReader</namespace>
<default_enable/>
<category>files</category>
<category>office</category>
......
......@@ -9,7 +9,7 @@ declare(strict_types=1);
* See the COPYING-README file.
*/
namespace OCA\Files_PdfViewer\AppInfo;
namespace OCA\Files_EbookReader\AppInfo;
return ['routes' => [
['name' => 'display#showPdfViewer', 'url' => '/', 'verb' => 'GET'],
......
......@@ -9,7 +9,7 @@ declare(strict_types=1);
* See the COPYING-README file.
*/
namespace OCA\Files_PdfViewer\Controller;
namespace OCA\Files_EbookReader\Controller;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\ContentSecurityPolicy;
......
......@@ -2,7 +2,7 @@
/** @var array $_ */
/** @var OCP\IURLGenerator $urlGenerator */
$urlGenerator = $_['urlGenerator'];
$version = \OC::$server->getAppManager()->getAppVersion('files_pdfviewer');
$version = \OC::$server->getAppManager()->getAppVersion('files_ebookreader');
?>
<!DOCTYPE html>
<!--
......@@ -27,21 +27,21 @@ Adobe CMap resources are covered by their own copyright but the same license:
See https://github.com/adobe-type-tools/cmap-resources
-->
<html dir="ltr" mozdisallowselectionprint moznomarginboxes>
<head data-workersrc="<?php p($urlGenerator->linkTo('files_pdfviewer', 'vendor/pdfjs/build/pdf.worker.js')) ?>?v=<?php p($version) ?>">
<head data-workersrc="<?php p($urlGenerator->linkTo('files_ebookreader', 'vendor/pdfjs/build/pdf.worker.js')) ?>?v=<?php p($version) ?>">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="google" content="notranslate">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PDF.js viewer</title>
<title>Ebook reader</title>
<!-- This snippet is used in production (included from viewer.html) -->
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_pdfviewer', 'vendor/normalize.css')) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_pdfviewer', 'vendor/main.css')) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_pdfviewer', 'vendor/popup.css')) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_ebookreader', 'vendor/normalize.css')) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_ebookreader', 'vendor/main.css')) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_ebookreader', 'vendor/popup.css')) ?>">
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php p($urlGenerator->linkTo('files_pdfviewer', 'vendor/jquery.min.js')) ?>"></script>
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php p($urlGenerator->linkTo('files_ebookreader', 'vendor/jquery.min.js')) ?>"></script>
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php p($urlGenerator->linkTo('files_pdfviewer', 'vendor/zip.min.js')) ?>"></script>
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php p($urlGenerator->linkTo('files_ebookreader', 'vendor/zip.min.js')) ?>"></script>
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>">
"use strict";
......@@ -60,13 +60,13 @@ See https://github.com/adobe-type-tools/cmap-resources
<!-- <script src="js/libs/localforage.min.js"></script> -->
<!-- Full Screen -->
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php p($urlGenerator->linkTo('files_pdfviewer', 'vendor/screenfull.min.js')) ?>"></script>
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php p($urlGenerator->linkTo('files_ebookreader', 'vendor/screenfull.min.js')) ?>"></script>
<!-- Render -->
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php p($urlGenerator->linkTo('files_pdfviewer', 'vendor/epub.js')) ?>"></script>
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php p($urlGenerator->linkTo('files_ebookreader', 'vendor/epub.js')) ?>"></script>
<!-- Reader -->
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php p($urlGenerator->linkTo('files_pdfviewer', 'vendor/reader.js')) ?>"></script>
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php p($urlGenerator->linkTo('files_ebookreader', 'vendor/reader.js')) ?>"></script>
</head>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment