@protobase/cli 0.19.15 → 0.19.16
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/dist/doctor/view-shapes.js +16 -2
- package/dist/package.js +1 -1
- package/package.json +6 -6
|
@@ -94,6 +94,20 @@ const displayShapes = (model, view, models) => (view.list?.displays ?? []).flatM
|
|
|
94
94
|
query: { filter }
|
|
95
95
|
}];
|
|
96
96
|
}
|
|
97
|
+
if (display.kind === "board") {
|
|
98
|
+
const by = model.fields[display.by];
|
|
99
|
+
if (!by) return [];
|
|
100
|
+
const sort = listSort(model, view);
|
|
101
|
+
return [{
|
|
102
|
+
resource: model.name,
|
|
103
|
+
request: request(model.name, `${by.name} = …`, sort),
|
|
104
|
+
from: `the board display "${display.name}"`,
|
|
105
|
+
query: {
|
|
106
|
+
filter: compare(by),
|
|
107
|
+
sort
|
|
108
|
+
}
|
|
109
|
+
}];
|
|
110
|
+
}
|
|
97
111
|
const photos = display.kind === "cards" ? display.photos : void 0;
|
|
98
112
|
const holder = photos && models[photos.resource];
|
|
99
113
|
const field = holder?.fields[photos.field];
|
|
@@ -141,8 +155,8 @@ const recentShapes = (model, view) => {
|
|
|
141
155
|
}];
|
|
142
156
|
};
|
|
143
157
|
/**
|
|
144
|
-
* The reads a view's pages make: its list in its order, the filter widgets and their counts, its displays' maps
|
|
145
|
-
* photos, the records of its related sections and the photos of its galleries, the recent records in the sidebar and a saved search's new records.
|
|
158
|
+
* The reads a view's pages make: its list in its order, the filter widgets and their counts, its displays' maps,
|
|
159
|
+
* board columns and photos, the records of its related sections and the photos of its galleries, the recent records in the sidebar and a saved search's new records.
|
|
146
160
|
*/
|
|
147
161
|
const viewShapes = (view, models) => {
|
|
148
162
|
const model = models[view.resource];
|
package/dist/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/cli",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.16",
|
|
4
4
|
"description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@hono/node-server": "^2.1.3",
|
|
36
36
|
"@hono/vite-dev-server": "^0.26.1",
|
|
37
|
-
"@protobase/layout": "0.19.
|
|
38
|
-
"@protobase/query": "0.19.
|
|
39
|
-
"@protobase/schema": "0.19.
|
|
40
|
-
"@protobase/server": "0.19.
|
|
41
|
-
"@protobase/ui": "0.19.
|
|
37
|
+
"@protobase/layout": "0.19.16",
|
|
38
|
+
"@protobase/query": "0.19.16",
|
|
39
|
+
"@protobase/schema": "0.19.16",
|
|
40
|
+
"@protobase/server": "0.19.16",
|
|
41
|
+
"@protobase/ui": "0.19.16",
|
|
42
42
|
"@react-email/render": "^2.1.0",
|
|
43
43
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
44
44
|
"@tailwindcss/vite": "^4.3.3",
|