Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:

steps:
- name: Checkout this repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
lfs: true

- name: Checkout actions repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand All @@ -45,12 +45,12 @@ jobs:

steps:
- name: Checkout this repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
lfs: true

- name: Checkout actions repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand All @@ -72,12 +72,12 @@ jobs:

steps:
- name: Checkout this repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
lfs: true

- name: Checkout actions repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand All @@ -100,12 +100,12 @@ jobs:

steps:
- name: Checkout this repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
lfs: true

- name: Checkout actions repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand All @@ -125,12 +125,12 @@ jobs:

steps:
- name: Checkout this repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
lfs: true

- name: Checkout actions repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand All @@ -152,7 +152,7 @@ jobs:
node-version:
- 20.x
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
lfs: true

Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:
"

- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
# If you're changing the branch from main,
# also change the `main` in `refs/heads/main`
# below accordingly.
Expand Down
2 changes: 1 addition & 1 deletion dist/js/esse/JSONSchemasInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ class JSONSchemasInterface {
return patchedSchema;
}
}
exports.default = JSONSchemasInterface;
JSONSchemasInterface.schemasCache = new Map();
exports.default = JSONSchemasInterface;
5 changes: 2 additions & 3 deletions dist/js/esse/JSONSchemasInterfaceServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.readSchemaFolderSync = void 0;
exports.readSchemaFolderSync = readSchemaFolderSync;
const fs_1 = __importDefault(require("fs"));
const path_1 = __importDefault(require("path"));
const filesystem_1 = require("../utils/filesystem");
Expand All @@ -19,7 +19,6 @@ function readSchemaFolderSync(folderPath) {
});
return schemas;
}
exports.readSchemaFolderSync = readSchemaFolderSync;
class JSONSchemasInterfaceServer extends JSONSchemasInterface_1.default {
static setSchemaFolder(schemaFolder) {
if (this.schemaFolder !== schemaFolder) {
Expand All @@ -42,5 +41,5 @@ class JSONSchemasInterfaceServer extends JSONSchemasInterface_1.default {
return super.getSchemaById(schemaId);
}
}
exports.default = JSONSchemasInterfaceServer;
JSONSchemasInterfaceServer.schemaFolder = path_1.default.resolve(__dirname, "./../schema");
exports.default = JSONSchemasInterfaceServer;
3 changes: 1 addition & 2 deletions dist/js/esse/schemaUtils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapObjectDeep = void 0;
exports.mapObjectDeep = mapObjectDeep;
function mapObjectDeep(object, mapValue) {
if (typeof object !== "object" || object === null) {
return object;
Expand All @@ -14,4 +14,3 @@ function mapObjectDeep(object, mapValue) {
});
return Object.fromEntries(entries);
}
exports.mapObjectDeep = mapObjectDeep;
5 changes: 2 additions & 3 deletions dist/js/esse/server/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseIncludeReferenceStatementsByDir = exports.parseIncludeReferenceStatements = void 0;
exports.parseIncludeReferenceStatements = parseIncludeReferenceStatements;
exports.parseIncludeReferenceStatementsByDir = parseIncludeReferenceStatementsByDir;
/**
* Server-side schema parsing utilities.
*
Expand Down Expand Up @@ -37,7 +38,6 @@ function parseIncludeReferenceStatements(filePath) {
}
return dereferenced;
}
exports.parseIncludeReferenceStatements = parseIncludeReferenceStatements;
/**
* Resolves `include` and `$ref` statements for all the JSON files inside a given directory.
* @param dirPath directory to parse.
Expand Down Expand Up @@ -65,4 +65,3 @@ function parseIncludeReferenceStatementsByDir(dirPath, wrapInDataAndPath = false
});
return wrapInDataAndPath ? schemasWithPath : schemas;
}
exports.parseIncludeReferenceStatementsByDir = parseIncludeReferenceStatementsByDir;
5 changes: 2 additions & 3 deletions dist/js/esse/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.applyPatchTree = exports.applyPatchWithDotNotation = void 0;
exports.applyPatchWithDotNotation = applyPatchWithDotNotation;
exports.applyPatchTree = applyPatchTree;
function isPlainObject(value) {
return value !== null && typeof value === "object" && !Array.isArray(value);
}
Expand Down Expand Up @@ -28,7 +29,6 @@ function applyPatchWithDotNotation(target, path, patchValue) {
}
// If existingValue is undefined, we skip;
}
exports.applyPatchWithDotNotation = applyPatchWithDotNotation;
function applyPatchTree(schema, patchNode, pathPrefix) {
Object.entries(patchNode).forEach(([key, value]) => {
if (key.includes(".")) {
Expand All @@ -49,4 +49,3 @@ function applyPatchTree(schema, patchNode, pathPrefix) {
}
});
}
exports.applyPatchTree = applyPatchTree;
10 changes: 5 additions & 5 deletions dist/js/example/apse/file/applications/espresso/7.2/pw.x.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"&CONTROL": {
"CONTROL": {
"calculation": "scf",
"title": "",
"verbosity": "low",
Expand All @@ -12,7 +12,7 @@
"prefix": "__prefix__",
"pseudo_dir": "{{ JOB_WORK_DIR }}/pseudo"
},
"&SYSTEM": {
"SYSTEM": {
"ibrav": 0,
"nat": 2,
"ntyp": 2,
Expand All @@ -37,15 +37,15 @@
]
]
},
"&ELECTRONS": {
"ELECTRONS": {
"diagonalization": "david",
"diago_david_ndim": 4,
"diago_full_acc": true,
"mixing_beta": 0.3,
"startingwfc": "atomic+random"
},
"&IONS": null,
"&CELL": null,
"IONS": null,
"CELL": null,
"ATOMIC_SPECIES": {
"values": [
{
Expand Down
10 changes: 5 additions & 5 deletions dist/js/schema/apse/file/applications/espresso/7.2/pw.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "object",
"additionalProperties": false,
"properties": {
"&CONTROL": {
"CONTROL": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "control schema",
"type": "object",
Expand Down Expand Up @@ -185,7 +185,7 @@
}
}
},
"&SYSTEM": {
"SYSTEM": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "system schema",
"type": "object",
Expand Down Expand Up @@ -836,7 +836,7 @@
}
}
},
"&ELECTRONS": {
"ELECTRONS": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "electrons schema",
"type": "object",
Expand Down Expand Up @@ -998,7 +998,7 @@
}
}
},
"&IONS": {
"IONS": {
"oneOf": [
{
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down Expand Up @@ -1220,7 +1220,7 @@
}
]
},
"&CELL": {
"CELL": {
"oneOf": [
{
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
2 changes: 1 addition & 1 deletion dist/js/schemas.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/scripts/compileTs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = compileTS;
const fs_1 = __importDefault(require("fs"));
const json_schema_to_typescript_1 = require("json-schema-to-typescript");
const schemaUtils_1 = require("../esse/schemaUtils");
Expand Down Expand Up @@ -77,4 +78,3 @@ async function compileTS(schemaPath, savePath) {
await fs_1.default.promises.appendFile(savePath, `${compiledSchema} \n`, { flag: "a+" });
});
}
exports.default = compileTS;
2 changes: 1 addition & 1 deletion dist/js/scripts/setSchemaIds.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = setSchemaIds;
const fs_1 = __importDefault(require("fs"));
const path_1 = __importDefault(require("path"));
const filesystem_1 = require("../utils/filesystem");
Expand All @@ -27,4 +28,3 @@ function setSchemaIds(schemaDir) {
}
});
}
exports.default = setSchemaIds;
10 changes: 5 additions & 5 deletions dist/js/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2326,7 +2326,7 @@ export type SystemSchema = ({
};
/** Schema dist/js/schema/apse/file/applications/espresso/7.2/pw.x.json */
export interface PwxMainSchema {
"&CONTROL"?: {
CONTROL?: {
/**
* A string describing the task to be performed
*/
Expand Down Expand Up @@ -2445,7 +2445,7 @@ export interface PwxMainSchema {
*/
trism?: boolean;
};
"&SYSTEM"?: {
SYSTEM?: {
/**
* @minItems 6
* @maxItems 6
Expand All @@ -2459,7 +2459,7 @@ export interface PwxMainSchema {
cosAC?: number;
cosBC?: number;
};
"&ELECTRONS"?: {
ELECTRONS?: {
/**
* maximum number of iterations in a scf step. If exact exchange is active, this will affect the inner loops.
*/
Expand Down Expand Up @@ -2552,7 +2552,7 @@ export interface PwxMainSchema {
*/
real_space?: boolean;
};
"&IONS"?: ({
IONS?: ({
/**
* CASE: calculation == 'relax'
*/
Expand All @@ -2573,7 +2573,7 @@ export interface PwxMainSchema {
*/
ion_dynamics?: "beeman";
}) | null;
"&CELL"?: ({
CELL?: ({
/**
* CASE ( calculation == 'vc-relax' )
*/
Expand Down
10 changes: 5 additions & 5 deletions dist/js/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var Name;
Name["VASPInputDataManager"] = "VASPInputDataManager";
Name["VASPNEBInputDataManager"] = "VASPNEBInputDataManager";
Name["NWChemInputDataManager"] = "NWChemInputDataManager";
})(Name = exports.Name || (exports.Name = {}));
})(Name || (exports.Name = Name = {}));
/**
* This interface was referenced by `ContextProvidersDirectoryEnum`'s JSON-Schema
* via the `definition` "ContextProviderNameEnum".
Expand Down Expand Up @@ -61,15 +61,15 @@ var ContextProviderNameEnum;
ContextProviderNameEnum["VASPInputDataManager"] = "VASPInputDataManager";
ContextProviderNameEnum["VASPNEBInputDataManager"] = "VASPNEBInputDataManager";
ContextProviderNameEnum["NWChemInputDataManager"] = "NWChemInputDataManager";
})(ContextProviderNameEnum = exports.ContextProviderNameEnum || (exports.ContextProviderNameEnum = {}));
})(ContextProviderNameEnum || (exports.ContextProviderNameEnum = ContextProviderNameEnum = {}));
/**
* The type of the message to distinguish the direction of the message.
*/
var Type;
(function (Type) {
Type["fromIframeToHost"] = "from-iframe-to-host";
Type["fromHostToIframe"] = "from-host-to-iframe";
})(Type = exports.Type || (exports.Type = {}));
})(Type || (exports.Type = Type = {}));
/**
* The action to be performed upon receiving the message.
*/
Expand All @@ -78,7 +78,7 @@ var Action;
Action["setData"] = "set-data";
Action["getData"] = "get-data";
Action["info"] = "info";
})(Action = exports.Action || (exports.Action = {}));
})(Action || (exports.Action = Action = {}));
/**
* This interface was referenced by `WorkflowSubworkflowConvergenceEnumOptions`'s JSON-Schema
* via the `definition` "ConvergenceParameterNameEnum".
Expand All @@ -88,4 +88,4 @@ var ConvergenceParameterNameEnum;
ConvergenceParameterNameEnum["N_k"] = "N_k";
ConvergenceParameterNameEnum["N_k_nonuniform"] = "N_k_nonuniform";
ConvergenceParameterNameEnum["N_k_nonuniform_2D"] = "N_k_nonuniform_2D";
})(ConvergenceParameterNameEnum = exports.ConvergenceParameterNameEnum || (exports.ConvergenceParameterNameEnum = {}));
})(ConvergenceParameterNameEnum || (exports.ConvergenceParameterNameEnum = ConvergenceParameterNameEnum = {}));
Loading
Loading