Rollup Setup / Migration

This commit is contained in:
Felix Kaspar
2024-01-26 16:26:04 +01:00
parent c07e247a2a
commit bcb8ff5843
17 changed files with 1288 additions and 1820 deletions

View File

@@ -2,7 +2,9 @@ import i18next from "i18next";
import resourcesToBackend from "i18next-resources-to-backend";
i18next
.use(resourcesToBackend((language, namespace) => import(`./locales/${namespace}/${language}.json`)))
.use(resourcesToBackend((language, namespace) => import(`./public/locales/${namespace}/${language}.json`, {
assert: { type: "json" },
})))
.init({
// debug: true,
ns: ["common"], // Preload this namespace, no need to add the others, they will load once their module is loaded

View File

@@ -1,14 +0,0 @@
{
"inputs": {
"pdffile": {
"name": "PDF-File(s)",
"description": "This operator takes a PDF-File(s) as input"
}
},
"outputs": {
"pdffile": {
"name": "PDF-File(s)",
"description": "This operator outputs PDF-File(s)"
}
}
}

View File

@@ -1,14 +0,0 @@
{
"friendlyName": "PDF-Imposition / PDF-N-Up",
"description": "Put multiple pages of the input document into a single page of the output document.",
"values": {
"nup": {
"friendlyName": "Page Format",
"description": "The Page Size of the ouput document. Append L or P to force Landscape or Portrait."
},
"format": {
"friendlyName": "N-Up-Value",
"description": "How many pages should be in one output page"
}
}
}

View File

@@ -2,7 +2,7 @@ import { WasmFs } from '@wasmer/wasmfs';
import path from "path";
import { fileURLToPath } from 'url';
let nodeWasmLocation = path.dirname(fileURLToPath(import.meta.url));
let nodeWasmLocation = "./dist/public/wasm/pdfcpu/"; // TODO: Replace with __dirname
let fs;
const wasmfs = new WasmFs();