diff --git a/src/editor/js/structures/graph/node.ts b/src/editor/js/structures/graph/node.ts index 426feecfe6974e90ed9e11fe0bf86c54a67371ac..773c0e0e6b57954dc5743322508a6593ff1775d4 100644 --- a/src/editor/js/structures/graph/node.ts +++ b/src/editor/js/structures/graph/node.ts @@ -1,7 +1,6 @@ import { Graph } from "./graph"; import { GraphElement } from "./graphelement"; import { NodeType } from "./nodetype"; -import { SerializedURL } from "../helper/serializedurl"; import { Link } from "./link"; import { GLOBAL_PARAMS } from "../helper/serializableitem"; @@ -21,10 +20,10 @@ export class Node extends GraphElement { public label: string; public description: string; public type: NodeType; - public icon: SerializedURL; - public banner: SerializedURL; - public video: SerializedURL; - public references: SerializedURL[]; + public icon: string; + public banner: string; + public video: string; + public references: string[]; constructor(graph: Graph = undefined) { super(graph); diff --git a/src/editor/js/structures/helper/serializedurl.ts b/src/editor/js/structures/helper/serializedurl.ts deleted file mode 100644 index 7a56676fc1e270d39ccb025fa2fce4b7cf077a0e..0000000000000000000000000000000000000000 --- a/src/editor/js/structures/helper/serializedurl.ts +++ /dev/null @@ -1,13 +0,0 @@ -import {GLOBAL_PARAMS, SerializableItem} from "./serializableitem"; - -const URL_PARAMS = ["link", ...GLOBAL_PARAMS]; - -export class SerializedURL extends SerializableItem { - public link: string; // The full url - - // TODO: URL validator - - serialize(): any { - return this.serializeProperties(URL_PARAMS); - } -} \ No newline at end of file