@sparkelf/dsh-dataops-managed 0.3.21 → 0.3.23
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 +8 -0
- package/lib/client.js +261 -227
- package/lib/client.js.map +1 -1
- package/lib/index.js +1190 -407
- package/lib/types/api-docs.d.ts +80 -0
- package/lib/types/auth-state.d.ts +13 -0
- package/lib/types/client/ReloginPrompt.d.ts +3 -5
- package/lib/types/client/SkillPlazaSection.d.ts +33 -0
- package/lib/types/client/locales.d.ts +13 -10
- package/lib/types/connector-state.d.ts +51 -0
- package/lib/types/tool-manager.d.ts +81 -0
- package/lib/types/tool-output.d.ts +25 -0
- package/lib/types/tool-scope.d.ts +156 -0
- package/lib/types/tools.d.ts +27 -7
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -747,22 +747,22 @@ window.__ModuleLoader__.load({
|
|
|
747
747
|
document.head.appendChild(tag);
|
|
748
748
|
}
|
|
749
749
|
var ManagedDataOpsSection_module_css_default = {
|
|
750
|
+
"actions": "_2dqzjG_actions",
|
|
750
751
|
"refusal": "_2dqzjG_refusal",
|
|
752
|
+
"reviewRow": "_2dqzjG_reviewRow",
|
|
753
|
+
"reviewActions": "_2dqzjG_reviewActions",
|
|
754
|
+
"row": "_2dqzjG_row",
|
|
751
755
|
"heading": "_2dqzjG_heading",
|
|
756
|
+
"meta": "_2dqzjG_meta",
|
|
757
|
+
"title": "_2dqzjG_title",
|
|
758
|
+
"copy": "_2dqzjG_copy",
|
|
752
759
|
"section": "_2dqzjG_section",
|
|
753
760
|
"status": "_2dqzjG_status",
|
|
754
761
|
"card": "_2dqzjG_card",
|
|
755
|
-
"meta": "_2dqzjG_meta",
|
|
756
|
-
"title": "_2dqzjG_title",
|
|
757
|
-
"reviewActions": "_2dqzjG_reviewActions",
|
|
758
|
-
"reviewRows": "_2dqzjG_reviewRows",
|
|
759
762
|
"reviewHint": "_2dqzjG_reviewHint",
|
|
760
|
-
"
|
|
763
|
+
"reviewRows": "_2dqzjG_reviewRows",
|
|
761
764
|
"label": "_2dqzjG_label",
|
|
762
|
-
"fields": "_2dqzjG_fields"
|
|
763
|
-
"actions": "_2dqzjG_actions",
|
|
764
|
-
"reviewRow": "_2dqzjG_reviewRow",
|
|
765
|
-
"copy": "_2dqzjG_copy"
|
|
765
|
+
"fields": "_2dqzjG_fields"
|
|
766
766
|
};
|
|
767
767
|
//#endregion
|
|
768
768
|
//#region src/client/ReviewSettingsCard.tsx
|
|
@@ -1617,24 +1617,24 @@ window.__ModuleLoader__.load({
|
|
|
1617
1617
|
document.head.appendChild(tag);
|
|
1618
1618
|
}
|
|
1619
1619
|
var NotificationBell_module_css_default = {
|
|
1620
|
+
"list": "tE0trG_list",
|
|
1620
1621
|
"empty": "tE0trG_empty",
|
|
1621
|
-
"
|
|
1622
|
+
"dialog": "tE0trG_dialog",
|
|
1623
|
+
"dot": "tE0trG_dot",
|
|
1624
|
+
"rowBody": "tE0trG_rowBody",
|
|
1625
|
+
"bell": "tE0trG_bell",
|
|
1626
|
+
"rowText": "tE0trG_rowText",
|
|
1622
1627
|
"rowTime": "tE0trG_rowTime",
|
|
1623
1628
|
"pager": "tE0trG_pager",
|
|
1624
|
-
"rowText": "tE0trG_rowText",
|
|
1625
|
-
"demo": "tE0trG_demo",
|
|
1626
|
-
"row": "tE0trG_row",
|
|
1627
|
-
"rowTitle": "tE0trG_rowTitle",
|
|
1628
1629
|
"actions": "tE0trG_actions",
|
|
1629
|
-
"
|
|
1630
|
+
"rowTitle": "tE0trG_rowTitle",
|
|
1631
|
+
"demo": "tE0trG_demo",
|
|
1632
|
+
"linkButton": "tE0trG_linkButton",
|
|
1630
1633
|
"rowMeta": "tE0trG_rowMeta",
|
|
1631
|
-
"
|
|
1634
|
+
"row": "tE0trG_row",
|
|
1632
1635
|
"rowIcon": "tE0trG_rowIcon",
|
|
1633
|
-
"
|
|
1634
|
-
"badge": "tE0trG_badge"
|
|
1635
|
-
"bell": "tE0trG_bell",
|
|
1636
|
-
"rowBody": "tE0trG_rowBody",
|
|
1637
|
-
"linkButton": "tE0trG_linkButton"
|
|
1636
|
+
"button": "tE0trG_button",
|
|
1637
|
+
"badge": "tE0trG_badge"
|
|
1638
1638
|
};
|
|
1639
1639
|
//#endregion
|
|
1640
1640
|
//#region src/client/NotificationBell.tsx
|
|
@@ -1915,7 +1915,7 @@ window.__ModuleLoader__.load({
|
|
|
1915
1915
|
}
|
|
1916
1916
|
//#endregion
|
|
1917
1917
|
//#region \0dsh-css:/root/projects/dsh-plugins-plus/packages/dataops-managed/src/client/SkillPlazaSection.module.css.mjs
|
|
1918
|
-
const css$3 = "._9FdZvq_section{box-sizing:border-box;flex-direction:column;width:100%;max-width:960px;margin:0 auto;display:flex}._9FdZvq_head{flex-direction:column;margin-bottom:8px;display:flex}._9FdZvq_title{color:var(--dsw-alias-label-primary);align-items:baseline;gap:8px;margin:0;font-size:14px;font-weight:500;line-height:20px;display:flex}._9FdZvq_titleCount{color:var(--dsw-alias-label-tertiary);font-size:12px;font-weight:400}._9FdZvq_status{text-align:center;color:var(--dsw-alias-label-tertiary);margin:0;padding:20px 0;font-size:13px;line-height:20px}.
|
|
1918
|
+
const css$3 = "._9FdZvq_section{box-sizing:border-box;flex-direction:column;width:100%;max-width:960px;margin:0 auto;display:flex}._9FdZvq_head{flex-direction:column;margin-bottom:8px;display:flex}._9FdZvq_title{color:var(--dsw-alias-label-primary);align-items:baseline;gap:8px;margin:0;font-size:14px;font-weight:500;line-height:20px;display:flex}._9FdZvq_titleCount{color:var(--dsw-alias-label-tertiary);font-size:12px;font-weight:400}._9FdZvq_status{text-align:center;color:var(--dsw-alias-label-tertiary);margin:0;padding:20px 0;font-size:13px;line-height:20px}._9FdZvq_departmentBar{align-items:center;gap:8px;margin-bottom:10px;display:inline-flex}._9FdZvq_departmentLabel{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}._9FdZvq_departmentSelect{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);height:28px;color:var(--dsw-alias-label-primary);font:inherit;border-radius:8px;padding:0 8px;font-size:12px;line-height:18px}._9FdZvq_departmentSelect:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px}._9FdZvq_notice{color:var(--dsw-alias-state-business-primary);margin:4px 0 0;font-size:12px;line-height:18px}._9FdZvq_cards{grid-template-columns:repeat(auto-fill,minmax(272px,1fr));grid-auto-rows:max-content;align-content:start;align-items:stretch;gap:12px;margin:0;padding:0;list-style:none;display:grid}._9FdZvq_card{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);border-radius:10px;flex-direction:column;align-self:stretch;gap:10px;min-width:0;height:auto;padding:12px;display:flex}._9FdZvq_cardTop{justify-content:space-between;align-items:center;gap:10px;min-height:28px;display:flex}._9FdZvq_cardIcon{background:var(--dsw-alias-bg-layer-2);width:28px;height:28px;color:var(--dsw-alias-label-secondary);border-radius:50%;flex:none;place-items:center;display:grid}._9FdZvq_cardTitle{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:14px;font-weight:600;line-height:20px;overflow:hidden}._9FdZvq_mine{flex:none}._9FdZvq_cardDesc{min-height:36px;color:var(--dsw-alias-label-secondary);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}._9FdZvq_cardMarks{flex-wrap:wrap;align-content:flex-start;gap:6px;min-height:20px;display:flex}._9FdZvq_mark{background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 14%, var(--dsw-alias-bg-layer-1));color:var(--dsw-alias-state-business-primary);white-space:nowrap;border:0;border-radius:4px;padding:2px 7px;font-size:11px;font-weight:500;line-height:16px}._9FdZvq_cardEnd{flex:none;align-items:center;gap:4px;margin-top:auto;padding-top:4px;display:flex}._9FdZvq_detailButton{margin-left:auto}._9FdZvq_detail{flex-direction:column;gap:12px;margin:0;display:flex}._9FdZvq_dialog{width:min(560px,100%)}._9FdZvq_detailRow{flex-direction:column;gap:2px;display:flex}._9FdZvq_detailLabel{color:var(--dsw-alias-label-caption);font-size:11px;line-height:16px}._9FdZvq_detailValue{max-height:160px;color:var(--dsw-alias-label-secondary);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:12px;line-height:18px;overflow:auto}._9FdZvq_empty{text-align:center;flex-direction:column;align-items:center;gap:10px;padding:28px 16px 32px;display:flex}._9FdZvq_emptyIcon{border:.5px solid var(--dsw-alias-border-l3);width:56px;height:56px;color:var(--dsw-alias-label-tertiary);border-radius:14px;justify-content:center;align-items:center;display:inline-flex}._9FdZvq_emptyText{color:var(--dsw-alias-label-tertiary);margin:0;font-size:13px;line-height:20px}._9FdZvq_headRow{align-items:center;gap:6px;display:flex}._9FdZvq_headRow ._9FdZvq_title{flex:none}._9FdZvq_demoTag{background:var(--dsw-alias-state-warn-secondary);color:var(--dsw-alias-state-warn-primary);border-radius:4px;padding:1px 6px;font-size:10px;line-height:16px}._9FdZvq_tabs{border-bottom:1px solid var(--dsw-alias-border-l1);align-items:center;gap:2px;margin-bottom:8px;display:flex}._9FdZvq_tab{height:30px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;align-items:center;gap:5px;padding:0 9px;font-size:12px;display:inline-flex}._9FdZvq_tab:hover{color:var(--dsw-alias-label-primary)}._9FdZvq_tabActive{color:var(--dsw-alias-state-business-primary);border-bottom-color:var(--dsw-alias-state-business-primary);font-weight:500}._9FdZvq_tabCount{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-tertiary);border-radius:7px;padding:0 4px;font-size:10px;line-height:14px}._9FdZvq_tagTop{text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--dsw-alias-border-l2);max-width:40%;color:var(--dsw-alias-label-secondary);border-radius:4px;flex:none;padding:1px 6px;font-size:10px;line-height:16px;overflow:hidden}._9FdZvq_sharedTag{color:#fff;background:#0e6b3a;border-radius:4px;padding:2px 7px;font-size:11px;font-weight:600;line-height:16px}._9FdZvq_pendingTag{color:#fff;background:#7a4a00;border-radius:4px;padding:2px 7px;font-size:11px;font-weight:600;line-height:16px}._9FdZvq_rejectedTag{color:#fff;background:#a8231b;border-radius:4px;padding:2px 7px;font-size:11px;font-weight:600;line-height:16px}._9FdZvq_reviewButton{margin-left:auto}._9FdZvq_reviewNote{border-left:3px solid var(--dsw-alias-state-error-primary);background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 10%, var(--dsw-alias-bg-layer-1));color:var(--dsw-alias-label-primary);margin:0;padding:6px 8px;font-size:11px;line-height:16px}._9FdZvq_auditDialog{width:min(640px,100vw - 32px)}._9FdZvq_audit{flex-direction:column;gap:14px;display:flex}._9FdZvq_auditFooter{justify-content:flex-end;gap:6px;display:flex}._9FdZvq_risk{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:6px;flex-direction:column;gap:8px;padding:10px;display:flex}._9FdZvq_riskHead{justify-content:space-between;align-items:center;gap:8px;font-size:12px;display:flex}._9FdZvq_riskEmpty,._9FdZvq_riskFailed{color:var(--dsw-alias-label-tertiary);margin:0;font-size:11px;line-height:16px}._9FdZvq_riskFailed{color:var(--dsw-alias-state-error-primary)}._9FdZvq_riskSummary{color:var(--dsw-alias-label-secondary);flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;line-height:18px;display:flex}._9FdZvq_riskScore{color:var(--dsw-alias-label-primary);font-weight:600}._9FdZvq_severity{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);text-transform:uppercase;border-radius:3px;padding:0 5px;font-size:10px;line-height:16px}._9FdZvq_severity[data-severity=high],._9FdZvq_severity[data-severity=critical]{background:var(--dsw-alias-state-error-secondary);color:var(--dsw-alias-state-error-primary)}._9FdZvq_severity[data-severity=medium]{background:var(--dsw-alias-state-warn-secondary);color:var(--dsw-alias-state-warn-primary)}._9FdZvq_findings{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}._9FdZvq_finding{flex-wrap:wrap;align-items:baseline;gap:5px;font-size:11px;line-height:16px;display:flex}._9FdZvq_findingText{color:var(--dsw-alias-label-secondary);flex-basis:100%}._9FdZvq_findingHint{color:var(--dsw-alias-label-tertiary);flex-basis:100%}._9FdZvq_noteField{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:5px;font-size:12px;display:flex}._9FdZvq_noteField textarea{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);min-height:64px;color:var(--dsw-alias-label-primary);font:inherit;resize:vertical;border-radius:5px;padding:7px 9px}._9FdZvq_reviewError{color:var(--dsw-alias-state-error-primary);margin:0;font-size:11px}";
|
|
1919
1919
|
const tagId$3 = "@sparkelf/dsh-dataops-managed/SkillPlazaSection.module.css";
|
|
1920
1920
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
1921
1921
|
const tag = document.createElement("style");
|
|
@@ -1925,62 +1925,62 @@ window.__ModuleLoader__.load({
|
|
|
1925
1925
|
document.head.appendChild(tag);
|
|
1926
1926
|
}
|
|
1927
1927
|
var SkillPlazaSection_module_css_default = {
|
|
1928
|
-
"
|
|
1929
|
-
"
|
|
1930
|
-
"tabs": "_9FdZvq_tabs",
|
|
1928
|
+
"titleCount": "_9FdZvq_titleCount",
|
|
1929
|
+
"auditDialog": "_9FdZvq_auditDialog",
|
|
1931
1930
|
"sharedTag": "_9FdZvq_sharedTag",
|
|
1932
|
-
"noteField": "_9FdZvq_noteField",
|
|
1933
|
-
"mark": "_9FdZvq_mark",
|
|
1934
|
-
"severity": "_9FdZvq_severity",
|
|
1935
|
-
"findingText": "_9FdZvq_findingText",
|
|
1936
1931
|
"section": "_9FdZvq_section",
|
|
1932
|
+
"detailValue": "_9FdZvq_detailValue",
|
|
1933
|
+
"tabActive": "_9FdZvq_tabActive",
|
|
1934
|
+
"pendingTag": "_9FdZvq_pendingTag",
|
|
1935
|
+
"tab": "_9FdZvq_tab",
|
|
1936
|
+
"audit": "_9FdZvq_audit",
|
|
1937
|
+
"headRow": "_9FdZvq_headRow",
|
|
1937
1938
|
"head": "_9FdZvq_head",
|
|
1938
|
-
"
|
|
1939
|
+
"auditFooter": "_9FdZvq_auditFooter",
|
|
1940
|
+
"detailRow": "_9FdZvq_detailRow",
|
|
1941
|
+
"title": "_9FdZvq_title",
|
|
1939
1942
|
"cardTop": "_9FdZvq_cardTop",
|
|
1940
|
-
"cardTitle": "_9FdZvq_cardTitle",
|
|
1941
1943
|
"detailLabel": "_9FdZvq_detailLabel",
|
|
1942
|
-
"
|
|
1943
|
-
"riskSummary": "_9FdZvq_riskSummary",
|
|
1944
|
-
"tab": "_9FdZvq_tab",
|
|
1945
|
-
"reviewButton": "_9FdZvq_reviewButton",
|
|
1946
|
-
"headRow": "_9FdZvq_headRow",
|
|
1944
|
+
"emptyText": "_9FdZvq_emptyText",
|
|
1947
1945
|
"risk": "_9FdZvq_risk",
|
|
1948
|
-
"tagBar": "_9FdZvq_tagBar",
|
|
1949
1946
|
"riskEmpty": "_9FdZvq_riskEmpty",
|
|
1950
|
-
"
|
|
1951
|
-
"
|
|
1947
|
+
"riskFailed": "_9FdZvq_riskFailed",
|
|
1948
|
+
"findings": "_9FdZvq_findings",
|
|
1952
1949
|
"cardEnd": "_9FdZvq_cardEnd",
|
|
1953
|
-
"
|
|
1954
|
-
"
|
|
1955
|
-
"
|
|
1956
|
-
"detailButton": "_9FdZvq_detailButton",
|
|
1957
|
-
"status": "_9FdZvq_status",
|
|
1958
|
-
"tagTop": "_9FdZvq_tagTop",
|
|
1959
|
-
"title": "_9FdZvq_title",
|
|
1960
|
-
"detailRow": "_9FdZvq_detailRow",
|
|
1961
|
-
"detailValue": "_9FdZvq_detailValue",
|
|
1962
|
-
"card": "_9FdZvq_card",
|
|
1963
|
-
"detail": "_9FdZvq_detail",
|
|
1964
|
-
"tabActive": "_9FdZvq_tabActive",
|
|
1965
|
-
"tabCount": "_9FdZvq_tabCount",
|
|
1966
|
-
"pendingTag": "_9FdZvq_pendingTag",
|
|
1967
|
-
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
1968
|
-
"demoTag": "_9FdZvq_demoTag",
|
|
1969
|
-
"empty": "_9FdZvq_empty",
|
|
1970
|
-
"auditDialog": "_9FdZvq_auditDialog",
|
|
1971
|
-
"audit": "_9FdZvq_audit",
|
|
1972
|
-
"auditFooter": "_9FdZvq_auditFooter",
|
|
1950
|
+
"riskSummary": "_9FdZvq_riskSummary",
|
|
1951
|
+
"severity": "_9FdZvq_severity",
|
|
1952
|
+
"findingText": "_9FdZvq_findingText",
|
|
1973
1953
|
"riskScore": "_9FdZvq_riskScore",
|
|
1954
|
+
"reviewError": "_9FdZvq_reviewError",
|
|
1955
|
+
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
1956
|
+
"riskHead": "_9FdZvq_riskHead",
|
|
1957
|
+
"card": "_9FdZvq_card",
|
|
1974
1958
|
"finding": "_9FdZvq_finding",
|
|
1959
|
+
"empty": "_9FdZvq_empty",
|
|
1960
|
+
"mine": "_9FdZvq_mine",
|
|
1961
|
+
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
1975
1962
|
"findingHint": "_9FdZvq_findingHint",
|
|
1976
|
-
"
|
|
1963
|
+
"noteField": "_9FdZvq_noteField",
|
|
1977
1964
|
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
1978
|
-
"reviewNote": "_9FdZvq_reviewNote",
|
|
1979
1965
|
"cardDesc": "_9FdZvq_cardDesc",
|
|
1966
|
+
"cardMarks": "_9FdZvq_cardMarks",
|
|
1967
|
+
"detailButton": "_9FdZvq_detailButton",
|
|
1968
|
+
"tagTop": "_9FdZvq_tagTop",
|
|
1969
|
+
"demoTag": "_9FdZvq_demoTag",
|
|
1970
|
+
"notice": "_9FdZvq_notice",
|
|
1971
|
+
"status": "_9FdZvq_status",
|
|
1972
|
+
"cardTitle": "_9FdZvq_cardTitle",
|
|
1973
|
+
"tabs": "_9FdZvq_tabs",
|
|
1974
|
+
"detail": "_9FdZvq_detail",
|
|
1975
|
+
"cards": "_9FdZvq_cards",
|
|
1980
1976
|
"dialog": "_9FdZvq_dialog",
|
|
1981
|
-
"
|
|
1982
|
-
"
|
|
1983
|
-
"
|
|
1977
|
+
"mark": "_9FdZvq_mark",
|
|
1978
|
+
"cardIcon": "_9FdZvq_cardIcon",
|
|
1979
|
+
"departmentBar": "_9FdZvq_departmentBar",
|
|
1980
|
+
"tabCount": "_9FdZvq_tabCount",
|
|
1981
|
+
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
1982
|
+
"reviewButton": "_9FdZvq_reviewButton",
|
|
1983
|
+
"reviewNote": "_9FdZvq_reviewNote"
|
|
1984
1984
|
};
|
|
1985
1985
|
//#endregion
|
|
1986
1986
|
//#region src/client/SkillPlazaSection.tsx
|
|
@@ -1994,6 +1994,48 @@ window.__ModuleLoader__.load({
|
|
|
1994
1994
|
total: counted.all
|
|
1995
1995
|
};
|
|
1996
1996
|
}
|
|
1997
|
+
/**
|
|
1998
|
+
* The department a plaza row belongs to.
|
|
1999
|
+
*
|
|
2000
|
+
* The backend normally sends `departmentCode`; a legacy row may carry only a name or path, so the
|
|
2001
|
+
* fallbacks keep those rows selectable instead of dropping them into an empty key.
|
|
2002
|
+
* @param skill - one plaza row.
|
|
2003
|
+
* @returns the code, the name, or the deepest path name; empty when the row says nothing.
|
|
2004
|
+
*/
|
|
2005
|
+
function departmentKeyOf(skill) {
|
|
2006
|
+
return skill.departmentCode ?? skill.departmentName ?? skill.departmentPath?.at(-1)?.name ?? "";
|
|
2007
|
+
}
|
|
2008
|
+
/**
|
|
2009
|
+
* The department choices present in the visible rows.
|
|
2010
|
+
*
|
|
2011
|
+
* The label falls back from the row's own name to the deepest path name and finally to the code,
|
|
2012
|
+
* so a department the backend can no longer name still renders as a readable option.
|
|
2013
|
+
* @param skills - every row the current query returned.
|
|
2014
|
+
* @returns distinct departments, sorted by label.
|
|
2015
|
+
*/
|
|
2016
|
+
function departmentOptionsOf(skills) {
|
|
2017
|
+
const options = /* @__PURE__ */ new Map();
|
|
2018
|
+
for (const skill of skills) {
|
|
2019
|
+
if (normalizeVisibility(skill.visibility) !== "department") continue;
|
|
2020
|
+
const code = departmentKeyOf(skill);
|
|
2021
|
+
if (code === "" || options.has(code)) continue;
|
|
2022
|
+
options.set(code, skill.departmentName ?? skill.departmentPath?.at(-1)?.name ?? code);
|
|
2023
|
+
}
|
|
2024
|
+
return [...options].map(([code, name]) => ({
|
|
2025
|
+
code,
|
|
2026
|
+
name
|
|
2027
|
+
})).sort((left, right) => left.name.localeCompare(right.name, "zh-Hans-CN"));
|
|
2028
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* The rows the department tab shows.
|
|
2031
|
+
* @param skills - every row the current query returned.
|
|
2032
|
+
* @param code - selected department key, or an empty string for all of them.
|
|
2033
|
+
* @returns the department-shared rows, narrowed to `code` when it is set.
|
|
2034
|
+
*/
|
|
2035
|
+
function filterByDepartment(skills, code) {
|
|
2036
|
+
const shared = skills.filter((skill) => normalizeVisibility(skill.visibility) === "department");
|
|
2037
|
+
return code === "" ? shared : shared.filter((skill) => departmentKeyOf(skill) === code);
|
|
2038
|
+
}
|
|
1997
2039
|
/** One skill as a card in the plaza grid. */
|
|
1998
2040
|
function PlazaCard({ skill, busy, canAudit, onInstall, onUnshare, onReview, t }) {
|
|
1999
2041
|
const [open, setOpen] = (0, react.useState)(false);
|
|
@@ -2205,7 +2247,7 @@ window.__ModuleLoader__.load({
|
|
|
2205
2247
|
const [state, setState] = (0, react.useState)({ kind: "loading" });
|
|
2206
2248
|
const [context, setContext] = (0, react.useState)(void 0);
|
|
2207
2249
|
const [tab, setTab] = (0, react.useState)("approved");
|
|
2208
|
-
const [
|
|
2250
|
+
const [department, setDepartment] = (0, react.useState)("");
|
|
2209
2251
|
const [busy, setBusy] = (0, react.useState)(false);
|
|
2210
2252
|
const [notice, setNotice] = (0, react.useState)(null);
|
|
2211
2253
|
const [audit, setAudit] = (0, react.useState)(null);
|
|
@@ -2235,23 +2277,14 @@ window.__ModuleLoader__.load({
|
|
|
2235
2277
|
setState({
|
|
2236
2278
|
kind: "ready",
|
|
2237
2279
|
listing: {
|
|
2238
|
-
skills: [...
|
|
2239
|
-
tags: [
|
|
2240
|
-
"性能",
|
|
2241
|
-
"数据",
|
|
2242
|
-
"数据库",
|
|
2243
|
-
"质量",
|
|
2244
|
-
"经营",
|
|
2245
|
-
"日报",
|
|
2246
|
-
"客户"
|
|
2247
|
-
],
|
|
2280
|
+
skills: [...demo],
|
|
2281
|
+
tags: [],
|
|
2248
2282
|
counts: countsOf(demo)
|
|
2249
2283
|
}
|
|
2250
2284
|
});
|
|
2251
2285
|
return;
|
|
2252
2286
|
}
|
|
2253
2287
|
const listing = await fetchPlaza({
|
|
2254
|
-
tag: filter.tag,
|
|
2255
2288
|
query: filter.query,
|
|
2256
2289
|
status: allowed ? "all" : "approved"
|
|
2257
2290
|
});
|
|
@@ -2264,7 +2297,7 @@ window.__ModuleLoader__.load({
|
|
|
2264
2297
|
kind: "ready",
|
|
2265
2298
|
listing: {
|
|
2266
2299
|
...listing,
|
|
2267
|
-
skills: [...
|
|
2300
|
+
skills: [...visible],
|
|
2268
2301
|
counts: countsOf(visible)
|
|
2269
2302
|
}
|
|
2270
2303
|
});
|
|
@@ -2273,29 +2306,11 @@ window.__ModuleLoader__.load({
|
|
|
2273
2306
|
}
|
|
2274
2307
|
}, [allowed]);
|
|
2275
2308
|
(0, react.useEffect)(() => {
|
|
2276
|
-
load({
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
}, [
|
|
2282
|
-
load,
|
|
2283
|
-
tab,
|
|
2284
|
-
tag,
|
|
2285
|
-
query
|
|
2286
|
-
]);
|
|
2287
|
-
const refresh = (0, react.useCallback)(async (nextTab = tab, nextTag = tag) => {
|
|
2288
|
-
await load({
|
|
2289
|
-
tab: nextTab,
|
|
2290
|
-
tag: nextTag,
|
|
2291
|
-
query
|
|
2292
|
-
});
|
|
2293
|
-
}, [
|
|
2294
|
-
load,
|
|
2295
|
-
tab,
|
|
2296
|
-
tag,
|
|
2297
|
-
query
|
|
2298
|
-
]);
|
|
2309
|
+
load({ query });
|
|
2310
|
+
}, [load, query]);
|
|
2311
|
+
const refresh = (0, react.useCallback)(async () => {
|
|
2312
|
+
await load({ query });
|
|
2313
|
+
}, [load, query]);
|
|
2299
2314
|
const act = (0, react.useCallback)(async (body, message) => {
|
|
2300
2315
|
setBusy(true);
|
|
2301
2316
|
setNotice(null);
|
|
@@ -2345,7 +2360,8 @@ window.__ModuleLoader__.load({
|
|
|
2345
2360
|
}
|
|
2346
2361
|
setAudit(null);
|
|
2347
2362
|
setNotice(t === void 0 ? null : t("plazaReviewDone"));
|
|
2348
|
-
|
|
2363
|
+
setTab("pending");
|
|
2364
|
+
await refresh();
|
|
2349
2365
|
} catch {
|
|
2350
2366
|
setReviewError(t === void 0 ? null : t("plazaReviewFailed"));
|
|
2351
2367
|
} finally {
|
|
@@ -2419,12 +2435,18 @@ window.__ModuleLoader__.load({
|
|
|
2419
2435
|
pending: listing.counts.pending,
|
|
2420
2436
|
all: listing.counts.total
|
|
2421
2437
|
};
|
|
2422
|
-
const
|
|
2423
|
-
const
|
|
2438
|
+
const reviewTabs = reviewTabsFor(context);
|
|
2439
|
+
const departmentOptions = departmentOptionsOf(listing.skills);
|
|
2440
|
+
const selectedDepartment = departmentOptions.some((option) => option.code === department) ? department : "";
|
|
2441
|
+
const departmentSkills = filterByDepartment(listing.skills, selectedDepartment);
|
|
2442
|
+
const tabs = departmentOptions.length === 0 ? reviewTabs : [...reviewTabs, "department"];
|
|
2443
|
+
const countOfTab = (item) => item === "department" ? departmentSkills.length : counts[item];
|
|
2444
|
+
const tabLabel = (item) => item === "approved" ? t("plazaTabApproved") : item === "pending" ? t("plazaTabPending") : item === "all" ? t("plazaTabAll") : t("plazaTabDepartment");
|
|
2445
|
+
const visibleSkills = tab === "department" ? departmentSkills : filterByReview(listing.skills, tab);
|
|
2424
2446
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
2425
2447
|
className: SkillPlazaSection_module_css_default.section,
|
|
2426
2448
|
children: [
|
|
2427
|
-
head(
|
|
2449
|
+
head(countOfTab(tab)),
|
|
2428
2450
|
tabs.length > 1 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2429
2451
|
className: SkillPlazaSection_module_css_default.tabs,
|
|
2430
2452
|
role: "tablist",
|
|
@@ -2436,55 +2458,51 @@ window.__ModuleLoader__.load({
|
|
|
2436
2458
|
className: tab === item ? SkillPlazaSection_module_css_default.tab + " " + SkillPlazaSection_module_css_default.tabActive : SkillPlazaSection_module_css_default.tab,
|
|
2437
2459
|
onClick: () => {
|
|
2438
2460
|
setTab(item);
|
|
2439
|
-
load({
|
|
2440
|
-
tab: item,
|
|
2441
|
-
tag,
|
|
2442
|
-
query
|
|
2443
|
-
});
|
|
2444
2461
|
},
|
|
2445
2462
|
children: [tabLabel(item), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2446
2463
|
className: SkillPlazaSection_module_css_default.tabCount,
|
|
2447
|
-
children:
|
|
2464
|
+
children: countOfTab(item)
|
|
2448
2465
|
})]
|
|
2449
2466
|
}, item))
|
|
2450
2467
|
}) : null,
|
|
2451
|
-
|
|
2452
|
-
className: SkillPlazaSection_module_css_default.
|
|
2453
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
type: "button",
|
|
2463
|
-
className: tag === item ? SkillPlazaSection_module_css_default.chip + " " + SkillPlazaSection_module_css_default.chipOn : SkillPlazaSection_module_css_default.chip,
|
|
2464
|
-
onClick: () => {
|
|
2465
|
-
setTag(item);
|
|
2466
|
-
refresh(tab, item);
|
|
2468
|
+
tab === "department" && departmentOptions.length > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
2469
|
+
className: SkillPlazaSection_module_css_default.departmentBar,
|
|
2470
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2471
|
+
className: SkillPlazaSection_module_css_default.departmentLabel,
|
|
2472
|
+
children: t("plazaDepartment")
|
|
2473
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
2474
|
+
className: SkillPlazaSection_module_css_default.departmentSelect,
|
|
2475
|
+
value: selectedDepartment,
|
|
2476
|
+
"aria-label": t("plazaDepartment"),
|
|
2477
|
+
onChange: (event) => {
|
|
2478
|
+
setDepartment(event.target.value);
|
|
2467
2479
|
},
|
|
2468
|
-
children:
|
|
2469
|
-
|
|
2470
|
-
|
|
2480
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
2481
|
+
value: "",
|
|
2482
|
+
children: t("plazaDepartmentAll")
|
|
2483
|
+
}), departmentOptions.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
2484
|
+
value: option.code,
|
|
2485
|
+
children: option.name
|
|
2486
|
+
}, option.code))]
|
|
2487
|
+
})]
|
|
2488
|
+
}) : null,
|
|
2471
2489
|
notice === null ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2472
2490
|
className: SkillPlazaSection_module_css_default.notice,
|
|
2473
2491
|
children: notice
|
|
2474
2492
|
}),
|
|
2475
|
-
|
|
2493
|
+
visibleSkills.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2476
2494
|
className: SkillPlazaSection_module_css_default.empty,
|
|
2477
2495
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2478
2496
|
className: SkillPlazaSection_module_css_default.emptyIcon,
|
|
2479
2497
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconShareOutlineRegular, { size: 28 })
|
|
2480
2498
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2481
2499
|
className: SkillPlazaSection_module_css_default.emptyText,
|
|
2482
|
-
children: tab === "pending" ? t("plazaPendingEmpty") : t("plazaEmpty")
|
|
2500
|
+
children: tab === "department" ? t("plazaDepartmentEmpty") : tab === "pending" ? t("plazaPendingEmpty") : t("plazaEmpty")
|
|
2483
2501
|
})]
|
|
2484
2502
|
}) : null,
|
|
2485
2503
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
2486
2504
|
className: SkillPlazaSection_module_css_default.cards,
|
|
2487
|
-
children:
|
|
2505
|
+
children: visibleSkills.map((skill) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PlazaCard, {
|
|
2488
2506
|
skill,
|
|
2489
2507
|
busy,
|
|
2490
2508
|
canAudit: allowed,
|
|
@@ -2627,19 +2645,19 @@ window.__ModuleLoader__.load({
|
|
|
2627
2645
|
document.head.appendChild(tag);
|
|
2628
2646
|
}
|
|
2629
2647
|
var WanxiangBrand_module_css_default = {
|
|
2630
|
-
"
|
|
2631
|
-
"unitCore": "s0HPxG_unitCore",
|
|
2632
|
-
"animatedMark": "s0HPxG_animatedMark",
|
|
2633
|
-
"wordmark": "s0HPxG_wordmark",
|
|
2648
|
+
"mark": "s0HPxG_mark",
|
|
2634
2649
|
"unit-left": "s0HPxG_unit-left",
|
|
2650
|
+
"harness": "s0HPxG_harness",
|
|
2651
|
+
"unitTop": "s0HPxG_unitTop",
|
|
2652
|
+
"sidebarName": "s0HPxG_sidebarName",
|
|
2653
|
+
"wordmark": "s0HPxG_wordmark",
|
|
2635
2654
|
"unitLeft": "s0HPxG_unitLeft",
|
|
2655
|
+
"unitCore": "s0HPxG_unitCore",
|
|
2656
|
+
"unitRight": "s0HPxG_unitRight",
|
|
2636
2657
|
"unit-top": "s0HPxG_unit-top",
|
|
2658
|
+
"unit-right": "s0HPxG_unit-right",
|
|
2637
2659
|
"unit-core": "s0HPxG_unit-core",
|
|
2638
|
-
"
|
|
2639
|
-
"mark": "s0HPxG_mark",
|
|
2640
|
-
"unitTop": "s0HPxG_unitTop",
|
|
2641
|
-
"harness": "s0HPxG_harness",
|
|
2642
|
-
"unit-right": "s0HPxG_unit-right"
|
|
2660
|
+
"animatedMark": "s0HPxG_animatedMark"
|
|
2643
2661
|
};
|
|
2644
2662
|
//#endregion
|
|
2645
2663
|
//#region src/client/WanxiangBrand.tsx
|
|
@@ -2886,11 +2904,9 @@ window.__ModuleLoader__.load({
|
|
|
2886
2904
|
* signed in any more. This prompt names that state once, with the one action that clears it.
|
|
2887
2905
|
*
|
|
2888
2906
|
* It reports and nothing more. It does not retry, expire, or re-authenticate — the portal owns
|
|
2889
|
-
* the login form and is the only thing that can issue a session.
|
|
2890
|
-
*
|
|
2891
|
-
*
|
|
2892
|
-
* URL from inside here would open the wrong page on some deployments, so the dialog tells the
|
|
2893
|
-
* operator which window to switch to instead of pretending it can take them.
|
|
2907
|
+
* the login form and is the only thing that can issue a session. Its action navigates the parent
|
|
2908
|
+
* portal when the frame's ancestor origin is known, and opens the portal separately when the
|
|
2909
|
+
* browser blocks top-level navigation from the frame.
|
|
2894
2910
|
*
|
|
2895
2911
|
* @module ReloginPrompt
|
|
2896
2912
|
*/
|
|
@@ -2959,7 +2975,19 @@ window.__ModuleLoader__.load({
|
|
|
2959
2975
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
2960
2976
|
variant: "primary",
|
|
2961
2977
|
onClick: () => {
|
|
2962
|
-
window.location.
|
|
2978
|
+
const portalOrigin = window.location.ancestorOrigins?.[0] ?? (document.referrer === "" ? void 0 : new URL(document.referrer).origin);
|
|
2979
|
+
if (portalOrigin === void 0 || portalOrigin === window.location.origin) {
|
|
2980
|
+
window.location.reload();
|
|
2981
|
+
return;
|
|
2982
|
+
}
|
|
2983
|
+
const portalUrl = `${portalOrigin}/`;
|
|
2984
|
+
try {
|
|
2985
|
+
if (window.top !== null && window.top !== window) {
|
|
2986
|
+
window.top.location.href = portalUrl;
|
|
2987
|
+
return;
|
|
2988
|
+
}
|
|
2989
|
+
} catch {}
|
|
2990
|
+
window.open(portalUrl, "_blank", "noopener");
|
|
2963
2991
|
},
|
|
2964
2992
|
children: t("reloginAction")
|
|
2965
2993
|
})] })
|
|
@@ -3046,72 +3074,72 @@ window.__ModuleLoader__.load({
|
|
|
3046
3074
|
document.head.appendChild(tag);
|
|
3047
3075
|
}
|
|
3048
3076
|
var PermissionCenterSection_module_css_default = {
|
|
3049
|
-
"
|
|
3050
|
-
"
|
|
3051
|
-
"
|
|
3052
|
-
"
|
|
3053
|
-
"protected": "PNbOqW_protected",
|
|
3054
|
-
"matrixNote": "PNbOqW_matrixNote",
|
|
3055
|
-
"dialogHint": "PNbOqW_dialogHint",
|
|
3056
|
-
"pager": "PNbOqW_pager",
|
|
3057
|
-
"tabs": "PNbOqW_tabs",
|
|
3058
|
-
"permCopy": "PNbOqW_permCopy",
|
|
3059
|
-
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
3060
|
-
"error": "PNbOqW_error",
|
|
3061
|
-
"dialog": "PNbOqW_dialog",
|
|
3062
|
-
"treeSpacer": "PNbOqW_treeSpacer",
|
|
3077
|
+
"candidates": "PNbOqW_candidates",
|
|
3078
|
+
"waiting": "PNbOqW_waiting",
|
|
3079
|
+
"onlyAdmin": "PNbOqW_onlyAdmin",
|
|
3080
|
+
"comboboxList": "PNbOqW_comboboxList",
|
|
3063
3081
|
"matrixPermission": "PNbOqW_matrixPermission",
|
|
3064
|
-
"
|
|
3065
|
-
"
|
|
3082
|
+
"comboboxOption": "PNbOqW_comboboxOption",
|
|
3083
|
+
"departments": "PNbOqW_departments",
|
|
3084
|
+
"permCopy": "PNbOqW_permCopy",
|
|
3066
3085
|
"tab": "PNbOqW_tab",
|
|
3067
|
-
"
|
|
3068
|
-
"
|
|
3086
|
+
"treeName": "PNbOqW_treeName",
|
|
3087
|
+
"treeRow": "PNbOqW_treeRow",
|
|
3088
|
+
"combobox": "PNbOqW_combobox",
|
|
3089
|
+
"sectionTitle": "PNbOqW_sectionTitle",
|
|
3090
|
+
"scopeBadge": "PNbOqW_scopeBadge",
|
|
3091
|
+
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
3092
|
+
"table": "PNbOqW_table",
|
|
3093
|
+
"dialogHint": "PNbOqW_dialogHint",
|
|
3094
|
+
"rowActions": "PNbOqW_rowActions",
|
|
3095
|
+
"matrixModule": "PNbOqW_matrixModule",
|
|
3096
|
+
"panel": "PNbOqW_panel",
|
|
3069
3097
|
"department": "PNbOqW_department",
|
|
3070
|
-
"
|
|
3098
|
+
"matrix": "PNbOqW_matrix",
|
|
3071
3099
|
"tabActive": "PNbOqW_tabActive",
|
|
3072
|
-
"
|
|
3073
|
-
"
|
|
3074
|
-
"
|
|
3075
|
-
"
|
|
3076
|
-
"
|
|
3077
|
-
"
|
|
3100
|
+
"notice": "PNbOqW_notice",
|
|
3101
|
+
"dialogBody": "PNbOqW_dialogBody",
|
|
3102
|
+
"dialog": "PNbOqW_dialog",
|
|
3103
|
+
"subtitle": "PNbOqW_subtitle",
|
|
3104
|
+
"comboboxEmpty": "PNbOqW_comboboxEmpty",
|
|
3105
|
+
"detailGrid": "PNbOqW_detailGrid",
|
|
3106
|
+
"copied": "PNbOqW_copied",
|
|
3107
|
+
"adminTag": "PNbOqW_adminTag",
|
|
3108
|
+
"treeChildren": "PNbOqW_treeChildren",
|
|
3109
|
+
"matrixNote": "PNbOqW_matrixNote",
|
|
3110
|
+
"panelHead": "PNbOqW_panelHead",
|
|
3078
3111
|
"treeToggle": "PNbOqW_treeToggle",
|
|
3079
|
-
"dialogFooter": "PNbOqW_dialogFooter",
|
|
3080
|
-
"candidate": "PNbOqW_candidate",
|
|
3081
3112
|
"empty": "PNbOqW_empty",
|
|
3082
|
-
"
|
|
3083
|
-
"
|
|
3084
|
-
"
|
|
3085
|
-
"
|
|
3086
|
-
"
|
|
3087
|
-
"
|
|
3113
|
+
"comboboxCheck": "PNbOqW_comboboxCheck",
|
|
3114
|
+
"muted": "PNbOqW_muted",
|
|
3115
|
+
"page": "PNbOqW_page",
|
|
3116
|
+
"matrixGroup": "PNbOqW_matrixGroup",
|
|
3117
|
+
"tableScroll": "PNbOqW_tableScroll",
|
|
3118
|
+
"treeRoot": "PNbOqW_treeRoot",
|
|
3119
|
+
"comboboxOptionActive": "PNbOqW_comboboxOptionActive",
|
|
3120
|
+
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
3088
3121
|
"field": "PNbOqW_field",
|
|
3089
|
-
"
|
|
3122
|
+
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
3123
|
+
"tabs": "PNbOqW_tabs",
|
|
3090
3124
|
"demo": "PNbOqW_demo",
|
|
3125
|
+
"panelFoot": "PNbOqW_panelFoot",
|
|
3126
|
+
"pager": "PNbOqW_pager",
|
|
3127
|
+
"protected": "PNbOqW_protected",
|
|
3128
|
+
"permission": "PNbOqW_permission",
|
|
3091
3129
|
"title": "PNbOqW_title",
|
|
3092
|
-
"
|
|
3093
|
-
"
|
|
3094
|
-
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
3095
|
-
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
3096
|
-
"comboboxCheck": "PNbOqW_comboboxCheck",
|
|
3097
|
-
"scopeBadge": "PNbOqW_scopeBadge",
|
|
3098
|
-
"comboboxEmpty": "PNbOqW_comboboxEmpty",
|
|
3099
|
-
"treeName": "PNbOqW_treeName",
|
|
3100
|
-
"panelHead": "PNbOqW_panelHead",
|
|
3101
|
-
"rowActions": "PNbOqW_rowActions",
|
|
3130
|
+
"treeActions": "PNbOqW_treeActions",
|
|
3131
|
+
"error": "PNbOqW_error",
|
|
3102
3132
|
"deptAdmins": "PNbOqW_deptAdmins",
|
|
3103
|
-
"
|
|
3104
|
-
"
|
|
3105
|
-
"tableScroll": "PNbOqW_tableScroll",
|
|
3106
|
-
"muted": "PNbOqW_muted",
|
|
3133
|
+
"comboboxHint": "PNbOqW_comboboxHint",
|
|
3134
|
+
"candidate": "PNbOqW_candidate",
|
|
3107
3135
|
"search": "PNbOqW_search",
|
|
3108
|
-
"
|
|
3109
|
-
"
|
|
3110
|
-
"notice": "PNbOqW_notice",
|
|
3111
|
-
"dialogBody": "PNbOqW_dialogBody",
|
|
3112
|
-
"head": "PNbOqW_head",
|
|
3136
|
+
"readOnly": "PNbOqW_readOnly",
|
|
3137
|
+
"permDescription": "PNbOqW_permDescription",
|
|
3113
3138
|
"matrixScroll": "PNbOqW_matrixScroll",
|
|
3114
|
-
"
|
|
3139
|
+
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
3140
|
+
"dialogFooter": "PNbOqW_dialogFooter",
|
|
3141
|
+
"head": "PNbOqW_head",
|
|
3142
|
+
"treeSpacer": "PNbOqW_treeSpacer"
|
|
3115
3143
|
};
|
|
3116
3144
|
//#endregion
|
|
3117
3145
|
//#region src/client/combobox.ts
|
|
@@ -4540,18 +4568,18 @@ window.__ModuleLoader__.load({
|
|
|
4540
4568
|
document.head.appendChild(tag);
|
|
4541
4569
|
}
|
|
4542
4570
|
var WorkspaceUpgradePrompt_module_css_default = {
|
|
4543
|
-
"
|
|
4571
|
+
"dialogText": "razUfG_dialogText",
|
|
4544
4572
|
"banner": "razUfG_banner",
|
|
4573
|
+
"body": "razUfG_body",
|
|
4545
4574
|
"copy": "razUfG_copy",
|
|
4546
|
-
"
|
|
4575
|
+
"sessionPath": "razUfG_sessionPath",
|
|
4576
|
+
"title": "razUfG_title",
|
|
4547
4577
|
"sessionRow": "razUfG_sessionRow",
|
|
4548
|
-
"dialogText": "razUfG_dialogText",
|
|
4549
4578
|
"sessionTitle": "razUfG_sessionTitle",
|
|
4550
|
-
"
|
|
4579
|
+
"dialogBody": "razUfG_dialogBody",
|
|
4551
4580
|
"sessionList": "razUfG_sessionList",
|
|
4552
4581
|
"error": "razUfG_error",
|
|
4553
|
-
"
|
|
4554
|
-
"body": "razUfG_body"
|
|
4582
|
+
"actions": "razUfG_actions"
|
|
4555
4583
|
};
|
|
4556
4584
|
//#endregion
|
|
4557
4585
|
//#region src/client/WorkspaceUpgradePrompt.tsx
|
|
@@ -4730,10 +4758,10 @@ window.__ModuleLoader__.load({
|
|
|
4730
4758
|
//#region src/client/locales.ts
|
|
4731
4759
|
/** English managed DataOps Settings copy. */
|
|
4732
4760
|
const en = {
|
|
4733
|
-
nav: "
|
|
4734
|
-
title: "
|
|
4735
|
-
managed: "Connected to
|
|
4736
|
-
unavailable: "
|
|
4761
|
+
nav: "万相AI中台",
|
|
4762
|
+
title: "万相AI中台",
|
|
4763
|
+
managed: "Connected to 万相AI中台",
|
|
4764
|
+
unavailable: "万相AI中台 is not connected.",
|
|
4737
4765
|
loadFailed: "Loading failed. Try again.",
|
|
4738
4766
|
brandingTitle: "Wanxiang branding",
|
|
4739
4767
|
brandingToggle: "Wanxiang branding",
|
|
@@ -4743,7 +4771,7 @@ window.__ModuleLoader__.load({
|
|
|
4743
4771
|
limitsInvalid: "Enter a size in MiB.",
|
|
4744
4772
|
limitsSave: "Save",
|
|
4745
4773
|
limitsSaving: "Saving…",
|
|
4746
|
-
timeoutTitle: "
|
|
4774
|
+
timeoutTitle: "万相AI中台 query timeout",
|
|
4747
4775
|
timeoutLabel: "Longest single query (seconds)",
|
|
4748
4776
|
timeoutInvalid: "Enter 1 to 3600 seconds.",
|
|
4749
4777
|
defaultsTitle: "Default configuration",
|
|
@@ -4753,7 +4781,6 @@ window.__ModuleLoader__.load({
|
|
|
4753
4781
|
defaultsNeverPublished: "Not published yet",
|
|
4754
4782
|
defaultsNotAdmin: "Administrators only",
|
|
4755
4783
|
plazaTitle: "Skill plaza",
|
|
4756
|
-
plazaAllTags: "All tags",
|
|
4757
4784
|
plazaMine: "Shared by me",
|
|
4758
4785
|
plazaShowDetail: "Details",
|
|
4759
4786
|
plazaClose: "Close",
|
|
@@ -4764,7 +4791,7 @@ window.__ModuleLoader__.load({
|
|
|
4764
4791
|
plazaUnshare: "Stop sharing",
|
|
4765
4792
|
plazaUnshared: "Removed from the plaza. Users who installed it keep their copy.",
|
|
4766
4793
|
plazaEmpty: "No skills have been shared yet.",
|
|
4767
|
-
plazaUnavailable: "The skill plaza is available once this workspace is connected to
|
|
4794
|
+
plazaUnavailable: "The skill plaza is available once this workspace is connected to 万相AI中台.",
|
|
4768
4795
|
plazaLoadFailed: "The skill plaza could not be loaded. Try again.",
|
|
4769
4796
|
plazaActionFailed: "The action could not be completed. Try again.",
|
|
4770
4797
|
plazaRetry: "Try again",
|
|
@@ -4772,6 +4799,10 @@ window.__ModuleLoader__.load({
|
|
|
4772
4799
|
plazaTabApproved: "Approved",
|
|
4773
4800
|
plazaTabPending: "Pending",
|
|
4774
4801
|
plazaTabAll: "All",
|
|
4802
|
+
plazaTabDepartment: "Department",
|
|
4803
|
+
plazaDepartment: "Department",
|
|
4804
|
+
plazaDepartmentAll: "All departments",
|
|
4805
|
+
plazaDepartmentEmpty: "No department-shared skills yet.",
|
|
4775
4806
|
plazaSharedTag: "Shared",
|
|
4776
4807
|
plazaReview: "Review",
|
|
4777
4808
|
plazaPendingEmpty: "No skills are waiting for review.",
|
|
@@ -4853,9 +4884,9 @@ window.__ModuleLoader__.load({
|
|
|
4853
4884
|
permStatusApproved: "Approved",
|
|
4854
4885
|
permStatusRejected: "Rejected",
|
|
4855
4886
|
permDemo: "Demo data",
|
|
4856
|
-
reloginTitle: "Sign in to
|
|
4857
|
-
reloginBody: "
|
|
4858
|
-
reloginAction: "
|
|
4887
|
+
reloginTitle: "Sign in to 万相AI中台 again",
|
|
4888
|
+
reloginBody: "Please sign in again.",
|
|
4889
|
+
reloginAction: "Sign in again",
|
|
4859
4890
|
reloginDismiss: "Later",
|
|
4860
4891
|
upgradeAvailableTitle: "A new workspace version is available",
|
|
4861
4892
|
upgradeAvailableBody: "Restart the workspace to apply it.",
|
|
@@ -4874,10 +4905,10 @@ window.__ModuleLoader__.load({
|
|
|
4874
4905
|
};
|
|
4875
4906
|
/** Chinese managed DataOps Settings copy. */
|
|
4876
4907
|
const zh = {
|
|
4877
|
-
nav: "
|
|
4878
|
-
title: "
|
|
4879
|
-
managed: "已连接
|
|
4880
|
-
unavailable: "未连接
|
|
4908
|
+
nav: "万相AI中台",
|
|
4909
|
+
title: "万相AI中台",
|
|
4910
|
+
managed: "已连接 万相AI中台",
|
|
4911
|
+
unavailable: "未连接 万相AI中台。",
|
|
4881
4912
|
loadFailed: "加载失败,请重试。",
|
|
4882
4913
|
brandingTitle: "应用万相品牌",
|
|
4883
4914
|
brandingToggle: "应用万相品牌",
|
|
@@ -4886,7 +4917,7 @@ window.__ModuleLoader__.load({
|
|
|
4886
4917
|
limitsUploadLabel: "最大上传文件(MiB)",
|
|
4887
4918
|
limitsInvalid: "请输入以 MiB 为单位的大小。",
|
|
4888
4919
|
limitsSave: "保存",
|
|
4889
|
-
timeoutTitle: "
|
|
4920
|
+
timeoutTitle: "万相AI中台查询超时",
|
|
4890
4921
|
timeoutLabel: "单次查询上限(秒)",
|
|
4891
4922
|
timeoutInvalid: "请输入 1 到 3600 秒。",
|
|
4892
4923
|
limitsSaving: "保存中…",
|
|
@@ -4897,7 +4928,6 @@ window.__ModuleLoader__.load({
|
|
|
4897
4928
|
defaultsNeverPublished: "尚未发布",
|
|
4898
4929
|
defaultsNotAdmin: "仅管理员可发布",
|
|
4899
4930
|
plazaTitle: "技能广场",
|
|
4900
|
-
plazaAllTags: "全部标签",
|
|
4901
4931
|
plazaMine: "我共享的",
|
|
4902
4932
|
plazaShowDetail: "详情",
|
|
4903
4933
|
plazaClose: "关闭",
|
|
@@ -4908,7 +4938,7 @@ window.__ModuleLoader__.load({
|
|
|
4908
4938
|
plazaUnshare: "取消共享",
|
|
4909
4939
|
plazaUnshared: "已从广场移除;已装载的用户保留其副本。",
|
|
4910
4940
|
plazaEmpty: "还没有人共享技能。",
|
|
4911
|
-
plazaUnavailable: "
|
|
4941
|
+
plazaUnavailable: "工作区接入万相AI中台后即可使用技能广场。",
|
|
4912
4942
|
plazaLoadFailed: "技能广场加载失败,请重试。",
|
|
4913
4943
|
plazaActionFailed: "操作未完成,请重试。",
|
|
4914
4944
|
plazaRetry: "重试",
|
|
@@ -4916,6 +4946,10 @@ window.__ModuleLoader__.load({
|
|
|
4916
4946
|
plazaTabApproved: "已审核",
|
|
4917
4947
|
plazaTabPending: "未审核",
|
|
4918
4948
|
plazaTabAll: "全部",
|
|
4949
|
+
plazaTabDepartment: "部门",
|
|
4950
|
+
plazaDepartment: "部门",
|
|
4951
|
+
plazaDepartmentAll: "全部部门",
|
|
4952
|
+
plazaDepartmentEmpty: "暂无部门上架的技能。",
|
|
4919
4953
|
plazaSharedTag: "已共享",
|
|
4920
4954
|
plazaReview: "审核",
|
|
4921
4955
|
plazaPendingEmpty: "没有待审核的技能。",
|
|
@@ -4997,9 +5031,9 @@ window.__ModuleLoader__.load({
|
|
|
4997
5031
|
permStatusApproved: "已审核",
|
|
4998
5032
|
permStatusRejected: "已拒绝",
|
|
4999
5033
|
permDemo: "演示数据",
|
|
5000
|
-
reloginTitle: "
|
|
5001
|
-
reloginBody: "
|
|
5002
|
-
reloginAction: "
|
|
5034
|
+
reloginTitle: "请重新登录万相AI中台",
|
|
5035
|
+
reloginBody: "请重新登录",
|
|
5036
|
+
reloginAction: "重新登录",
|
|
5003
5037
|
reloginDismiss: "稍后再说",
|
|
5004
5038
|
upgradeAvailableTitle: "工作区有新版本可用",
|
|
5005
5039
|
upgradeAvailableBody: "重启工作区后生效。",
|