mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-22 23:45:02 +00:00
chore: move dependencies out of root
This commit is contained in:
parent
e7b4c93481
commit
da32769463
@ -6,12 +6,12 @@ import i18next from "i18next";
|
||||
|
||||
function Dynamic() {
|
||||
const operators = ["impose"]; // TODO: Make this dynamic
|
||||
|
||||
|
||||
function selectionChanged(s: BaseSyntheticEvent) {
|
||||
const selectedValue = s.target.value;
|
||||
if(selectedValue == "none") return;
|
||||
|
||||
i18next.loadNamespaces("impose", (err, t) => {
|
||||
i18next.loadNamespaces("impose", (err, t) => {
|
||||
if (err) throw err;
|
||||
|
||||
const LoadingModule = import(`@stirling-pdf/shared-operations/src/functions/${selectedValue}`) as Promise<{ [key: string]: typeof Operator }>;
|
||||
@ -19,9 +19,9 @@ function Dynamic() {
|
||||
const Operator = Module[capitalizeFirstLetter(selectedValue)];
|
||||
const description = Operator.schema.describe();
|
||||
|
||||
console.log("abc", description);
|
||||
console.log(description);
|
||||
// TODO: use description to generate fields
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@ -35,19 +35,19 @@ function Dynamic() {
|
||||
|
||||
<input type="file" id="pdfFile" accept=".pdf" multiple />
|
||||
<br />
|
||||
|
||||
|
||||
<br />
|
||||
<textarea name="workflow" id="workflow"></textarea>
|
||||
<br />
|
||||
<select id="pdfOptions" onChange={selectionChanged}>
|
||||
<option value="none">none</option>
|
||||
{ operators.map((operator, i) => {
|
||||
return (<option value={operator}>{operator}</option>)
|
||||
{ operators.map((operator, i) => {
|
||||
return (<option value={operator}>{operator}</option>)
|
||||
}) }
|
||||
</select>
|
||||
<button id="loadButton">Load</button>
|
||||
<br />
|
||||
|
||||
|
||||
<br />
|
||||
<button id="doneButton">Done</button>
|
||||
|
||||
@ -59,4 +59,4 @@ function Dynamic() {
|
||||
}
|
||||
|
||||
|
||||
export default Dynamic;
|
||||
export default Dynamic;
|
||||
|
31
package-lock.json
generated
31
package-lock.json
generated
@ -10,9 +10,6 @@
|
||||
"server-node",
|
||||
"shared-operations"
|
||||
],
|
||||
"dependencies": {
|
||||
"@stirling-tools/joi": "github:Stirling-Tools/joi"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^6.17.0",
|
||||
"@typescript-eslint/parser": "^6.17.0",
|
||||
@ -2881,32 +2878,6 @@
|
||||
"vite": "^4.2.0 || ^5.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@vizzly/joi": {
|
||||
"version": "17.11.0",
|
||||
"resolved": "https://registry.npmjs.org/@vizzly/joi/-/joi-17.11.0.tgz",
|
||||
"integrity": "sha512-VpLziKclrc0ul9euaxhD0C+31CXwkmrKBxg7RKNEKnZi/iy4mQPERkxBHCaYksjoZKQEOAnB/IXY7PPbF/OiUw==",
|
||||
"dependencies": {
|
||||
"@hapi/address": "^5.1.1",
|
||||
"@hapi/formula": "^3.0.2",
|
||||
"@hapi/hoek": "^11.0.2",
|
||||
"@hapi/pinpoint": "^2.0.1",
|
||||
"@hapi/tlds": "^1.0.2",
|
||||
"@hapi/topo": "^6.0.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@vizzly/joi/node_modules/@hapi/hoek": {
|
||||
"version": "11.0.4",
|
||||
"resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-11.0.4.tgz",
|
||||
"integrity": "sha512-PnsP5d4q7289pS2T2EgGz147BFJ2Jpb4yrEdkpz2IhgEUzos1S7HTl7ezWh1yfYzYlj89KzLdCRkqsP6SIryeQ=="
|
||||
},
|
||||
"node_modules/@vizzly/joi/node_modules/@hapi/topo": {
|
||||
"version": "6.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-6.0.2.tgz",
|
||||
"integrity": "sha512-KR3rD5inZbGMrHmgPxsJ9dbi6zEK+C3ZwUwTa+eMwWLz7oijWUTWD2pMSNNYJAU6Qq+65NkxXjqHr/7LM2Xkqg==",
|
||||
"dependencies": {
|
||||
"@hapi/hoek": "^11.0.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@wasmer/wasmfs": {
|
||||
"version": "0.12.0",
|
||||
"resolved": "https://registry.npmjs.org/@wasmer/wasmfs/-/wasmfs-0.12.0.tgz",
|
||||
@ -9409,7 +9380,7 @@
|
||||
"version": "0.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@vizzly/joi": "^17.11.0",
|
||||
"@stirling-tools/joi": "github:Stirling-Tools/joi",
|
||||
"i18next-resources-to-backend": "^1.2.0",
|
||||
"image-js": "^0.35.5",
|
||||
"next-i18next": "^15.1.1",
|
||||
|
@ -21,8 +21,5 @@
|
||||
"engines": {
|
||||
"npm": ">=7.24.2"
|
||||
},
|
||||
"engineStrict": true,
|
||||
"dependencies": {
|
||||
"@stirling-tools/joi": "github:Stirling-Tools/joi"
|
||||
}
|
||||
"engineStrict": true
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@vizzly/joi": "^17.11.0",
|
||||
"@stirling-tools/joi": "github:Stirling-Tools/joi",
|
||||
"i18next-resources-to-backend": "^1.2.0",
|
||||
"image-js": "^0.35.5",
|
||||
"next-i18next": "^15.1.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user