-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TA-3148: Update NodeExportTransport and export/import logic to work w…
…ith JSON files
- Loading branch information
Showing
16 changed files
with
80 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
export enum BatchExportImportConstants { | ||
STUDIO_FILE_NAME = "studio.yml", | ||
VARIABLES_FILE_NAME = "variables.yml", | ||
MANIFEST_FILE_NAME = "manifest.yml", | ||
STUDIO_FILE_NAME = "studio.json", | ||
VARIABLES_FILE_NAME = "variables.json", | ||
MANIFEST_FILE_NAME = "manifest.json", | ||
STUDIO = "STUDIO", | ||
APP_MODE_VIEWER = "VIEWER", | ||
ZIP_EXTENSION = ".zip", | ||
YAML_EXTENSION = ".yml", | ||
JSON_EXTENSION = ".json", | ||
NODES_FOLDER_NAME = "nodes/", | ||
SCENARIO_NODE = "SCENARIO" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
export function stringify(data: any): string { | ||
return JSON.stringify(data, replacer, 2); | ||
} | ||
|
||
export function parse<T>(data: string): T { | ||
return JSON.parse(data); | ||
} | ||
|
||
const replacer = (key, value) => { | ||
if (value instanceof Map) { | ||
return Object.fromEntries(value); | ||
} | ||
return value; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.