|
@@ -5,6 +5,7 @@ import YAML from 'yaml'
|
|
|
import JSZip from "jszip";
|
|
|
import { ReferenceTypeIds } from "./opcua_node_ids";
|
|
|
import type { NodeId } from "./NodeId";
|
|
|
+import {sconfig} from "@/util/ServerConfig"
|
|
|
|
|
|
export class AddressSpace{
|
|
|
|
|
@@ -73,7 +74,8 @@ export class AddressSpace{
|
|
|
fileNames.push(ns.fileName);
|
|
|
zip.file(ns.fileName, ns.toXML(ns.nameSpaceTable, this.nst).toString());
|
|
|
}
|
|
|
- zip.file("project.json", JSON.stringify(fileNames));
|
|
|
+ sconfig.nodesets = fileNames;
|
|
|
+ zip.file("project.json", JSON.stringify(sconfig));
|
|
|
const mapString=YAML.stringify(this.mapping.values());
|
|
|
zip.file("mapping.yaml", mapString)
|
|
|
return zip.generateAsync({type:'blob'});
|