@protobase/cli 0.95.14 → 0.95.15
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/cli/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/cli",
|
|
3
|
-
"version": "0.95.
|
|
3
|
+
"version": "0.95.15",
|
|
4
4
|
"description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@better-auth/core": "^1.7.12",
|
|
45
45
|
"@hono/node-server": "^2.1.3",
|
|
46
|
-
"@protobase/config": "0.95.
|
|
47
|
-
"@protobase/layout": "0.95.
|
|
48
|
-
"@protobase/query": "0.95.
|
|
49
|
-
"@protobase/schema": "0.95.
|
|
50
|
-
"@protobase/server": "0.95.
|
|
51
|
-
"@protobase/ui": "0.95.
|
|
52
|
-
"@protobase/workflows": "0.95.
|
|
46
|
+
"@protobase/config": "0.95.15",
|
|
47
|
+
"@protobase/layout": "0.95.15",
|
|
48
|
+
"@protobase/query": "0.95.15",
|
|
49
|
+
"@protobase/schema": "0.95.15",
|
|
50
|
+
"@protobase/server": "0.95.15",
|
|
51
|
+
"@protobase/ui": "0.95.15",
|
|
52
|
+
"@protobase/workflows": "0.95.15",
|
|
53
53
|
"@react-email/render": "^2.1.0",
|
|
54
54
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
55
55
|
"@sentry/vite-plugin": "^11.10.0",
|
|
@@ -12,6 +12,7 @@ The app's colours, name, icon, language and installation.
|
|
|
12
12
|
- [Named icons](../reference/layouts.md#named-actions): Actions, key facts and card meta show an icon picked by name from a set, such as `play`, `bed` or `cpu`.
|
|
13
13
|
- [English and Dutch](../reference/languages.md): The built-in screens come in English and Dutch, with numbers and dates written to match.
|
|
14
14
|
- [Installable app](../reference/installable-app.md): The admin installs as an app on phones and computers, and says when the server cannot be reached.
|
|
15
|
+
- [Start from the last pages seen](../reference/installable-app.md#starting-from-the-last-pages-seen): Someone signed in opens the app on what it showed last time, muted with a spinner by the title until it is refreshed in the background.
|
|
15
16
|
|
|
16
17
|
## Accessibility
|
|
17
18
|
|
|
@@ -35,11 +35,21 @@ The colours and each PNG are there only when the project has them.
|
|
|
35
35
|
|
|
36
36
|
## Without a network
|
|
37
37
|
|
|
38
|
-
The data stays online: the installed app reads and writes through the API as the browser tab does, and nothing
|
|
38
|
+
The data stays online: the installed app reads and writes through the API as the browser tab does, and nothing can be changed offline. Someone signed in sees the pages they opened last, from the [start cache](#starting-from-the-last-pages-seen), with a warning beside the title that they could not be refreshed. The page registers a service worker, `/protobase.sw.js` in the bundle's `public/`, which keeps only the app itself, so the app still opens without a network and says it cannot reach the server.
|
|
39
39
|
|
|
40
40
|
- A page always comes from the server while it answers, and from the cache only when the network fails.
|
|
41
41
|
- The files under `/assets`, named by their content, come from the cache once loaded. The page and what it loads first are cached when the worker installs.
|
|
42
42
|
- The theme and the favicon come from the server, with the cached copy used when the network fails.
|
|
43
|
-
- Nothing else is cached: the API, the plugins and other sites go to the network as without the worker.
|
|
43
|
+
- Nothing else is cached by the worker: the API, the plugins and other sites go to the network as without the worker.
|
|
44
44
|
|
|
45
45
|
Each build of the app has its own worker, which replaces the previous one and drops its cache on the next visit. `protobase dev` registers no worker, so the dev server's changes always show.
|
|
46
|
+
|
|
47
|
+
## Starting from the last pages seen
|
|
48
|
+
|
|
49
|
+
The app keeps what someone signed in last saw, from the moment they sign in, and opens on it the next time, in the browser tab, the installed app and the iOS and Android app alike. The first screen draws from this start cache as soon as the app's plugins have loaded, which the browser usually has cached, and everything on it is fetched again behind it:
|
|
50
|
+
|
|
51
|
+
- While the page shows cached data, its content is muted and pulses as a skeleton does, so it never passes for up to date, and a small spinner sits beside the page's title.
|
|
52
|
+
- When the fresh data lands it replaces the cached data in place, and nothing moves.
|
|
53
|
+
- When the refresh fails, such as without a network, the cached data stays muted and a warning replaces the spinner.
|
|
54
|
+
|
|
55
|
+
The start cache holds who is signed in, the app's `/meta` and the latest answer of each query the app read. It has no time limit, only a soft limit of 4 MB: once the answers pass it, those used least recently are dropped, oldest first, until they are back under it. Who is signed in and `/meta` are never dropped. It lives in the browser's IndexedDB for the app's origin, or in the app's own storage on a phone. It is emptied when someone signs out, when the session ends and the API answers 401, and when a new Protobase version of the app opens. Visitors and staff signed in as someone keep nothing.
|