@tensorix/metahub 0.5.7 → 0.5.8
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.js +230 -25
- package/dist/cli.js.map +9 -7
- package/dist/core/sync/page-messages.d.ts +4 -0
- package/dist/core/sync/page-messages.d.ts.map +1 -1
- package/dist/core/sync/share-serve.d.ts.map +1 -1
- package/dist/core/sync/share-table-client.d.ts +7 -0
- package/dist/core/sync/share-table-client.d.ts.map +1 -0
- package/dist/core/sync/share-table.d.ts +11 -0
- package/dist/core/sync/share-table.d.ts.map +1 -0
- package/dist/core/sync/storage-s3-bun.d.ts +2 -1
- package/dist/core/sync/storage-s3-bun.d.ts.map +1 -1
- package/dist/db-worker.js +25 -25
- package/dist/edge-worker.js +4 -0
- package/dist/index.js +230 -25
- package/dist/index.js.map +9 -7
- package/dist/mh-runtime.js +2 -2
- package/dist/sw.js +1 -1
- package/dist/webui.js +127 -126
- package/package.json +1 -1
|
@@ -7,6 +7,10 @@ declare const EN: {
|
|
|
7
7
|
readonly "\uFF08\u7A7A\u6587\u6863\uFF09": "(empty document)";
|
|
8
8
|
readonly 文档: "Document";
|
|
9
9
|
readonly 表格: "Table";
|
|
10
|
+
readonly 记录: "Record";
|
|
11
|
+
readonly 关闭: "Close";
|
|
12
|
+
readonly 查看全文: "Read full text";
|
|
13
|
+
readonly "\u67E5\u770B\u300C{name}\u300D\u5168\u6587": "Read full {name}";
|
|
10
14
|
readonly 编辑: "Edit";
|
|
11
15
|
readonly 编辑文档: "Edit document";
|
|
12
16
|
readonly 保存: "Save";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-messages.d.ts","sourceRoot":"","sources":["../../../src/core/sync/page-messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,QAAA,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"page-messages.d.ts","sourceRoot":"","sources":["../../../src/core/sync/page-messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2GE,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,EAAE,CAAC;AAEzC,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAGpG;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAGxG;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,GAAG,MAAM,CAIhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"share-serve.d.ts","sourceRoot":"","sources":["../../../src/core/sync/share-serve.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"share-serve.d.ts","sourceRoot":"","sources":["../../../src/core/sync/share-serve.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA8C5C,MAAM,WAAW,cAAc;IAC7B,kEAAkE;IAClE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAED,wBAAsB,UAAU,CAC9B,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,QAAQ,EACb,IAAI,GAAE,cAAmB,GACxB,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAoC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"share-table-client.d.ts","sourceRoot":"","sources":["../../../src/core/sync/share-table-client.js"],"names":[],"mappings":"AAEA,uEAAuE;AACvE,wCADY;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,QAgF3D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Locale } from "./locale.ts";
|
|
2
|
+
/** html and editAttrs must be produced by the caller's escaped cell renderer. */
|
|
3
|
+
export declare function shareCellHtml(html: string, name: string, locale: Locale, editAttrs?: string): string;
|
|
4
|
+
export declare function shareTableHtml(columns: {
|
|
5
|
+
name: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
}[], rows: string, locale: Locale): string;
|
|
8
|
+
export declare const SHARE_TABLE_CSS = "\n#app:has(.share-table),.wrap:has(.share-table){max-width:1440px}\n.table-wrap:has(.share-table){max-width:100%;overflow:auto;overscroll-behavior-x:contain}\ntable.share-table{table-layout:fixed;min-width:100%}\ntable.share-table th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;color:var(--muted)}\ntable.share-table td{position:relative;vertical-align:top}\n.share-cell-value{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}\n.share-table[data-ready] .share-cell-value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-height:4.65em}\n.share-table .tag{max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}\n.share-cell-expand{position:absolute;top:5px;right:5px;display:flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:1px solid var(--line);border-radius:5px;background:var(--bg);color:var(--fg);cursor:pointer;opacity:0;pointer-events:none}\n.share-cell-expand[hidden]{display:none}\n.share-cell-expand svg,.share-text-close svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}\n.share-table td:is(:hover,:focus-within,.is-selected) .share-cell-expand{opacity:1;pointer-events:auto}\n.share-table td.is-selected{box-shadow:inset 0 0 0 1.5px var(--accent);background:var(--accent-soft)}\n.share-cell-expand:hover,.share-text-close:hover{background:var(--card)}\n.share-cell-expand:focus-visible,.share-text-close:focus-visible,.share-text-body:focus-visible{outline:2px solid var(--accent);outline-offset:2px}\n.share-table[data-ready] [contenteditable]:focus{display:block;-webkit-line-clamp:unset;max-height:min(320px,40vh);overflow:auto;outline:2px solid var(--accent);outline-offset:2px}\n.share-cell-value.saving{opacity:.5}.share-cell-value.saved{background:color-mix(in srgb,var(--success) 18%,transparent)}\n.share-text-peek{position:fixed;inset:0 0 0 auto;margin:0;padding:0;width:min(620px,100vw);max-width:100vw;height:100vh;height:100dvh;max-height:100dvh;border:0;border-inline-start:1px solid var(--line);background:var(--bg);color:var(--fg);font:inherit;overflow:hidden}\n.share-text-peek[open]{display:flex;flex-direction:column}\n.share-text-peek::backdrop{background:rgba(15,15,25,.3)}\nbody:has(.share-text-peek[open]){overflow:hidden}\n.share-text-toolbar{display:flex;align-items:center;gap:12px;flex:none;padding:12px 20px;border-bottom:1px solid var(--line)}\n.share-text-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin-inline-end:auto;border:0;border-radius:5px;background:transparent;color:var(--muted);cursor:pointer}\n.share-text-feedback{font-size:13px;color:var(--muted)}.share-text-feedback:empty{display:none}\n.share-text-heading{flex:none;padding:24px 32px 16px;min-width:0}\n.share-text-heading h2{margin:0;font-size:20px;line-height:1.4;overflow-wrap:anywhere}\n.share-text-record{margin:6px 0 0;font-size:13px;color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}\n.share-text-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 32px 40px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;user-select:text}\n@media(max-width:600px){.share-text-peek{width:100vw}.share-text-toolbar{padding:10px 14px}.share-text-heading{padding:20px 20px 16px}.share-text-body{padding:0 20px 32px;font-size:16px}}\n@media(hover:none),(pointer:coarse){.share-cell-expand{opacity:1;pointer-events:auto;width:44px;height:44px;top:0;right:0}.share-table td:has(.share-cell-expand:not([hidden])) .share-cell-value{min-height:44px}.share-text-close{width:44px;height:44px}}\n";
|
|
9
|
+
export { mountShareTable } from "./share-table-client.js";
|
|
10
|
+
export declare function shareTableScript(locale: Locale): string;
|
|
11
|
+
//# sourceMappingURL=share-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"share-table.d.ts","sourceRoot":"","sources":["../../../src/core/sync/share-table.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAK1C,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,SAAK,GAAG,MAAM,CAEhG;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAQhH;AAED,eAAO,MAAM,eAAe,kuHA+B3B,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type S3Config } from "./storage.ts";
|
|
1
|
+
import { type StorageClient, type S3Config } from "./storage.ts";
|
|
2
|
+
export declare function makeBunStorageClient(config: S3Config): StorageClient;
|
|
2
3
|
/**
|
|
3
4
|
* Allow a browser shell served from `origins` to talk to the bucket directly
|
|
4
5
|
* (GET/PUT/HEAD/DELETE) via GET-merge-PUT (see buildCorsXml). `opts.merge` unions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-s3-bun.d.ts","sourceRoot":"","sources":["../../../src/core/sync/storage-s3-bun.ts"],"names":[],"mappings":"AAgBA,OAAO,
|
|
1
|
+
{"version":3,"file":"storage-s3-bun.d.ts","sourceRoot":"","sources":["../../../src/core/sync/storage-s3-bun.ts"],"names":[],"mappings":"AAgBA,OAAO,EAIL,KAAK,aAAa,EAGlB,KAAK,QAAQ,EACd,MAAM,cAAc,CAAC;AAStB,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,QAAQ,GAAG,aAAa,CAiFpE;AAID;;;;;;GAMG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE,MAAM,EAAE,EACjB,IAAI,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GAC7B,OAAO,CAAC,IAAI,CAAC,CAmBf"}
|