@sparkelf/dsh-dataops-managed 0.4.2 → 0.4.3
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/lib/client.js +227 -166
- package/lib/client.js.map +1 -1
- package/lib/index.js +30 -0
- package/lib/types/client/tab-url.d.ts +11 -0
- package/package.json +1 -1
- package/skills/data-insight-analysis/SKILL.md +85 -0
- package/skills/data-insight-analysis/i18n/zh.json +10 -0
- package/skills/data-insight-analysis/references/_template.md +23 -0
- package/skills/data-insight-analysis/references/functions/_index.md +16 -0
- package/skills/data-insight-analysis/references/functions/equipment-om.md +24 -0
- package/skills/data-insight-analysis/references/functions/finance-ops.md +23 -0
- package/skills/data-insight-analysis/references/functions/hr-workforce.md +23 -0
- package/skills/data-insight-analysis/references/functions/hse-safety-esg.md +21 -0
- package/skills/data-insight-analysis/references/functions/it-aiops-finops.md +23 -0
- package/skills/data-insight-analysis/references/functions/legal-audit-compliance.md +22 -0
- package/skills/data-insight-analysis/references/functions/marketing-growth.md +22 -0
- package/skills/data-insight-analysis/references/functions/project-engineering.md +22 -0
- package/skills/data-insight-analysis/references/functions/service-ticket-12345.md +23 -0
- package/skills/data-insight-analysis/references/functions/supply-chain.md +23 -0
- package/skills/data-insight-analysis/references/industries/_index.md +54 -0
- package/skills/data-insight-analysis/references/industries/consumer-service/ecommerce-retail.md +22 -0
- package/skills/data-insight-analysis/references/industries/consumer-service/fnb-catering.md +22 -0
- package/skills/data-insight-analysis/references/industries/consumer-service/hospitality-hotel.md +23 -0
- package/skills/data-insight-analysis/references/industries/consumer-service/media-sports-entertainment.md +20 -0
- package/skills/data-insight-analysis/references/industries/consumer-service/tourism-scenic.md +22 -0
- package/skills/data-insight-analysis/references/industries/energy-infra-agri/agriculture-agritech.md +20 -0
- package/skills/data-insight-analysis/references/industries/energy-infra-agri/energy-petrochemical.md +22 -0
- package/skills/data-insight-analysis/references/industries/energy-infra-agri/investment-asset.md +21 -0
- package/skills/data-insight-analysis/references/industries/energy-infra-agri/public-utilities.md +20 -0
- package/skills/data-insight-analysis/references/industries/energy-infra-agri/real-estate-property.md +20 -0
- package/skills/data-insight-analysis/references/industries/energy-infra-agri/transport-infra.md +22 -0
- package/skills/data-insight-analysis/references/industries/finance-tech/b2b-sales-crm.md +20 -0
- package/skills/data-insight-analysis/references/industries/finance-tech/financial-risk-credit.md +20 -0
- package/skills/data-insight-analysis/references/industries/finance-tech/insurance-wealth.md +20 -0
- package/skills/data-insight-analysis/references/industries/finance-tech/internet-product-ops.md +20 -0
- package/skills/data-insight-analysis/references/industries/finance-tech/telecom-operator.md +20 -0
- package/skills/data-insight-analysis/references/industries/industry-logistics/logistics-express.md +21 -0
- package/skills/data-insight-analysis/references/industries/industry-logistics/manufacturing-quality.md +21 -0
- package/skills/data-insight-analysis/references/industries/industry-logistics/pharma-life-science.md +20 -0
- package/skills/data-insight-analysis/references/industries/livelihood-culture/education-university.md +21 -0
- package/skills/data-insight-analysis/references/industries/livelihood-culture/healthcare-ops.md +20 -0
- package/skills/data-insight-analysis/references/industries/livelihood-culture/library-museum-culture.md +20 -0
- package/skills/data-insight-analysis/references/industries/public-sector/emergency-fire.md +20 -0
- package/skills/data-insight-analysis/references/industries/public-sector/gov-city-ops.md +21 -0
- package/skills/data-insight-analysis/references/industries/public-sector/judicial-prosecution.md +22 -0
- package/skills/data-insight-analysis/references/industries/public-sector/policing.md +23 -0
- package/skills/data-insight-analysis/references/industries/public-sector/tax-customs-social.md +21 -0
- package/skills/dataops-governance/SKILL.md +2 -2
- package/skills/dataops-governance/references/03-metadata-write.md +1 -1
- package/skills/dataops-metadata-optimizer/references/04-apply-and-measure.md +1 -1
- package/skills/dataops-query/SKILL.md +44 -3
- package/skills/dataops-query/i18n/zh.json +1 -1
package/lib/client.js
CHANGED
|
@@ -835,22 +835,22 @@ window.__ModuleLoader__.load({
|
|
|
835
835
|
document.head.appendChild(tag);
|
|
836
836
|
}
|
|
837
837
|
var ManagedDataOpsSection_module_css_default = {
|
|
838
|
-
"
|
|
839
|
-
"heading": "_2dqzjG_heading",
|
|
840
|
-
"label": "_2dqzjG_label",
|
|
841
|
-
"meta": "_2dqzjG_meta",
|
|
842
|
-
"reviewRows": "_2dqzjG_reviewRows",
|
|
843
|
-
"reviewActions": "_2dqzjG_reviewActions",
|
|
838
|
+
"reviewRow": "_2dqzjG_reviewRow",
|
|
844
839
|
"row": "_2dqzjG_row",
|
|
845
|
-
"refusal": "_2dqzjG_refusal",
|
|
846
840
|
"copy": "_2dqzjG_copy",
|
|
847
|
-
"status": "_2dqzjG_status",
|
|
848
|
-
"section": "_2dqzjG_section",
|
|
849
|
-
"fields": "_2dqzjG_fields",
|
|
850
|
-
"reviewRow": "_2dqzjG_reviewRow",
|
|
851
841
|
"card": "_2dqzjG_card",
|
|
842
|
+
"fields": "_2dqzjG_fields",
|
|
843
|
+
"reviewHint": "_2dqzjG_reviewHint",
|
|
844
|
+
"section": "_2dqzjG_section",
|
|
845
|
+
"title": "_2dqzjG_title",
|
|
846
|
+
"meta": "_2dqzjG_meta",
|
|
852
847
|
"actions": "_2dqzjG_actions",
|
|
853
|
-
"
|
|
848
|
+
"reviewRows": "_2dqzjG_reviewRows",
|
|
849
|
+
"refusal": "_2dqzjG_refusal",
|
|
850
|
+
"reviewActions": "_2dqzjG_reviewActions",
|
|
851
|
+
"heading": "_2dqzjG_heading",
|
|
852
|
+
"label": "_2dqzjG_label",
|
|
853
|
+
"status": "_2dqzjG_status"
|
|
854
854
|
};
|
|
855
855
|
//#endregion
|
|
856
856
|
//#region src/client/ReviewSettingsCard.tsx
|
|
@@ -1600,62 +1600,62 @@ window.__ModuleLoader__.load({
|
|
|
1600
1600
|
document.head.appendChild(tag);
|
|
1601
1601
|
}
|
|
1602
1602
|
var SkillPlazaSection_module_css_default = {
|
|
1603
|
-
"
|
|
1604
|
-
"
|
|
1605
|
-
"
|
|
1606
|
-
"
|
|
1607
|
-
"
|
|
1608
|
-
"
|
|
1603
|
+
"dialog": "_9FdZvq_dialog",
|
|
1604
|
+
"finding": "_9FdZvq_finding",
|
|
1605
|
+
"head": "_9FdZvq_head",
|
|
1606
|
+
"detailButton": "_9FdZvq_detailButton",
|
|
1607
|
+
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
1608
|
+
"headRow": "_9FdZvq_headRow",
|
|
1609
|
+
"reviewNote": "_9FdZvq_reviewNote",
|
|
1610
|
+
"noteField": "_9FdZvq_noteField",
|
|
1609
1611
|
"cardEnd": "_9FdZvq_cardEnd",
|
|
1610
1612
|
"tab": "_9FdZvq_tab",
|
|
1611
|
-
"
|
|
1612
|
-
"
|
|
1613
|
+
"reviewError": "_9FdZvq_reviewError",
|
|
1614
|
+
"riskEmpty": "_9FdZvq_riskEmpty",
|
|
1615
|
+
"auditDialog": "_9FdZvq_auditDialog",
|
|
1616
|
+
"cardIcon": "_9FdZvq_cardIcon",
|
|
1617
|
+
"cardDesc": "_9FdZvq_cardDesc",
|
|
1618
|
+
"findings": "_9FdZvq_findings",
|
|
1619
|
+
"riskScore": "_9FdZvq_riskScore",
|
|
1620
|
+
"sharedTag": "_9FdZvq_sharedTag",
|
|
1621
|
+
"title": "_9FdZvq_title",
|
|
1613
1622
|
"emptyText": "_9FdZvq_emptyText",
|
|
1614
|
-
"head": "_9FdZvq_head",
|
|
1615
|
-
"card": "_9FdZvq_card",
|
|
1616
1623
|
"notice": "_9FdZvq_notice",
|
|
1624
|
+
"detail": "_9FdZvq_detail",
|
|
1625
|
+
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
1626
|
+
"cardTop": "_9FdZvq_cardTop",
|
|
1627
|
+
"tabActive": "_9FdZvq_tabActive",
|
|
1628
|
+
"pendingTag": "_9FdZvq_pendingTag",
|
|
1629
|
+
"audit": "_9FdZvq_audit",
|
|
1630
|
+
"riskSummary": "_9FdZvq_riskSummary",
|
|
1631
|
+
"titleCount": "_9FdZvq_titleCount",
|
|
1632
|
+
"card": "_9FdZvq_card",
|
|
1617
1633
|
"cardTitle": "_9FdZvq_cardTitle",
|
|
1634
|
+
"cards": "_9FdZvq_cards",
|
|
1635
|
+
"mine": "_9FdZvq_mine",
|
|
1618
1636
|
"tabCount": "_9FdZvq_tabCount",
|
|
1637
|
+
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
1638
|
+
"detailRow": "_9FdZvq_detailRow",
|
|
1639
|
+
"reviewButton": "_9FdZvq_reviewButton",
|
|
1640
|
+
"cardMarks": "_9FdZvq_cardMarks",
|
|
1619
1641
|
"tagTop": "_9FdZvq_tagTop",
|
|
1620
|
-
"pendingTag": "_9FdZvq_pendingTag",
|
|
1621
|
-
"auditFooter": "_9FdZvq_auditFooter",
|
|
1622
|
-
"finding": "_9FdZvq_finding",
|
|
1623
|
-
"findings": "_9FdZvq_findings",
|
|
1624
|
-
"section": "_9FdZvq_section",
|
|
1625
|
-
"findingText": "_9FdZvq_findingText",
|
|
1626
|
-
"mine": "_9FdZvq_mine",
|
|
1627
|
-
"cardDesc": "_9FdZvq_cardDesc",
|
|
1628
|
-
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
1629
|
-
"status": "_9FdZvq_status",
|
|
1630
|
-
"cards": "_9FdZvq_cards",
|
|
1631
|
-
"detailLabel": "_9FdZvq_detailLabel",
|
|
1632
|
-
"title": "_9FdZvq_title",
|
|
1633
1642
|
"mark": "_9FdZvq_mark",
|
|
1634
|
-
"demoTag": "_9FdZvq_demoTag",
|
|
1635
|
-
"headRow": "_9FdZvq_headRow",
|
|
1636
|
-
"tabActive": "_9FdZvq_tabActive",
|
|
1637
|
-
"departmentBar": "_9FdZvq_departmentBar",
|
|
1638
|
-
"reviewButton": "_9FdZvq_reviewButton",
|
|
1639
|
-
"sharedTag": "_9FdZvq_sharedTag",
|
|
1640
|
-
"auditDialog": "_9FdZvq_auditDialog",
|
|
1641
|
-
"tabs": "_9FdZvq_tabs",
|
|
1642
|
-
"cardTop": "_9FdZvq_cardTop",
|
|
1643
|
-
"detailButton": "_9FdZvq_detailButton",
|
|
1644
|
-
"dialog": "_9FdZvq_dialog",
|
|
1645
|
-
"riskEmpty": "_9FdZvq_riskEmpty",
|
|
1646
|
-
"riskSummary": "_9FdZvq_riskSummary",
|
|
1647
|
-
"riskScore": "_9FdZvq_riskScore",
|
|
1648
1643
|
"riskHead": "_9FdZvq_riskHead",
|
|
1649
|
-
"severity": "_9FdZvq_severity",
|
|
1650
|
-
"noteField": "_9FdZvq_noteField",
|
|
1651
|
-
"titleCount": "_9FdZvq_titleCount",
|
|
1652
|
-
"cardIcon": "_9FdZvq_cardIcon",
|
|
1653
|
-
"empty": "_9FdZvq_empty",
|
|
1654
|
-
"reviewNote": "_9FdZvq_reviewNote",
|
|
1655
|
-
"riskFailed": "_9FdZvq_riskFailed",
|
|
1656
1644
|
"findingHint": "_9FdZvq_findingHint",
|
|
1657
|
-
"
|
|
1658
|
-
"
|
|
1645
|
+
"findingText": "_9FdZvq_findingText",
|
|
1646
|
+
"section": "_9FdZvq_section",
|
|
1647
|
+
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
1648
|
+
"tabs": "_9FdZvq_tabs",
|
|
1649
|
+
"riskFailed": "_9FdZvq_riskFailed",
|
|
1650
|
+
"departmentBar": "_9FdZvq_departmentBar",
|
|
1651
|
+
"detailLabel": "_9FdZvq_detailLabel",
|
|
1652
|
+
"empty": "_9FdZvq_empty",
|
|
1653
|
+
"demoTag": "_9FdZvq_demoTag",
|
|
1654
|
+
"status": "_9FdZvq_status",
|
|
1655
|
+
"detailValue": "_9FdZvq_detailValue",
|
|
1656
|
+
"auditFooter": "_9FdZvq_auditFooter",
|
|
1657
|
+
"risk": "_9FdZvq_risk",
|
|
1658
|
+
"severity": "_9FdZvq_severity"
|
|
1659
1659
|
};
|
|
1660
1660
|
//#endregion
|
|
1661
1661
|
//#region src/client/SkillPlazaSection.tsx
|
|
@@ -2310,19 +2310,19 @@ window.__ModuleLoader__.load({
|
|
|
2310
2310
|
document.head.appendChild(tag);
|
|
2311
2311
|
}
|
|
2312
2312
|
var WanxiangBrand_module_css_default = {
|
|
2313
|
+
"wordmark": "s0HPxG_wordmark",
|
|
2314
|
+
"unitRight": "s0HPxG_unitRight",
|
|
2313
2315
|
"mark": "s0HPxG_mark",
|
|
2316
|
+
"unit-right": "s0HPxG_unit-right",
|
|
2317
|
+
"unitTop": "s0HPxG_unitTop",
|
|
2318
|
+
"unit-core": "s0HPxG_unit-core",
|
|
2314
2319
|
"sidebarName": "s0HPxG_sidebarName",
|
|
2315
|
-
"unitRight": "s0HPxG_unitRight",
|
|
2316
2320
|
"unitCore": "s0HPxG_unitCore",
|
|
2317
|
-
"unit-top": "s0HPxG_unit-top",
|
|
2318
|
-
"unitTop": "s0HPxG_unitTop",
|
|
2319
2321
|
"harness": "s0HPxG_harness",
|
|
2320
2322
|
"unit-left": "s0HPxG_unit-left",
|
|
2321
2323
|
"animatedMark": "s0HPxG_animatedMark",
|
|
2322
|
-
"
|
|
2323
|
-
"unitLeft": "s0HPxG_unitLeft"
|
|
2324
|
-
"unit-right": "s0HPxG_unit-right",
|
|
2325
|
-
"unit-core": "s0HPxG_unit-core"
|
|
2324
|
+
"unit-top": "s0HPxG_unit-top",
|
|
2325
|
+
"unitLeft": "s0HPxG_unitLeft"
|
|
2326
2326
|
};
|
|
2327
2327
|
//#endregion
|
|
2328
2328
|
//#region src/client/WanxiangBrand.tsx
|
|
@@ -2559,6 +2559,25 @@ window.__ModuleLoader__.load({
|
|
|
2559
2559
|
}, "dataops-managed: Wanxiang shell branding");
|
|
2560
2560
|
}
|
|
2561
2561
|
//#endregion
|
|
2562
|
+
//#region src/client/tab-url.ts
|
|
2563
|
+
/**
|
|
2564
|
+
* Resolve a workspace root path against the document base.
|
|
2565
|
+
*
|
|
2566
|
+
* The portal serves DSH under a per-tab path prefix (`/dsh/t/<token>/`); the route
|
|
2567
|
+
* token must ride on every workspace request. At a root mount (standalone DSH) the
|
|
2568
|
+
* result is the unchanged root path. Evaluated per call so a route-token renewal
|
|
2569
|
+
* (which swaps the document base in place) takes effect immediately.
|
|
2570
|
+
*/
|
|
2571
|
+
const tabUrl = (path) => {
|
|
2572
|
+
const base = new URL(document.baseURI);
|
|
2573
|
+
return (base.pathname.endsWith("/") ? base.pathname : `${base.pathname}/`) + path.replace(/^\/+/u, "");
|
|
2574
|
+
};
|
|
2575
|
+
/** 当前挂载的 per-tab 路由令牌;独立部署(根挂载)时返回 null。 */
|
|
2576
|
+
const currentTabToken = () => {
|
|
2577
|
+
const matched = /^\/dsh\/t\/([^/]+)/u.exec(window.location.pathname);
|
|
2578
|
+
return matched ? matched[1] : null;
|
|
2579
|
+
};
|
|
2580
|
+
//#endregion
|
|
2562
2581
|
//#region src/client/ReloginPrompt.tsx
|
|
2563
2582
|
/**
|
|
2564
2583
|
* The "sign in again" prompt shown when this workspace's DataOps session has ended.
|
|
@@ -2589,7 +2608,7 @@ window.__ModuleLoader__.load({
|
|
|
2589
2608
|
*/
|
|
2590
2609
|
const readAuthState = async () => {
|
|
2591
2610
|
try {
|
|
2592
|
-
const response = await fetch(new URL("/integrations/dataops/auth-state", window.location.origin), { credentials: "same-origin" });
|
|
2611
|
+
const response = await fetch(new URL(tabUrl("/integrations/dataops/auth-state"), window.location.origin), { credentials: "same-origin" });
|
|
2593
2612
|
if (!response.ok) return void 0;
|
|
2594
2613
|
const state = (await response.json()).state;
|
|
2595
2614
|
return state === "expired" || state === "valid" || state === "unknown" ? state : void 0;
|
|
@@ -2732,92 +2751,92 @@ window.__ModuleLoader__.load({
|
|
|
2732
2751
|
document.head.appendChild(tag);
|
|
2733
2752
|
}
|
|
2734
2753
|
var PermissionCenterSection_module_css_default = {
|
|
2735
|
-
"
|
|
2736
|
-
"
|
|
2737
|
-
"
|
|
2738
|
-
"
|
|
2739
|
-
"
|
|
2740
|
-
"
|
|
2741
|
-
"
|
|
2742
|
-
"
|
|
2743
|
-
"
|
|
2744
|
-
"empty": "PNbOqW_empty",
|
|
2754
|
+
"comboboxOption": "PNbOqW_comboboxOption",
|
|
2755
|
+
"dialogFooter": "PNbOqW_dialogFooter",
|
|
2756
|
+
"comboboxHint": "PNbOqW_comboboxHint",
|
|
2757
|
+
"matrixScroll": "PNbOqW_matrixScroll",
|
|
2758
|
+
"roleSearch": "PNbOqW_roleSearch",
|
|
2759
|
+
"permDescription": "PNbOqW_permDescription",
|
|
2760
|
+
"candidates": "PNbOqW_candidates",
|
|
2761
|
+
"rowActions": "PNbOqW_rowActions",
|
|
2762
|
+
"subtitle": "PNbOqW_subtitle",
|
|
2745
2763
|
"headActions": "PNbOqW_headActions",
|
|
2746
|
-
"
|
|
2747
|
-
"
|
|
2764
|
+
"detailGrid": "PNbOqW_detailGrid",
|
|
2765
|
+
"onlyAdmin": "PNbOqW_onlyAdmin",
|
|
2766
|
+
"treeChildren": "PNbOqW_treeChildren",
|
|
2748
2767
|
"comboboxList": "PNbOqW_comboboxList",
|
|
2749
|
-
"
|
|
2750
|
-
"
|
|
2768
|
+
"treeName": "PNbOqW_treeName",
|
|
2769
|
+
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
2770
|
+
"scopeBadge": "PNbOqW_scopeBadge",
|
|
2771
|
+
"comboboxOptionActive": "PNbOqW_comboboxOptionActive",
|
|
2772
|
+
"matrixModule": "PNbOqW_matrixModule",
|
|
2773
|
+
"tabGroup": "PNbOqW_tabGroup",
|
|
2774
|
+
"roleSearchWrap": "PNbOqW_roleSearchWrap",
|
|
2775
|
+
"error": "PNbOqW_error",
|
|
2751
2776
|
"matrix": "PNbOqW_matrix",
|
|
2752
|
-
"
|
|
2753
|
-
"
|
|
2777
|
+
"matrixGroup": "PNbOqW_matrixGroup",
|
|
2778
|
+
"permCopy": "PNbOqW_permCopy",
|
|
2754
2779
|
"matrixToolActive": "PNbOqW_matrixToolActive",
|
|
2755
|
-
"matrixHeadLeft": "PNbOqW_matrixHeadLeft",
|
|
2756
|
-
"matrixPermHead": "PNbOqW_matrixPermHead",
|
|
2757
2780
|
"treeActions": "PNbOqW_treeActions",
|
|
2758
|
-
"
|
|
2759
|
-
"pager": "PNbOqW_pager",
|
|
2760
|
-
"copied": "PNbOqW_copied",
|
|
2761
|
-
"waiting": "PNbOqW_waiting",
|
|
2762
|
-
"readOnly": "PNbOqW_readOnly",
|
|
2763
|
-
"roleTag": "PNbOqW_roleTag",
|
|
2764
|
-
"roleGrant": "PNbOqW_roleGrant",
|
|
2765
|
-
"dialogHint": "PNbOqW_dialogHint",
|
|
2766
|
-
"panelHead": "PNbOqW_panelHead",
|
|
2767
|
-
"matrixGroup": "PNbOqW_matrixGroup",
|
|
2768
|
-
"head": "PNbOqW_head",
|
|
2769
|
-
"permDescription": "PNbOqW_permDescription",
|
|
2770
|
-
"comboboxCheck": "PNbOqW_comboboxCheck",
|
|
2771
|
-
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
2772
|
-
"candidates": "PNbOqW_candidates",
|
|
2773
|
-
"scopeBadge": "PNbOqW_scopeBadge",
|
|
2781
|
+
"field": "PNbOqW_field",
|
|
2774
2782
|
"demo": "PNbOqW_demo",
|
|
2775
2783
|
"combobox": "PNbOqW_combobox",
|
|
2776
|
-
"rowActions": "PNbOqW_rowActions",
|
|
2777
|
-
"permCopy": "PNbOqW_permCopy",
|
|
2778
|
-
"tabs": "PNbOqW_tabs",
|
|
2779
|
-
"deptAdmins": "PNbOqW_deptAdmins",
|
|
2780
2784
|
"treeRoot": "PNbOqW_treeRoot",
|
|
2785
|
+
"readOnly": "PNbOqW_readOnly",
|
|
2786
|
+
"tabs": "PNbOqW_tabs",
|
|
2781
2787
|
"matrixPermission": "PNbOqW_matrixPermission",
|
|
2788
|
+
"muted": "PNbOqW_muted",
|
|
2789
|
+
"treeToggle": "PNbOqW_treeToggle",
|
|
2790
|
+
"copied": "PNbOqW_copied",
|
|
2791
|
+
"panel": "PNbOqW_panel",
|
|
2792
|
+
"comboboxCheck": "PNbOqW_comboboxCheck",
|
|
2793
|
+
"pager": "PNbOqW_pager",
|
|
2794
|
+
"panelFoot": "PNbOqW_panelFoot",
|
|
2795
|
+
"empty": "PNbOqW_empty",
|
|
2796
|
+
"roleCell": "PNbOqW_roleCell",
|
|
2797
|
+
"sectionTitle": "PNbOqW_sectionTitle",
|
|
2782
2798
|
"roleRevoke": "PNbOqW_roleRevoke",
|
|
2783
|
-
"
|
|
2784
|
-
"
|
|
2799
|
+
"tabDivider": "PNbOqW_tabDivider",
|
|
2800
|
+
"matrixPermHead": "PNbOqW_matrixPermHead",
|
|
2801
|
+
"matrixRoleCell": "PNbOqW_matrixRoleCell",
|
|
2802
|
+
"roleTag": "PNbOqW_roleTag",
|
|
2785
2803
|
"tabActive": "PNbOqW_tabActive",
|
|
2786
|
-
"
|
|
2787
|
-
"dialogFooter": "PNbOqW_dialogFooter",
|
|
2788
|
-
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
2789
|
-
"departments": "PNbOqW_departments",
|
|
2804
|
+
"tab": "PNbOqW_tab",
|
|
2790
2805
|
"matrixNote": "PNbOqW_matrixNote",
|
|
2791
|
-
"
|
|
2792
|
-
"
|
|
2793
|
-
"
|
|
2794
|
-
"
|
|
2795
|
-
"dialogBody": "PNbOqW_dialogBody",
|
|
2806
|
+
"notice": "PNbOqW_notice",
|
|
2807
|
+
"department": "PNbOqW_department",
|
|
2808
|
+
"search": "PNbOqW_search",
|
|
2809
|
+
"departments": "PNbOqW_departments",
|
|
2796
2810
|
"roleTags": "PNbOqW_roleTags",
|
|
2797
|
-
"
|
|
2798
|
-
"
|
|
2811
|
+
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
2812
|
+
"roleGrant": "PNbOqW_roleGrant",
|
|
2813
|
+
"dialog": "PNbOqW_dialog",
|
|
2814
|
+
"matrixHeadLeft": "PNbOqW_matrixHeadLeft",
|
|
2815
|
+
"head": "PNbOqW_head",
|
|
2816
|
+
"dialogHint": "PNbOqW_dialogHint",
|
|
2799
2817
|
"headText": "PNbOqW_headText",
|
|
2800
|
-
"
|
|
2801
|
-
"roleSearchWrap": "PNbOqW_roleSearchWrap",
|
|
2818
|
+
"candidate": "PNbOqW_candidate",
|
|
2802
2819
|
"title": "PNbOqW_title",
|
|
2803
|
-
"
|
|
2804
|
-
"
|
|
2805
|
-
"
|
|
2820
|
+
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
2821
|
+
"treeRow": "PNbOqW_treeRow",
|
|
2822
|
+
"waiting": "PNbOqW_waiting",
|
|
2823
|
+
"matrixTool": "PNbOqW_matrixTool",
|
|
2806
2824
|
"roleSearchIcon": "PNbOqW_roleSearchIcon",
|
|
2825
|
+
"panelHead": "PNbOqW_panelHead",
|
|
2807
2826
|
"treeSpacer": "PNbOqW_treeSpacer",
|
|
2808
|
-
"
|
|
2809
|
-
"
|
|
2810
|
-
"adminTag": "PNbOqW_adminTag",
|
|
2811
|
-
"roleSearch": "PNbOqW_roleSearch",
|
|
2827
|
+
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
2828
|
+
"table": "PNbOqW_table",
|
|
2812
2829
|
"comboboxEmpty": "PNbOqW_comboboxEmpty",
|
|
2813
|
-
"
|
|
2830
|
+
"tabBadge": "PNbOqW_tabBadge",
|
|
2831
|
+
"matrixRoleHead": "PNbOqW_matrixRoleHead",
|
|
2832
|
+
"matrixHead": "PNbOqW_matrixHead",
|
|
2833
|
+
"tableScroll": "PNbOqW_tableScroll",
|
|
2834
|
+
"dialogBody": "PNbOqW_dialogBody",
|
|
2835
|
+
"deptAdmins": "PNbOqW_deptAdmins",
|
|
2814
2836
|
"permission": "PNbOqW_permission",
|
|
2815
|
-
"
|
|
2816
|
-
"
|
|
2817
|
-
"
|
|
2818
|
-
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
2819
|
-
"comboboxOptionActive": "PNbOqW_comboboxOptionActive",
|
|
2820
|
-
"treeName": "PNbOqW_treeName"
|
|
2837
|
+
"page": "PNbOqW_page",
|
|
2838
|
+
"adminTag": "PNbOqW_adminTag",
|
|
2839
|
+
"protected": "PNbOqW_protected"
|
|
2821
2840
|
};
|
|
2822
2841
|
//#endregion
|
|
2823
2842
|
//#region src/client/combobox.ts
|
|
@@ -4468,18 +4487,18 @@ window.__ModuleLoader__.load({
|
|
|
4468
4487
|
document.head.appendChild(tag);
|
|
4469
4488
|
}
|
|
4470
4489
|
var WorkspaceUpgradePrompt_module_css_default = {
|
|
4471
|
-
"error": "razUfG_error",
|
|
4472
|
-
"actions": "razUfG_actions",
|
|
4473
|
-
"copy": "razUfG_copy",
|
|
4474
|
-
"dialogBody": "razUfG_dialogBody",
|
|
4475
|
-
"dialogText": "razUfG_dialogText",
|
|
4476
|
-
"sessionList": "razUfG_sessionList",
|
|
4477
|
-
"banner": "razUfG_banner",
|
|
4478
4490
|
"body": "razUfG_body",
|
|
4479
|
-
"title": "razUfG_title",
|
|
4480
4491
|
"sessionRow": "razUfG_sessionRow",
|
|
4492
|
+
"banner": "razUfG_banner",
|
|
4493
|
+
"copy": "razUfG_copy",
|
|
4494
|
+
"title": "razUfG_title",
|
|
4495
|
+
"dialogText": "razUfG_dialogText",
|
|
4481
4496
|
"sessionTitle": "razUfG_sessionTitle",
|
|
4482
|
-
"sessionPath": "razUfG_sessionPath"
|
|
4497
|
+
"sessionPath": "razUfG_sessionPath",
|
|
4498
|
+
"error": "razUfG_error",
|
|
4499
|
+
"actions": "razUfG_actions",
|
|
4500
|
+
"sessionList": "razUfG_sessionList",
|
|
4501
|
+
"dialogBody": "razUfG_dialogBody"
|
|
4483
4502
|
};
|
|
4484
4503
|
//#endregion
|
|
4485
4504
|
//#region src/client/WorkspaceUpgradePrompt.tsx
|
|
@@ -4858,24 +4877,24 @@ window.__ModuleLoader__.load({
|
|
|
4858
4877
|
document.head.appendChild(tag);
|
|
4859
4878
|
}
|
|
4860
4879
|
var NotificationBell_module_css_default = {
|
|
4880
|
+
"demo": "tE0trG_demo",
|
|
4861
4881
|
"rowTime": "tE0trG_rowTime",
|
|
4862
|
-
"
|
|
4863
|
-
"linkButton": "tE0trG_linkButton",
|
|
4864
|
-
"button": "tE0trG_button",
|
|
4882
|
+
"rowBody": "tE0trG_rowBody",
|
|
4865
4883
|
"badge": "tE0trG_badge",
|
|
4866
|
-
"
|
|
4867
|
-
"row": "tE0trG_row",
|
|
4868
|
-
"list": "tE0trG_list",
|
|
4869
|
-
"dot": "tE0trG_dot",
|
|
4870
|
-
"demo": "tE0trG_demo",
|
|
4884
|
+
"dialog": "tE0trG_dialog",
|
|
4871
4885
|
"rowIcon": "tE0trG_rowIcon",
|
|
4886
|
+
"actions": "tE0trG_actions",
|
|
4887
|
+
"bell": "tE0trG_bell",
|
|
4888
|
+
"rowText": "tE0trG_rowText",
|
|
4872
4889
|
"rowMeta": "tE0trG_rowMeta",
|
|
4873
4890
|
"empty": "tE0trG_empty",
|
|
4874
|
-
"
|
|
4875
|
-
"
|
|
4876
|
-
"
|
|
4877
|
-
"
|
|
4878
|
-
"
|
|
4891
|
+
"dot": "tE0trG_dot",
|
|
4892
|
+
"pager": "tE0trG_pager",
|
|
4893
|
+
"linkButton": "tE0trG_linkButton",
|
|
4894
|
+
"list": "tE0trG_list",
|
|
4895
|
+
"row": "tE0trG_row",
|
|
4896
|
+
"rowTitle": "tE0trG_rowTitle",
|
|
4897
|
+
"button": "tE0trG_button"
|
|
4879
4898
|
};
|
|
4880
4899
|
//#endregion
|
|
4881
4900
|
//#region src/client/NotificationBell.tsx
|
|
@@ -5253,10 +5272,10 @@ window.__ModuleLoader__.load({
|
|
|
5253
5272
|
const load = async () => {
|
|
5254
5273
|
try {
|
|
5255
5274
|
const [treeResponse, listResponse, favoriteResponse, pinnedResponse] = await Promise.all([
|
|
5256
|
-
fetch("/integrations/dataops/resources/folder-tree", { headers: { accept: "application/json" } }),
|
|
5257
|
-
fetch("/integrations/dataops/resources?page=1&pageSize=100", { headers: { accept: "application/json" } }),
|
|
5258
|
-
fetch("/integrations/dataops/resources/favorites?page=1&pageSize=100", { headers: { accept: "application/json" } }),
|
|
5259
|
-
fetch("/integrations/dataops/resources/pinned?page=1&pageSize=100", { headers: { accept: "application/json" } })
|
|
5275
|
+
fetch(tabUrl("/integrations/dataops/resources/folder-tree"), { headers: { accept: "application/json" } }),
|
|
5276
|
+
fetch(tabUrl("/integrations/dataops/resources?page=1&pageSize=100"), { headers: { accept: "application/json" } }),
|
|
5277
|
+
fetch(tabUrl("/integrations/dataops/resources/favorites?page=1&pageSize=100"), { headers: { accept: "application/json" } }),
|
|
5278
|
+
fetch(tabUrl("/integrations/dataops/resources/pinned?page=1&pageSize=100"), { headers: { accept: "application/json" } })
|
|
5260
5279
|
]);
|
|
5261
5280
|
if (!live) return false;
|
|
5262
5281
|
if (!treeResponse.ok) throw new Error("HTTP " + String(treeResponse.status));
|
|
@@ -5348,7 +5367,7 @@ window.__ModuleLoader__.load({
|
|
|
5348
5367
|
setActive("node:" + String(node.id));
|
|
5349
5368
|
setOpenKeys((previous) => new Set(previous).add(node.id));
|
|
5350
5369
|
try {
|
|
5351
|
-
const response = await fetch("/integrations/dataops/resources?catalogNodeId=" + String(node.id) + "&page=1&pageSize=100", { headers: { accept: "application/json" } });
|
|
5370
|
+
const response = await fetch(tabUrl("/integrations/dataops/resources?catalogNodeId=" + String(node.id) + "&page=1&pageSize=100"), { headers: { accept: "application/json" } });
|
|
5352
5371
|
if (!response.ok) return;
|
|
5353
5372
|
const page = await response.json();
|
|
5354
5373
|
onFilter({
|
|
@@ -6235,8 +6254,11 @@ window.__ModuleLoader__.load({
|
|
|
6235
6254
|
//#endregion
|
|
6236
6255
|
//#region src/client/index.ts
|
|
6237
6256
|
const NS = "settings.dataops-managed";
|
|
6238
|
-
const AUTH_UPDATED_MESSAGE = "dataops-auth-updated";
|
|
6239
6257
|
const MANAGED_AUTH_PATH = "integrations/dataops/managed-auth";
|
|
6258
|
+
/** 父页续期 per-tab 路由令牌后投递的消息;iframe 原地换前缀,不重挂。 */
|
|
6259
|
+
const ROUTE_TOKEN_MESSAGE = "dataops-route-token";
|
|
6260
|
+
/** 交互地图预览链接:点击时附上当前 tab 路由令牌(导航无法带头部)。 */
|
|
6261
|
+
const CASE_PERSON_MAP_PATH = "/api/ai/case-person-map/";
|
|
6240
6262
|
/** Sidebar entry and main page id for the permission centre. */
|
|
6241
6263
|
const PERMISSION_PANEL_ID = "dataops-permissions";
|
|
6242
6264
|
/** Required client services for the managed DataOps Settings section and the resource tab bridge. */
|
|
@@ -6287,7 +6309,7 @@ window.__ModuleLoader__.load({
|
|
|
6287
6309
|
window.clearTimeout(timer);
|
|
6288
6310
|
if (!status.ok) return;
|
|
6289
6311
|
if ((await status.json()).paired === true) return;
|
|
6290
|
-
const created = await fetch("/integrations/dataops/browser-bridge/auto-pair", { method: "POST" });
|
|
6312
|
+
const created = await fetch(tabUrl("/integrations/dataops/browser-bridge/auto-pair"), { method: "POST" });
|
|
6291
6313
|
if (!created.ok) return;
|
|
6292
6314
|
const payload = await created.json();
|
|
6293
6315
|
if (typeof payload.code !== "string" || typeof payload.serverUrl !== "string") return;
|
|
@@ -6589,21 +6611,60 @@ window.__ModuleLoader__.load({
|
|
|
6589
6611
|
};
|
|
6590
6612
|
}, "dataops-managed: resource tab and open bridge");
|
|
6591
6613
|
const synchronizeJwt = async () => {
|
|
6592
|
-
const response = await fetch(new URL(MANAGED_AUTH_PATH,
|
|
6614
|
+
const response = await fetch(new URL(MANAGED_AUTH_PATH, document.baseURI), {
|
|
6593
6615
|
method: "POST",
|
|
6594
6616
|
credentials: "same-origin"
|
|
6595
6617
|
});
|
|
6596
6618
|
if (!response.ok) throw new Error(`DataOps managed JWT synchronization failed with HTTP ${String(response.status)}`);
|
|
6597
6619
|
};
|
|
6620
|
+
/**
|
|
6621
|
+
* 原地替换 per-tab 路由令牌。
|
|
6622
|
+
*
|
|
6623
|
+
* DSH 的相对请求按 document.baseURI 解析,而 <base href="./"> 在文档解析时冻结;
|
|
6624
|
+
* 因此续期要同时 replaceState 换路径段并重设 base 元素,后续相对请求与插件
|
|
6625
|
+
* tabUrl() 才都携带新令牌。已建立的 WS 观察流不受影响(路由只在升级时校验)。
|
|
6626
|
+
*/
|
|
6627
|
+
const applyRouteToken = (token) => {
|
|
6628
|
+
const url = new URL(window.location.href);
|
|
6629
|
+
const next = url.pathname.replace(/^\/dsh\/t\/[^/]+/u, `/dsh/t/${token}`);
|
|
6630
|
+
if (next === url.pathname) return;
|
|
6631
|
+
window.history.replaceState(null, "", next + url.search + url.hash);
|
|
6632
|
+
document.querySelector("base")?.setAttribute("href", "./");
|
|
6633
|
+
};
|
|
6598
6634
|
const onMessage = (event) => {
|
|
6599
|
-
if (event.source !== window.parent || event.
|
|
6600
|
-
|
|
6635
|
+
if (event.source !== window.parent || event.origin !== window.location.origin) return;
|
|
6636
|
+
const data = event.data;
|
|
6637
|
+
if (data?.type !== ROUTE_TOKEN_MESSAGE || typeof data.token !== "string" || data.token === "") return;
|
|
6638
|
+
applyRouteToken(data.token);
|
|
6601
6639
|
};
|
|
6602
6640
|
ctx.effect(() => {
|
|
6603
6641
|
window.addEventListener("message", onMessage);
|
|
6604
6642
|
synchronizeJwt().catch((error) => console.error("dataops-managed.jwt_sync_failed", error));
|
|
6605
6643
|
return () => window.removeEventListener("message", onMessage);
|
|
6606
|
-
}, "dataops-managed: JWT synchronization");
|
|
6644
|
+
}, "dataops-managed: JWT synchronization and route token renewal");
|
|
6645
|
+
/**
|
|
6646
|
+
* 交互地图预览链接在点击时附上当前 tab 路由令牌。
|
|
6647
|
+
*
|
|
6648
|
+
* 链接 URL 由技能脚本生成(不含浏览器 tab 上下文),导航请求无法携带头部;
|
|
6649
|
+
* 后端 AuthGuard 的 tab 兜底从 dsh_tab query 读取令牌。只处理同源地图路由,
|
|
6650
|
+
* 根挂载(独立 DSH,无令牌)时不改写。
|
|
6651
|
+
*/
|
|
6652
|
+
ctx.effect(() => {
|
|
6653
|
+
const onLinkClick = (event) => {
|
|
6654
|
+
const token = currentTabToken();
|
|
6655
|
+
if (token === null) return;
|
|
6656
|
+
const target = event.target;
|
|
6657
|
+
if (!(target instanceof Element)) return;
|
|
6658
|
+
const anchor = target.closest("a[href]");
|
|
6659
|
+
if (anchor === null) return;
|
|
6660
|
+
const url = new URL(anchor.getAttribute("href") ?? "", window.location.href);
|
|
6661
|
+
if (url.origin !== window.location.origin || !url.pathname.startsWith(CASE_PERSON_MAP_PATH)) return;
|
|
6662
|
+
url.searchParams.set("dsh_tab", token);
|
|
6663
|
+
anchor.setAttribute("href", url.pathname + url.search + url.hash);
|
|
6664
|
+
};
|
|
6665
|
+
document.addEventListener("click", onLinkClick, true);
|
|
6666
|
+
return () => document.removeEventListener("click", onLinkClick, true);
|
|
6667
|
+
}, "dataops-managed: case-person-map link tab token");
|
|
6607
6668
|
}
|
|
6608
6669
|
//#endregion
|
|
6609
6670
|
exports.apply = apply;
|