From 233f41237e70a2608e04c73bfde84ec573561999 Mon Sep 17 00:00:00 2001 From: Adam Bem Date: Tue, 27 Jun 2023 06:52:20 +0200 Subject: [PATCH] Added link to documentation --- Frontend/src/assets/tooltips/xpath/xpath1.json | 12 ++++++++---- Frontend/src/assets/tooltips/xpath/xpath2.json | 6 ++++-- .../xml/tooltips/TooltipEntryComponent.vue | 4 ++++ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Frontend/src/assets/tooltips/xpath/xpath1.json b/Frontend/src/assets/tooltips/xpath/xpath1.json index 031de3b..ee1e5bc 100644 --- a/Frontend/src/assets/tooltips/xpath/xpath1.json +++ b/Frontend/src/assets/tooltips/xpath/xpath1.json @@ -12,7 +12,8 @@ "command": "last()", "output": "blablabla" } - ] + ], + "documentationReferenceURL": "https://www.bing.pl" }, { "name": "position", @@ -24,7 +25,8 @@ "command": "position()", "output": "blablabla" } - ] + ], + "documentationReferenceURL": "wwww.google.pl" } ] }, @@ -52,7 +54,8 @@ "output": "2137" } - ] + ], + "documentationReferenceURL": "wwww.google.pl" }, { "name": "floor", @@ -70,7 +73,8 @@ "command": "floor(3.6)", "output": "3" } - ] + ], + "documentationReferenceURL": "wwww.google.pl" } ] } diff --git a/Frontend/src/assets/tooltips/xpath/xpath2.json b/Frontend/src/assets/tooltips/xpath/xpath2.json index fde2214..3f696bb 100644 --- a/Frontend/src/assets/tooltips/xpath/xpath2.json +++ b/Frontend/src/assets/tooltips/xpath/xpath2.json @@ -13,7 +13,8 @@ } ], "output": "number", - "examples": [] + "examples": [], + "documentationReferenceURL": "wwww.google.pl" }, { "name": "floor", @@ -31,7 +32,8 @@ "command": "floor(3.6)", "output": "3" } - ] + ], + "documentationReferenceURL": "wwww.google.pl" } ] } diff --git a/Frontend/src/components/xml/tooltips/TooltipEntryComponent.vue b/Frontend/src/components/xml/tooltips/TooltipEntryComponent.vue index 28911f7..75aa4eb 100644 --- a/Frontend/src/components/xml/tooltips/TooltipEntryComponent.vue +++ b/Frontend/src/components/xml/tooltips/TooltipEntryComponent.vue @@ -57,6 +57,10 @@ function entryHasExamples() { {{ ex.output }} +
+ W3C Documentation Reference +
+ \ No newline at end of file