@cenk1cenk2/md-printer 2.21.0 → 3.1.0
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 +333 -48
- package/bin/dev.js +0 -2
- package/bin/run.js +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.mjs +1 -2
- package/dist/_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.mjs +1 -2
- package/dist/_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateParam.mjs +8 -0
- package/dist/commands/index.mjs +32 -345
- package/dist/components/Date.svelte +1 -0
- package/dist/components/Markdown.svelte +20 -0
- package/dist/components/Nodes.svelte +32 -0
- package/dist/components/Page.svelte +20 -0
- package/dist/components/PageBreak.svelte +5 -0
- package/dist/components/PageNumber.svelte +1 -0
- package/dist/components/SignatureBlock.svelte +56 -0
- package/dist/components/Title.svelte +1 -0
- package/dist/components/TotalPages.svelte +1 -0
- package/dist/components/index.ts +8 -0
- package/dist/constants/file.constants.mjs +1 -8
- package/dist/constants/index.mjs +5 -4
- package/dist/constants/preview.constants.mjs +9 -0
- package/dist/constants/signature.constants.mjs +7 -0
- package/dist/constants/template.constants.mjs +48 -10
- package/dist/interfaces/commands/index.mjs +1 -1
- package/dist/interfaces/commands/run.interface.mjs +1 -1
- package/dist/interfaces/index.mjs +1 -1
- package/dist/interfaces/markdown.interface.mjs +1 -0
- package/dist/interfaces/renderer.interface.mjs +1 -0
- package/dist/interfaces/session.interface.mjs +1 -0
- package/dist/interfaces/signature.interface.mjs +1 -1
- package/dist/interfaces/template.interface.mjs +1 -0
- package/dist/modules/md-printer/md-printer.handler.mjs +113 -0
- package/dist/modules/md-printer/md-printer.module.mjs +21 -0
- package/dist/modules/md-printer/md-printer.schema.mjs +50 -0
- package/dist/services/i18n.service.mjs +12 -15
- package/dist/services/index.mjs +9 -2
- package/dist/services/loopback.mjs +18 -0
- package/dist/services/markdown.service.mjs +123 -0
- package/dist/services/printer.module.mjs +39 -0
- package/dist/services/printer.service.mjs +171 -0
- package/dist/services/renderer/browser.mjs +41 -0
- package/dist/services/renderer/browser.service.mjs +56 -0
- package/dist/services/renderer/renderer.service.mjs +198 -0
- package/dist/services/session/Preview.svelte +238 -0
- package/dist/services/session/preview.service.mjs +187 -0
- package/dist/services/session/session.service.mjs +115 -0
- package/dist/services/signature/adapters/a-trust.adapter.mjs +32 -36
- package/dist/services/signature/index.mjs +1 -2
- package/dist/services/signature/signature.adapter.mjs +1 -2
- package/dist/services/signature/signature.service.mjs +6 -10
- package/dist/services/template/Document.svelte +21 -0
- package/dist/services/template/Margin.svelte +15 -0
- package/dist/services/template/assets.mjs +127 -0
- package/dist/services/template/render.entry.ts +32 -0
- package/dist/services/template/svelte.plugin.mjs +66 -0
- package/dist/services/template/template.service.mjs +211 -0
- package/oclif.manifest.json +49 -36
- package/package.json +69 -35
- package/templates/default/Template.svelte +83 -0
- package/templates/default/settings.json +1 -3
- package/templates/invoice/Template.svelte +247 -0
- package/templates/invoice/components/Client.svelte +42 -0
- package/templates/invoice/components/Company.svelte +41 -0
- package/templates/invoice/components/Items.svelte +66 -0
- package/templates/invoice/components/Notes.svelte +21 -0
- package/templates/invoice/components/Payment.svelte +25 -0
- package/templates/invoice/components/Signature.svelte +34 -0
- package/templates/invoice/components/Totals.svelte +47 -0
- package/templates/invoice/round.js +2 -0
- package/templates/invoice/settings.json +1 -4
- package/templates/kilic.dev/Template.svelte +102 -0
- package/templates/kilic.dev/settings.json +1 -3
- package/templates/mail/Template.svelte +166 -0
- package/templates/mail/settings.json +1 -3
- package/dist/hooks/not-found.hook.mjs +0 -7
- package/dist/hooks/update-notifier.hook.mjs +0 -7
- package/dist/interfaces/pupeteer.mjs +0 -1
- package/templates/default/main.css +0 -73
- package/templates/invoice/.gitignore +0 -1
- package/templates/invoice/footer.html +0 -18
- package/templates/invoice/tailwind.css +0 -164
- package/templates/invoice/template.html.j2 +0 -226
- package/templates/kilic.dev/footer.html +0 -26
- package/templates/kilic.dev/header.html +0 -16
- package/templates/kilic.dev/main.css +0 -74
- package/templates/mail/.gitignore +0 -1
- package/templates/mail/tailwind.css +0 -145
- package/templates/mail/template.html.j2 +0 -14
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
@import url('https://fonts.bunny.net/css?family=montserrat:100,200,300,400,500,600,700,800,900&display=swap');
|
|
2
|
-
|
|
3
|
-
@import 'tailwindcss';
|
|
4
|
-
@plugin '@tailwindcss/typography';
|
|
5
|
-
|
|
6
|
-
@theme {
|
|
7
|
-
--font-sans: 'Montserrat';
|
|
8
|
-
--font-serif: 'Montserrat';
|
|
9
|
-
--font-weight-semibold: 700;
|
|
10
|
-
--font-weight-bold: 800;
|
|
11
|
-
--font-weight-extrabold: 900;
|
|
12
|
-
--color-primary-500: #cd0043;
|
|
13
|
-
--color-gray-50: oklch(98.5% 0.002 247.839);
|
|
14
|
-
--color-gray-100: #abb2bf;
|
|
15
|
-
--color-gray-200: #979eab;
|
|
16
|
-
--color-gray-300: #7c8a9d;
|
|
17
|
-
--color-gray-400: #5c6370;
|
|
18
|
-
--color-gray-500: #4b5263;
|
|
19
|
-
--color-gray-600: #2c333d;
|
|
20
|
-
--color-gray-700: #22282f;
|
|
21
|
-
--color-gray-800: #1e2127;
|
|
22
|
-
--color-gray-900: #17191e;
|
|
23
|
-
--color-gray-950: oklch(13% 0.028 261.692);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
*,
|
|
27
|
-
::after,
|
|
28
|
-
::before,
|
|
29
|
-
::backdrop,
|
|
30
|
-
::file-selector-button {
|
|
31
|
-
border-color: var(--color-gray-200, currentcolor);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
body {
|
|
35
|
-
font-family: var(--font-sans);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
address {
|
|
39
|
-
@apply text-sm;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* Typography styles converted from config */
|
|
43
|
-
.prose a {
|
|
44
|
-
text-decoration: none;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.prose h1 {
|
|
48
|
-
font-weight: 800;
|
|
49
|
-
padding-top: 0.1875rem;
|
|
50
|
-
/* 0.75 * 0.25rem */
|
|
51
|
-
padding-bottom: 0.1875rem;
|
|
52
|
-
margin-bottom: 0;
|
|
53
|
-
margin-top: 0;
|
|
54
|
-
border-width: 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.prose h2 {
|
|
58
|
-
font-weight: 800;
|
|
59
|
-
padding-top: 0.125rem;
|
|
60
|
-
/* 0.5 * 0.25rem */
|
|
61
|
-
padding-bottom: 0.125rem;
|
|
62
|
-
margin-bottom: 0;
|
|
63
|
-
margin-top: 0;
|
|
64
|
-
border-width: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.prose h3 {
|
|
68
|
-
font-weight: 700;
|
|
69
|
-
padding-top: 0.0625rem;
|
|
70
|
-
/* 0.25 * 0.25rem */
|
|
71
|
-
padding-bottom: 0.0625rem;
|
|
72
|
-
margin-bottom: 0;
|
|
73
|
-
margin-top: 0;
|
|
74
|
-
border-width: 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
p {
|
|
78
|
-
margin: 0.1em 0em;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.prose blockquote {
|
|
82
|
-
font-weight: 400;
|
|
83
|
-
color: var(--color-gray-600);
|
|
84
|
-
font-style: normal;
|
|
85
|
-
quotes: '\201C' '\201D' '\2018' '\2019';
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.prose blockquote p:first-of-type::before {
|
|
89
|
-
content: '';
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.prose blockquote p:last-of-type::after {
|
|
93
|
-
content: '';
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.prose ul > li {
|
|
97
|
-
padding-left: 1em;
|
|
98
|
-
text-align: left;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.prose ol > li {
|
|
102
|
-
padding-left: 1em;
|
|
103
|
-
text-align: left;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.prose ol > li::before {
|
|
107
|
-
top: calc(0.875em - 0.1em);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.prose ul > li::before {
|
|
111
|
-
top: calc(0.875em - 0.1em);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
html {
|
|
115
|
-
font-size: 12px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.page-break {
|
|
119
|
-
page-break-after: always;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.text-vertical {
|
|
123
|
-
text-orientation: upright;
|
|
124
|
-
writing-mode: vertical-lr;
|
|
125
|
-
display: flex;
|
|
126
|
-
flex-direction: column;
|
|
127
|
-
justify-content: center;
|
|
128
|
-
@apply p-4;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
table th {
|
|
132
|
-
@apply bg-gray-700 text-white;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
table tr {
|
|
136
|
-
border-top: 0;
|
|
137
|
-
@apply even:bg-gray-50;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
table th,
|
|
141
|
-
table td,
|
|
142
|
-
table tr {
|
|
143
|
-
border: 0;
|
|
144
|
-
padding: 0.5em 0.5em;
|
|
145
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
vim: ft=htmldjango
|
|
3
|
-
-->
|
|
4
|
-
<!DOCTYPE html>
|
|
5
|
-
<html>
|
|
6
|
-
<head>
|
|
7
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
8
|
-
<meta charset="UTF-8" />
|
|
9
|
-
</head>
|
|
10
|
-
|
|
11
|
-
<body>
|
|
12
|
-
<div class="leading-tight prose">{{ content | safe }}</div>
|
|
13
|
-
</body>
|
|
14
|
-
</html>
|