This commit is contained in:
Misode
2021-10-27 20:00:13 +02:00
parent 794a094e7e
commit 89354a9743
3 changed files with 18 additions and 16 deletions
+14 -14
View File
@@ -13,8 +13,8 @@
"@mcschema/java-1.15": "^0.2.2",
"@mcschema/java-1.16": "^0.6.5",
"@mcschema/java-1.17": "^0.2.24",
"@mcschema/java-1.18": "^0.1.14",
"@mcschema/locales": "^0.1.33",
"@mcschema/java-1.18": "^0.1.16",
"@mcschema/locales": "^0.1.35",
"deepslate": "^0.9.0-beta.2",
"howler": "^2.2.3",
"rfdc": "^1.3.0"
@@ -347,17 +347,17 @@
}
},
"node_modules/@mcschema/java-1.18": {
"version": "0.1.14",
"resolved": "https://registry.npmjs.org/@mcschema/java-1.18/-/java-1.18-0.1.14.tgz",
"integrity": "sha512-ceHkciysSDaC/PmjPRE12HHwiNas2AXSr/YcqagsvbDm3RPF15n01I/oJ5IttKMXI4u2xDVFToORd87ql1xnpw==",
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@mcschema/java-1.18/-/java-1.18-0.1.16.tgz",
"integrity": "sha512-p3oFVnMaygEUGpkbiEeyfeLL93diUpXHJs444vlC1r0/2hgFTNiYfTT5B52cqqWXFw0znGgOFwc7Qh7ynpz5IQ==",
"dependencies": {
"@mcschema/core": "^0.12.13"
}
},
"node_modules/@mcschema/locales": {
"version": "0.1.33",
"resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.33.tgz",
"integrity": "sha512-Mtmz3VIVPQutBPsxw1bQfDV8+NTSC9uU4L4sN0g1cUqFTBwU5a9fNeYoWKzLIVTpC9ZMHBWLpycBuMCU8e0zQw=="
"version": "0.1.35",
"resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.35.tgz",
"integrity": "sha512-fU7MBNr5auzpXYzIlV8thjeRVBGoW0R2w+wYM8v3Q9FXIMlqZXOPxGcrMIhXRFo6XI942dwFYp9kwSYXnvAdGA=="
},
"node_modules/@nodelib/fs.scandir": {
"version": "2.1.5",
@@ -2955,17 +2955,17 @@
}
},
"@mcschema/java-1.18": {
"version": "0.1.14",
"resolved": "https://registry.npmjs.org/@mcschema/java-1.18/-/java-1.18-0.1.14.tgz",
"integrity": "sha512-ceHkciysSDaC/PmjPRE12HHwiNas2AXSr/YcqagsvbDm3RPF15n01I/oJ5IttKMXI4u2xDVFToORd87ql1xnpw==",
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@mcschema/java-1.18/-/java-1.18-0.1.16.tgz",
"integrity": "sha512-p3oFVnMaygEUGpkbiEeyfeLL93diUpXHJs444vlC1r0/2hgFTNiYfTT5B52cqqWXFw0znGgOFwc7Qh7ynpz5IQ==",
"requires": {
"@mcschema/core": "^0.12.13"
}
},
"@mcschema/locales": {
"version": "0.1.33",
"resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.33.tgz",
"integrity": "sha512-Mtmz3VIVPQutBPsxw1bQfDV8+NTSC9uU4L4sN0g1cUqFTBwU5a9fNeYoWKzLIVTpC9ZMHBWLpycBuMCU8e0zQw=="
"version": "0.1.35",
"resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.35.tgz",
"integrity": "sha512-fU7MBNr5auzpXYzIlV8thjeRVBGoW0R2w+wYM8v3Q9FXIMlqZXOPxGcrMIhXRFo6XI942dwFYp9kwSYXnvAdGA=="
},
"@nodelib/fs.scandir": {
"version": "2.1.5",
+2 -2
View File
@@ -18,8 +18,8 @@
"@mcschema/java-1.15": "^0.2.2",
"@mcschema/java-1.16": "^0.6.5",
"@mcschema/java-1.17": "^0.2.24",
"@mcschema/java-1.18": "^0.1.14",
"@mcschema/locales": "^0.1.33",
"@mcschema/java-1.18": "^0.1.16",
"@mcschema/locales": "^0.1.35",
"deepslate": "^0.9.0-beta.2",
"howler": "^2.2.3",
"rfdc": "^1.3.0"
+2
View File
@@ -377,6 +377,8 @@ function StringSuffix({ path, getValues, config, node, value, lang, states }: No
context = context.contextPush(config.enum)
} else if (!isEnum(config) && config?.validator === 'resource' && typeof config.params.pool === 'string') {
context = context.contextPush(config.params.pool)
} else if (isEnum(config)) {
context = path
}
return <select value={value ?? ''} onChange={onChange}>
{node.optional() && <option value="">{locale(lang, 'unset')}</option>}