@brftech/filex-core 0.28.0 → 0.30.0

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 CHANGED
@@ -48,6 +48,9 @@ const config = {
48
48
  locale: 'tr',
49
49
  theme: 'auto',
50
50
  trashVisible: true,
51
+ sideNav: true, // the navigation panel (default on)
52
+ connections: true, // its "How to connect" + "API keys" entries
53
+ uiProfile: 'standard', // or 'simple' — one pane, list/grid, no tabs
51
54
  };
52
55
  </script>
53
56
 
@@ -91,6 +94,38 @@ import {
91
94
  The composables are stable — feel free to compose your own UI without
92
95
  touching the SFC.
93
96
 
97
+ ### Navigation panel
98
+
99
+ The explorer ships a left navigation panel — a prominent **Upload**, the views
100
+ **Recent · Starred · Shared with me · Trash**, and the storages the caller can
101
+ see (a storage reached through a grant is marked *Shared*). It is on by default
102
+ on every surface; the viewer collapses it to an icon rail and that choice is
103
+ remembered per browser. Under 560px it becomes a drawer over the listing instead
104
+ of a column.
105
+
106
+ ```ts
107
+ const config = {
108
+ apiBase: 'https://files.example.com',
109
+ auth: { kind: 'bearer', token },
110
+ sideNav: true, // default; `rootPath` flips it off
111
+ uiProfile: 'simple', // 'standard' (default) | 'simple'
112
+ };
113
+ ```
114
+
115
+ The panel's last section is how **How to connect** (the per-protocol guides,
116
+ built from your deployment) and **API keys** (mint and revoke the tokens
117
+ WebDAV, FTPS and `filex mount` sign in with) become reachable from inside the
118
+ explorer at all — `ConnectionsPanel` and `TokensPanel` were exported from this
119
+ package long before anything opened them, so an embedded explorer's users had
120
+ to be told to ask an administrator. Set `connections: false` to leave them out.
121
+ ⚠ Never gated on role in the UI: `/api/tokens` caps every scope against the
122
+ caller's own account, and the panel renders what the API returns.
123
+
124
+ `uiProfile: 'simple'` is a preset, not a feature switch — nothing is removed
125
+ from the build. It turns off the tab strip and the split pane, reduces the view
126
+ switcher to list + grid, and starts the navigation panel expanded, for the
127
+ people who want a file drive rather than a file manager.
128
+
94
129
  ### Connections
95
130
 
96
131
  A second surface, for reaching the same server *without* a browser. filex can