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