@candlerip/shared 0.0.134 → 0.0.136
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/cache/common/cache/domains.d.ts +1 -1
- package/cache/redis/workers/index.js +0 -12
- package/common/translation/translation-code/page/configs.d.ts +1 -1
- package/common/translation/translation-code/page/configs.js +1 -0
- package/database/page-data/candles/compose-candles-page-data-db/index.js +6 -1
- package/database/page-data/candles/compose-candles-page-data-db/type.d.ts +1 -3
- package/package.json +1 -1
|
@@ -144,15 +144,3 @@ export const CacheWorker = (environmentMode, url, password, options) => {
|
|
|
144
144
|
set,
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
|
-
const cacheWorker = CacheWorker('production', 'redis://localhost:6379', 'redis_pwd', { isEnabled: true });
|
|
148
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
149
|
-
const { get, gets } = cacheWorker;
|
|
150
|
-
const resp = await get({ cacheKey: `terms-and-conditions-page-dictionary-hu`, objKeys: ['terms-and-conditions-page.disputesTitle'] });
|
|
151
|
-
console.error('*', resp);
|
|
152
|
-
if (resp.data) {
|
|
153
|
-
console.error(resp.data);
|
|
154
|
-
}
|
|
155
|
-
// const resp2 = await gets<any>([{ cacheKey: `terms-and-conditions-page-dictionary-hu` }]);
|
|
156
|
-
// if (resp2.data) {
|
|
157
|
-
// console.error(resp2.data, typeof resp2.data);
|
|
158
|
-
// }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PAGE_TRANSLATION_CODES: readonly ["acceptAll", "add-person-page", "add-person-page_maintenance_submitError", "add-person-page_maintenance_submitSuccess", "auth_cannotBeChangedLaterWarning", "auth_candleLitWarning", "auth_loginRequired", "author", "burnedCandles", "burnedOutCandle", "burningCandles", "burningEndsAt", "burningStartsAt", "burnsSoFar", "candleNotFound", "cancel", "candle-details-page", "candle-details-page_deleteCandle_submitError", "candle-details-page_deleteCandle_submitSuccess", "candle-details-page_deleteCandle_question", "candle-details-page_deleteCandle", "candle-details-page_myCandle_submitError", "candle-details-page_myCandle_submitSuccess", "candle-details-page_myCandle_loginRequired", "candle-details-page_myCandle_question", "candle-details-page_myCandle", "candle-details-page_relightCandle_submitError", "candle-details-page_relightCandle_submitSuccess", "candle-details-page_relightCandle_question", "candle-details-page_relightCandle", "candle", "candlesInCount", "candles", "candles-page", "candle_description", "caseSensitive", "contact-page", "contact-page_infoTitle", "contact-page_sendMessage_submitError", "contact-page_sendMessage_submitSuccess", "contact-page_sendMessageTitle", "cookieConsentForm_title", "cookieConsentForm_description", "cookieConsentForm_languageFormDescription", "cookie-policy-page", "count", "createdAt", "customize", "dropZone_acceptedFormats", "dropZone_drapActive", "dropZone_dropZone", "dropZone_sizeLimit", "edit-candle-page", "edit-candle-page_maintenance_submitError", "edit-candle-page_maintenance_submitSuccess", "edit-person-page", "edit-person-page_maintenance_submitError", "edit-person-page_maintenance_submitSuccess", "email", "errorLoadingData", "facebook", "help-page_addPersonRule1", "help-page_addPersonRule2", "help-page_addPersonRule3", "help-page_addPersonRule4", "help-page_addPersonTitle", "help-page_candlesParagraph1", "help-page_candlesParagraph2", "help-page_candlesParagraph3", "help-page_intro", "help-page_lightACandleRule1", "help-page_lightACandleRule2", "help-page_lightACandleTitle", "help-page_personsParagraph", "help-page", "home-page", "home-page_proposal", "home-page_lastLitCandles", "home-page_lastUploadedPersons", "home-page_quickCandleLighting_placeOfTheCandle_placehodler", "home-page_quickCandleLighting", "home-page_statistics", "home-page_welcome_description1", "home-page_welcome_description2", "home-page_welcome", "form_error_date", "form_error_email", "form_error_invalid", "form_error_maxLength", "form_error_message", "form_error_required", "image", "invalidImage", "noMoreImages", "tooBigImage", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "light-candle-page", "light-candle-page_maintenance_submitError", "light-candle-page_maintenance_submitSuccess", "lightTheCandle", "litName", "loading", "login", "loginPage_login_submitError", "loginPage_login_showPassword", "logout", "map", "message", "modify", "more", "motto1", "motto2", "motto3", "myCandles", "myPersons", "name", "ok", "pageMenu_add-person-page", "pageMenu_candles-page", "pageMenu_contact-page", "pageMenu_cookie-policy-page", "pageMenu_help-page", "pageMenu_persons-page", "pageMenu_persons-map-page", "pageMenu_terms-and-conditions-page", "page-not-found", "password", "person", "personNotFound", "person_birthDate", "person_birthPlaceCountry", "person_deathDate", "person_description", "person_name", "person-candles-page", "person-candles-page_addCandle_description", "person-details-page", "person-details-page_deletePerson_submitError", "person-details-page_deletePerson_submitSuccess", "person-details-page_deletePerson_question", "person-details-page_deletePerson", "person-details-page_myPerson_submitError", "person-details-page_myPerson_submitSuccess", "person-details-page_myPerson_loginRequired", "person-details-page_myPerson_question", "person-details-page_myPerson", "persons-page", "persons", "personsInCount", "persons-page_addPerson_description", "persons-page_personsList_hasImage", "persons-page_personsList", "persons-map-page_map_description", "persons-map-page", "proposable", "redirecting", "rejectAll", "reset", "save", "savedSuccessfully", "select", "send", "shareOnFacebook", "sort", "subject", "terms-and-conditions-page_applicableLawParagraph", "terms-and-conditions-page_applicableLawTitle", "terms-and-conditions-page_conditionsOfUseParagraph", "terms-and-conditions-page_conditionsOfUseTitle", "terms-and-conditions-page_disputesParagraph", "terms-and-conditions-page_disputesTitle", "terms-and-conditions-page_intellectualPropertyParagraph", "terms-and-conditions-page_intellectualPropertyTitle", "terms-and-conditions-page_intro", "terms-and-conditions-page_limitationAndLiabilityParagraph", "terms-and-conditions-page_limitationAndLiabilityTitle", "terms-and-conditions-page", "terms-and-conditions-page_userAccountsParagraph", "terms-and-conditions-page_userAccountsTitle", "username"];
|
|
1
|
+
export declare const PAGE_TRANSLATION_CODES: readonly ["acceptAll", "add-person-page", "add-person-page_maintenance_submitError", "add-person-page_maintenance_submitSuccess", "auth_cannotBeChangedLaterWarning", "auth_candleLitWarning", "auth_loginRequired", "author", "burnedCandles", "burnedOutCandle", "burningCandles", "burningEndsAt", "burningStartsAt", "burnsSoFar", "candleNotFound", "cancel", "candle-details-page", "candle-details-page_deleteCandle_submitError", "candle-details-page_deleteCandle_submitSuccess", "candle-details-page_deleteCandle_question", "candle-details-page_deleteCandle", "candle-details-page_myCandle_submitError", "candle-details-page_myCandle_submitSuccess", "candle-details-page_myCandle_loginRequired", "candle-details-page_myCandle_question", "candle-details-page_myCandle", "candle-details-page_relightCandle_submitError", "candle-details-page_relightCandle_submitSuccess", "candle-details-page_relightCandle_question", "candle-details-page_relightCandle", "candle", "candlesInCount", "candles", "candles-page", "candle_description", "caseSensitive", "contact-page", "contact-page_infoTitle", "contact-page_sendMessage_submitError", "contact-page_sendMessage_submitSuccess", "contact-page_sendMessageTitle", "cookieConsentForm_title", "cookieConsentForm_description", "cookieConsentForm_languageFormDescription", "cookie-policy-page", "count", "createdAt", "customize", "dropZone_acceptedFormats", "dropZone_drapActive", "dropZone_dropZone", "dropZone_sizeLimit", "edit-candle-page", "edit-candle-page_maintenance_submitError", "edit-candle-page_maintenance_submitSuccess", "edit-person-page", "edit-person-page_maintenance_submitError", "edit-person-page_maintenance_submitSuccess", "email", "errorLoadingData", "facebook", "help-page_addPersonRule1", "help-page_addPersonRule2", "help-page_addPersonRule3", "help-page_addPersonRule4", "help-page_addPersonTitle", "help-page_candlesParagraph1", "help-page_candlesParagraph2", "help-page_candlesParagraph3", "help-page_intro", "help-page_lightACandleRule1", "help-page_lightACandleRule2", "help-page_lightACandleTitle", "help-page_personsParagraph", "help-page", "home-page", "home-page_proposal", "home-page_lastLitCandles", "home-page_lastUploadedPersons", "home-page_quickCandleLighting_placeOfTheCandle_placehodler", "home-page_quickCandleLighting", "home-page_statistics", "home-page_welcome_description1", "home-page_welcome_description2", "home-page_welcome", "form_error_date", "form_error_email", "form_error_invalid", "form_error_maxLength", "form_error_message", "form_error_required", "image", "invalidImage", "noMoreImages", "tooBigImage", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "light-candle-page", "light-candle-page_maintenance_submitError", "light-candle-page_maintenance_submitSuccess", "lightTheCandle", "litName", "loading", "login", "loginPage_login_submitError", "loginPage_login_showPassword", "logout", "map", "message", "modify", "more", "motto1", "motto2", "motto3", "myCandles", "myPersons", "name", "ok", "pageMenu_add-person-page", "pageMenu_candles-page", "pageMenu_contact-page", "pageMenu_cookie-policy-page", "pageMenu_help-page", "pageMenu_persons-page", "pageMenu_persons-map-page", "pageMenu_terms-and-conditions-page", "page-not-found", "password", "person", "personNotFound", "person_birthDate", "person_birthPlaceCountry", "person_deathDate", "person_description", "person_name", "person-candles-page", "person-candles-page_addCandle_description", "person-details-page", "person-details-page_deletePerson_submitError", "person-details-page_deletePerson_submitSuccess", "person-details-page_deletePerson_question", "person-details-page_deletePerson", "person-details-page_myPerson_submitError", "person-details-page_myPerson_submitSuccess", "person-details-page_myPerson_loginRequired", "person-details-page_myPerson_question", "person-details-page_myPerson", "persons-page", "persons", "personsInCount", "persons-page_addPerson_description", "persons-page_personsList_hasImage", "persons-page_personsList", "persons-map-page_map_description", "persons-map-page", "proposable", "redirecting", "rejectAll", "reset", "save", "savedSuccessfully", "select", "send", "shareOnFacebook", "sort", "subject", "terms-and-conditions-page_applicableLawParagraph", "terms-and-conditions-page_applicableLawTitle", "terms-and-conditions-page_conditionsOfUseParagraph", "terms-and-conditions-page_conditionsOfUseTitle", "terms-and-conditions-page_disputesParagraph", "terms-and-conditions-page_disputesTitle", "terms-and-conditions-page_intellectualPropertyParagraph", "terms-and-conditions-page_intellectualPropertyTitle", "terms-and-conditions-page_intro", "terms-and-conditions-page_limitationAndLiabilityParagraph", "terms-and-conditions-page_limitationAndLiabilityTitle", "terms-and-conditions-page", "terms-and-conditions-page_userAccountsParagraph", "terms-and-conditions-page_userAccountsTitle", "username", "unauthorized"];
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { DEFAULT_CANDLE_FILTER_SORT } from '../../../../common/index.js';
|
|
1
2
|
import { getCandlesDb } from '../../../mutation/index.js';
|
|
2
|
-
export const composeCandlesPageDataDb = async (
|
|
3
|
+
export const composeCandlesPageDataDb = async (initFilterSort) => {
|
|
4
|
+
const filterSort = {
|
|
5
|
+
...DEFAULT_CANDLE_FILTER_SORT,
|
|
6
|
+
...initFilterSort,
|
|
7
|
+
};
|
|
3
8
|
const { burningStates, count, skipCount, sortName, sortOrder, userId } = filterSort;
|
|
4
9
|
const resp = await getCandlesDb({
|
|
5
10
|
burningStates,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { CandleFilterSort, CandlesPageData, CustomError } from '../../../../common/index.js';
|
|
2
|
-
export type ComposeCandlesPageDataDb = (
|
|
3
|
-
filterSort: CandleFilterSort;
|
|
4
|
-
}) => Promise<{
|
|
2
|
+
export type ComposeCandlesPageDataDb = (filterSort?: Partial<CandleFilterSort>) => Promise<{
|
|
5
3
|
data: CandlesPageData;
|
|
6
4
|
} | {
|
|
7
5
|
customError: CustomError;
|