@codemem/server 0.31.2 → 0.31.4
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/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/routes/sync.d.ts.map +1 -1
- package/package.json +2 -2
- package/static/app.js +9 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/routes/sync.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,KAAK,EAGX,WAAW,EAIX,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/routes/sync.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,KAAK,EAGX,WAAW,EAIX,MAAM,eAAe,CAAC;AAgFvB,OAAO,EAAgB,IAAI,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAE3E,KAAK,YAAY,GAAG,MAAM,WAAW,CAAC;AACtC,KAAK,iBAAiB,GAAG;IACxB,KAAK,EACF,UAAU,GACV,SAAS,GACT,UAAU,GACV,OAAO,GACP,UAAU,GACV,iBAAiB,GACjB,iBAAiB,GACjB,IAAI,CAAC;IACR,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAoBF,UAAU,wBAAwB;IACjC,cAAc,CAAC,EAAE;QAChB,OAAO,EAAE,0BAA0B,CAAC;QACpC,SAAS,EAAE,MAAM,CAAC;QAClB,aAAa,EAAE,MAAM,CAAC;QACtB,wBAAwB,EAAE,MAAM,CAAC;QACjC,4BAA4B,EAAE,MAAM,CAAC;KACrC,CAAC;CACF;AAqoDD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,YAAY,EAAE,IAAI,GAAE,wBAA6B,8EA2W7F;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CACzB,QAAQ,EAAE,YAAY,EACtB,oBAAoB,CAAC,EAAE,MAAM,iBAAiB,GAAG,IAAI,8EA+kErD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codemem/server",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"drizzle-orm": "^0.45.2",
|
|
20
20
|
"hono": "^4.12.21",
|
|
21
21
|
"limiter": "^3.0.0",
|
|
22
|
-
"@codemem/core": "^0.31.
|
|
22
|
+
"@codemem/core": "^0.31.4"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/better-sqlite3": "^7.6.13",
|
package/static/app.js
CHANGED
|
@@ -10034,6 +10034,11 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
10034
10034
|
return statusRank[a.status] - statusRank[b.status] || a.displayName.localeCompare(b.displayName);
|
|
10035
10035
|
});
|
|
10036
10036
|
}
|
|
10037
|
+
function coordinatorAdminDevicesForGroup(loadedDevices, cachedDevices, groupId, devicesLoaded) {
|
|
10038
|
+
const targetGroupId = String(groupId || "").trim();
|
|
10039
|
+
if (devicesLoaded || loadedDevices.length > 0 || !targetGroupId) return loadedDevices;
|
|
10040
|
+
return cachedDevices.filter((device) => String(device.group_id || "").trim() === targetGroupId);
|
|
10041
|
+
}
|
|
10037
10042
|
//#endregion
|
|
10038
10043
|
//#region src/tabs/coordinator-admin/components/scope-management-panel.ts
|
|
10039
10044
|
function emptyScopeDraft() {
|
|
@@ -10042,6 +10047,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
10042
10047
|
loading: false,
|
|
10043
10048
|
error: "",
|
|
10044
10049
|
includeInactive: false,
|
|
10050
|
+
devicesLoaded: false,
|
|
10045
10051
|
scopes: [],
|
|
10046
10052
|
membersByScope: /* @__PURE__ */ new Map(),
|
|
10047
10053
|
devices: [],
|
|
@@ -10091,6 +10097,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
10091
10097
|
loading: false,
|
|
10092
10098
|
error: "",
|
|
10093
10099
|
includeInactive,
|
|
10100
|
+
devicesLoaded: true,
|
|
10094
10101
|
scopes,
|
|
10095
10102
|
devices,
|
|
10096
10103
|
membersByScope: new Map(memberEntries.filter(([scopeId]) => scopeId.length > 0)),
|
|
@@ -10226,7 +10233,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
10226
10233
|
}
|
|
10227
10234
|
function renderMembershipRows(groupId, scope, draft, ready, renderShell) {
|
|
10228
10235
|
const scopeId = String(scope.scope_id || "").trim();
|
|
10229
|
-
const rows = deriveScopeMembershipDeviceRows(draft.devices, draft.membersByScope.get(scopeId) ?? []);
|
|
10236
|
+
const rows = deriveScopeMembershipDeviceRows(coordinatorAdminDevicesForGroup(draft.devices, state.lastCoordinatorAdminDevices, groupId, draft.devicesLoaded), draft.membersByScope.get(scopeId) ?? []);
|
|
10230
10237
|
if (!rows.length) return _$3("div", { class: "peer-submeta coordinator-admin-empty-state" }, "No enrolled devices in this group yet. Enroll a device before granting this sharing domain.");
|
|
10231
10238
|
return _$3("div", { class: "coordinator-admin-scope-member-list" }, rows.map((row) => {
|
|
10232
10239
|
const pendingKey = `${draft.actionPendingKind}:${scopeId}:${row.deviceId}`;
|
|
@@ -21929,7 +21936,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
21929
21936
|
try {
|
|
21930
21937
|
const runtime = await loadRuntimeInfo();
|
|
21931
21938
|
if (!runtime?.version) return;
|
|
21932
|
-
setRuntimeLabel(runtime.version, "
|
|
21939
|
+
setRuntimeLabel(runtime.version, "65e054c");
|
|
21933
21940
|
} catch {}
|
|
21934
21941
|
}
|
|
21935
21942
|
var lastAnnouncedRefreshState = null;
|