evikit 2.14.2 → 2.14.4

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.
@@ -24,13 +24,19 @@ steps:
24
24
  - (cd lanquiz/node_modules; git clone ../.. evikit)
25
25
  - (cd lanquiz; npm run build)
26
26
  - (cd lanquiz; npm test -- --test-concurrency=1)
27
- # Do other real-world applications build? 1/2
27
+ # Do other real-world applications build? 1/3
28
28
  - git clone https://codeberg.org/nykula/mobhub
29
29
  - (cd mobhub; npm i)
30
30
  - rm -rf mobhub/node_modules/evikit
31
31
  - (cd mobhub/node_modules; git clone ../.. evikit)
32
32
  - (cd mobhub; npm run build)
33
- # Do other real-world applications build? 2/2
33
+ # Do other real-world applications build? 2/3
34
+ - git clone https://codeberg.org/nykula/powerup
35
+ - (cd powerup; npm i)
36
+ - rm -rf powerup/node_modules/evikit
37
+ - (cd powerup/node_modules; git clone ../.. evikit)
38
+ - (cd powerup; npm run build)
39
+ # Do other real-world applications build? 3/3
34
40
  - git clone https://codeberg.org/nykula/yoself
35
41
  - (cd yoself; npm i)
36
42
  - rm -rf yoself/node_modules/evikit
package/README.md CHANGED
@@ -934,6 +934,7 @@ There's a stylesheet with a CSS reset and a small number of utility classes name
934
934
 
935
935
  - [EviKit's own landing page](https://codeberg.org/nykula/create-evikit)
936
936
  - [Lanquiz trivia game](https://codeberg.org/nykula/lanquiz)
937
+ - [Powerup electricity availability check](https://codeberg.org/nykula/powerup)
937
938
  - [Yoself container monitoring tool](https://codeberg.org/nykula/yoself)
938
939
 
939
940
  The styles are written from scratch and aren't meant to replicate Tailwind exactly, just make apps look acceptable. In particular, they use a different palette, [X11 colors](https://www.w3.org/TR/css-color-3/) as provided by CSS itself; think late 90s, not web3.
package/index.css CHANGED
@@ -109,16 +109,6 @@ summary {
109
109
  width: 100%;
110
110
  }
111
111
 
112
- .table {
113
- display: table;
114
- }
115
-
116
- @media (min-width: 992px) {
117
- .lg\:table {
118
- display: table;
119
- }
120
- }
121
-
122
112
  .table thead th,
123
113
  .lg\:table thead th {
124
114
  font-weight: 700;
@@ -127,7 +117,7 @@ summary {
127
117
 
128
118
  .table tr > *,
129
119
  .lg\:table tr > * {
130
- padding: 0.75rem;
120
+ padding: 0.75rem 1rem;
131
121
  }
132
122
 
133
123
  .table-zebra tr:nth-child(even) {
@@ -198,6 +188,11 @@ summary {
198
188
  margin-right: 0;
199
189
  }
200
190
 
191
+ .-mx-4 {
192
+ margin-left: -1rem;
193
+ margin-right: -1rem;
194
+ }
195
+
201
196
  .mx-auto {
202
197
  margin-left: auto;
203
198
  margin-right: auto;
@@ -520,6 +515,16 @@ summary {
520
515
  grid-row: span 2;
521
516
  }
522
517
 
518
+ .table {
519
+ display: table;
520
+ }
521
+
522
+ @media (min-width: 992px) {
523
+ .lg\:table {
524
+ display: table;
525
+ }
526
+ }
527
+
523
528
  .text-center {
524
529
  text-align: center;
525
530
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "evikit",
3
3
  "description": "Preact/SQLite SSR framework for small web apps",
4
- "version": "2.14.2",
4
+ "version": "2.14.4",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./index.js",
package/server.js CHANGED
@@ -325,12 +325,16 @@ export async function listen(app) {
325
325
  });
326
326
  }
327
327
  } else if (
328
- (esbuild && process.argv[2] == "dev" && !cluster.isPrimary) ||
329
- (esbuild && !process.argv[2] && cluster.isPrimary) ||
330
- (!esbuild && cluster.isPrimary)
328
+ !esbuild ||
329
+ !process.argv[2] ||
330
+ (process.argv[2] == "dev" && !cluster.isPrimary)
331
331
  ) {
332
332
  const server = app.listen(port, () => {
333
- if (cluster.isPrimary || process.env["i"] == "0") {
333
+ if (
334
+ cluster.isPrimary ||
335
+ process.env["i"] == "0" ||
336
+ (esbuild && process.argv[2] == "dev")
337
+ ) {
334
338
  console.log(
335
339
  `Server started at ${process.env["ORIGIN"] || `http://localhost:${port}`}`,
336
340
  );