@protobase/cli 0.23.4 → 0.23.5
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/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/cli",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.5",
|
|
4
4
|
"description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@hono/node-server": "^2.1.3",
|
|
37
37
|
"@hono/vite-dev-server": "^0.26.1",
|
|
38
|
-
"@protobase/layout": "0.23.
|
|
39
|
-
"@protobase/query": "0.23.
|
|
40
|
-
"@protobase/schema": "0.23.
|
|
41
|
-
"@protobase/server": "0.23.
|
|
42
|
-
"@protobase/ui": "0.23.
|
|
38
|
+
"@protobase/layout": "0.23.5",
|
|
39
|
+
"@protobase/query": "0.23.5",
|
|
40
|
+
"@protobase/schema": "0.23.5",
|
|
41
|
+
"@protobase/server": "0.23.5",
|
|
42
|
+
"@protobase/ui": "0.23.5",
|
|
43
43
|
"@react-email/render": "^2.1.0",
|
|
44
44
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
45
45
|
"@tailwindcss/vite": "^4.3.3",
|
|
@@ -79,6 +79,7 @@ Reference:
|
|
|
79
79
|
- When building or loading plugins → read [Plugins](references/reference/plugins.md)
|
|
80
80
|
- When using resources another Protobase API serves → read [Remote resources](references/reference/remote-resources.md)
|
|
81
81
|
- When setting the app's tokens, colors and fonts → read [Theme](references/reference/theme.md)
|
|
82
|
+
- When showing the app's screens in Dutch → read [Languages](references/reference/languages.md)
|
|
82
83
|
- When grouping sidebar entries or listing recent records → read [Sidebar](references/reference/sidebar.md)
|
|
83
84
|
- When changing the user menu → read [User menu](references/reference/user-menu.md)
|
|
84
85
|
- When adding tabs along the bottom of a phone → read [Bottom bar](references/reference/bottom-bar.md)
|
|
@@ -108,7 +108,7 @@ Get responses carry `permissions: { update, delete, fields }`, where `fields` ma
|
|
|
108
108
|
|
|
109
109
|
### `/meta` and OpenAPI per caller
|
|
110
110
|
|
|
111
|
-
`/meta` returns, per caller: the resources they can do anything with as restricted models (hidden fields absent, `readOnly` unless writable), the view for their roles ([`pickView`](https://docs.protobase.net/api/schema/functions/pickview/))) with every reference to a hidden field removed (columns, sort, search, filters, layout, chart, title, search result) and the [related sections](ui-config.md#related-records)) they cannot use, `permissions[resource]` as `{ read, create, update, delete, conditional }`, the [user menu](user-menu.md)) as `userMenu` and the [bottom bar](bottom-bar.md)) of their active role as `bottomBar`, each without the resources and pages they cannot see, and the [composed pages](layouts.md#access)) as `pages`, each without the elements that name what they cannot see or do, and, for a caller with the `admin` or `ai` role, the [assistant](assistant.md#who-sees-it)) backend as `assistant: { url }` when the app has one, and, for a caller with the `admin` role, the [runtime updates](versioning.md#runtime-updates)) endpoint as `runtime: { url }` when the app has one, and, for everyone, the style of the record page's [maps](ui-config.md#maps)) as `maps: { style }` when the app has one. `conditional` lists the operations allowed only for some records (a row filter or a record-level rule decides). A view's sidebar group ([`nav.recent`](sidebar.md#recent-records))) is dropped when it uses a field they cannot read. The ETag hashes all of it, so it differs per user and per roles. The OpenAPI document is generated the same way: record and body schemas have only the readable and writable fields, and methods the caller may not use are left out. Its `servers` are relative to the document (`v1` for the resources, `.` for the system endpoints), and `/api/docs` loads `openapi.json` beside it, so both are right on any host and under any prefix the API is reached at.
|
|
111
|
+
`/meta` returns, per caller: the resources they can do anything with as restricted models (hidden fields absent, `readOnly` unless writable), the view for their roles ([`pickView`](https://docs.protobase.net/api/schema/functions/pickview/))) with every reference to a hidden field removed (columns, sort, search, filters, layout, chart, title, search result) and the [related sections](ui-config.md#related-records)) they cannot use, `permissions[resource]` as `{ read, create, update, delete, conditional }`, the [user menu](user-menu.md)) as `userMenu` and the [bottom bar](bottom-bar.md)) of their active role as `bottomBar`, each without the resources and pages they cannot see, and the [composed pages](layouts.md#access)) as `pages`, each without the elements that name what they cannot see or do, and, for a caller with the `admin` or `ai` role, the [assistant](assistant.md#who-sees-it)) backend as `assistant: { url }` when the app has one, and, for a caller with the `admin` role, the [runtime updates](versioning.md#runtime-updates)) endpoint as `runtime: { url }` when the app has one, and, for everyone, the style of the record page's [maps](ui-config.md#maps)) as `maps: { style }` when the app has one and the [language](languages.md)) of its screens as `locale` when it sets one. `conditional` lists the operations allowed only for some records (a row filter or a record-level rule decides). A view's sidebar group ([`nav.recent`](sidebar.md#recent-records))) is dropped when it uses a field they cannot read. The ETag hashes all of it, so it differs per user and per roles. The OpenAPI document is generated the same way: record and body schemas have only the readable and writable fields, and methods the caller may not use are left out. Its `servers` are relative to the document (`v1` for the resources, `.` for the system endpoints), and `/api/docs` loads `openapi.json` beside it, so both are right on any host and under any prefix the API is reached at.
|
|
112
112
|
|
|
113
113
|
## Sensitive fields and audit
|
|
114
114
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/languages.md: run `bun run docs:skill`, do not edit. -->
|
|
2
|
+
|
|
3
|
+
# Languages
|
|
4
|
+
|
|
5
|
+
The admin app's built-in screens come in English and Dutch, chosen by the app or by each user's browser, with numbers and dates written to match.
|
|
6
|
+
|
|
7
|
+
The admin app's own texts and its numbers and dates come in English and Dutch. The texts you write yourself, such as resource names, labels and enum value labels, show as you write them, in any language.
|
|
8
|
+
|
|
9
|
+
## Choosing the language
|
|
10
|
+
|
|
11
|
+
Without a setting, each user sees the app in their browser's language when it is Dutch or English, and in English otherwise. `options.locale` in `protobase.config.ts` puts the app in one language for everyone:
|
|
12
|
+
|
|
13
|
+
```ts title="protobase.config.ts"
|
|
14
|
+
export default { config, auth, authenticate, options: { locale: 'nl' } }
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The value is `'en'` or `'nl'`, and the server refuses to start with any other value. `/meta` names the language as `locale`. The sign-in screens come before `/meta`, so they follow the browser.
|
|
18
|
+
|
|
19
|
+
## Numbers and dates
|
|
20
|
+
|
|
21
|
+
Numbers, amounts and dates use the conventions of the language: English as written in Britain (`6 Oct 2026`, `€1,234.56`), and Dutch as written in the Netherlands (`6 okt 2026`, `€ 1.234,56`). Typing a decimal number in a form uses the same decimal mark. Times show in the viewer's time zone in both languages.
|
|
22
|
+
|
|
23
|
+
## What is translated
|
|
24
|
+
|
|
25
|
+
The shell is translated: the sidebar, the top bar, search, the profile menu and the bottom bar. So are the counts, relative times ("5 minutes ago") and the notices shown while the app loads. The list and record pages, forms, filters, imports, and the account and organization pages with their menu items are still in English. Their texts are being translated to Dutch one area at a time.
|