Skip to content

Commit 33a3351

Browse files
committed
- Fixed table layout
1 parent a60014c commit 33a3351

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"src/templates/**/*.ts"
4444
],
4545
"scripts": {
46-
"clean": "rimraf ./dist ./test/result ./coverage",
46+
"clean": "rimraf ./dist ./test/result ./coverage ./samples/examples",
4747
"build": "rollup --config",
4848
"run": "node ./test/index.js",
4949
"test": "jest",

samples/README.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ And used the following generators with their default options:
2121

2222
#Results
2323

24-
<table>
24+
<table style="font-size: 12px; vertical-align: top; text-align: left;">
2525
<thead>
26-
<tr>
26+
<tr style="font-size: 12px; vertical-align: top; text-align: left;">
2727
<th></th>
2828
<th>openapi-typscript-codegen</th>
2929
<th>aurelia</th>
@@ -35,7 +35,7 @@ And used the following generators with their default options:
3535
</tr>
3636
</thead>
3737
<tbody>
38-
<tr>
38+
<tr style="font-size: 12px; vertical-align: top; text-align: left;">
3939
<th>Supports OpenApi v2 specification</th>
4040
<td>✅</td>
4141
<td>✅</td>
@@ -45,7 +45,7 @@ And used the following generators with their default options:
4545
<td>✅</td>
4646
<td>✅</td>
4747
</tr>
48-
<tr>
48+
<tr style="font-size: 12px; vertical-align: top; text-align: left;">
4949
<th>Supports OpenApi v3 specification</th>
5050
<td>✅</td>
5151
<td>❌</td>
@@ -55,47 +55,47 @@ And used the following generators with their default options:
5555
<td>❌</td>
5656
<td>❌</td>
5757
</tr>
58-
<tr>
58+
<tr style="font-size: 12px; vertical-align: top; text-align: left;">
5959
<th>Supports authentication</th>
60-
<td>✅ Bearer token</td>
60+
<td>✅<div>Bearer token</div></td>
6161
<td>❌</td>
62-
<td>✅ Bearer token</td>
63-
<td>✅ Bearer token</td>
64-
<td>✅ Bearer token</td>
65-
<td>✅ Bearer token</td>
66-
<td>✅ Bearer token</td>
62+
<td>✅<div>Bearer token</div></td>
63+
<td>✅<div>Bearer token</div></td>
64+
<td>✅<div>Bearer token</div></td>
65+
<td>✅<div>Bearer token</div></td>
66+
<td>✅<div>Bearer token</div></td>
6767
</tr>
68-
<tr>
68+
<tr style="font-size: 12px; vertical-align: top; text-align: left;">
6969
<th>Strongly typed models</th>
7070
<td>✅</td>
7171
<td>✅</td>
7272
<td>✅</td>
7373
<td>✅</td>
7474
<td>✅</td>
7575
<td>✅</td>
76-
<td>✅ Using classes instead of simple interfaces</td>
76+
<td>✅<div>Using classes instead of simple interfaces</td>
7777
</tr>
78-
<tr>
78+
<tr style="font-size: 12px; vertical-align: top; text-align: left;">
7979
<th>Strongly typed enums</th>
8080
<td>✅</td>
81-
<td>✅ No enum is exported</td>
81+
<td>✅<div>No enum is exported</div></td>
8282
<td>✅</td>
83-
<td>✅ Odd cast to <code>&lt;any&gt</code></td>
84-
<td>✅ Odd cast to <code>&lt;any&gt</code></td>
85-
<td>✅ Odd cast to <code>&lt;any&gt</code></td>
86-
<td>✅ Odd cast to <code>&lt;any&gt</code></td>
83+
<td>✅<div>Odd cast to <code>&lt;any&gt</code></div></td>
84+
<td>✅<div>Odd cast to <code>&lt;any&gt</code></div></td>
85+
<td>✅<div>Odd cast to <code>&lt;any&gt</code></div></td>
86+
<td>✅<div>Odd cast to <code>&lt;any&gt</code></div></td>
8787
</tr>
88-
<tr>
88+
<tr style="font-size: 12px; vertical-align: top; text-align: left;">
8989
<th>Models and services exported as individual files</th>
9090
<td>✅</td>
91-
<td>❌ All models inside one file</td>
91+
<td>❌<div>All models inside one file</div></td>
9292
<td>✅</td>
9393
<td>✅</td>
94-
<td>❌ All models and services inside one file</td>
94+
<td>❌<div>All models and services inside one file</div></td>
9595
<td>✅</td>
96-
<td>❌ All models and services inside one file</td>
96+
<td>❌<div>All models and services inside one file</div></td>
9797
</tr>
98-
<tr>
98+
<tr style="font-size: 12px; vertical-align: top; text-align: left;">
9999
<th>Index file that exports all services and models</th>
100100
<td>✅</td>
101101
<td>✅</td>
@@ -105,7 +105,7 @@ And used the following generators with their default options:
105105
<td>✅</td>
106106
<td>❌</td>
107107
</tr>
108-
<tr>
108+
<tr style="font-size: 12px; vertical-align: top; text-align: left;">
109109
<th>Service returns typed result</th>
110110
<td>✅</td>
111111
<td>✅</td>
@@ -115,17 +115,17 @@ And used the following generators with their default options:
115115
<td>✅</td>
116116
<td>✅</td>
117117
</tr>
118-
<tr>
118+
<tr style="font-size: 12px; vertical-align: top; text-align: left;">
119119
<th>Service supports sending and receiving binary content</th>
120120
<td>✅</td>
121121
<td>✅</td>
122122
<td>✅</td>
123-
<td>❌ Passing file as application/octet-stream</td>
124-
<td>❌ Passing file as application/octet-stream</td>
123+
<td>❌<div>Passing file as <code>application/octet-stream</code></div></td>
124+
<td>❌<div>Passing file as <code>application/octet-stream</code></div></td>
125125
<td>✅</td>
126126
<td>✅</td>
127127
</tr>
128-
<tr>
128+
<tr style="font-size: 12px; vertical-align: top; text-align: left;">
129129
<th>Models and services contain inline documentation</th>
130130
<td>✅</td>
131131
<td>❌</td>
@@ -135,15 +135,15 @@ And used the following generators with their default options:
135135
<td>❌</td>
136136
<td>❌</td>
137137
</tr>
138-
<tr>
138+
<tr style="font-size: 12px; vertical-align: top; text-align: left;">
139139
<th>Framework agnostic</th>
140140
<td>✅</td>
141-
<td>❌ No, using <code>aurelia</code></td>
142-
<td>❌ No, using <code>inversify</code> and <code>rxjs</code></td>
143-
<td>❌ No, using <code>angular</code></td>
144-
<td>✅ But depends on <code>portable-fetch</code></td>
145-
<td>❌ No, using <code>jquery</code></td>
146-
<td>❌ No, can only be used with NodeJS <code>http</code></td>
141+
<td>❌<div>No, using <code>aurelia</code></div></td>
142+
<td>❌<div>No, using <code>inversify</code> and <code>rxjs</code></div></td>
143+
<td>❌<div> No, using <code>angular</code></div></td>
144+
<td>✅<div>But depends on <code>portable-fetch</code></div></td>
145+
<td>❌<div>No, using <code>jquery</code></div></td>
146+
<td>❌<div>No, can only be used with NodeJS <code>http</code></div></td>
147147
</tr>
148148
</tbody>
149149
</table>

0 commit comments

Comments
 (0)