Skip to content

Commit

Permalink
Add support for 7 compression plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed Dec 18, 2023
1 parent dbea2bb commit fd033fd
Show file tree
Hide file tree
Showing 7 changed files with 261 additions and 10 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@h5web/app": "10.1.0",
"@h5web/h5wasm": "10.1.0",
"@react-hookz/web": "15.1.0",
"h5wasm-plugins": "0.0.3",
"immer": "9.0.15",
"normalize.css": "8.0.1",
"react": "18.2.0",
Expand All @@ -49,9 +50,10 @@
"eslint": "8.21.0",
"eslint-config-galex": "4.1.7",
"npm-run-all": "4.1.5",
"prettier": "3.0.3",
"prettier": "3.1.1",
"typescript": "4.7.4",
"vite": "3.1.1",
"vite-plugin-checker": "0.6.2",
"vite-plugin-eslint": "1.8.1"
},
"pnpm": {
Expand Down
211 changes: 207 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/Viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { H5WasmProvider } from '@h5web/h5wasm';
import { suspend } from 'suspend-react';

import { fetchBuffer } from './fetch-utils';
import { getPlugin } from './plugin-utils';
import type { H5File } from './stores';
import { buildMailto, FEEDBACK_MESSAGE } from './utils';

Expand All @@ -19,7 +20,7 @@ function Viewer(props: Props) {
const buffer = suspend(fetchBuffer, [resolvedUrl, CACHE_KEY]);

return (
<H5WasmProvider filename={name} buffer={buffer}>
<H5WasmProvider filename={name} buffer={buffer} getPlugin={getPlugin}>
<App
key={resolvedUrl}
disableDarkMode
Expand Down
Loading

0 comments on commit fd033fd

Please sign in to comment.