mirror of
https://github.com/kekingcn/kkFileView.git
synced 2026-04-01 13:15:13 +00:00
Compare commits
4 Commits
copilot/su
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02bcd35779 | ||
|
|
b6dd8129ea | ||
|
|
db5cd68a1e | ||
|
|
d1c310ab63 |
@@ -202,6 +202,13 @@ body { margin: 0; }
|
||||
src: url(./fonts/simhei.woff);
|
||||
}
|
||||
|
||||
/* OFD 表格竖线溢出修复 */
|
||||
/* cnofd 库在 SVG 上设置了 inline style overflow:visible,导致表格中间竖线的 */
|
||||
/* path 元素超出 SVG 容器高度后仍然可见。使用 !important 覆盖 inline style。 */
|
||||
#content svg {
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
.gray {
|
||||
-webkit-filter: grayscale(100%);
|
||||
-moz-filter: grayscale(100%);
|
||||
|
||||
@@ -87,9 +87,15 @@ try {
|
||||
|
||||
ensureArchive('sample.7z', out => {
|
||||
try {
|
||||
execFileSync('7z', ['a', '-bd', '-y', out, 'inner.txt'], { cwd: archiveWork });
|
||||
} catch {
|
||||
execFileSync('bsdtar', ['-a', '-cf', out, 'inner.txt'], { cwd: archiveWork });
|
||||
execFileSync('7z', ['a', '-bd', '-y', '-mtc=off', '-mta=off', '-mtm=off', 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) {
|
||||
@@ -99,6 +105,13 @@ try {
|
||||
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
|
||||
write(
|
||||
'sample.png',
|
||||
|
||||
Reference in New Issue
Block a user