Skip to content

Commit

Permalink
update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 29, 2023
1 parent fa37936 commit 4e95447
Show file tree
Hide file tree
Showing 161 changed files with 81,341 additions and 10,063 deletions.
14 changes: 7 additions & 7 deletions dist/chrome/background.js

Large diffs are not rendered by default.

856 changes: 342 additions & 514 deletions dist/chrome/build/pdf.js

Large diffs are not rendered by default.

9,442 changes: 7,269 additions & 2,173 deletions dist/chrome/build/pdf.worker.js

Large diffs are not rendered by default.

64 changes: 33 additions & 31 deletions dist/chrome/content_script.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dist/chrome/html/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const open = (file) => {
txtWithPTag += txtContent.replace(/\n\n/g, "</p><p>");
txtWithPTag += "</p>";

let html = `<!DOCTYPE html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title></title></head><body><article>${txtWithPTag}</article></body></html>`;
let html =
`<!DOCTYPE html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title></title></head><body><article>${txtWithPTag}</article></body></html>`;
document.write(html);
document.close();
};
Expand Down Expand Up @@ -48,7 +49,7 @@ const dragOverHandler = (e) => e.preventDefault();
const dropHandler = (e) => {
e.preventDefault();
const item = Array.from(e.dataTransfer.items).find(
(item) => item.kind === "file"
(item) => item.kind === "file",
);
if (item) {
const entry = item.webkitGetAsEntry();
Expand All @@ -73,5 +74,6 @@ function escapeHTML(htmlStr) {
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#39;");
.replace(/'/g, "&#39;")
.replace(/\//g, "&#x2F;");
}
32 changes: 24 additions & 8 deletions dist/chrome/libs/foliate-js/make.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/chrome/libs/subtitle/subtitle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "__MSG_brandName__",
"description": "__MSG_brandDescription__",
"version": "0.6.20",
"version": "0.6.21",
"default_locale": "en",
"background": {
"service_worker": "background.js"
Expand Down
66 changes: 34 additions & 32 deletions dist/chrome/options.js

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions dist/chrome/pdf/custom-pdf.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,52 @@ div,p {
transform: translate(-50%, -50%) rotate(-45deg);
}




.translate-pending {
background-image: url(images/loading.svg);
background-repeat: no-repeat;
background-position: center;
background-size: 16px 16px;
transition-property: background-size;
transition-delay: var(--loading-icon-delay);
opacity: 0.2;
}

.translate-retry {
cursor: pointer;
}

.translate-retry::after {
content: "🔄";
position: absolute;
top: 50%;
right: -14px;
display: block;
transform: translate(100%, -50%);
}
.immersive-translate-text-layer p {
line-height: 1.3;
margin-bottom: 0.5rem;
transform-origin: left top;
}
@media all and (max-width: 560px) {
.immersive-translate-text-layer p {
margin-bottom: 0rem;
}
}
.immersive-translate-text-layer {
opacity: 1 !important;
}
.immersive-translate-text-layer ::-moz-selection {
background: #bfc5fc !important;
}
.immersive-translate-text-layer ::selection {
background: #bfc5fc !important;
}
.pdfViewer.scrollHorizontal,
.spread {
white-space: normal;
/* white-space: nowrap; */
}
7 changes: 2 additions & 5 deletions dist/chrome/pdf/debugger.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
*/

#PDFBug,
#PDFBug input,
#PDFBug button,
#PDFBug select {
#PDFBug :is(input, button, select) {
font: message-box;
}
#PDFBug {
Expand Down Expand Up @@ -67,8 +65,7 @@
text-align: center;
}
#PDFBug table.showText,
#PDFBug table.showText tr,
#PDFBug table.showText td {
#PDFBug table.showText :is(tr, td) {
border: 1px solid black;
padding: 1px;
}
Expand Down
3 changes: 3 additions & 0 deletions dist/chrome/pdf/images/gv-toolbarButton-download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions dist/chrome/pdf/images/gv-toolbarButton-openinapp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4e95447

Please sign in to comment.