Некодим логотипНекодим
МодификацииПубликацииНекодИИмЦены
Некодим логотипНекодим

© 2020-2026 Некодим

Готовые модификации для вашего сайта. Улучшайте функциональность и дизайн без программирования.

Компания

  • Контакты
  • Публичная оферта
  • Политика конфиденциальности
  • Согласие на обработку данных
  • Лицензионное соглашение
  • Реферальная программа

Полезное

  • Модификации
  • Публикации
  • Каталог блоков Tilda
  • MCP для агентов
  • Журнал изменений
  • Доска почёта

Личный кабинет

  • Вход
  • Регистрация
  • Цены
Журнал измененийИстория GitФайлыTilda MCP
Каталог файлов

tilda-catalog-1.2.js

Код файла
Версия от 05.12.2026, 07:01:02 МСК
Оригинал на CDNСнимок 56c3b845Полный текст
6101			// TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)6102			// @ts-expect-error ST-2949_56103			options.title_typo,6104			'js-catalog-title-typo-styles-' + recid6105		);6106		return;6107	}6108 6109	const productNameStyle = productName.getAttribute('style');6110	// TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)6111	// @ts-expect-error ST-2949_5
История файла и сравнение версий
  • 05.12.2026, 07:01:02 · 56c3b845
6112 productName.setAttribute('style', t_catalog_removeSizesFromStylesLine(productNameStyle));
6113
6114 if (bgColor) {
6115 // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538)
6116 // @ts-expect-error ST-2949_3
6117 const prodNameColor = options.typo.titleColor;
6118 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)
6119 // @ts-expect-error ST-2949_5
6120 t_catalog_applyContrastColorIfNecessary(productName, prodNameColor, bgColor);
6121 }
6122}
6123
6124/**
6125 * Устанавливает стили для слайдера "смотрите также"
6126 * @param {string} recid - ID записи
6127 * @param {CatalogOptions} options - Объект настроек
6128 */
6129function t_catalog_setRelevantsSliderStyles(recid, options) {
6130 if (!options.showRelevants) {
6131 return;
6132 }
6133
6134 if (options.title_typo) {
6135 t_catalog_parseTypoStylesConfig(
6136 recid,
6137 '.t-catalog__relevants__title',
6138 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)
6139 // @ts-expect-error ST-2949_5
6140 options.title_typo,
6141 'js-catalog-relevants-title-typo-styles-' + recid,
6142 {
6143 color: true,
6144 'font-size': true,
6145 'font-family': true,
6146 'line-height': true,
6147 'font-weight': true,
6148 'letter-spacing': true,
6149 opacity: true,
6150 'text-transform': true,
6151 'text-shadow': true,
6152 }
6153 );
6154
6155 t_catalog_parseTypoStylesConfig(
6156 recid,
6157 '.t-catalog__card__title',
6158 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)
6159 // @ts-expect-error ST-2949_5
6160 options.title_typo,
6161 'js-catalog-relevants-descr-typo-styles-' + recid
6162 );
6163 }
6164
6165 if (options.descr_typo) {
6166 t_catalog_parseTypoStylesConfig(
6167 recid,
6168 '.t-catalog__card__descr',
6169 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)
6170 // @ts-expect-error ST-2949_5
6171 options.descr_typo,
6172 'js-catalog-relevants-item-descr-typo-styles-' + recid
6173 );
6174 }
6175
6176 if (options.price_typo) {
6177 t_catalog_parseTypoStylesConfig(
6178 recid,
6179 '.t-catalog__card__price',
6180 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)
6181 // @ts-expect-error ST-2949_5
6182 options.price_typo,
6183 'js-catalog-relevants-price-typo-styles-' + recid
6184 );
6185 }
6186
6187 if (options.price_old_typo) {
6188 t_catalog_parseTypoStylesConfig(
6189 recid,
6190 '.t-catalog__card__price_old',
6191 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)
6192 // @ts-expect-error ST-2949_5
6193 options.price_old_typo,
6194 'js-catalog-relevants-old-price-typo-styles-' + recid
6195 );
6196 }
6197}
6198
6199/**
6200 * Устанавливает стили для описания товара в сниппете
Предыдущие 100 строкСледующие 100 строк