Skip to content

TagSpaces is an offline, open source, document manager with tagging support

feat: integrating epub viewer extention

Ilian Sapundshiev322d5d9318c3
diff --git a/app/app.html b/app/app.html
index 0b4253a70..6f981c2a5 100644
--- a/app/app.html
+++ b/app/app.html
@@ -4,7 +4,7 @@
<title>TagSpaces Desktop</title>
<meta
http-equiv="Content-Security-Policy"
- content="connect-src file: *; default-src 'self' ; object-src 'none' ; script-src 'self' 'unsafe-inline' ; style-src 'self' 'unsafe-inline' data: blob: ; media-src *; img-src * data: content:;"
+ content="connect-src files: *; default-src 'self' ; object-src 'none' ; script-src 'self' 'unsafe-inline' ; style-src 'self' 'unsafe-inline' data: blob: ; media-src *; img-src * blob: data: content:;"
/>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=yes" />
diff --git a/app/appd.html b/app/appd.html
index ab2d2059c..d1809c5b3 100644
--- a/app/appd.html
+++ b/app/appd.html
@@ -4,7 +4,7 @@
<title>TagSpaces Desktop Dev</title>
<meta
http-equiv="Content-Security-Policy"
- content="connect-src file: *; default-src 'self' ; object-src 'none' ; font-src http://localhost:1212 'self'; script-src http://localhost:1212 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline' data: blob: ; media-src *; img-src * data: content:;"
+ content="connect-src files: *; default-src 'self' ; object-src 'none' ; font-src http://localhost:1212 'self'; script-src http://localhost:1212 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline' data: blob: ; media-src *; img-src * blob: data: content:;"
/>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=yes" />
diff --git a/app/package-template.json b/app/package-template.json
index ffcabab47..08f5406cf 100644
--- a/app/package-template.json
+++ b/app/package-template.json
@@ -1,10 +1,10 @@
{
"webDependencies": {
- "@tagspaces/extensions": "1.0.20"
+ "@tagspaces/extensions": "1.0.21"
},
"nodeDependencies": {
"@tagspaces/tagspaces-ws": "1.2.1",
- "@tagspaces/extensions": "1.0.20",
+ "@tagspaces/extensions": "1.0.21",
"sharp": "^0.29.3"
}
}
diff --git a/app/reducers/settings-default.ts b/app/reducers/settings-default.ts
index c50367ee7..2247741d6 100644
--- a/app/reducers/settings-default.ts
+++ b/app/reducers/settings-default.ts
@@ -45,6 +45,11 @@ export function findAvailableExtensions() {
extensionName: 'Documents Viewer',
extensionType: 'viewer'
},
+ {
+ extensionId: '@tagspaces/extensions/ebook-viewer',
+ extensionName: 'eBook Viewer',
+ extensionType: 'viewer'
+ },
{
extensionId: '@tagspaces/extensions/html-editor',
extensionName: 'HTML Editor',
@@ -318,6 +323,11 @@ export default {
viewer: '@tagspaces/extensions/mhtml-viewer',
color: ''
},
+ {
+ type: 'epub',
+ viewer: '@tagspaces/extensions/ebook-viewer',
+ color: ''
+ },
{
type: 'flac',
viewer: '@tagspaces/extensions/media-player',
diff --git a/cordova/www/index.html b/cordova/www/index.html
index 46b20b085..41c1aac39 100644
--- a/cordova/www/index.html
+++ b/cordova/www/index.html
@@ -3,7 +3,7 @@
<head>
<title>TagSpaces Mobile</title>
- <meta http-equiv="Content-Security-Policy" content="connect-src file: *; default-src 'self' data: gap: cdvfile: ; script-src 'self' 'unsafe-inline' ; style-src 'self' 'unsafe-inline' data: blob: ; media-src *; img-src * data: content:;">
+ <meta http-equiv="Content-Security-Policy" content="connect-src files: *; default-src 'self' data: gap: cdvfile: ; script-src 'self' 'unsafe-inline' ; style-src 'self' 'unsafe-inline' data: blob: ; media-src *; img-src * blob: data: content:;">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta charset="utf-8">
diff --git a/web/index.html b/web/index.html
index 7064bf492..1f5cd0a2b 100644
--- a/web/index.html
+++ b/web/index.html
@@ -4,7 +4,7 @@
<head>
<title>TagSpaces Web</title>
<meta http-equiv="Content-Security-Policy"
- content="connect-src *; default-src 'self' ; object-src 'none' ; script-src 'self' 'unsafe-inline' ; style-src 'self' 'unsafe-inline' data: blob: ; media-src *; img-src * data: content:;">
+ content="connect-src *; default-src 'self' ; object-src 'none' ; script-src 'self' 'unsafe-inline' ; style-src 'self' 'unsafe-inline' data: blob: ; media-src *; img-src * blob: data: content:;">
<meta name="format-detection" content="telephone=yes">
<meta name="msapplication-tap-highlight" content="no">
<meta charset="utf-8">
diff --git a/yarn.lock b/yarn.lock
index 64777e9a0..dfa299f81 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4328,10 +4328,10 @@
dependencies:
defer-to-connect "^1.0.1"
-"@tagspaces/[email protected]":
- version "1.3.8"
- resolved "https://registry.yarnpkg.com/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-1.3.8.tgz#59fc365b5cec244a5a200c114656c457b0ac4f25"
- integrity sha512-x5ThtKeCPuAYYoef1XI8aMjsvdwG5NxLEvv971LtgwQFQBO+vvKrumepGWiDas4MZIxKWWqyjymbBXbN22LJ1w==
+"@tagspaces/[email protected]":
+ version "1.3.9"
+ resolved "https://registry.yarnpkg.com/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-1.3.9.tgz#01b19b75921acf55e5f6a189f944d6b87a9b11cc"
+ integrity sha512-/s6Z2vpmLo2Gak/4aTQuRCD0hnGEH/11KghN/d0vRslBiAWE8Z/Nz0aeLo0I9DFlo3YQZ5YCMGi+tqz4osdhgw==
"@testim/chrome-version@^1.0.7":
version "1.0.7"