datool 0.0.5 → 0.0.6
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 +14 -0
- package/client-dist/assets/index-CU3ksvkv.js +164 -0
- package/client-dist/assets/index-Rn9jSaAz.css +1 -0
- package/client-dist/index.html +2 -2
- package/package.json +1 -1
- package/src/client/App.tsx +11 -40
- package/src/client/components/data-table-cell.tsx +19 -6
- package/src/client/components/data-table.tsx +490 -85
- package/src/node/config.ts +22 -0
- package/src/shared/types.ts +4 -0
- package/client-dist/assets/index-DUkIilaZ.css +0 -1
- package/client-dist/assets/index-OdNyDkx7.js +0 -164
package/README.md
CHANGED
|
@@ -16,6 +16,10 @@ Create `datool.config.ts` in your project root:
|
|
|
16
16
|
import { defineDatoolConfig, sources } from "datool"
|
|
17
17
|
|
|
18
18
|
export default defineDatoolConfig({
|
|
19
|
+
dateFormat: {
|
|
20
|
+
dateStyle: "short",
|
|
21
|
+
timeStyle: "medium",
|
|
22
|
+
},
|
|
19
23
|
streams: {
|
|
20
24
|
file: {
|
|
21
25
|
...sources.file({
|
|
@@ -77,6 +81,10 @@ The CLI will:
|
|
|
77
81
|
import { defineDatoolConfig, sources } from "datool"
|
|
78
82
|
|
|
79
83
|
export default defineDatoolConfig({
|
|
84
|
+
dateFormat: {
|
|
85
|
+
dateStyle: "short",
|
|
86
|
+
timeStyle: "medium",
|
|
87
|
+
},
|
|
80
88
|
server: {
|
|
81
89
|
port: 3210,
|
|
82
90
|
},
|
|
@@ -131,6 +139,12 @@ export default defineDatoolConfig({
|
|
|
131
139
|
})
|
|
132
140
|
```
|
|
133
141
|
|
|
142
|
+
Top-level config options include:
|
|
143
|
+
|
|
144
|
+
- `dateFormat`: optional global `Intl.DateTimeFormatOptions` for `kind: "date"` columns
|
|
145
|
+
- `server`: optional server overrides such as `host` and `port`
|
|
146
|
+
- `streams`: stream definitions
|
|
147
|
+
|
|
134
148
|
Each stream defines:
|
|
135
149
|
|
|
136
150
|
- `label`: UI label
|