openyida 2026.5.21 → 2026.5.25
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 +5 -1
- package/bin/yida.js +7 -1
- package/lib/app/app-list.js +20 -1
- package/lib/app/check-page.js +2 -2
- package/lib/app/compile.js +3 -2
- package/lib/app/externalize-form.js +642 -0
- package/lib/app/import-app.js +39 -11
- package/lib/app/page-compat.js +258 -2
- package/lib/app/page-compiler.js +4 -1
- package/lib/app/page-linter.js +271 -0
- package/lib/app/publish.js +3 -2
- package/lib/auth/cdp-browser-login.js +7 -3
- package/lib/auth/login.js +2 -3
- package/lib/core/command-manifest.js +3 -0
- package/lib/core/copy.js +50 -8
- package/lib/core/env-manager.js +24 -16
- package/lib/core/locales/ar.js +7 -0
- package/lib/core/locales/de.js +7 -0
- package/lib/core/locales/en.js +7 -0
- package/lib/core/locales/es.js +7 -0
- package/lib/core/locales/fr.js +7 -0
- package/lib/core/locales/hi.js +7 -0
- package/lib/core/locales/ja.js +7 -0
- package/lib/core/locales/ko.js +7 -0
- package/lib/core/locales/pt.js +7 -0
- package/lib/core/locales/vi.js +7 -0
- package/lib/core/locales/zh-HK.js +7 -0
- package/lib/core/locales/zh.js +7 -0
- package/lib/core/utils.js +2 -2
- package/lib/process/configure-process.js +552 -20
- package/package.json +1 -1
- package/project/pages/src/demo-agent-chatbox.oyd.jsx +78 -3
- package/scripts/e2e-real/full-runner.js +257 -8
- package/scripts/e2e-real/skill-coverage.js +2 -2
- package/yida-skills/SKILL.md +1 -1
- package/yida-skills/skills/yida-chart/SKILL.md +1 -1
- package/yida-skills/skills/yida-create-process/SKILL.md +3 -2
- package/yida-skills/skills/yida-custom-page/SKILL.md +7 -2
- package/yida-skills/skills/yida-custom-page/examples/attachment-upload.js +14 -12
- package/yida-skills/skills/yida-custom-page/references/attachment-upload-guide.md +3 -1
- package/yida-skills/skills/yida-custom-page/references/coding-guide.md +4 -0
- package/yida-skills/skills/yida-custom-page/references/component-jsx-guide.md +31 -22
- package/yida-skills/skills/yida-dashboard/SKILL.md +10 -9
- package/yida-skills/skills/yida-dashboard/references/interaction-patterns.md +2 -0
- package/yida-skills/skills/yida-dashboard/references/pitfalls.md +13 -4
- package/yida-skills/skills/yida-dashboard/references/structure-and-layout.md +1 -1
- package/yida-skills/skills/yida-ppt-slider/SKILL.md +47 -37
- package/yida-skills/skills/yida-ppt-slider/references/examples.md +5 -4
- package/yida-skills/skills/yida-process-rule/SKILL.md +93 -3
- package/yida-skills/skills/yida-process-rule/references/official-component-nodes.md +93 -0
- package/yida-skills/skills/yida-publish-page/SKILL.md +6 -4
package/lib/core/locales/es.js
CHANGED
|
@@ -53,6 +53,7 @@ module.exports = {
|
|
|
53
53
|
cmd_verify_url: 'Verificar URL corta',
|
|
54
54
|
cmd_save_share: 'Guardar configuración de acceso público / compartir',
|
|
55
55
|
cmd_get_page_config: 'Consultar configuración de acceso público',
|
|
56
|
+
cmd_externalize_form: 'Plan external access-safe mirror fields',
|
|
56
57
|
group_report: 'Informes',
|
|
57
58
|
cmd_create_report: 'Crear informe Yida',
|
|
58
59
|
cmd_append_chart: 'Agregar gráfico a informe existente',
|
|
@@ -451,6 +452,12 @@ module.exports = {
|
|
|
451
452
|
lint_jsx_extension: 'This .js file contains JSX; prefer .jsx for source files. The compiled output is still .js',
|
|
452
453
|
lint_event_direct_method: 'Event binding passes this.xxx directly and will lose this; use (e) => { this.xxx(e); }',
|
|
453
454
|
lint_event_bind_this: 'Event binding uses .bind(this); use (e) => { this.xxx(e); } instead',
|
|
455
|
+
lint_lifecycle_case: 'Detected lifecycle export {0}; Yida only recognizes {1} (case-sensitive)',
|
|
456
|
+
lint_react_lifecycle_method: 'Detected React lifecycle {0}; export {1} for Yida custom pages',
|
|
457
|
+
lint_event_lowercase: 'Detected lowercase event prop {0}; React/Yida will not bind it. Use {1}',
|
|
458
|
+
lint_event_call_result: 'Event binding invokes a function or is not an expression handler; use (e) => { self.xxx(e); }',
|
|
459
|
+
lint_event_noop_arrow: 'Event arrow function references a handler without calling it; use (e) => { self.xxx(e); }',
|
|
460
|
+
lint_button_missing_handler: 'Visible <button> has no onClick/onMouseDown/onKeyDown or disabled state; bind an event handler or use span/div for static labels',
|
|
454
461
|
lint_array_callback_function: '.{0}(function ...) may lose this in callbacks; use .{0}((item) => ...) instead',
|
|
455
462
|
lint_foreach_callback_function: '.forEach(function ...) may lose this in callbacks; prefer .forEach((item) => ...)',
|
|
456
463
|
lint_controlled_input: 'input uses controlled value mode. Yida pages should use defaultValue + onChange to update _customState',
|
package/lib/core/locales/fr.js
CHANGED
|
@@ -53,6 +53,7 @@ module.exports = {
|
|
|
53
53
|
cmd_verify_url: 'Vérifier l\'URL courte',
|
|
54
54
|
cmd_save_share: 'Enregistrer la configuration d\'accès public / partage',
|
|
55
55
|
cmd_get_page_config: 'Consulter la configuration d\'accès public',
|
|
56
|
+
cmd_externalize_form: 'Plan external access-safe mirror fields',
|
|
56
57
|
group_report: 'Rapports',
|
|
57
58
|
cmd_create_report: 'Créer un rapport Yida',
|
|
58
59
|
cmd_append_chart: 'Ajouter un graphique à un rapport existant',
|
|
@@ -451,6 +452,12 @@ module.exports = {
|
|
|
451
452
|
lint_jsx_extension: 'This .js file contains JSX; prefer .jsx for source files. The compiled output is still .js',
|
|
452
453
|
lint_event_direct_method: 'Event binding passes this.xxx directly and will lose this; use (e) => { this.xxx(e); }',
|
|
453
454
|
lint_event_bind_this: 'Event binding uses .bind(this); use (e) => { this.xxx(e); } instead',
|
|
455
|
+
lint_lifecycle_case: 'Detected lifecycle export {0}; Yida only recognizes {1} (case-sensitive)',
|
|
456
|
+
lint_react_lifecycle_method: 'Detected React lifecycle {0}; export {1} for Yida custom pages',
|
|
457
|
+
lint_event_lowercase: 'Detected lowercase event prop {0}; React/Yida will not bind it. Use {1}',
|
|
458
|
+
lint_event_call_result: 'Event binding invokes a function or is not an expression handler; use (e) => { self.xxx(e); }',
|
|
459
|
+
lint_event_noop_arrow: 'Event arrow function references a handler without calling it; use (e) => { self.xxx(e); }',
|
|
460
|
+
lint_button_missing_handler: 'Visible <button> has no onClick/onMouseDown/onKeyDown or disabled state; bind an event handler or use span/div for static labels',
|
|
454
461
|
lint_array_callback_function: '.{0}(function ...) may lose this in callbacks; use .{0}((item) => ...) instead',
|
|
455
462
|
lint_foreach_callback_function: '.forEach(function ...) may lose this in callbacks; prefer .forEach((item) => ...)',
|
|
456
463
|
lint_controlled_input: 'input uses controlled value mode. Yida pages should use defaultValue + onChange to update _customState',
|
package/lib/core/locales/hi.js
CHANGED
|
@@ -53,6 +53,7 @@ module.exports = {
|
|
|
53
53
|
cmd_verify_url: 'शॉर्ट URL सत्यापित करें',
|
|
54
54
|
cmd_save_share: 'सार्वजनिक पहुंच / शेयर कॉन्फ़िगरेशन सहेजें',
|
|
55
55
|
cmd_get_page_config: 'पेज सार्वजनिक पहुंच कॉन्फ़िगरेशन पूछें',
|
|
56
|
+
cmd_externalize_form: 'Plan external access-safe mirror fields',
|
|
56
57
|
group_report: 'रिपोर्ट',
|
|
57
58
|
cmd_create_report: 'Yida रिपोर्ट बनाएं',
|
|
58
59
|
cmd_append_chart: 'मौजूदा रिपोर्ट में चार्ट जोड़ें',
|
|
@@ -451,6 +452,12 @@ module.exports = {
|
|
|
451
452
|
lint_jsx_extension: 'This .js file contains JSX; prefer .jsx for source files. The compiled output is still .js',
|
|
452
453
|
lint_event_direct_method: 'Event binding passes this.xxx directly and will lose this; use (e) => { this.xxx(e); }',
|
|
453
454
|
lint_event_bind_this: 'Event binding uses .bind(this); use (e) => { this.xxx(e); } instead',
|
|
455
|
+
lint_lifecycle_case: 'Detected lifecycle export {0}; Yida only recognizes {1} (case-sensitive)',
|
|
456
|
+
lint_react_lifecycle_method: 'Detected React lifecycle {0}; export {1} for Yida custom pages',
|
|
457
|
+
lint_event_lowercase: 'Detected lowercase event prop {0}; React/Yida will not bind it. Use {1}',
|
|
458
|
+
lint_event_call_result: 'Event binding invokes a function or is not an expression handler; use (e) => { self.xxx(e); }',
|
|
459
|
+
lint_event_noop_arrow: 'Event arrow function references a handler without calling it; use (e) => { self.xxx(e); }',
|
|
460
|
+
lint_button_missing_handler: 'Visible <button> has no onClick/onMouseDown/onKeyDown or disabled state; bind an event handler or use span/div for static labels',
|
|
454
461
|
lint_array_callback_function: '.{0}(function ...) may lose this in callbacks; use .{0}((item) => ...) instead',
|
|
455
462
|
lint_foreach_callback_function: '.forEach(function ...) may lose this in callbacks; prefer .forEach((item) => ...)',
|
|
456
463
|
lint_controlled_input: 'input uses controlled value mode. Yida pages should use defaultValue + onChange to update _customState',
|
package/lib/core/locales/ja.js
CHANGED
|
@@ -55,6 +55,7 @@ module.exports = {
|
|
|
55
55
|
cmd_verify_url: '短縮 URL を検証',
|
|
56
56
|
cmd_save_share: '公開アクセス / 共有設定を保存',
|
|
57
57
|
cmd_get_page_config: 'ページ公開アクセス設定を照会',
|
|
58
|
+
cmd_externalize_form: 'Plan external access-safe mirror fields',
|
|
58
59
|
group_report: 'レポート',
|
|
59
60
|
cmd_create_report: '宜搭レポートを作成',
|
|
60
61
|
cmd_append_chart: '既存レポートにチャートを追加',
|
|
@@ -871,6 +872,12 @@ openyida - Yida CLI ツール
|
|
|
871
872
|
lint_jsx_extension: 'This .js file contains JSX; prefer .jsx for source files. The compiled output is still .js',
|
|
872
873
|
lint_event_direct_method: 'Event binding passes this.xxx directly and will lose this; use (e) => { this.xxx(e); }',
|
|
873
874
|
lint_event_bind_this: 'Event binding uses .bind(this); use (e) => { this.xxx(e); } instead',
|
|
875
|
+
lint_lifecycle_case: 'Detected lifecycle export {0}; Yida only recognizes {1} (case-sensitive)',
|
|
876
|
+
lint_react_lifecycle_method: 'Detected React lifecycle {0}; export {1} for Yida custom pages',
|
|
877
|
+
lint_event_lowercase: 'Detected lowercase event prop {0}; React/Yida will not bind it. Use {1}',
|
|
878
|
+
lint_event_call_result: 'Event binding invokes a function or is not an expression handler; use (e) => { self.xxx(e); }',
|
|
879
|
+
lint_event_noop_arrow: 'Event arrow function references a handler without calling it; use (e) => { self.xxx(e); }',
|
|
880
|
+
lint_button_missing_handler: 'Visible <button> has no onClick/onMouseDown/onKeyDown or disabled state; bind an event handler or use span/div for static labels',
|
|
874
881
|
lint_array_callback_function: '.{0}(function ...) may lose this in callbacks; use .{0}((item) => ...) instead',
|
|
875
882
|
lint_foreach_callback_function: '.forEach(function ...) may lose this in callbacks; prefer .forEach((item) => ...)',
|
|
876
883
|
lint_controlled_input: 'input uses controlled value mode. Yida pages should use defaultValue + onChange to update _customState',
|
package/lib/core/locales/ko.js
CHANGED
|
@@ -53,6 +53,7 @@ module.exports = {
|
|
|
53
53
|
cmd_verify_url: '단축 URL 확인',
|
|
54
54
|
cmd_save_share: '공개 접근 / 공유 설정 저장',
|
|
55
55
|
cmd_get_page_config: '페이지 공개 접근 설정 조회',
|
|
56
|
+
cmd_externalize_form: 'Plan external access-safe mirror fields',
|
|
56
57
|
group_report: '보고서',
|
|
57
58
|
cmd_create_report: 'Yida 보고서 생성',
|
|
58
59
|
cmd_append_chart: '기존 보고서에 차트 추가',
|
|
@@ -453,6 +454,12 @@ module.exports = {
|
|
|
453
454
|
lint_jsx_extension: 'This .js file contains JSX; prefer .jsx for source files. The compiled output is still .js',
|
|
454
455
|
lint_event_direct_method: 'Event binding passes this.xxx directly and will lose this; use (e) => { this.xxx(e); }',
|
|
455
456
|
lint_event_bind_this: 'Event binding uses .bind(this); use (e) => { this.xxx(e); } instead',
|
|
457
|
+
lint_lifecycle_case: 'Detected lifecycle export {0}; Yida only recognizes {1} (case-sensitive)',
|
|
458
|
+
lint_react_lifecycle_method: 'Detected React lifecycle {0}; export {1} for Yida custom pages',
|
|
459
|
+
lint_event_lowercase: 'Detected lowercase event prop {0}; React/Yida will not bind it. Use {1}',
|
|
460
|
+
lint_event_call_result: 'Event binding invokes a function or is not an expression handler; use (e) => { self.xxx(e); }',
|
|
461
|
+
lint_event_noop_arrow: 'Event arrow function references a handler without calling it; use (e) => { self.xxx(e); }',
|
|
462
|
+
lint_button_missing_handler: 'Visible <button> has no onClick/onMouseDown/onKeyDown or disabled state; bind an event handler or use span/div for static labels',
|
|
456
463
|
lint_array_callback_function: '.{0}(function ...) may lose this in callbacks; use .{0}((item) => ...) instead',
|
|
457
464
|
lint_foreach_callback_function: '.forEach(function ...) may lose this in callbacks; prefer .forEach((item) => ...)',
|
|
458
465
|
lint_controlled_input: 'input uses controlled value mode. Yida pages should use defaultValue + onChange to update _customState',
|
package/lib/core/locales/pt.js
CHANGED
|
@@ -53,6 +53,7 @@ module.exports = {
|
|
|
53
53
|
cmd_verify_url: 'Verificar URL curta',
|
|
54
54
|
cmd_save_share: 'Salvar configuração de acesso público / compartilhamento',
|
|
55
55
|
cmd_get_page_config: 'Consultar configuração de acesso público',
|
|
56
|
+
cmd_externalize_form: 'Plan external access-safe mirror fields',
|
|
56
57
|
group_report: 'Relatórios',
|
|
57
58
|
cmd_create_report: 'Criar relatório Yida',
|
|
58
59
|
cmd_append_chart: 'Adicionar gráfico a relatório existente',
|
|
@@ -451,6 +452,12 @@ module.exports = {
|
|
|
451
452
|
lint_jsx_extension: 'This .js file contains JSX; prefer .jsx for source files. The compiled output is still .js',
|
|
452
453
|
lint_event_direct_method: 'Event binding passes this.xxx directly and will lose this; use (e) => { this.xxx(e); }',
|
|
453
454
|
lint_event_bind_this: 'Event binding uses .bind(this); use (e) => { this.xxx(e); } instead',
|
|
455
|
+
lint_lifecycle_case: 'Detected lifecycle export {0}; Yida only recognizes {1} (case-sensitive)',
|
|
456
|
+
lint_react_lifecycle_method: 'Detected React lifecycle {0}; export {1} for Yida custom pages',
|
|
457
|
+
lint_event_lowercase: 'Detected lowercase event prop {0}; React/Yida will not bind it. Use {1}',
|
|
458
|
+
lint_event_call_result: 'Event binding invokes a function or is not an expression handler; use (e) => { self.xxx(e); }',
|
|
459
|
+
lint_event_noop_arrow: 'Event arrow function references a handler without calling it; use (e) => { self.xxx(e); }',
|
|
460
|
+
lint_button_missing_handler: 'Visible <button> has no onClick/onMouseDown/onKeyDown or disabled state; bind an event handler or use span/div for static labels',
|
|
454
461
|
lint_array_callback_function: '.{0}(function ...) may lose this in callbacks; use .{0}((item) => ...) instead',
|
|
455
462
|
lint_foreach_callback_function: '.forEach(function ...) may lose this in callbacks; prefer .forEach((item) => ...)',
|
|
456
463
|
lint_controlled_input: 'input uses controlled value mode. Yida pages should use defaultValue + onChange to update _customState',
|
package/lib/core/locales/vi.js
CHANGED
|
@@ -53,6 +53,7 @@ module.exports = {
|
|
|
53
53
|
cmd_verify_url: 'Xác minh URL ngắn',
|
|
54
54
|
cmd_save_share: 'Lưu cấu hình truy cập công khai / chia sẻ',
|
|
55
55
|
cmd_get_page_config: 'Truy vấn cấu hình truy cập công khai',
|
|
56
|
+
cmd_externalize_form: 'Plan external access-safe mirror fields',
|
|
56
57
|
group_report: 'Báo cáo',
|
|
57
58
|
cmd_create_report: 'Tạo báo cáo Yida',
|
|
58
59
|
cmd_append_chart: 'Thêm biểu đồ vào báo cáo hiện có',
|
|
@@ -451,6 +452,12 @@ module.exports = {
|
|
|
451
452
|
lint_jsx_extension: 'This .js file contains JSX; prefer .jsx for source files. The compiled output is still .js',
|
|
452
453
|
lint_event_direct_method: 'Event binding passes this.xxx directly and will lose this; use (e) => { this.xxx(e); }',
|
|
453
454
|
lint_event_bind_this: 'Event binding uses .bind(this); use (e) => { this.xxx(e); } instead',
|
|
455
|
+
lint_lifecycle_case: 'Detected lifecycle export {0}; Yida only recognizes {1} (case-sensitive)',
|
|
456
|
+
lint_react_lifecycle_method: 'Detected React lifecycle {0}; export {1} for Yida custom pages',
|
|
457
|
+
lint_event_lowercase: 'Detected lowercase event prop {0}; React/Yida will not bind it. Use {1}',
|
|
458
|
+
lint_event_call_result: 'Event binding invokes a function or is not an expression handler; use (e) => { self.xxx(e); }',
|
|
459
|
+
lint_event_noop_arrow: 'Event arrow function references a handler without calling it; use (e) => { self.xxx(e); }',
|
|
460
|
+
lint_button_missing_handler: 'Visible <button> has no onClick/onMouseDown/onKeyDown or disabled state; bind an event handler or use span/div for static labels',
|
|
454
461
|
lint_array_callback_function: '.{0}(function ...) may lose this in callbacks; use .{0}((item) => ...) instead',
|
|
455
462
|
lint_foreach_callback_function: '.forEach(function ...) may lose this in callbacks; prefer .forEach((item) => ...)',
|
|
456
463
|
lint_controlled_input: 'input uses controlled value mode. Yida pages should use defaultValue + onChange to update _customState',
|
|
@@ -55,6 +55,7 @@ module.exports = {
|
|
|
55
55
|
cmd_verify_url: '驗證短連結 URL',
|
|
56
56
|
cmd_save_share: '儲存公開訪問 / 分享設定',
|
|
57
57
|
cmd_get_page_config: '查詢頁面公開訪問設定',
|
|
58
|
+
cmd_externalize_form: '生成外部開放安全評估和鏡像欄位方案',
|
|
58
59
|
group_report: '報表',
|
|
59
60
|
cmd_create_report: '建立宜搭報表',
|
|
60
61
|
cmd_append_chart: '向已有報表追加圖表',
|
|
@@ -782,6 +783,12 @@ openyida - 宜搭命令列工具
|
|
|
782
783
|
lint_jsx_extension: '目前文件是 .js 但包含 JSX,建議改為 .jsx,編譯產物仍會輸出 .js',
|
|
783
784
|
lint_event_direct_method: '事件綁定直接傳入 this.xxx,會導致 this 遺失;請使用 (e) => { this.xxx(e); }',
|
|
784
785
|
lint_event_bind_this: '事件綁定使用了 .bind(this),請改為 (e) => { this.xxx(e); }',
|
|
786
|
+
lint_lifecycle_case: '偵測到生命週期匯出 {0},宜搭只識別 {1}(大小寫敏感)',
|
|
787
|
+
lint_react_lifecycle_method: '偵測到 React 生命週期 {0},宜搭自訂頁面應匯出 {1}',
|
|
788
|
+
lint_event_lowercase: '偵測到小寫事件屬性 {0},React/Yida 不會綁定;請改為 {1}',
|
|
789
|
+
lint_event_call_result: '事件綁定執行了函式或不是表達式處理器;請改為 (e) => { self.xxx(e); }',
|
|
790
|
+
lint_event_noop_arrow: '事件箭頭函式只返回/引用了方法但沒有呼叫;請改為 (e) => { self.xxx(e); }',
|
|
791
|
+
lint_button_missing_handler: '可見 <button> 沒有 onClick/onMouseDown/onKeyDown 或 disabled,會顯示成按鈕但點了沒有反應;請綁定事件,或改用 span/div 展示靜態標籤',
|
|
785
792
|
lint_array_callback_function: '.{0}(function ...) 會導致回調內 this 遺失,請改為 .{0}((item) => ...)',
|
|
786
793
|
lint_foreach_callback_function: '.forEach(function ...) 可能導致回調內 this 遺失,建議改為 .forEach((item) => ...)',
|
|
787
794
|
lint_controlled_input: 'input 使用了 value 受控模式,宜搭頁面應使用 defaultValue + onChange 寫入 _customState',
|
package/lib/core/locales/zh.js
CHANGED
|
@@ -56,6 +56,7 @@ module.exports = {
|
|
|
56
56
|
cmd_verify_url: '验证短链接 URL',
|
|
57
57
|
cmd_save_share: '保存公开访问 / 分享配置',
|
|
58
58
|
cmd_get_page_config: '查询页面公开访问配置',
|
|
59
|
+
cmd_externalize_form: '生成外部开放安全评估和镜像字段方案',
|
|
59
60
|
group_report: '报表',
|
|
60
61
|
cmd_create_report: '创建宜搭报表',
|
|
61
62
|
cmd_append_chart: '向已有报表追加图表',
|
|
@@ -951,6 +952,12 @@ openyida - 宜搭命令行工具
|
|
|
951
952
|
lint_jsx_extension: '当前文件是 .js 但包含 JSX,建议改为 .jsx,编译产物仍会输出 .js',
|
|
952
953
|
lint_event_direct_method: '事件绑定直接传入 this.xxx,会导致 this 丢失;请使用 (e) => { this.xxx(e); }',
|
|
953
954
|
lint_event_bind_this: '事件绑定使用了 .bind(this),请改为 (e) => { this.xxx(e); }',
|
|
955
|
+
lint_lifecycle_case: '检测到生命周期导出 {0},宜搭只识别 {1}(大小写敏感)',
|
|
956
|
+
lint_react_lifecycle_method: '检测到 React 生命周期 {0},宜搭自定义页面应导出 {1}',
|
|
957
|
+
lint_event_lowercase: '检测到小写事件属性 {0},React/Yida 不会绑定;请改为 {1}',
|
|
958
|
+
lint_event_call_result: '事件绑定执行了函数或不是表达式处理器;请改为 (e) => { self.xxx(e); }',
|
|
959
|
+
lint_event_noop_arrow: '事件箭头函数只返回/引用了方法但没有调用;请改为 (e) => { self.xxx(e); }',
|
|
960
|
+
lint_button_missing_handler: '可见 <button> 没有 onClick/onMouseDown/onKeyDown 或 disabled,会显示成按钮但点了没有反应;请绑定事件,或改用 span/div 展示静态标签',
|
|
954
961
|
lint_array_callback_function: '.{0}(function ...) 会导致回调内 this 丢失,请改为 .{0}((item) => ...)',
|
|
955
962
|
lint_foreach_callback_function: '.forEach(function ...) 可能导致回调内 this 丢失,建议改为 .forEach((item) => ...)',
|
|
956
963
|
lint_controlled_input: 'input 使用了 value 受控模式,宜搭页面应使用 defaultValue + onChange 写入 _customState',
|
package/lib/core/utils.js
CHANGED
|
@@ -440,8 +440,8 @@ function isCsrfTokenExpired(responseJson) {
|
|
|
440
440
|
*
|
|
441
441
|
* 优先级(高 → 低):
|
|
442
442
|
* 1. OPENYIDA_ENDPOINT 环境变量
|
|
443
|
-
* 2.
|
|
444
|
-
* 3.
|
|
443
|
+
* 2. cookieData.base_url(登录后实际跳转域名)
|
|
444
|
+
* 3. 当前激活的私有化环境配置
|
|
445
445
|
* 4. 当前激活的环境配置(公有云默认)
|
|
446
446
|
* 5. defaultBaseUrl 参数 / 公有云兜底
|
|
447
447
|
*
|