Change files_reader namespace to epubreader

This commit is contained in:
Alfred Egger 2020-04-21 23:45:26 +02:00
parent 02cf45f03b
commit 92400d30eb
33 changed files with 152 additions and 153 deletions

View File

@ -1,4 +1,4 @@
files_reader epubreader
------------ ------------
Reader is an ebook reader based on pure javascript renderers. It works for publications formatted according to the following standards: Reader is an ebook reader based on pure javascript renderers. It works for publications formatted according to the following standards:
@ -110,8 +110,8 @@ The same Android device showing a zoomed-in part of a page|![The same Android de
[balaclark]: https://github.com/balaclark/HTML5-Comic-Book-Reader [balaclark]: https://github.com/balaclark/HTML5-Comic-Book-Reader
[PDF]: https://en.wikipedia.org/wiki/Portable_Document_Format [PDF]: https://en.wikipedia.org/wiki/Portable_Document_Format
[pdf.js]: https://github.com/mozilla/pdf.js [pdf.js]: https://github.com/mozilla/pdf.js
[SS01]: https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/files_reader-1.png "Reader showing day/nighyt mode" [SS01]: https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/epubreader-1.png "Reader showing day/nighyt mode"
[SS02]: https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/files_reader-3.png "Single page full screen on a small-screen device" [SS02]: https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/epubreader-3.png "Single page full screen on a small-screen device"
[SS03]: https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/photo_2017-03-15_17-21-39.jpg "Day mode color selector" [SS03]: https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/photo_2017-03-15_17-21-39.jpg "Day mode color selector"
[SS04]: https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/photo_2017-03-15_17-21-41.jpg?raw=true "Longing For that olde-time terminal feeling..." [SS04]: https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/photo_2017-03-15_17-21-41.jpg?raw=true "Longing For that olde-time terminal feeling..."
[SS05]: https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/photo_2017-03-15_17-21-53.jpg "Full-text search" [SS05]: https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/photo_2017-03-15_17-21-53.jpg "Full-text search"
@ -128,7 +128,7 @@ The same Android device showing a zoomed-in part of a page|![The same Android de
[SS16]: https://github.com/e-alfred/epubreader/blob/master/screenshots/photo_2017-03-15_17-22-10.jpg?raw=true "Same page, zoomed in" [SS16]: https://github.com/e-alfred/epubreader/blob/master/screenshots/photo_2017-03-15_17-22-10.jpg?raw=true "Same page, zoomed in"
[SS17]: https://github.com/e-alfred/epubreader/blob/master/screenshots/photo_2017-03-15_18-28-54.jpg?raw=true "Small-screen, low memory (Android) device showing full-page book cover" [SS17]: https://github.com/e-alfred/epubreader/blob/master/screenshots/photo_2017-03-15_18-28-54.jpg?raw=true "Small-screen, low memory (Android) device showing full-page book cover"
[SS18]: https://github.com/e-alfred/epubreader/blob/master/screenshots/photo_2017-03-15_18-28-56.jpg?raw=true "The same Android device showing a zoomed-in part of a page" [SS18]: https://github.com/e-alfred/epubreader/blob/master/screenshots/photo_2017-03-15_18-28-56.jpg?raw=true "The same Android device showing a zoomed-in part of a page"
[SS19]: https://github.com/e-alfred/epubreader/blob/master/screenshots/files_reader_PDF_001.png?raw=true "Search through a document, showing all results in the sidebar" [SS19]: https://github.com/e-alfred/epubreader/blob/master/screenshots/epubreader_PDF_001.png?raw=true "Search through a document, showing all results in the sidebar"
[SS20]: https://github.com/e-alfred/epubreader/blob/master/screenshots/files_reader_PDF_002.png?raw=true "Reader showing PDF Reference document in spread mode (pages side by side)" [SS20]: https://github.com/e-alfred/epubreader/blob/master/screenshots/epubreader_PDF_002.png?raw=true "Reader showing PDF Reference document in spread mode (pages side by side)"
[SS21]: https://github.com/e-alfred/epubreader/blob/master/screenshots/files_reader_PDF_005.png?raw=true "Dropdown showing page format options - spread, single page, page width and zoom options" [SS21]: https://github.com/e-alfred/epubreader/blob/master/screenshots/epubreader_PDF_005.png?raw=true "Dropdown showing page format options - spread, single page, page width and zoom options"
[SS22]: https://github.com/e-alfred/epubreader/blob/master/screenshots/files_reader_PDF_006.png?raw=true "Reader showing PDF in spread mode, thumbnails in the sidebar" [SS22]: https://github.com/e-alfred/epubreader/blob/master/screenshots/epubreader_PDF_006.png?raw=true "Reader showing PDF in spread mode, thumbnails in the sidebar"

View File

@ -1,7 +1,7 @@
<?php <?php
/** /**
* ownCloud - Files_Reader App * ownCloud - Epubreader App
* *
* @author Frank de Lange * @author Frank de Lange
* @copyright 2014,2018 Frank de Lange * @copyright 2014,2018 Frank de Lange
@ -10,12 +10,12 @@
* later. * later.
*/ */
namespace OCA\Files_Reader; namespace OCA\Epubreader;
\OC_JSON::callCheck(); \OC_JSON::callCheck();
\OC_JSON::checkLoggedIn(); \OC_JSON::checkLoggedIn();
$l = \OC::$server->getL10N('files_reader'); $l = \OC::$server->getL10N('epubreader');
$EpubEnable = isset($_POST['EpubEnable']) ? $_POST['EpubEnable'] : 'false'; $EpubEnable = isset($_POST['EpubEnable']) ? $_POST['EpubEnable'] : 'false';
$PdfEnable = isset($_POST['PdfEnable']) ? $_POST['PdfEnable'] : 'false'; $PdfEnable = isset($_POST['PdfEnable']) ? $_POST['PdfEnable'] : 'false';

View File

@ -1,7 +1,7 @@
<?php <?php
/** /**
* ownCloud - Files_Reader App * ownCloud - Epubreader App
* *
* @author Frank de Lange * @author Frank de Lange
* @copyright 2015 - 2017 Frank de Lange * @copyright 2015 - 2017 Frank de Lange
@ -10,13 +10,13 @@
* later. * later.
*/ */
namespace OCA\Files_Reader\AppInfo; namespace OCA\Epubreader\AppInfo;
use OCP\AppFramework\App; use OCP\AppFramework\App;
use OCP\Util; use OCP\Util;
$l = \OC::$server->getL10N('files_reader'); $l = \OC::$server->getL10N('epubreader');
\OCA\Files_Reader\Hooks::register(); \OCA\Epubreader\Hooks::register();
Util::addscript('files_reader', 'plugin'); Util::addscript('epubreader', 'plugin');
\OCP\App::registerPersonal('files_reader', 'personal'); \OCP\App::registerPersonal('epubreader', 'personal');

View File

@ -26,7 +26,7 @@ See [README] for more exhaustive information on features and potential misfeatur
[balaclark]: https://github.com/balaclark/HTML5-Comic-Book-Reader [balaclark]: https://github.com/balaclark/HTML5-Comic-Book-Reader
[PDF]: https://en.wikipedia.org/wiki/Portable_Document_Format [PDF]: https://en.wikipedia.org/wiki/Portable_Document_Format
[pdf.js]: https://github.com/mozilla/pdf.js [pdf.js]: https://github.com/mozilla/pdf.js
[README]: https://github.com/e-alfred/epubreader/blob/master/files_reader/README.md [README]: https://github.com/e-alfred/epubreader/blob/master/epubreader/README.md
]]> ]]>
</description> </description>
<version>1.4.1</version> <version>1.4.1</version>
@ -36,10 +36,10 @@ See [README] for more exhaustive information on features and potential misfeatur
<documentation>https://github.com/e-alfred/epubreader</documentation> <documentation>https://github.com/e-alfred/epubreader</documentation>
<bugs>https://github.com/e-alfred/epubreader</bugs> <bugs>https://github.com/e-alfred/epubreader</bugs>
<website>https://github.com/e-alfred/epubreader</website> <website>https://github.com/e-alfred/epubreader</website>
<screenshot>https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/files_reader-1.png</screenshot> <screenshot>https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/epubreader-1.png</screenshot>
<screenshot>https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/files_reader-3.png</screenshot> <screenshot>https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/epubreader-3.png</screenshot>
<screenshot>https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/files_reader_PDF_005.png</screenshot> <screenshot>https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/epubreader_PDF_005.png</screenshot>
<screenshot>https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/files_reader_PDF_006.png</screenshot> <screenshot>https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/epubreader_PDF_006.png</screenshot>
<screenshot>https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/photo_2017-03-15_17-22-00.jpg</screenshot> <screenshot>https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/photo_2017-03-15_17-22-00.jpg</screenshot>
<screenshot>https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/photo_2017-03-15_17-22-02.jpg</screenshot> <screenshot>https://raw.githubusercontent.com/e-alfred/epubreader/master/screenshots/photo_2017-03-15_17-22-02.jpg</screenshot>
<category>files</category> <category>files</category>

View File

@ -1,7 +1,7 @@
<?php <?php
/** /**
* ownCloud - Files_Reader App * ownCloud - Epubreader App
* *
* @author Frank de Lange * @author Frank de Lange
* @copyright 2015 Frank de Lange * @copyright 2015 Frank de Lange
@ -10,7 +10,7 @@
* later. * later.
*/ */
$this->create('reader_personal_settings', 'ajax/personal.php')->actionInclude('files_reader/ajax/personal.php'); $this->create('reader_personal_settings', 'ajax/personal.php')->actionInclude('epubreader/ajax/personal.php');
return ['routes' => [ return ['routes' => [
// Page // Page

View File

@ -9,7 +9,7 @@ $(document).ready(function(){
}; };
OC.msg.startSaving('#reader-personal .msg'); OC.msg.startSaving('#reader-personal .msg');
$.post(OC.filePath('files_reader', 'lib', 'personal-back.php'), data, readerSettings.afterSave); $.post(OC.filePath('epubreader', 'lib', 'personal-back.php'), data, readerSettings.afterSave);
}, },
afterSave : function(data){ afterSave : function(data){
OC.msg.finishedSaving('#reader-personal .msg', data); OC.msg.finishedSaving('#reader-personal .msg', data);

View File

@ -12,7 +12,7 @@
(function(OCA) { (function(OCA) {
OCA.Files_Reader = OCA.Files_Reader || {}; OCA.Epubreader = OCA.Epubreader || {};
var isMobile = navigator.userAgent.match(/Mobi/i); var isMobile = navigator.userAgent.match(/Mobi/i);
var hasTouch = 'ontouchstart' in document.documentElement; var hasTouch = 'ontouchstart' in document.documentElement;
@ -29,13 +29,13 @@
} else { } else {
downloadUrl = Files.getDownloadUrl(fileName, context.dir); downloadUrl = Files.getDownloadUrl(fileName, context.dir);
} }
OCA.Files_Reader.Plugin.show(downloadUrl, mime, true); OCA.Epubreader.Plugin.show(downloadUrl, mime, true);
} }
/** /**
* @namespace OCA.Files_Reader.Plugin * @namespace OCA.Epubreader.Plugin
*/ */
OCA.Files_Reader.Plugin = { OCA.Epubreader.Plugin = {
/** /**
* @param fileList * @param fileList
@ -75,7 +75,7 @@
*/ */
show: function(downloadUrl, mimeType, isFileList) { show: function(downloadUrl, mimeType, isFileList) {
var self = this; var self = this;
var viewer = OC.generateUrl('/apps/files_reader/?file={file}&type={type}', {file: downloadUrl, type: mimeType}); var viewer = OC.generateUrl('/apps/epubreader/?file={file}&type={type}', {file: downloadUrl, type: mimeType});
// launch in new window on all devices // launch in new window on all devices
window.open(viewer, downloadUrl); window.open(viewer, downloadUrl);
}, },
@ -140,7 +140,7 @@
})(OCA); })(OCA);
OC.Plugins.register('OCA.Files.FileList', OCA.Files_Reader.Plugin); OC.Plugins.register('OCA.Files.FileList', OCA.Epubreader.Plugin);
// FIXME: Hack for single public file view since it is not attached to the fileslist // FIXME: Hack for single public file view since it is not attached to the fileslist
$(document).ready(function(){ $(document).ready(function(){
@ -151,7 +151,7 @@ $(document).ready(function(){
) { ) {
var sharingToken = $('#sharingToken').val(); var sharingToken = $('#sharingToken').val();
var downloadUrl = OC.generateUrl('/s/{token}/download', {token: sharingToken}); var downloadUrl = OC.generateUrl('/s/{token}/download', {token: sharingToken});
var viewer = OCA.Files_Reader.Plugin; var viewer = OCA.Epubreader.Plugin;
var mime = $('#mimetype').val(); var mime = $('#mimetype').val();
viewer.show(downloadUrl, mime, false); viewer.show(downloadUrl, mime, false);
} }

View File

@ -9,7 +9,7 @@ $(document).ready(function(){
}; };
OC.msg.startSaving('#reader-personal .msg'); OC.msg.startSaving('#reader-personal .msg');
$.post(OC.filePath('files_reader', 'ajax', 'personal.php'), data, readerSettings.afterSave); $.post(OC.filePath('epubreader', 'ajax', 'personal.php'), data, readerSettings.afterSave);
}, },
afterSave : function(data){ afterSave : function(data){
OC.msg.finishedSaving('#reader-personal .msg', data); OC.msg.finishedSaving('#reader-personal .msg', data);
@ -19,4 +19,3 @@ $(document).ready(function(){
$('#PdfEnable').on("change", readerSettings.save); $('#PdfEnable').on("change", readerSettings.save);
$('#CbxEnable').on("change", readerSettings.save); $('#CbxEnable').on("change", readerSettings.save);
}); });

View File

@ -8,14 +8,14 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Controller; namespace OCA\Epubreader\Controller;
use OCP\IRequest; use OCP\IRequest;
use OCP\AppFramework\Controller; use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\Http\DataResponse;
use OCA\Files_Reader\Service\BookmarkService; use OCA\Epubreader\Service\BookmarkService;
class BookmarkController extends Controller { class BookmarkController extends Controller {

View File

@ -8,12 +8,12 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Controller; namespace OCA\Epubreader\Controller;
use OCP\IRequest; use OCP\IRequest;
use OCP\AppFramework\Controller; use OCP\AppFramework\Controller;
use OCA\Files_Reader\Service\MetadataService; use OCA\Epubreader\Service\MetadataService;
class MetadataController extends Controller { class MetadataController extends Controller {

View File

@ -8,7 +8,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Controller; namespace OCA\Epubreader\Controller;
use OCP\AppFramework\Controller; use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Http\TemplateResponse;
@ -20,9 +20,9 @@ use OCP\Share\IManager;
use OCP\Files\FileInfo; use OCP\Files\FileInfo;
use OCP\Files\NotFoundException; use OCP\Files\NotFoundException;
use OCA\Files_Reader\Service\BookmarkService; use OCA\Epubreader\Service\BookmarkService;
use OCA\Files_Reader\Service\MetadataService; use OCA\Epubreader\Service\MetadataService;
use OCA\Files_Reader\Service\PreferenceService; use OCA\Epubreader\Service\PreferenceService;
class PageController extends Controller { class PageController extends Controller {

View File

@ -8,14 +8,14 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Controller; namespace OCA\Epubreader\Controller;
use OCP\IRequest; use OCP\IRequest;
use OCP\IURLGenerator; use OCP\IURLGenerator;
use OCP\AppFramework\Http; use OCP\AppFramework\Http;
use OCP\AppFramework\Controller; use OCP\AppFramework\Controller;
use OCA\Files_Reader\Service\PreferenceService; use OCA\Epubreader\Service\PreferenceService;
class PreferenceController extends Controller { class PreferenceController extends Controller {

View File

@ -8,7 +8,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Db; namespace OCA\Epubreader\Db;
use OCP\AppFramework\Db\Entity; use OCP\AppFramework\Db\Entity;

View File

@ -8,12 +8,12 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Db; namespace OCA\Epubreader\Db;
use OCP\IDBConnection; use OCP\IDBConnection;
use OCA\Files_Reader\Utility\Time; use OCA\Epubreader\Utility\Time;
class BookmarkMapper extends ReaderMapper { class BookmarkMapper extends ReaderMapper {

View File

@ -8,7 +8,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Db; namespace OCA\Epubreader\Db;
use OCP\AppFramework\Db\Entity; use OCP\AppFramework\Db\Entity;

View File

@ -8,9 +8,9 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Db; namespace OCA\Epubreader\Db;
use OCA\Files_Reader\Utility\Time; use OCA\Epubreader\Utility\Time;
use OCP\IDBConnection; use OCP\IDBConnection;
class PreferenceMapper extends ReaderMapper { class PreferenceMapper extends ReaderMapper {

View File

@ -8,7 +8,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Db; namespace OCA\Epubreader\Db;
use OCP\AppFramework\Db\Entity; use OCP\AppFramework\Db\Entity;

View File

@ -8,13 +8,13 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Db; namespace OCA\Epubreader\Db;
use OCP\IDBConnection; use OCP\IDBConnection;
use OCP\AppFramework\Db\Mapper; use OCP\AppFramework\Db\Mapper;
use OCP\AppFramework\Db\Entity; use OCP\AppFramework\Db\Entity;
use OCA\Files_Reader\Utility\Time; use OCA\Epubreader\Utility\Time;
abstract class ReaderMapper extends Mapper { abstract class ReaderMapper extends Mapper {

View File

@ -8,7 +8,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader; namespace OCA\Epubreader;
use OCP\IDBConnection; use OCP\IDBConnection;
use OCP\Files\Node; use OCP\Files\Node;
@ -19,7 +19,7 @@ use \OC\User\User as User;
class Hooks { class Hooks {
public static function register() { public static function register() {
Util::connectHook('\OCP\Config', 'js', 'OCA\Files_Reader\Hooks', 'announce_settings'); Util::connectHook('\OCP\Config', 'js', 'OCA\Epubreader\Hooks', 'announce_settings');
\OC::$server->getRootFolder()->listen('\OC\Files', 'preDelete', function (Node $node) { \OC::$server->getRootFolder()->listen('\OC\Files', 'preDelete', function (Node $node) {
$fileId = $node->getId(); $fileId = $node->getId();

View File

@ -8,10 +8,10 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Service; namespace OCA\Epubreader\Service;
use OCA\Files_Reader\Db\BookmarkMapper; use OCA\Epubreader\Db\BookmarkMapper;
class BookmarkService extends Service { class BookmarkService extends Service {

View File

@ -8,7 +8,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Service; namespace OCA\Epubreader\Service;
use OCP\App\IAppManager; use OCP\App\IAppManager;

View File

@ -8,9 +8,9 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Service; namespace OCA\Epubreader\Service;
use OCA\Files_Reader\Db\PreferenceMapper; use OCA\Epubreader\Db\PreferenceMapper;
class PreferenceService extends Service { class PreferenceService extends Service {

View File

@ -8,9 +8,9 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Service; namespace OCA\Epubreader\Service;
use OCA\Files_Reader\Db\ReaderMapper; use OCA\Epubreader\Db\ReaderMapper;
abstract class Service { abstract class Service {

View File

@ -8,7 +8,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader\Utility; namespace OCA\Epubreader\Utility;
class Time { class Time {
public function getTime() { public function getTime() {

View File

@ -1,7 +1,7 @@
<?php <?php
/** /**
* ownCloud - Files_Reader App * ownCloud - Epubreader App
* *
* @author Frank de Lange * @author Frank de Lange
* @copyright 2014,2018 Frank de Lange * @copyright 2014,2018 Frank de Lange
@ -10,7 +10,7 @@
* later. * later.
*/ */
namespace OCA\Files_Reader; namespace OCA\Epubreader;
/** /**
* Config class for Reader * Config class for Reader
@ -25,7 +25,7 @@ class Config
* @return string retrieved value or default * @return string retrieved value or default
*/ */
public static function get($key, $default) { public static function get($key, $default) {
return \OC::$server->getConfig()->getUserValue(\OCP\User::getUser(), 'files_reader', $key, $default); return \OC::$server->getConfig()->getUserValue(\OCP\User::getUser(), 'epubreader', $key, $default);
} }
/** /**
@ -36,7 +36,7 @@ class Config
* @return bool success * @return bool success
*/ */
public static function set($key, $value) { public static function set($key, $value) {
return \OC::$server->getConfig()->setUserValue(\OCP\User::getUser(), 'files_reader', $key, $value); return \OC::$server->getConfig()->setUserValue(\OCP\User::getUser(), 'epubreader', $key, $value);
} }
/** /**
@ -47,7 +47,7 @@ class Config
* @return string retrieved value or default * @return string retrieved value or default
*/ */
public static function getApp($key, $default) { public static function getApp($key, $default) {
return \OC::$server->getConfig()->getAppValue('files_reader', $key, $default); return \OC::$server->getConfig()->getAppValue('epubreader', $key, $default);
} }
/** /**
@ -58,6 +58,6 @@ class Config
* @return bool success * @return bool success
*/ */
public static function setApp($key, $value) { public static function setApp($key, $value) {
return \OC::$server->getConfig()->setAppValue('files_reader', $key, $value); return \OC::$server->getConfig()->setAppValue('epubreader', $key, $value);
} }
} }

View File

@ -1,6 +1,6 @@
<?php <?php
/** /**
* ownCloud - Files_Reader app * ownCloud - Epubreader app
* *
* Copyright (c) 2014,2018 Frank de Lange * Copyright (c) 2014,2018 Frank de Lange
* This file is licensed under the Affero General Public License version 3 or * This file is licensed under the Affero General Public License version 3 or
@ -8,13 +8,13 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
namespace OCA\Files_Reader; namespace OCA\Epubreader;
use OCP\Util; use OCP\Util;
#$l = \OC::$server->getL10N('files_reader'); #$l = \OC::$server->getL10N('epubreader');
$tmpl = new \OCP\Template('files_reader', 'settings-personal'); $tmpl = new \OCP\Template('epubreader', 'settings-personal');
$EpubEnable = Config::get('epub_enable', 'true'); $EpubEnable = Config::get('epub_enable', 'true');
$PdfEnable = Config::get('pdf_enable', 'true'); $PdfEnable = Config::get('pdf_enable', 'true');
$CbxEnable = Config::get('cbx_enable', 'true'); $CbxEnable = Config::get('cbx_enable', 'true');

View File

@ -14,7 +14,7 @@
$annotations = $_['annotations']; $annotations = $_['annotations'];
$title = htmlentities(basename($downloadLink)); $title = htmlentities(basename($downloadLink));
$revision = '0048'; $revision = '0048';
$version = \OCP\App::getAppVersion('files_reader') . '.' . $revision; $version = \OCP\App::getAppVersion('epubreader') . '.' . $revision;
/* Mobile safari, the new IE6 */ /* Mobile safari, the new IE6 */
$idevice = (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') $idevice = (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone')
@ -28,29 +28,29 @@
?> ?>
<html dir="ltr"> <html dir="ltr">
<head class="session" data-nonce='<?php p($nonce);?>' data-downloadlink='<?php print_unescaped($downloadLink);?>' data-fileid='<?php print_unescaped($fileId);?>' data-filetype='<?php print_unescaped($fileType);?>' data-filename='<?php print_unescaped($fileName);?>' data-version='<?php print_unescaped($version);?>' data-basepath='<?php p($urlGenerator->linkTo("files_reader",""));?>' data-scope='<?php print_unescaped($scope);?>' data-cursor='<?php print_unescaped($cursor);?>' data-defaults='<?php print_unescaped($defaults);?>' data-preferences='<?php print_unescaped($preferences);?>' data-metadata='<?php print_unescaped($metadata);?>' data-annotations='<?php print_unescaped($annotations);?>'> <head class="session" data-nonce='<?php p($nonce);?>' data-downloadlink='<?php print_unescaped($downloadLink);?>' data-fileid='<?php print_unescaped($fileId);?>' data-filetype='<?php print_unescaped($fileType);?>' data-filename='<?php print_unescaped($fileName);?>' data-version='<?php print_unescaped($version);?>' data-basepath='<?php p($urlGenerator->linkTo("epubreader",""));?>' data-scope='<?php print_unescaped($scope);?>' data-cursor='<?php print_unescaped($cursor);?>' data-defaults='<?php print_unescaped($defaults);?>' data-preferences='<?php print_unescaped($preferences);?>' data-metadata='<?php print_unescaped($metadata);?>' data-annotations='<?php print_unescaped($annotations);?>'>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<!-- <base href="<?php p($urlGenerator->linkTo('files_reader',''));?>"> --> <!-- <base href="<?php p($urlGenerator->linkTo('epubreader',''));?>"> -->
<title> <title>
<?php p($title);?> <?php p($title);?>
</title> </title>
<link rel="shortcut icon" href="<?php p($urlGenerator->linkTo('files_reader', 'img/book.png')) ?>"> <link rel="shortcut icon" href="<?php p($urlGenerator->linkTo('epubreader', 'img/book.png')) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/icomoon/style.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/icomoon/style.css')) ?>?v=<?php p($version) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/cbrjs/css/cbr.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/cbrjs/css/cbr.css')) ?>?v=<?php p($version) ?>">
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'js/lib/Blob.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'js/lib/Blob.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/libs/jquery.min.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/epubjs/libs/jquery.min.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/sindresorhus/screenfull.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/sindresorhus/screenfull.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pixastic/pixastic_combined.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pixastic/pixastic_combined.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/bitjs/archive/archive.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/bitjs/archive/archive.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/cbrjs/cbr.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/cbrjs/cbr.js')) ?>?v=<?php p($version) ?>"> </script>
<?php if ($idevice): ?> <?php if ($idevice): ?>
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/cbrjs/css/idevice.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/cbrjs/css/idevice.css')) ?>?v=<?php p($version) ?>">
<?php endif; ?> <?php endif; ?>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'js/ready.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'js/ready.js')) ?>?v=<?php p($version) ?>"> </script>
</head> </head>
<body> <body>
@ -110,7 +110,7 @@
<!-- loading overlay --> <!-- loading overlay -->
<div id="cbr-loading-overlay" class="cbr-control control overlay" name="loadingOverlay" style="display:none"> <div id="cbr-loading-overlay" class="cbr-control control overlay" name="loadingOverlay" style="display:none">
<img src="<?php p($urlGenerator->linkTo('files_reader', 'img/loading.gif')) ?>"> <img src="<?php p($urlGenerator->linkTo('epubreader', 'img/loading.gif')) ?>">
</div> </div>
<!-- /loading overlay --> <!-- /loading overlay -->

View File

@ -14,7 +14,7 @@
$annotations = $_['annotations']; $annotations = $_['annotations'];
$title = htmlentities(basename($downloadLink)); $title = htmlentities(basename($downloadLink));
$revision = '0072'; $revision = '0072';
$version = \OCP\App::getAppVersion('files_reader') . '.' . $revision; $version = \OCP\App::getAppVersion('epubreader') . '.' . $revision;
/* Mobile safari, the new IE6 */ /* Mobile safari, the new IE6 */
$idevice = (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') $idevice = (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone')
@ -28,39 +28,39 @@
?> ?>
<html dir="ltr"> <html dir="ltr">
<head class="session" data-nonce='<?php p($nonce);?>' data-downloadlink='<?php print_unescaped($downloadLink);?>' data-fileid='<?php print_unescaped($fileId);?>' data-filetype='<?php print_unescaped($fileType);?>' data-filename='<?php print_unescaped($fileName);?>' data-version='<?php print_unescaped($version);?>' data-basepath='<?php p($urlGenerator->linkTo("files_reader",""));?>' data-scope='<?php print_unescaped($scope);?>' data-cursor='<?php print_unescaped($cursor);?>' data-defaults='<?php print_unescaped($defaults);?>' data-preferences='<?php print_unescaped($preferences);?>' data-metadata='<?php print_unescaped($metadata);?>' data-annotations='<?php print_unescaped($annotations);?>'> <head class="session" data-nonce='<?php p($nonce);?>' data-downloadlink='<?php print_unescaped($downloadLink);?>' data-fileid='<?php print_unescaped($fileId);?>' data-filetype='<?php print_unescaped($fileType);?>' data-filename='<?php print_unescaped($fileName);?>' data-version='<?php print_unescaped($version);?>' data-basepath='<?php p($urlGenerator->linkTo("epubreader",""));?>' data-scope='<?php print_unescaped($scope);?>' data-cursor='<?php print_unescaped($cursor);?>' data-defaults='<?php print_unescaped($defaults);?>' data-preferences='<?php print_unescaped($preferences);?>' data-metadata='<?php print_unescaped($metadata);?>' data-annotations='<?php print_unescaped($annotations);?>'>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<!-- <base href="<?php p($urlGenerator->linkTo('files_reader',''));?>"> --> <!-- <base href="<?php p($urlGenerator->linkTo('epubreader',''));?>"> -->
<title> <title>
<?php p($title);?> <?php p($title);?>
</title> </title>
<link rel="shortcut icon" href="<?php p($urlGenerator->linkTo('files_reader', 'img/book.png')) ?>"> <link rel="shortcut icon" href="<?php p($urlGenerator->linkTo('epubreader', 'img/book.png')) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/icomoon/style.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/icomoon/style.css')) ?>?v=<?php p($version) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/css/main.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/epubjs/css/main.css')) ?>?v=<?php p($version) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/css/sidebar.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/epubjs/css/sidebar.css')) ?>?v=<?php p($version) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/css/popup.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/epubjs/css/popup.css')) ?>?v=<?php p($version) ?>">
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'js/lib/typedarray.min.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'js/lib/typedarray.min.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'js/lib/Blob.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'js/lib/Blob.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'js/lib/wgxpath.install.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'js/lib/wgxpath.install.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/libs/jquery.min.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/epubjs/libs/jquery.min.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/bartaz/jquery.highlight.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/bartaz/jquery.highlight.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/jquery/put-delete.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/jquery/put-delete.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/sindresorhus/screenfull.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/sindresorhus/screenfull.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/libs/zip.min.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/epubjs/libs/zip.min.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/epub.min.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/epubjs/epub.min.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/hooks.min.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/epubjs/hooks.min.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/hooks/extensions/highlight.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/epubjs/hooks/extensions/highlight.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/reader.min.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/epubjs/reader.min.js')) ?>?v=<?php p($version) ?>"> </script>
<?php if ($idevice): ?> <?php if ($idevice): ?>
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/css/idevice.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/epubjs/css/idevice.css')) ?>?v=<?php p($version) ?>">
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/bgrins/spectrum.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/bgrins/spectrum.js')) ?>?v=<?php p($version) ?>"> </script>
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/bgrins/spectrum.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/bgrins/spectrum.css')) ?>?v=<?php p($version) ?>">
<?php endif; ?> <?php endif; ?>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'js/ready.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'js/ready.js')) ?>?v=<?php p($version) ?>"> </script>
</head> </head>
<body> <body>
<div id="outerContainer"> <div id="outerContainer">
@ -283,7 +283,7 @@
</div> </div>
</div> </div>
<div id="loader"> <div id="loader">
<img src="<?php p($urlGenerator->linkTo('files_reader', 'img/loading.gif')) ?>"> <img src="<?php p($urlGenerator->linkTo('epubreader', 'img/loading.gif')) ?>">
</div> </div>
<!-- /navigation + viewer --> <!-- /navigation + viewer -->

View File

@ -14,7 +14,7 @@
$annotations = $_['annotations']; $annotations = $_['annotations'];
$title = htmlentities(basename($downloadLink)); $title = htmlentities(basename($downloadLink));
$revision = '0130'; $revision = '0130';
$version = \OCP\App::getAppVersion('files_reader') . '.' . $revision; $version = \OCP\App::getAppVersion('epubreader') . '.' . $revision;
/* Mobile safari, the new IE6 */ /* Mobile safari, the new IE6 */
$idevice = (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') $idevice = (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone')
@ -28,49 +28,49 @@
?> ?>
<html dir="ltr"> <html dir="ltr">
<head class="session" data-nonce='<?php p($nonce);?>' data-downloadlink='<?php print_unescaped($downloadLink);?>' data-fileid='<?php print_unescaped($fileId);?>' data-filetype='<?php print_unescaped($fileType);?>' data-filename='<?php print_unescaped($fileName);?>' data-version='<?php print_unescaped($version);?>' data-basepath='<?php p($urlGenerator->linkTo("files_reader",""));?>' data-scope='<?php print_unescaped($scope);?>' data-cursor='<?php print_unescaped($cursor);?>' data-defaults='<?php print_unescaped($defaults);?>' data-preferences='<?php print_unescaped($preferences);?>' data-metadata='<?php print_unescaped($metadata);?>' data-annotations='<?php print_unescaped($annotations);?>'> <head class="session" data-nonce='<?php p($nonce);?>' data-downloadlink='<?php print_unescaped($downloadLink);?>' data-fileid='<?php print_unescaped($fileId);?>' data-filetype='<?php print_unescaped($fileType);?>' data-filename='<?php print_unescaped($fileName);?>' data-version='<?php print_unescaped($version);?>' data-basepath='<?php p($urlGenerator->linkTo("epubreader",""));?>' data-scope='<?php print_unescaped($scope);?>' data-cursor='<?php print_unescaped($cursor);?>' data-defaults='<?php print_unescaped($defaults);?>' data-preferences='<?php print_unescaped($preferences);?>' data-metadata='<?php print_unescaped($metadata);?>' data-annotations='<?php print_unescaped($annotations);?>'>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<!-- <base href="<?php p($urlGenerator->linkTo('files_reader',''));?>"> --> <!-- <base href="<?php p($urlGenerator->linkTo('epubreader',''));?>"> -->
<title> <title>
<?php p($title);?> <?php p($title);?>
</title> </title>
<link rel="shortcut icon" href="<?php p($urlGenerator->linkTo('files_reader', 'img/book.png')) ?>"> <link rel="shortcut icon" href="<?php p($urlGenerator->linkTo('epubreader', 'img/book.png')) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/icomoon/style.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/icomoon/style.css')) ?>?v=<?php p($version) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/css/main.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/css/main.css')) ?>?v=<?php p($version) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/css/sidebar.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/css/sidebar.css')) ?>?v=<?php p($version) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/css/text_layer_builder.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/css/text_layer_builder.css')) ?>?v=<?php p($version) ?>">
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/css/annotation_layer_builder.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/css/annotation_layer_builder.css')) ?>?v=<?php p($version) ?>">
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/libs/jquery.min.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/epubjs/libs/jquery.min.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/bartaz/jquery.highlight.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/bartaz/jquery.highlight.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/jquery/put-delete.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/jquery/put-delete.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/sindresorhus/screenfull.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/sindresorhus/screenfull.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/lib/pdf.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/lib/pdf.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/pdf.reader.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/pdf.reader.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/services/eventbus_service.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/services/eventbus_service.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/services/link_service.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/services/link_service.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/services/simple_link_service.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/services/simple_link_service.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/controllers/progress_controller.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/controllers/progress_controller.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/controllers/textlayer_controller.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/controllers/textlayer_controller.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/controllers/search_controller.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/controllers/search_controller.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/controllers/reader_controller.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/controllers/reader_controller.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/controllers/sidebar_controller.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/controllers/sidebar_controller.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/controllers/settings_controller.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/controllers/settings_controller.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/controllers/controls_controller.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/controllers/controls_controller.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/controllers/toc_controller.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/controllers/toc_controller.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/controllers/outline_controller.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/controllers/outline_controller.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/controllers/annotationlayer_controller.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/controllers/annotationlayer_controller.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/controllers/notes_controller.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/controllers/notes_controller.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/controllers/bookmarks_controller.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/controllers/bookmarks_controller.js')) ?>?v=<?php p($version) ?>"> </script>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/controllers/styles_controller.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/controllers/styles_controller.js')) ?>?v=<?php p($version) ?>"> </script>
<?php if ($idevice): ?> <?php if ($idevice): ?>
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/css/idevice.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/pdfjs/css/idevice.css')) ?>?v=<?php p($version) ?>">
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/bgrins/spectrum.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'vendor/bgrins/spectrum.js')) ?>?v=<?php p($version) ?>"> </script>
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/bgrins/spectrum.css')) ?>?v=<?php p($version) ?>"> <link rel="stylesheet" href="<?php p($urlGenerator->linkTo('epubreader', 'vendor/bgrins/spectrum.css')) ?>?v=<?php p($version) ?>">
<?php endif; ?> <?php endif; ?>
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'js/ready.js')) ?>?v=<?php p($version) ?>"> </script> <script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('epubreader', 'js/ready.js')) ?>?v=<?php p($version) ?>"> </script>
</head> </head>
<body> <body>
<div id="outerContainer"> <div id="outerContainer">
@ -310,7 +310,7 @@
</div> </div>
</div> </div>
<div id="loader"> <div id="loader">
<img src="<?php p($urlGenerator->linkTo('files_reader', 'img/loading.gif')) ?>"> <img src="<?php p($urlGenerator->linkTo('epubreader', 'img/loading.gif')) ?>">
</div> </div>
<!-- /navigation + viewer --> <!-- /navigation + viewer -->

View File

@ -8,8 +8,8 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
script('files_reader', 'settings'); script('epubreader', 'settings');
style('files_reader', 'settings'); style('epubreader', 'settings');
?> ?>

2
vendor/cbrjs/cbr.js vendored
View File

@ -490,7 +490,7 @@ ComicBook = (function ($) {
if (parent !== window) { if (parent !== window) {
$('.close').removeClass('hide'); $('.close').removeClass('hide');
$('.close').on('click', function() { parent.OCA.Files_Reader.Plugin.hide(); }); $('.close').on('click', function() { parent.OCA.Epubreader.Plugin.hide(); });
} }
}; };

File diff suppressed because one or more lines are too long

View File

@ -62,7 +62,7 @@ PDFJS.reader.SettingsController = function() {
$close.show(); $close.show();
$close.on("click", function () { $close.on("click", function () {
reader.book.destroy(); reader.book.destroy();
parent.OCA.Files_Reader.Plugin.hide(); parent.OCA.Epubreader.Plugin.hide();
}); });
} }