mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-28 19:01:34 +00:00
refactor: extract the dialogs surface styles (#266 slice 2/5)
271 блок диалогов/форм/кнопок/пикеров → src/styles/dialogs.styles.ts, склейка [inline, chrome, dialogs]. Контрактные тесты, которые греппят CSS-исходник, переведены на хелпер readAllStylesSource (styles.ts + все импортированные файлы поверхностей) — greps видят весь лист на любом состоянии сплита. Refactor-proof diff пуст; golden 129/129; npm test 1315/0. Issue: #266 User-Visible: no
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import { readAllStylesSource } from './styles-source.mjs';
|
||||
|
||||
const card = fs.readFileSync(new URL('../src/houseplan-card.ts', import.meta.url), 'utf8');
|
||||
const resize = fs.readFileSync(new URL('../src/resize.ts', import.meta.url), 'utf8');
|
||||
const styles = fs.readFileSync(new URL('../src/styles.ts', import.meta.url), 'utf8');
|
||||
const styles = readAllStylesSource();
|
||||
const en = JSON.parse(fs.readFileSync(new URL('../src/i18n/en.json', import.meta.url), 'utf8'));
|
||||
const ru = JSON.parse(fs.readFileSync(new URL('../src/i18n/ru.json', import.meta.url), 'utf8'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user