Progress on dynamic imports & operators in fe

This commit is contained in:
Felix Kaspar
2024-02-04 17:01:50 +01:00
parent 50ab159abe
commit 829127c3f8
6 changed files with 86 additions and 5 deletions

View File

@@ -9,6 +9,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@vizzly/joi": "^17.11.0",
"i18next-resources-to-backend": "^1.2.0",
"image-js": "^0.35.5",
"next-i18next": "^15.1.1",

View File

@@ -8,7 +8,6 @@ import Joi from "joi";
import { JoiPDFFileSchema } from "../wrappers/PdfFileJoi";
import i18next from "i18next";
i18next.loadNamespaces("impose", (err, t) => { if (err) throw err; });
export class Impose extends Operator {
static type = "impose";

View File

@@ -1,7 +1,10 @@
import { Operator } from "../functions";
import i18next from "i18next";
// TODO: Import other Operators (could make this dynamic)
// TODO: Import other Operators (should make this dynamic imports)
i18next.loadNamespaces("impose", (err, t) => { if (err) throw err; });
import { Impose } from "../functions/impose";
export const Operators = {
Impose: Impose
};