njk-tool 0.0.24 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/bundle/app.min.cjs +76 -74
- package/dist/bundle/app.min.cjs.map +1 -1
- package/dist/bundle/app.min.js +76 -74
- package/dist/bundle/app.min.js.map +1 -1
- package/package.json +3 -1
- package/dist/bundle/package.json/package.json +0 -57
- package/dist/bundle/src/base.style +0 -347
- package/dist/bundle/src/index.html +0 -262
package/dist/bundle/app.min.js
CHANGED
|
@@ -13464,51 +13464,19 @@ font-size: 0.9rem;
|
|
|
13464
13464
|
/* END-Text.css */
|
|
13465
13465
|
/* Title.css */
|
|
13466
13466
|
.title-base {
|
|
13467
|
-
|
|
13468
|
-
|
|
13469
|
-
--font-weight: 800;
|
|
13470
|
-
--font-size: 18px;
|
|
13471
|
-
color: var(--text-color);
|
|
13472
|
-
text-align: var(--align);
|
|
13473
|
-
font-weight: var(--font-weight);
|
|
13474
|
-
font-size: var(--font-size);
|
|
13475
|
-
padding: 8px 30px;
|
|
13467
|
+
text-align: center;
|
|
13468
|
+
font-weight: bolder;
|
|
13476
13469
|
}
|
|
13477
13470
|
.njk-title-h1 {
|
|
13478
|
-
font-size: 26px;
|
|
13479
|
-
font-weight: bolder;
|
|
13480
|
-
--align: left;
|
|
13481
|
-
--text-color: #606266;
|
|
13482
|
-
--margin: 20px 0 10px;
|
|
13483
13471
|
position: relative;
|
|
13484
13472
|
padding: 0 0 4.8px;
|
|
13485
|
-
margin: var(--margin);
|
|
13486
|
-
color: var(--text-color);
|
|
13487
|
-
text-align: var(--align);
|
|
13488
13473
|
}
|
|
13489
13474
|
.njk-title-h2 {
|
|
13490
|
-
font-size: 24px;
|
|
13491
|
-
font-weight: bolder;
|
|
13492
|
-
--align: left;
|
|
13493
|
-
--text-color: #606266;
|
|
13494
|
-
--margin: 20px 0 10px;
|
|
13495
13475
|
position: relative;
|
|
13496
|
-
padding: 0 0 4.8px;
|
|
13497
|
-
margin: var(--margin);
|
|
13498
|
-
color: var(--text-color);
|
|
13499
|
-
text-align: var(--align);
|
|
13500
13476
|
}
|
|
13501
|
-
.njk-title-h3{
|
|
13502
|
-
font-size: 20px;
|
|
13503
|
-
--align: left;
|
|
13504
|
-
--text-color: #606266;
|
|
13505
|
-
font-weight: bolder;
|
|
13506
|
-
--margin: 20px 0 10px;
|
|
13477
|
+
.njk-title-h3 {
|
|
13507
13478
|
position: relative;
|
|
13508
|
-
|
|
13509
|
-
margin: var(--margin);
|
|
13510
|
-
color: var(--text-color);
|
|
13511
|
-
text-align: var(--align);
|
|
13479
|
+
margin-bottom: 10px;
|
|
13512
13480
|
}
|
|
13513
13481
|
/* .njk-title-h2::before,
|
|
13514
13482
|
.njk-title-h1::before {
|
|
@@ -13527,21 +13495,6 @@ left: -18px;
|
|
|
13527
13495
|
.njk-title-h2:hover::before {
|
|
13528
13496
|
display: inline-block;
|
|
13529
13497
|
} */
|
|
13530
|
-
.title-main {
|
|
13531
|
-
--align: left;
|
|
13532
|
-
--text-color: black;
|
|
13533
|
-
--font-weight: 800;
|
|
13534
|
-
--font-size: 28px;
|
|
13535
|
-
color: var(--text-color);
|
|
13536
|
-
text-align: var(--align);
|
|
13537
|
-
font-weight: var(--font-weight);
|
|
13538
|
-
font-size: var(--font-size);
|
|
13539
|
-
padding: 8px 30px;
|
|
13540
|
-
margin-bottom: 20px;
|
|
13541
|
-
}
|
|
13542
|
-
.title-center {
|
|
13543
|
-
text-align: center;
|
|
13544
|
-
}
|
|
13545
13498
|
/* END-Title.css */
|
|
13546
13499
|
/* Notice.css */
|
|
13547
13500
|
/* Notice */
|
|
@@ -13577,25 +13530,41 @@ border-left: 4px solid #f5222d;
|
|
|
13577
13530
|
/* END-Notice.css */
|
|
13578
13531
|
/* Table.css */
|
|
13579
13532
|
.my-daframe-default {
|
|
13580
|
-
margin: 0;
|
|
13581
|
-
width: 80%;
|
|
13533
|
+
margin: 0 auto 20px;
|
|
13582
13534
|
border-collapse: collapse;
|
|
13583
|
-
border
|
|
13535
|
+
border: 2px solid black;
|
|
13584
13536
|
/* 合并边框 */
|
|
13585
13537
|
font-family: Arial, Helvetica, sans-serif;
|
|
13586
13538
|
font-size: 14px;
|
|
13587
13539
|
color: #444444;
|
|
13588
13540
|
}
|
|
13541
|
+
.my-daframe-default a {
|
|
13542
|
+
text-decoration: none !important;
|
|
13543
|
+
color: #444444 !important;
|
|
13544
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
13545
|
+
font-size: 14px;
|
|
13546
|
+
}
|
|
13589
13547
|
.thead-light th {
|
|
13590
13548
|
white-space: nowrap;
|
|
13591
|
-
background-color: #
|
|
13549
|
+
background-color: #e0e3e8;
|
|
13550
|
+
/* background-color: #f5f7fa; */
|
|
13592
13551
|
color: #333333;
|
|
13593
13552
|
font-weight: 600;
|
|
13594
13553
|
padding: 12px 16px;
|
|
13595
13554
|
text-align: left;
|
|
13596
|
-
border: 1px solid
|
|
13555
|
+
border-right: 1px solid rgba(19, 18, 18, 0.6);
|
|
13556
|
+
border-bottom: 2px solid black;
|
|
13597
13557
|
font-size: 16px;
|
|
13598
13558
|
}
|
|
13559
|
+
.my-daframe-default tr {
|
|
13560
|
+
border-bottom: 1px solid black;
|
|
13561
|
+
}
|
|
13562
|
+
.my-daframe-default td {
|
|
13563
|
+
border-right: 1px solid rgba(19, 18, 18, 0.6);
|
|
13564
|
+
/* color: #333333; */
|
|
13565
|
+
/* font-weight: 600; */
|
|
13566
|
+
/* text-align: left; */
|
|
13567
|
+
}
|
|
13599
13568
|
.default-row {
|
|
13600
13569
|
border: 1px solid #eee;
|
|
13601
13570
|
background-color: #fff;
|
|
@@ -13606,7 +13575,7 @@ color: rebeccapurple;
|
|
|
13606
13575
|
}
|
|
13607
13576
|
.default-cell {
|
|
13608
13577
|
padding: 10px 16px;
|
|
13609
|
-
border: 1px solid #e1e4e8;
|
|
13578
|
+
/* border: 1px solid #e1e4e8; */
|
|
13610
13579
|
font-weight: 400;
|
|
13611
13580
|
font-size: 14px;
|
|
13612
13581
|
color: #444;
|
|
@@ -13637,6 +13606,12 @@ overflow-x: auto;
|
|
|
13637
13606
|
}
|
|
13638
13607
|
/* END-Block.css */
|
|
13639
13608
|
/* Date.css */
|
|
13609
|
+
.center-info-box {
|
|
13610
|
+
margin-top: -20px;
|
|
13611
|
+
margin-bottom: 20px;
|
|
13612
|
+
text-align: center;
|
|
13613
|
+
color: black;
|
|
13614
|
+
}
|
|
13640
13615
|
/* END-Date.css */
|
|
13641
13616
|
/* Tab.css */
|
|
13642
13617
|
/* Tab 容器 */
|
|
@@ -13697,10 +13672,11 @@ min-width: 1000px;
|
|
|
13697
13672
|
padding: 0 5rem;
|
|
13698
13673
|
}
|
|
13699
13674
|
:root {
|
|
13700
|
-
--njk-title-color:
|
|
13701
|
-
--njk-title-align:
|
|
13675
|
+
--njk-title-color: black;
|
|
13676
|
+
--njk-title-align: center;
|
|
13702
13677
|
--njk-title-position: relative;
|
|
13703
13678
|
--njk-title-margin: 36px 0 20px;
|
|
13679
|
+
--njk-table-margin: 0 auto 20px;
|
|
13704
13680
|
}
|
|
13705
13681
|
/* END-Base.css */
|
|
13706
13682
|
</style>`;
|
|
@@ -13723,6 +13699,16 @@ const templateText = `<!-- Head.njk -->
|
|
|
13723
13699
|
{% endfor %}
|
|
13724
13700
|
{% endif %}
|
|
13725
13701
|
{% endmacro %}
|
|
13702
|
+
{% macro use_comp_start(ctx) %}
|
|
13703
|
+
<table style="width: 100%;table-layout: auto">
|
|
13704
|
+
<tr>
|
|
13705
|
+
<td>
|
|
13706
|
+
{% endmacro %}
|
|
13707
|
+
{% macro use_comp_end(ctx) %}
|
|
13708
|
+
</td>
|
|
13709
|
+
</tr>
|
|
13710
|
+
</table>
|
|
13711
|
+
{% endmacro %}
|
|
13726
13712
|
<!-- /Head.njk -->
|
|
13727
13713
|
<!-- TOC.njk -->
|
|
13728
13714
|
{% macro use_toc(ctx) %}
|
|
@@ -13805,28 +13791,37 @@ padding: 6px 16px;
|
|
|
13805
13791
|
{% endmacro %}
|
|
13806
13792
|
<!-- /Tag.njk -->
|
|
13807
13793
|
<!-- Title.njk -->
|
|
13794
|
+
{% macro use_table_wrapper(macro) %}
|
|
13795
|
+
<table style="width: 100%;table-layout: auto">
|
|
13796
|
+
<th>
|
|
13797
|
+
<td>{{ macro }}</td>
|
|
13798
|
+
</th>
|
|
13799
|
+
</table>
|
|
13800
|
+
{% endmacro %}
|
|
13808
13801
|
{% macro title_default(ctx) %}
|
|
13809
|
-
<h1
|
|
13802
|
+
<h1 class="title-base">{{ ctx.text }}</h1>
|
|
13810
13803
|
{% endmacro %}
|
|
13811
13804
|
{% macro title_h1(ctx) %}
|
|
13812
|
-
<
|
|
13805
|
+
<h1 class="title-base njk-title-h1" id="{{ ctx.text }}" style="{{ ctx.style }}">
|
|
13813
13806
|
{{ ctx.text }}
|
|
13814
|
-
</
|
|
13807
|
+
</h1>
|
|
13815
13808
|
{% endmacro %}
|
|
13816
13809
|
{% macro title_h2(ctx) %}
|
|
13817
|
-
<
|
|
13810
|
+
<h2 class="title-base njk-title-h2" id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
|
|
13818
13811
|
{{ ctx.text }}
|
|
13819
|
-
</
|
|
13812
|
+
</h2>
|
|
13820
13813
|
{% endmacro %}
|
|
13821
13814
|
{% macro title_h3(ctx) %}
|
|
13822
|
-
<
|
|
13815
|
+
<h3 class="title-base njk-title-h3" id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
|
|
13823
13816
|
{{ ctx.text }}
|
|
13824
|
-
</
|
|
13817
|
+
</h3>
|
|
13825
13818
|
{% endmacro %}
|
|
13826
13819
|
{% macro title_table_default(ctx) %}
|
|
13827
|
-
|
|
13820
|
+
{{ use_comp_start() }}
|
|
13821
|
+
<h3 class="title-base njk-title-h3" id="{{ ctx.text }}">
|
|
13828
13822
|
{{ ctx.text }}
|
|
13829
|
-
</
|
|
13823
|
+
</h3>
|
|
13824
|
+
{{ use_comp_end() }}
|
|
13830
13825
|
{% endmacro %}
|
|
13831
13826
|
{% macro use_title(ctx) %}
|
|
13832
13827
|
{% if ctx.type == "h1" %}
|
|
@@ -13862,10 +13857,10 @@ padding: 6px 16px;
|
|
|
13862
13857
|
<!-- /Block.njk -->
|
|
13863
13858
|
<!-- Date.njk -->
|
|
13864
13859
|
{% macro use_date(ctx) %}
|
|
13865
|
-
<div class="center-info-box"><span style="font-weight:bolder;
|
|
13860
|
+
<div class="center-info-box" style="text-align: center;"><span style="font-weight:bolder;">Date:</span>{{ ctx.text}}</div>
|
|
13866
13861
|
{% endmacro %}
|
|
13867
13862
|
{% macro use_checker(ctx) %}
|
|
13868
|
-
<div class="center-info-box"><span style="font-weight:bolder;
|
|
13863
|
+
<div class="center-info-box" style="text-align: center;"><span style="font-weight:bolder;">Checker:</span>{{ ctx.text}}</div>
|
|
13869
13864
|
{% endmacro %}
|
|
13870
13865
|
<!-- /Date.njk -->
|
|
13871
13866
|
<!-- Table.njk -->
|
|
@@ -13892,7 +13887,9 @@ padding: 6px 16px;
|
|
|
13892
13887
|
{% endif %}
|
|
13893
13888
|
{% if ctx.title %}
|
|
13894
13889
|
{% set title = {text:ctx.title} %}
|
|
13890
|
+
{{ use_comp_start() }}
|
|
13895
13891
|
{{ title_h2(title) }}
|
|
13892
|
+
{{ use_comp_end() }}
|
|
13896
13893
|
{% endif %}
|
|
13897
13894
|
<table class="my-daframe-default">
|
|
13898
13895
|
<thead class="thead-light">
|
|
@@ -13921,7 +13918,6 @@ padding: 6px 16px;
|
|
|
13921
13918
|
{% endmacro %}
|
|
13922
13919
|
{% macro use_table(ctx) %}
|
|
13923
13920
|
{% if ctx.title %}
|
|
13924
|
-
{{ title_table_default(ctx.title) }}
|
|
13925
13921
|
{{ table_default(ctx) }}
|
|
13926
13922
|
{% else %}
|
|
13927
13923
|
{{ table_default(ctx) }}
|
|
@@ -14054,16 +14050,22 @@ display: block;
|
|
|
14054
14050
|
{% endmacro %}
|
|
14055
14051
|
{% macro use_component(ctx) %}
|
|
14056
14052
|
{% if ctx.tag %}
|
|
14053
|
+
{{ use_comp_start() }}
|
|
14057
14054
|
{{ pick_component(ctx) }}
|
|
14055
|
+
{{ use_comp_end() }}
|
|
14058
14056
|
{% else %}
|
|
14059
14057
|
{% for i in ctx %}
|
|
14058
|
+
{% if i.tag != 'table' %}
|
|
14059
|
+
{{ use_comp_start() }}
|
|
14060
|
+
{{ pick_component(i) }}
|
|
14061
|
+
{{ use_comp_end() }}
|
|
14062
|
+
{% else %}
|
|
14060
14063
|
{{ pick_component(i) }}
|
|
14064
|
+
{% endif %}
|
|
14061
14065
|
{% endfor %}
|
|
14062
14066
|
{% endif %}
|
|
14063
14067
|
{% endmacro %}
|
|
14064
|
-
|
|
14065
|
-
{{ use_component(ctx) }}
|
|
14066
|
-
</div>
|
|
14068
|
+
{{ use_component(ctx) }}</tr>
|
|
14067
14069
|
<!-- /Component.njk -->
|
|
14068
14070
|
<!-- Text.njk -->
|
|
14069
14071
|
{% macro text_default(ctx) %}
|