mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-09-13 08:24:55 +00:00
Compare commits
7 Commits
verify/ofd
...
copilot/su
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4592d0881f | ||
|
|
45d38310ac | ||
|
|
b5c95b261d | ||
|
|
21be47f560 | ||
|
|
8dd9b78c48 | ||
|
|
4ab383709c | ||
|
|
4690a5353b |
@@ -202,13 +202,6 @@ body { margin: 0; }
|
|||||||
src: url(./fonts/simhei.woff);
|
src: url(./fonts/simhei.woff);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* OFD 表格竖线溢出修复 */
|
|
||||||
/* cnofd 库在 SVG 上设置了 inline style overflow:visible,导致表格中间竖线的 */
|
|
||||||
/* path 元素超出 SVG 容器高度后仍然可见。使用 !important 覆盖 inline style。 */
|
|
||||||
#content svg {
|
|
||||||
overflow: hidden !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gray {
|
.gray {
|
||||||
-webkit-filter: grayscale(100%);
|
-webkit-filter: grayscale(100%);
|
||||||
-moz-filter: grayscale(100%);
|
-moz-filter: grayscale(100%);
|
||||||
|
|||||||
1
tests/e2e/.gitignore
vendored
1
tests/e2e/.gitignore
vendored
@@ -4,6 +4,7 @@ test-results/
|
|||||||
|
|
||||||
__pycache__/
|
__pycache__/
|
||||||
fixtures/archive-tmp/
|
fixtures/archive-tmp/
|
||||||
|
fixtures/zip-tmp/
|
||||||
fixtures/sample.docx
|
fixtures/sample.docx
|
||||||
fixtures/sample.xlsx
|
fixtures/sample.xlsx
|
||||||
fixtures/sample.pptx
|
fixtures/sample.pptx
|
||||||
|
|||||||
Binary file not shown.
@@ -87,15 +87,9 @@ try {
|
|||||||
|
|
||||||
ensureArchive('sample.7z', out => {
|
ensureArchive('sample.7z', out => {
|
||||||
try {
|
try {
|
||||||
execFileSync('7z', ['a', '-bd', '-y', '-mtc=off', '-mta=off', '-mtm=off', out, 'inner.txt'], {
|
execFileSync('7z', ['a', '-bd', '-y', out, 'inner.txt'], { cwd: archiveWork, stdio: 'ignore' });
|
||||||
cwd: archiveWork,
|
} catch {
|
||||||
});
|
execFileSync('bsdtar', ['-a', '-cf', out, 'inner.txt'], { cwd: archiveWork });
|
||||||
} catch (err) {
|
|
||||||
if (err && typeof err === 'object' && 'code' in err && err.code === 'ENOENT') {
|
|
||||||
execFileSync('bsdtar', ['-a', '-cf', out, 'inner.txt'], { cwd: archiveWork });
|
|
||||||
} else {
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -105,13 +99,6 @@ try {
|
|||||||
fs.rmSync(archiveWork, { recursive: true, force: true });
|
fs.rmSync(archiveWork, { recursive: true, force: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
const rarFixture = path.join(fixturesDir, 'sample.rar');
|
|
||||||
if (!fs.existsSync(rarFixture)) {
|
|
||||||
throw new Error(
|
|
||||||
'Missing required fixture tests/e2e/fixtures/sample.rar. Restore it from git (e.g. `git checkout -- tests/e2e/fixtures/sample.rar`) before running e2e.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 1x1 png
|
// 1x1 png
|
||||||
write(
|
write(
|
||||||
'sample.png',
|
'sample.png',
|
||||||
|
|||||||
Reference in New Issue
Block a user