@mojojs/core 0.38.1 → 0.40.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.
@@ -10,7 +10,7 @@ main {
10
10
  border: solid #cce4ff 1px;
11
11
  border-radius: .25rem;
12
12
  color: #333;
13
- font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;;
13
+ font: 0.875rem SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;;
14
14
  padding: 0.4em;
15
15
  }
16
16
  h2 {
@@ -18,13 +18,13 @@ h2 {
18
18
  font-size: 2em;
19
19
  }
20
20
  pre {
21
- font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
21
+ font: 0.875rem SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
22
22
  margin: 0;
23
23
  white-space: pre-wrap;
24
24
  }
25
25
  pre > code {
26
26
  display: block;
27
- font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
27
+ font: 0.875rem SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
28
28
  margin-bottom: 0.7em;
29
29
  margin-top: 0.7em;
30
30
  }
@@ -131,13 +131,13 @@ th {
131
131
  background-color: #282c34;
132
132
  border: 0;
133
133
  border-radius: .25rem;
134
- font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
134
+ font: 0.875rem SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
135
135
  padding: 1em;
136
136
  width: 100%;
137
137
  }
138
138
  .mojo-terminal > code {
139
139
  color: #eee;
140
- font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
140
+ font: 0.875rem SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
141
141
  line-height: 1.5em;
142
142
  text-align: left;
143
143
  white-space: pre-wrap;
@@ -192,6 +192,6 @@ th {
192
192
  border: 0;
193
193
  border-radius: 0;
194
194
  color: #eee;
195
- font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;;
195
+ font: 0.875rem SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;;
196
196
  padding: 0;
197
197
  }
@@ -135,7 +135,7 @@
135
135
  for <code><%= ctx.req.path %></code>, maybe you need to add a new one?
136
136
  </p>
137
137
  </div>
138
- % function walk (route, depth) {
138
+ <{walkBlock(route, depth)}>
139
139
  % const pattern = route.pattern;
140
140
  % let unparsed = pattern.unparsed || '/';
141
141
  % if (depth > 0) unparsed = `+${unparsed}`;
@@ -158,9 +158,9 @@
158
158
  </td>
159
159
  </tr>
160
160
  % depth++;
161
- %= route.children.map(child => walk(child, depth)).join('')
161
+ %== (await Promise.all(route.children.map(child => walkBlock(child, depth)))).join('')
162
162
  % depth--;
163
- % }
163
+ <{/walkBlock}>
164
164
  <table class="mojo-striped-light mojo-wide">
165
165
  <thead>
166
166
  <tr>
@@ -169,7 +169,7 @@
169
169
  <th>Name</th>
170
170
  </tr>
171
171
  </thead>
172
- %= ctx.app.router.children.map(child => walk(child, 0)).join('')
172
+ %== (await Promise.all(ctx.app.router.children.map(child => walkBlock(child, 0)))).join('')
173
173
  </table>
174
174
  </div>
175
175
  % }