denwa-web-shared 1.0.34 → 1.0.35
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/dist/server/index.cjs.js
CHANGED
|
@@ -278,6 +278,12 @@ const preparePageParam = (page) => {
|
|
|
278
278
|
}
|
|
279
279
|
return 1;
|
|
280
280
|
};
|
|
281
|
+
const isNotEmptyHtml = (html) => {
|
|
282
|
+
return !!html && html !== '<p class="content-paragraph" ></p>';
|
|
283
|
+
};
|
|
284
|
+
const createCityLink = (city, href) => {
|
|
285
|
+
return `/${city}${href}`;
|
|
286
|
+
};
|
|
281
287
|
function r(e) {
|
|
282
288
|
var t, f, n = "";
|
|
283
289
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -6837,6 +6843,7 @@ exports.checkCorrectFileObject = checkCorrectFileObject;
|
|
|
6837
6843
|
exports.checkCorrectImageObject = checkCorrectImageObject;
|
|
6838
6844
|
exports.cn = cn;
|
|
6839
6845
|
exports.convertPhoneMask = convertPhoneMask;
|
|
6846
|
+
exports.createCityLink = createCityLink;
|
|
6840
6847
|
exports.generatePaginationArray = generatePaginationArray;
|
|
6841
6848
|
exports.getByKey = getByKey;
|
|
6842
6849
|
exports.getImagePrefix = getImagePrefix;
|
|
@@ -6844,6 +6851,7 @@ exports.getNumberFormatter = getNumberFormatter;
|
|
|
6844
6851
|
exports.getSubdomain = getSubdomain;
|
|
6845
6852
|
exports.getUploadFileUrl = getUploadFileUrl;
|
|
6846
6853
|
exports.getUploadImageUrl = getUploadImageUrl;
|
|
6854
|
+
exports.isNotEmptyHtml = isNotEmptyHtml;
|
|
6847
6855
|
exports.parseStringToKeyValue = parseStringToKeyValue;
|
|
6848
6856
|
exports.prepareColor = prepareColor;
|
|
6849
6857
|
exports.prepareLocalMetaData = prepareLocalMetaData;
|
package/dist/server/index.es.js
CHANGED
|
@@ -276,6 +276,12 @@ const preparePageParam = (page) => {
|
|
|
276
276
|
}
|
|
277
277
|
return 1;
|
|
278
278
|
};
|
|
279
|
+
const isNotEmptyHtml = (html) => {
|
|
280
|
+
return !!html && html !== '<p class="content-paragraph" ></p>';
|
|
281
|
+
};
|
|
282
|
+
const createCityLink = (city, href) => {
|
|
283
|
+
return `/${city}${href}`;
|
|
284
|
+
};
|
|
279
285
|
function r(e) {
|
|
280
286
|
var t, f, n = "";
|
|
281
287
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -6836,6 +6842,7 @@ export {
|
|
|
6836
6842
|
checkCorrectImageObject,
|
|
6837
6843
|
cn,
|
|
6838
6844
|
convertPhoneMask,
|
|
6845
|
+
createCityLink,
|
|
6839
6846
|
generatePaginationArray,
|
|
6840
6847
|
getByKey,
|
|
6841
6848
|
getImagePrefix,
|
|
@@ -6843,6 +6850,7 @@ export {
|
|
|
6843
6850
|
getSubdomain,
|
|
6844
6851
|
getUploadFileUrl,
|
|
6845
6852
|
getUploadImageUrl,
|
|
6853
|
+
isNotEmptyHtml,
|
|
6846
6854
|
parseStringToKeyValue,
|
|
6847
6855
|
prepareColor,
|
|
6848
6856
|
prepareLocalMetaData,
|
|
@@ -134,3 +134,14 @@ export declare const arrayToKeyValueObject: <T extends string>(arr: T[]) => Reco
|
|
|
134
134
|
* @param page - Номер страницы
|
|
135
135
|
*/
|
|
136
136
|
export declare const preparePageParam: (page: string | number | undefined) => number;
|
|
137
|
+
/**
|
|
138
|
+
* @description Проверка html на пустоту
|
|
139
|
+
* @param html - Html разметка редактора
|
|
140
|
+
*/
|
|
141
|
+
export declare const isNotEmptyHtml: (html: string | null | undefined) => boolean;
|
|
142
|
+
/**
|
|
143
|
+
* @description Подстановка города в путь ссылки
|
|
144
|
+
* @param city - Город
|
|
145
|
+
* @param href - Ссылка
|
|
146
|
+
*/
|
|
147
|
+
export declare const createCityLink: (city: string, href: string) => string;
|