From 619136d38941322fe8d0aaec91cc553740baddbc Mon Sep 17 00:00:00 2001 From: ashishj Date: Thu, 18 Aug 2022 20:07:15 +0200 Subject: [PATCH 01/60] Updating to version to 9.1.6 --- docs/index.html | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 64cc726bc..02c01d954 100644 --- a/docs/index.html +++ b/docs/index.html @@ -18,7 +18,7 @@ - + '); - if (idx >= 0) { - idx += 9; - txt = txt.substr(idx); - } - } else { - rs += txt; - idx = -1; - break; - } - } - let decodedText = removeEscapes(rs); - decodedText = decodedText.replaceAll(/script>/gi, '#'); - decodedText = decodedText.replaceAll(/javascript:/gi, '#'); - decodedText = decodedText.replaceAll(/javascript&colon/gi, '#'); - decodedText = decodedText.replaceAll(/onerror=/gi, 'onerror:'); - decodedText = decodedText.replaceAll(/"]'; + diagram += 'flowchart\n'; + diagram += 'A[""]'; -console.log(diagram); -// document.querySelector('#diagram').innerHTML = diagram; -mermaid.render('diagram', diagram, (res) => { - document.querySelector('#res').innerHTML = res; -}); + console.log(diagram); + // document.querySelector('#diagram').innerHTML = diagram; + mermaid.render('diagram', diagram, (res) => { + document.querySelector('#res').innerHTML = res; + }); - diff --git a/cypress/platform/xss5.html b/cypress/platform/xss5.html index 86d45eeec..bf8943eee 100644 --- a/cypress/platform/xss5.html +++ b/cypress/platform/xss5.html @@ -1,20 +1,25 @@ + + + - - - diff --git a/cypress/platform/ghsa1.html b/cypress/platform/ghsa1.html index bf2008d7e..c54358862 100644 --- a/cypress/platform/ghsa1.html +++ b/cypress/platform/ghsa1.html @@ -1,28 +1,26 @@ - - + +
-

This element does not belong to the SVG but we can style it

+

This element does not belong to the SVG but we can style it

- - + - - + diff --git a/cypress/platform/ghsa2.html b/cypress/platform/ghsa2.html index b4e390c6c..6d4dccca3 100644 --- a/cypress/platform/ghsa2.html +++ b/cypress/platform/ghsa2.html @@ -1,28 +1,26 @@ - - + +
-

This element does not belong to the SVG but we can style it

+

This element does not belong to the SVG but we can style it

- - + - - + diff --git a/cypress/platform/render-after-error.html b/cypress/platform/render-after-error.html index e6b97aea2..267ffade1 100644 --- a/cypress/platform/render-after-error.html +++ b/cypress/platform/render-after-error.html @@ -1,29 +1,28 @@ - - - - Mermaid Quick Test Page - - - -
-
+ + + + Mermaid Quick Test Page + + + +
- - + - - + mermaid.mermaidAPI.render('graphDiv', `graph LR\n a --> b`, (html) => { + document.getElementById('graph').innerHTML = html; + }); + + diff --git a/cypress/platform/rerender.html b/cypress/platform/rerender.html index 667d143a6..9b6cb130e 100644 --- a/cypress/platform/rerender.html +++ b/cypress/platform/rerender.html @@ -1,30 +1,29 @@ - - - - Mermaid Quick Test Page - - - -
-
+ + + + Mermaid Quick Test Page + + + +
- - + - - - + var graph = mermaid.mermaidAPI.render('id', graphText); + console.log('\x1b[35m%s\x1b[0m', '>> graph', graph); + document.getElementById('graph').innerHTML = graph; + } + + + diff --git a/cypress/platform/viewer.js b/cypress/platform/viewer.js index 10bc34811..2ce15f88a 100644 --- a/cypress/platform/viewer.js +++ b/cypress/platform/viewer.js @@ -46,7 +46,7 @@ function merge(current, update) { // if update[key] exist, and it's not a string or array, // we go in one level deeper if ( - current.hasOwnProperty(key) && // eslint-disable-line + current.hasOwnProperty(key) && typeof current[key] === 'object' && !(current[key] instanceof Array) ) { diff --git a/cypress/platform/webpackUsage.html b/cypress/platform/webpackUsage.html index 82c3c8694..12755c359 100644 --- a/cypress/platform/webpackUsage.html +++ b/cypress/platform/webpackUsage.html @@ -1,18 +1,17 @@ - + - - - - -
- - - - \ No newline at end of file + + + +
+ + + diff --git a/cypress/platform/xss.html b/cypress/platform/xss.html index 3938c5aae..4c0fc91ea 100644 --- a/cypress/platform/xss.html +++ b/cypress/platform/xss.html @@ -1,16 +1,13 @@ - +