Skip to content

Commit 9ad9c7a

Browse files
committed
chore: update cdd-web-ui deployment artifact
1 parent 799e26e commit 9ad9c7a

6 files changed

Lines changed: 47 additions & 4 deletions

File tree

cdd-web-ui/index.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fix_svg_text.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import re
2+
3+
files = ["index.html", "ecosystem.html"]
4+
5+
css_override = """
6+
#my-svg .mindmap-node span { color: #333 !important; }
7+
#my-svg .mindmap-node p { color: #333 !important; }
8+
#my-svg .node span { color: #333 !important; }
9+
#my-svg .node p { color: #333 !important; }
10+
"""
11+
12+
for file in files:
13+
with open(file, 'r') as f:
14+
content = f.read()
15+
16+
content = content.replace('</style>', css_override + '</style>')
17+
18+
with open(file, 'w') as f:
19+
f.write(content)
20+

fix_svg_text_inline.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import re
2+
3+
files = ["index.html", "ecosystem.html"]
4+
5+
for file in files:
6+
with open(file, 'r') as f:
7+
content = f.read()
8+
9+
content = re.sub(r'<span class="nodeLabel"><p>(.*?)</p></span>', r'<span class="nodeLabel" style="color: #1a1a1a;"><p>\1</p></span>', content)
10+
11+
with open(file, 'w') as f:
12+
f.write(content)
13+

test_svg.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import re
2+
3+
with open('index.html', 'r') as f:
4+
content = f.read()
5+
6+
# Look for the section related to TypeScript in the first SVG
7+
match = re.search(r'(<g class="node mindmap-node section-1" id="node_13" .*?<p>TypeScript</p></span></div></foreignObject></g></g>)', content)
8+
if match:
9+
print("Found TypeScript node in SVG 1:")
10+
print(match.group(1))

0 commit comments

Comments
 (0)