Skip to content

Commit 89072d9

Browse files
committed
deploy: eb5f1a3
1 parent 6e41361 commit 89072d9

File tree

4 files changed

+66
-66
lines changed

4 files changed

+66
-66
lines changed

en/usage/mermaid.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,12 +1366,12 @@ <h3 class="text-sm font-medium text-gray-900 mb-2">注意</h3>
13661366

13671367
<div class="mermaid-wrapper my-4 relative w-full" style="min-width: min-content;">
13681368
<!-- 加载提示 -->
1369-
<div id="mermaid-g4vnap3ft-loading" class="absolute inset-0 flex items-center justify-center bg-white/80 dark:bg-gray-900/80 z-10">
1369+
<div id="mermaid-pbd8tsffw-loading" class="absolute inset-0 flex items-center justify-center bg-white/80 dark:bg-gray-900/80 z-10">
13701370
<span class="text-gray-500 text-sm">加载图...</span>
13711371
</div>
13721372

13731373
<!-- Mermaid 图表容器 -->
1374-
<div id="mermaid-g4vnap3ft" class="mermaid overflow-x-auto w-full" style="opacity: 0; transition: opacity 0.2s ease-in-out;">
1374+
<div id="mermaid-pbd8tsffw" class="mermaid overflow-x-auto w-full" style="opacity: 0; transition: opacity 0.2s ease-in-out;">
13751375
flowchart LR
13761376
id
13771377
</div>
@@ -1403,8 +1403,8 @@ <h3 class="text-sm font-medium text-gray-900 mb-2">注意</h3>
14031403
// 初始化 mermaid
14041404
window.mermaidReady.then(mermaid => {
14051405
try {
1406-
const chartElement = document.getElementById('mermaid-g4vnap3ft');
1407-
const loadingElement = document.getElementById('mermaid-g4vnap3ft-loading');
1406+
const chartElement = document.getElementById('mermaid-pbd8tsffw');
1407+
const loadingElement = document.getElementById('mermaid-pbd8tsffw-loading');
14081408

14091409
// 先设置容器的最小宽度
14101410
chartElement.closest('.mermaid-wrapper').style.minWidth = 'min-content';
@@ -1418,7 +1418,7 @@ <h3 class="text-sm font-medium text-gray-900 mb-2">注意</h3>
14181418

14191419
// 渲染图表
14201420
mermaid.run({
1421-
querySelector: '#mermaid-g4vnap3ft'
1421+
querySelector: '#mermaid-pbd8tsffw'
14221422
}).then(() => {
14231423
// 平滑显示图表
14241424
chartElement.style.opacity = '1';
@@ -1432,7 +1432,7 @@ <h3 class="text-sm font-medium text-gray-900 mb-2">注意</h3>
14321432
});
14331433
} catch (error) {
14341434
console.error('Mermaid init error:', error);
1435-
document.getElementById('mermaid-g4vnap3ft-loading').innerHTML =
1435+
document.getElementById('mermaid-pbd8tsffw-loading').innerHTML =
14361436
'<span class="text-red-500">无法初始化图</span>';
14371437
}
14381438
});
@@ -1455,12 +1455,12 @@ <h3 class="text-sm font-medium text-gray-900 mb-2">注意</h3>
14551455

14561456
<div class="mermaid-wrapper my-4 relative w-full" style="min-width: min-content;">
14571457
<!-- 加载提示 -->
1458-
<div id="mermaid-wfg5yi43f-loading" class="absolute inset-0 flex items-center justify-center bg-white/80 dark:bg-gray-900/80 z-10">
1458+
<div id="mermaid-m4hfqp0qv-loading" class="absolute inset-0 flex items-center justify-center bg-white/80 dark:bg-gray-900/80 z-10">
14591459
<span class="text-gray-500 text-sm">加载图...</span>
14601460
</div>
14611461

14621462
<!-- Mermaid 图表容器 -->
1463-
<div id="mermaid-wfg5yi43f" class="mermaid overflow-x-auto w-full" style="opacity: 0; transition: opacity 0.2s ease-in-out;">
1463+
<div id="mermaid-m4hfqp0qv" class="mermaid overflow-x-auto w-full" style="opacity: 0; transition: opacity 0.2s ease-in-out;">
14641464
sequenceDiagram
14651465
Alice->>John: Hello John, how are you?
14661466
John-->>Alice: Great!
@@ -1493,8 +1493,8 @@ <h3 class="text-sm font-medium text-gray-900 mb-2">注意</h3>
14931493
// 初始化 mermaid
14941494
window.mermaidReady.then(mermaid => {
14951495
try {
1496-
const chartElement = document.getElementById('mermaid-wfg5yi43f');
1497-
const loadingElement = document.getElementById('mermaid-wfg5yi43f-loading');
1496+
const chartElement = document.getElementById('mermaid-m4hfqp0qv');
1497+
const loadingElement = document.getElementById('mermaid-m4hfqp0qv-loading');
14981498

14991499
// 先设置容器的最小宽度
15001500
chartElement.closest('.mermaid-wrapper').style.minWidth = 'min-content';
@@ -1508,7 +1508,7 @@ <h3 class="text-sm font-medium text-gray-900 mb-2">注意</h3>
15081508

15091509
// 渲染图表
15101510
mermaid.run({
1511-
querySelector: '#mermaid-wfg5yi43f'
1511+
querySelector: '#mermaid-m4hfqp0qv'
15121512
}).then(() => {
15131513
// 平滑显示图表
15141514
chartElement.style.opacity = '1';
@@ -1522,7 +1522,7 @@ <h3 class="text-sm font-medium text-gray-900 mb-2">注意</h3>
15221522
});
15231523
} catch (error) {
15241524
console.error('Mermaid init error:', error);
1525-
document.getElementById('mermaid-wfg5yi43f-loading').innerHTML =
1525+
document.getElementById('mermaid-m4hfqp0qv-loading').innerHTML =
15261526
'<span class="text-red-500">无法初始化图</span>';
15271527
}
15281528
});
@@ -1545,12 +1545,12 @@ <h3 class="text-sm font-medium text-gray-900 mb-2">注意</h3>
15451545

15461546
<div class="mermaid-wrapper my-4 relative w-full" style="min-width: min-content;">
15471547
<!-- 加载提示 -->
1548-
<div id="mermaid-0yfnndgj0-loading" class="absolute inset-0 flex items-center justify-center bg-white/80 dark:bg-gray-900/80 z-10">
1548+
<div id="mermaid-04pcb3t0p-loading" class="absolute inset-0 flex items-center justify-center bg-white/80 dark:bg-gray-900/80 z-10">
15491549
<span class="text-gray-500 text-sm">加载图...</span>
15501550
</div>
15511551

15521552
<!-- Mermaid 图表容器 -->
1553-
<div id="mermaid-0yfnndgj0" class="mermaid overflow-x-auto w-full" style="opacity: 0; transition: opacity 0.2s ease-in-out;">
1553+
<div id="mermaid-04pcb3t0p" class="mermaid overflow-x-auto w-full" style="opacity: 0; transition: opacity 0.2s ease-in-out;">
15541554
mindmap
15551555
root((mindmap))
15561556
Origins
@@ -1597,8 +1597,8 @@ <h3 class="text-sm font-medium text-gray-900 mb-2">注意</h3>
15971597
// 初始化 mermaid
15981598
window.mermaidReady.then(mermaid => {
15991599
try {
1600-
const chartElement = document.getElementById('mermaid-0yfnndgj0');
1601-
const loadingElement = document.getElementById('mermaid-0yfnndgj0-loading');
1600+
const chartElement = document.getElementById('mermaid-04pcb3t0p');
1601+
const loadingElement = document.getElementById('mermaid-04pcb3t0p-loading');
16021602

16031603
// 先设置容器的最小宽度
16041604
chartElement.closest('.mermaid-wrapper').style.minWidth = 'min-content';
@@ -1612,7 +1612,7 @@ <h3 class="text-sm font-medium text-gray-900 mb-2">注意</h3>
16121612

16131613
// 渲染图表
16141614
mermaid.run({
1615-
querySelector: '#mermaid-0yfnndgj0'
1615+
querySelector: '#mermaid-04pcb3t0p'
16161616
}).then(() => {
16171617
// 平滑显示图表
16181618
chartElement.style.opacity = '1';
@@ -1626,7 +1626,7 @@ <h3 class="text-sm font-medium text-gray-900 mb-2">注意</h3>
16261626
});
16271627
} catch (error) {
16281628
console.error('Mermaid init error:', error);
1629-
document.getElementById('mermaid-0yfnndgj0-loading').innerHTML =
1629+
document.getElementById('mermaid-04pcb3t0p-loading').innerHTML =
16301630
'<span class="text-red-500">无法初始化图</span>';
16311631
}
16321632
});

en/usage/tab.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,32 +1381,32 @@ <h1 class="text-3xl font-bold tracking-tight text-gray-900 dark:text-gray-100 sm
13811381
class="px-4 py-2 text-sm font-medium border-b-2 transition-colors duration-200
13821382
border-blue-500 text-blue-600
13831383
focus:outline-none"
1384-
onclick="switchTab(event, 'tabgroup-03g3ex4l4', 0)"
1384+
onclick="switchTab(event, 'tabgroup-0751rcgez', 0)"
13851385
aria-selected="true"
1386-
aria-controls="tabgroup-03g3ex4l4-panel-0"
1387-
id="tabgroup-03g3ex4l4-tab-0">
1386+
aria-controls="tabgroup-0751rcgez-panel-0"
1387+
id="tabgroup-0751rcgez-tab-0">
13881388
Tab 1
13891389
</button>
13901390

13911391
<button role="tab"
13921392
class="px-4 py-2 text-sm font-medium border-b-2 transition-colors duration-200
13931393
border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300
13941394
focus:outline-none"
1395-
onclick="switchTab(event, 'tabgroup-03g3ex4l4', 1)"
1395+
onclick="switchTab(event, 'tabgroup-0751rcgez', 1)"
13961396
aria-selected="false"
1397-
aria-controls="tabgroup-03g3ex4l4-panel-1"
1398-
id="tabgroup-03g3ex4l4-tab-1">
1397+
aria-controls="tabgroup-0751rcgez-panel-1"
1398+
id="tabgroup-0751rcgez-tab-1">
13991399
Tab 2
14001400
</button>
14011401

14021402
<button role="tab"
14031403
class="px-4 py-2 text-sm font-medium border-b-2 transition-colors duration-200
14041404
border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300
14051405
focus:outline-none"
1406-
onclick="switchTab(event, 'tabgroup-03g3ex4l4', 2)"
1406+
onclick="switchTab(event, 'tabgroup-0751rcgez', 2)"
14071407
aria-selected="false"
1408-
aria-controls="tabgroup-03g3ex4l4-panel-2"
1409-
id="tabgroup-03g3ex4l4-tab-2">
1408+
aria-controls="tabgroup-0751rcgez-panel-2"
1409+
id="tabgroup-0751rcgez-tab-2">
14101410
Tab 3
14111411
</button>
14121412

@@ -1416,8 +1416,8 @@ <h1 class="text-3xl font-bold tracking-tight text-gray-900 dark:text-gray-100 sm
14161416

14171417
<div class="p-4 "
14181418
role="tabpanel"
1419-
aria-labelledby="tabgroup-03g3ex4l4-tab-0"
1420-
id="tabgroup-03g3ex4l4-panel-0">
1419+
aria-labelledby="tabgroup-0751rcgez-tab-0"
1420+
id="tabgroup-0751rcgez-panel-0">
14211421

14221422
<span class="text-base text-gray-700 leading-7 my-2">这是第一个 Tab 的内容</span>
14231423

@@ -1437,8 +1437,8 @@ <h1 class="text-3xl font-bold tracking-tight text-gray-900 dark:text-gray-100 sm
14371437

14381438
<div class="p-4 hidden"
14391439
role="tabpanel"
1440-
aria-labelledby="tabgroup-03g3ex4l4-tab-1"
1441-
id="tabgroup-03g3ex4l4-panel-1">
1440+
aria-labelledby="tabgroup-0751rcgez-tab-1"
1441+
id="tabgroup-0751rcgez-panel-1">
14421442

14431443
<span class="text-base text-gray-700 leading-7 my-2">这是第二个 Tab 的内容</span>
14441444

@@ -1454,8 +1454,8 @@ <h1 class="text-3xl font-bold tracking-tight text-gray-900 dark:text-gray-100 sm
14541454

14551455
<div class="p-4 hidden"
14561456
role="tabpanel"
1457-
aria-labelledby="tabgroup-03g3ex4l4-tab-2"
1458-
id="tabgroup-03g3ex4l4-panel-2">
1457+
aria-labelledby="tabgroup-0751rcgez-tab-2"
1458+
id="tabgroup-0751rcgez-panel-2">
14591459

14601460
<span class="text-base text-gray-700 leading-7 my-2">第三个 Tab 的内容</span>
14611461

0 commit comments

Comments
 (0)