@cenk1cenk2/md-printer 2.10.1 → 2.11.1
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/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cenk1cenk2/md-printer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"description": "A markdown printer.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -86,15 +86,15 @@
|
|
|
86
86
|
"md-to-pdf": "^5.2.4",
|
|
87
87
|
"nunjucks": "^3.2.4",
|
|
88
88
|
"postcss": "^8.5.6",
|
|
89
|
-
"puppeteer": "^24.17.
|
|
89
|
+
"puppeteer": "^24.17.1",
|
|
90
90
|
"showdown": "^2.1.0",
|
|
91
91
|
"source-map-support": "^0.5.21",
|
|
92
92
|
"tailwindcss": "^4.1.12",
|
|
93
93
|
"yaml": "^2.8.1"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@cenk1cenk2/cz-cc": "^2.1.
|
|
97
|
-
"@cenk1cenk2/eslint-config": "^3.1.
|
|
96
|
+
"@cenk1cenk2/cz-cc": "^2.1.4",
|
|
97
|
+
"@cenk1cenk2/eslint-config": "^3.1.65",
|
|
98
98
|
"@types/config": "^3.3.5",
|
|
99
99
|
"@types/fs-extra": "^11.0.4",
|
|
100
100
|
"@types/node": "^24.3.0",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<body>
|
|
12
12
|
<img src="https://main.s3.kilic.dev/html/icon.png" alt="logo"
|
|
13
|
-
class="absolute h-40 top-3 left-1/2 transform -translate-x-1/2">
|
|
13
|
+
class="absolute h-40 top-3 left-1/2 transform -translate-x-1/2 drop-shadow-lg drop-shadow-gray-900">
|
|
14
14
|
<div class="max-w-full leading-tight prose grid grid-rows">
|
|
15
15
|
<section id="header" class="grid grid-cols-12">
|
|
16
16
|
<div class="col-span-1 flex flex-col justify-center text-lg font-extrabold text-gray-100">
|
|
@@ -49,11 +49,13 @@
|
|
|
49
49
|
</div>
|
|
50
50
|
<div class="col-span-6 flex justify-center text-xs text-center p-4">
|
|
51
51
|
<div class="grid grid-rows-2 gap-4 w-full mr-12">
|
|
52
|
-
<div
|
|
52
|
+
<div
|
|
53
|
+
class="p-2 flex flex-row justify-between align-middle rounded-xl bg-gray-50 border border-gray-50! inset-shadow-xs inset-shadow-gray-400">
|
|
53
54
|
<p class="font-bold">Date</p>
|
|
54
55
|
<p class="font-semibold">{{ date }}</p>
|
|
55
56
|
</div>
|
|
56
|
-
<div
|
|
57
|
+
<div
|
|
58
|
+
class="p-2 flex flex-row justify-between align-middle rounded-xl bg-gray-50 border border-gray-50! inset-shadow-xs inset-shadow-gray-400">
|
|
57
59
|
<p class="font-bold">Invoice#</p>
|
|
58
60
|
<p class="font-semibold">{{ id }}</p>
|
|
59
61
|
</div>
|
|
@@ -63,7 +65,7 @@
|
|
|
63
65
|
<section id="items" class="grid grid-cols-12">
|
|
64
66
|
<div class="col-span-12 px-16 py-4">
|
|
65
67
|
<table class="w-full table-auto border-y-2 shadow-md shadow-gray-300 border-gray-900! rounded-xl">
|
|
66
|
-
<thead class="border-b-2">
|
|
68
|
+
<thead class="border-b-1 border-b-gray-900! border-x-2 border-x-gray-900!">
|
|
67
69
|
<tr>
|
|
68
70
|
<th scope="col" class="w-md text-center">
|
|
69
71
|
Description
|
|
@@ -77,7 +79,7 @@
|
|
|
77
79
|
<th scope="col" class="w-[10%] text-center">
|
|
78
80
|
Subtotal
|
|
79
81
|
</th>
|
|
80
|
-
<th scope="col" class="w-[
|
|
82
|
+
<th scope="col" class="w-[10%] text-center">
|
|
81
83
|
Tax
|
|
82
84
|
</th>
|
|
83
85
|
<th scope="col" class="w-[14%] font-semibold text-center">
|
|
@@ -85,7 +87,7 @@
|
|
|
85
87
|
</th>
|
|
86
88
|
</tr>
|
|
87
89
|
</thead>
|
|
88
|
-
<tbody>
|
|
90
|
+
<tbody">
|
|
89
91
|
{% set calculated_subtotal = 0 %}
|
|
90
92
|
{% set calculated_tax = 0 %}
|
|
91
93
|
{% for item in items %}
|
|
@@ -99,10 +101,12 @@
|
|
|
99
101
|
{% set calculated_tax = calculated_tax + calculated_item_tax %}
|
|
100
102
|
<td class="text-center align-middle">
|
|
101
103
|
{% if calculated_item_tax > 0 %}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
<div class="flex flex-row align-middle">
|
|
105
|
+
<span class="text-[0.50rem] font-semibold mr-[2px] my-[4px]">({{ item.tax }}%)</span>
|
|
106
|
+
<span>{{ calculated_item_tax }}{{ currency }}</span>
|
|
107
|
+
</div>
|
|
104
108
|
{% else %}
|
|
105
|
-
|
|
109
|
+
<span class="font-semibold">—</span>
|
|
106
110
|
{% endif %}
|
|
107
111
|
</td>
|
|
108
112
|
{% set calculated_item_total = calculated_item_subtotal + calculated_item_tax %}
|
|
@@ -110,7 +114,7 @@
|
|
|
110
114
|
</tr>
|
|
111
115
|
{% set calculated_subtotal = calculated_subtotal + calculated_item_subtotal %}
|
|
112
116
|
{% endfor %}
|
|
113
|
-
|
|
117
|
+
</tbody>
|
|
114
118
|
</table>
|
|
115
119
|
</div>
|
|
116
120
|
</section>
|
|
@@ -129,8 +133,9 @@
|
|
|
129
133
|
</div>
|
|
130
134
|
<div class="col-span-1"></div>
|
|
131
135
|
<div
|
|
132
|
-
class="col-span-5 flex flex-col justify-
|
|
133
|
-
<div
|
|
136
|
+
class="col-span-5 flex flex-col justify-evenly border-2 rounded-xl border-primary-500! m-8 mr-16 p-4 shadow-md shadow-gray-300 gap-1">
|
|
137
|
+
<div
|
|
138
|
+
class="flex flex-row justify-between font-semibold bg-gray-50 rounded-lg border border-gray-50! inset-shadow-xs inset-shadow-gray-400 py-1 px-2">
|
|
134
139
|
<p>
|
|
135
140
|
Subtotal
|
|
136
141
|
</p>
|
|
@@ -138,7 +143,8 @@
|
|
|
138
143
|
{{ calculated_subtotal }}{{ currency }}
|
|
139
144
|
</p>
|
|
140
145
|
</div>
|
|
141
|
-
<div
|
|
146
|
+
<div
|
|
147
|
+
class="flex flex-row justify-between font-semibold bg-gray-50 rounded-lg border border-gray-50! inset-shadow-xs inset-shadow-gray-400 py-1 px-2">
|
|
142
148
|
<p>
|
|
143
149
|
Tax
|
|
144
150
|
</p>
|
|
@@ -146,18 +152,21 @@
|
|
|
146
152
|
{% if calculated_tax > 0 %}
|
|
147
153
|
{{ calculated_tax }}{{currency}}
|
|
148
154
|
{% else %}
|
|
149
|
-
|
|
155
|
+
<span class="font-semibold">—</span>
|
|
150
156
|
{% endif %}
|
|
151
157
|
</p>
|
|
152
158
|
</div>
|
|
153
|
-
<div class="
|
|
154
|
-
<
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
<div class="pt-1 border-t-2 border-primary-500!">
|
|
160
|
+
<div
|
|
161
|
+
class="flex flex-row justify-between font-bold rounded-lg text-primary-500 bg-gray-50 border border-gray-50! inset-shadow-xs inset-shadow-gray-400 py-1 px-2">
|
|
162
|
+
<p>
|
|
163
|
+
Total
|
|
164
|
+
</p>
|
|
165
|
+
<p>
|
|
166
|
+
{% set calculated_total = calculated_subtotal + calculated_tax %}
|
|
167
|
+
{{ calculated_total }}{{ currency }}
|
|
168
|
+
</p>
|
|
169
|
+
</div>
|
|
161
170
|
</div>
|
|
162
171
|
</div>
|
|
163
172
|
</section>
|