diff --git a/sandbox/package.json b/sandbox/package.json index fe23156..8e6a201 100644 --- a/sandbox/package.json +++ b/sandbox/package.json @@ -14,6 +14,7 @@ "@surma/rollup-plugin-off-main-thread": "^2.2.3", "@types/sql.js": "^1.4.9", "@types/surma__rollup-plugin-off-main-thread": "^2.2.3", + "@types/papaparse": "^5.3.14", "prettier": "^3.2.5", "sass": "^1.71.1", "solid-devtools": "^0.29.3", @@ -23,6 +24,7 @@ }, "dependencies": { "@popperjs/core": "^2.11.8", + "papaparse": "^5.4.1", "bootstrap": "^5.3.3", "fsrs-browser": "link:../pkg", "solid-js": "^1.8.15", diff --git a/sandbox/pnpm-lock.yaml b/sandbox/pnpm-lock.yaml index 9bda670..84806c5 100644 --- a/sandbox/pnpm-lock.yaml +++ b/sandbox/pnpm-lock.yaml @@ -1,4 +1,4 @@ -lockfileVersion: '6.1' +lockfileVersion: '6.0' settings: autoInstallPeers: true @@ -14,6 +14,9 @@ dependencies: fsrs-browser: specifier: link:../pkg version: link:../pkg + papaparse: + specifier: ^5.4.1 + version: 5.4.1 solid-js: specifier: ^1.8.15 version: 1.8.15 @@ -25,6 +28,9 @@ devDependencies: '@surma/rollup-plugin-off-main-thread': specifier: ^2.2.3 version: 2.2.3 + '@types/papaparse': + specifier: ^5.3.14 + version: 5.3.14 '@types/sql.js': specifier: ^1.4.9 version: 1.4.9 @@ -865,6 +871,12 @@ packages: undici-types: 5.26.5 dev: true + /@types/papaparse@5.3.14: + resolution: {integrity: sha512-LxJ4iEFcpqc6METwp9f6BV6VVc43m6MfH0VqFosHvrUgfXiFe6ww7R3itkOQ+TCK6Y+Iv/+RnnvtRZnkc5Kc9g==} + dependencies: + '@types/node': 20.11.20 + dev: true + /@types/sql.js@1.4.9: resolution: {integrity: sha512-ep8b36RKHlgWPqjNG9ToUrPiwkhwh0AEzy883mO5Xnd+cL6VBH1EvSjBAAuxLUFF2Vn/moE3Me6v9E1Lo+48GQ==} dependencies: @@ -1615,6 +1627,9 @@ packages: has-symbols: 1.0.3 object-keys: 1.1.1 dev: true + /papaparse@5.4.1: + resolution: {integrity: sha512-HipMsgJkZu8br23pW15uvo6sib6wne/4woLZPlFf3rpDyMe9ywEXUsuD7+6K9PRkJlVT51j/sCOYDKGGS3ZJrw==} + dev: false /picocolors@1.0.0: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} diff --git a/sandbox/postinstall.sh b/sandbox/postinstall.sh index e6de6eb..5618265 100755 --- a/sandbox/postinstall.sh +++ b/sandbox/postinstall.sh @@ -5,3 +5,4 @@ cp ./node_modules/sql.js/dist/sql-wasm.wasm ./src/assets/sql-wasm.wasm mkdir -p ./public/ wget -nc -O ./public/collection.anki21.zip https://github.com/open-spaced-repetition/fsrs-optimizer-burn/files/12394182/collection.anki21.zip unzip -n ./public/collection.anki21.zip -d ./public +wget -nc -O ./public/revlog.csv https://github.com/open-spaced-repetition/fsrs4anki/files/12515294/revlog.csv \ No newline at end of file diff --git a/sandbox/src/App.tsx b/sandbox/src/App.tsx index 368a8ef..eb5291c 100644 --- a/sandbox/src/App.tsx +++ b/sandbox/src/App.tsx @@ -42,7 +42,7 @@ const App: Component = () => {