@mashkovd/pelican-vue 0.2.0 → 0.3.1
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 +15 -1
- package/dist/index.d.ts +8 -0
- package/dist/pelican-libertex-social.mjs +630 -619
- package/dist/pelican-libertex-social.mjs.map +1 -1
- package/dist/pelican-libertex-social.umd.cjs +1 -1
- package/dist/pelican-libertex-social.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,13 +65,27 @@ in `quasar.config.js`.
|
|
|
65
65
|
|
|
66
66
|
| prop | type | default | notes |
|
|
67
67
|
| ---------------- | --------------------------------- | ---------------- | ---------------------------------------- |
|
|
68
|
-
| `apiBase` | `string` (required) | — | Base URL of the pelican proxy
|
|
68
|
+
| `apiBase` | `string` (required) | — | Base URL of the pelican proxy. Used for live per-strategy data (`/api/strategies/{id}`, `/stats`, `/signals/*`) and — unless `catalogBase` is set — for the catalog as well. |
|
|
69
|
+
| `catalogBase` | `string` | `apiBase` | Optional separate origin for the static catalog (`/api/strategies-full` and `/progress`). Point at a Cloudflare Worker fronting the R2 bucket to serve the catalog from the edge. When set, the component skips the partial-load polling loop and fetches the catalog in a single request. |
|
|
69
70
|
| `theme` | `'auto' \| 'dark' \| 'light'` | `'auto'` | Persists in `localStorage['pelican-theme']` |
|
|
70
71
|
| `defaultSort` | `SortKey` | `'return-desc'` | One of 20 sort modes |
|
|
71
72
|
| `defaultFilters` | `Partial<FiltersState>` | `{}` | Initial filter values |
|
|
72
73
|
| `locale` | `string` | `'en-US'` | Used for number/date formatting |
|
|
73
74
|
| `pageSize` | `number` | `20` | Rows per page |
|
|
74
75
|
|
|
76
|
+
### Two-origin example (proxy + edge)
|
|
77
|
+
|
|
78
|
+
```vue
|
|
79
|
+
<PelicanLibertexSocial
|
|
80
|
+
api-base="https://labs-pelican-proxy.mctl.ai"
|
|
81
|
+
catalog-base="https://pelican-catalog-worker.example.workers.dev"
|
|
82
|
+
/>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
The 5 MB catalog comes from the Worker (edge-cached, no auth, fast).
|
|
86
|
+
Per-strategy live calls — `/api/strategies/{id}`, stats, signals — still go
|
|
87
|
+
through the pelican-proxy, which holds the OIDC token.
|
|
88
|
+
|
|
75
89
|
## Emits
|
|
76
90
|
|
|
77
91
|
| event | payload | when |
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,14 @@ pageSize: number;
|
|
|
20
20
|
|
|
21
21
|
declare type __VLS_Props = {
|
|
22
22
|
apiBase: string;
|
|
23
|
+
/**
|
|
24
|
+
* Optional separate origin for the *static* catalog endpoints
|
|
25
|
+
* (`/api/strategies-full` and `/api/strategies-full/progress`). When set,
|
|
26
|
+
* the catalog is fetched from this URL — typically a Cloudflare Worker
|
|
27
|
+
* fronting an R2 bucket — while live per-strategy data continues to go
|
|
28
|
+
* through `apiBase`.
|
|
29
|
+
*/
|
|
30
|
+
catalogBase?: string;
|
|
23
31
|
theme?: ThemeMode;
|
|
24
32
|
defaultSort?: SortKey;
|
|
25
33
|
defaultFilters?: Partial<FiltersState>;
|