mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-12 00:44:57 +03:00
chore(web-test): почистить устаревшие комментарии и неиспользуемые импорты
После полной чистки cycle-импортов в E.13 остались комментарии типа
"getFormState still in browser.mjs", которые больше не верны (он переехал
в engine/core/form-state.mjs). Сметаем устаревшие "moved to / lives in
browser.mjs" комментарии в 8 файлах.
Дополнительно в engine/table/spreadsheet.mjs:
- убраны неиспользуемые импорты readTableScript, resolveGridScript, normYo
(остались с тех пор, как readTable жил в этом файле — до этапа D.12
rename'а в grid.mjs)
- заголовочный комментарий обновлён (без упоминания readTable)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14,8 +14,7 @@ import { safeClick } from './helpers.mjs';
|
||||
import { getGridToggleIcon, shouldClickToggle } from '../table/grid-toggle.mjs';
|
||||
import {
|
||||
clickSpreadsheetCell, findSpreadsheetCellByText,
|
||||
} from '../table/spreadsheet.mjs';
|
||||
// getFormState still in browser.mjs.
|
||||
} from '../table/spreadsheet.mjs';
|
||||
|
||||
import { getFormState } from './form-state.mjs';
|
||||
|
||||
|
||||
@@ -13,8 +13,7 @@ import { highlight, unhighlight } from '../recording/highlight.mjs';
|
||||
import {
|
||||
fillReferenceField, selectValue, pickFromSelectionForm,
|
||||
isTypeDialog, pickFromTypeDialog,
|
||||
} from './select-value.mjs';
|
||||
// pasteText + getFormState live in browser.mjs.
|
||||
} from './select-value.mjs';
|
||||
|
||||
import { pasteText } from '../core/clipboard.mjs';
|
||||
import { getFormState } from '../core/form-state.mjs';
|
||||
|
||||
@@ -14,8 +14,7 @@ import { highlight, unhighlight } from '../recording/highlight.mjs';
|
||||
import {
|
||||
safeClick, findFieldInputId, readEdd,
|
||||
detectNewForm as helperDetectNewForm,
|
||||
} from '../core/helpers.mjs';
|
||||
// pasteText + getFormState live in browser.mjs.
|
||||
} from '../core/helpers.mjs';
|
||||
|
||||
import { pasteText } from '../core/clipboard.mjs';
|
||||
import { getFormState } from '../core/form-state.mjs';
|
||||
|
||||
@@ -12,8 +12,7 @@ import {
|
||||
import { dismissPendingErrors, checkForErrors } from '../core/errors.mjs';
|
||||
import { waitForStable, waitForCondition } from '../core/wait.mjs';
|
||||
import { highlight, unhighlight } from '../recording/highlight.mjs';
|
||||
import { returnFormState } from '../core/helpers.mjs';
|
||||
// pasteText + getFormState live in browser.mjs (move to forms/ in a later stage).
|
||||
import { returnFormState } from '../core/helpers.mjs';
|
||||
|
||||
// Static import — ESM cycle that resolves at call time.
|
||||
import { pasteText } from '../core/clipboard.mjs';
|
||||
|
||||
@@ -9,8 +9,7 @@ import {
|
||||
setRecorder, setLastCaptions, setLastRecordingDuration,
|
||||
resolveProjectPath, ensureConnected,
|
||||
} from '../core/state.mjs';
|
||||
import { resolveFfmpeg } from './tts.mjs';
|
||||
// getFormState lives in browser.mjs for now (moves to forms/ in a later stage).
|
||||
import { resolveFfmpeg } from './tts.mjs';
|
||||
|
||||
// Imported lazily inside wait() to avoid initialization-time circular deps.
|
||||
|
||||
|
||||
@@ -9,8 +9,7 @@ import { page, ensureConnected } from '../core/state.mjs';
|
||||
import { detectFormScript, readTableScript, resolveGridScript } from '../../dom.mjs';
|
||||
import { dismissPendingErrors } from '../core/errors.mjs';
|
||||
import { waitForStable } from '../core/wait.mjs';
|
||||
import { clickElement } from '../core/click.mjs';
|
||||
// getFormState lives in browser.mjs.
|
||||
import { clickElement } from '../core/click.mjs';
|
||||
|
||||
import { getFormState } from '../core/form-state.mjs';
|
||||
|
||||
|
||||
@@ -18,8 +18,7 @@ import { clickElement } from '../core/click.mjs';
|
||||
import {
|
||||
pickFromSelectionForm, isTypeDialog, pickFromTypeDialog,
|
||||
fillReferenceField, selectValue,
|
||||
} from '../forms/select-value.mjs';
|
||||
// pasteText + getFormState still in browser.mjs (cycle).
|
||||
} from '../forms/select-value.mjs';
|
||||
|
||||
import { pasteText } from '../core/clipboard.mjs';
|
||||
import { getFormState } from '../core/form-state.mjs';
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
// web-test table/spreadsheet v1.17 — readTable, readSpreadsheet, scanSpreadsheetCells, scroll/click helpers for SpreadsheetDocument.
|
||||
// web-test table/spreadsheet v1.17 — readSpreadsheet + helpers for SpreadsheetDocument (отчёты, печатные формы).
|
||||
// Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
|
||||
import { page, ensureConnected, normYo } from '../core/state.mjs';
|
||||
import { detectFormScript, readTableScript, resolveGridScript } from '../../dom.mjs';
|
||||
import { waitForStable } from '../core/wait.mjs';
|
||||
// getFormState still in browser.mjs (cycle resolves at call time).
|
||||
import { getFormState } from '../core/form-state.mjs';
|
||||
|
||||
// readTable moved to table/grid.mjs (form-grid операции отделены от SpreadsheetDocument).
|
||||
import { page, ensureConnected } from '../core/state.mjs';
|
||||
import { detectFormScript } from '../../dom.mjs';
|
||||
import { waitForStable } from '../core/wait.mjs';
|
||||
|
||||
import { getFormState } from '../core/form-state.mjs';
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user