@candlerip/shared3 0.0.126 → 0.0.128
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/backend/cache/cache-key/config.d.ts +1 -1
- package/src/backend/cache/cache-key/config.js +2 -0
- package/src/dictionary/dictionary/config.d.ts +12 -9
- package/src/dictionary/dictionary/config.js +14 -2
- package/src/dictionary/translation-id/common-page/config.d.ts +1 -1
- package/src/dictionary/translation-id/common-page/config.js +1 -0
- package/src/dictionary/translation-id/config.d.ts +1 -1
- package/src/dictionary/translation-id/config.js +3 -2
- package/src/dictionary/translation-id/page/index.d.ts +0 -1
- package/src/dictionary/translation-id/page/index.js +0 -1
- package/src/dictionary/translation-id/page/person-details-page-translation-ids/config.d.ts +1 -1
- package/src/dictionary/translation-id/page/person-details-page-translation-ids/config.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/page/config.d.ts +1 -1
- package/src/page/config.js +1 -0
- package/src/type/string/index.d.ts +2 -2
- package/src/type/string/index.js +2 -2
- package/src/type/string/validate-string/index.d.ts +2 -0
- package/src/type/string/{validate.js → validate-string/index.js} +7 -6
- package/src/type/string/validate-string/type.d.ts +7 -0
- package/src/type/string/validate-string/type.js +1 -0
- package/src/validator/index.d.ts +1 -0
- package/src/validator/index.js +1 -0
- package/src/validator/validator-regexp/config.d.ts +5 -0
- package/src/validator/validator-regexp/config.js +5 -0
- package/src/{dictionary/translation-id/page/person-candles-page-translation-ids → validator/validator-regexp}/index.d.ts +1 -0
- package/src/{dictionary/translation-id/page/person-candles-page-translation-ids → validator/validator-regexp}/index.js +1 -0
- package/src/validator/validator-regexp/type.d.ts +2 -0
- package/src/validator/validator-regexp/type.js +1 -0
- package/src/dictionary/translation-id/page/person-candles-page-translation-ids/config.d.ts +0 -1
- package/src/dictionary/translation-id/page/person-candles-page-translation-ids/config.js +0 -14
- package/src/type/string/comma-separated/index.d.ts +0 -1
- package/src/type/string/comma-separated/index.js +0 -1
- package/src/type/string/validate.d.ts +0 -6
- /package/src/type/string/{comma-separated/validate.d.ts → validate-comma-separated-string/index.d.ts} +0 -0
- /package/src/type/string/{comma-separated/validate.js → validate-comma-separated-string/index.js} +0 -0
- /package/src/type/string/{comma-separated → validate-comma-separated-string}/types.d.ts +0 -0
- /package/src/type/string/{comma-separated → validate-comma-separated-string}/types.js +0 -0
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const CACHE_KEYS: readonly ["candle-details-page-dictionary-en", "candle-details-page-dictionary-hu", "candles-page-dictionary-en", "candles-page-dictionary-hu", "contact-page-dictionary-en", "contact-page-dictionary-hu", "cookie-policy-page-dictionary-en", "cookie-policy-page-dictionary-hu", "edit-candle-page-dictionary-en", "edit-candle-page-dictionary-hu", "light-candle-page-dictionary-en", "light-candle-page-dictionary-hu", "help-page-dictionary-en", "help-page-dictionary-hu", "terms-and-conditions-page-dictionary-en", "terms-and-conditions-page-dictionary-hu"];
|
1
|
+
export declare const CACHE_KEYS: readonly ["candle-details-page-dictionary-en", "candle-details-page-dictionary-hu", "candles-page-dictionary-en", "candles-page-dictionary-hu", "contact-page-dictionary-en", "contact-page-dictionary-hu", "cookie-policy-page-dictionary-en", "cookie-policy-page-dictionary-hu", "edit-candle-page-dictionary-en", "edit-candle-page-dictionary-hu", "light-candle-page-dictionary-en", "light-candle-page-dictionary-hu", "help-page-dictionary-en", "help-page-dictionary-hu", "person-candles-page-dictionary-en", "person-candles-page-dictionary-hu", "terms-and-conditions-page-dictionary-en", "terms-and-conditions-page-dictionary-hu"];
|
@@ -13,6 +13,8 @@ export const CACHE_KEYS = [
|
|
13
13
|
'light-candle-page-dictionary-hu',
|
14
14
|
'help-page-dictionary-en',
|
15
15
|
'help-page-dictionary-hu',
|
16
|
+
'person-candles-page-dictionary-en',
|
17
|
+
'person-candles-page-dictionary-hu',
|
16
18
|
'terms-and-conditions-page-dictionary-en',
|
17
19
|
'terms-and-conditions-page-dictionary-hu',
|
18
20
|
];
|
@@ -1,29 +1,32 @@
|
|
1
1
|
export declare const DICTIONARY_CONFIG: {
|
2
2
|
readonly 'candle-details-page': {
|
3
|
-
readonly translationIds: readonly ["auth.loginRequired", "acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "
|
3
|
+
readonly translationIds: readonly ["auth.loginRequired", "acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "person-candles-page", "imageCannotBeLoaded", "burnsSoFar", "burnedOutCandle", "candle.description", "litName", "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", "cancel", "ok", "edit-candle-page", "candle-details-page", "person-details-page"];
|
4
4
|
};
|
5
5
|
readonly 'candles-page': {
|
6
|
-
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "imageCannotBeLoaded", "burnedOutCandle", "burnsSoFar", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "select", "burnedCandles", "burningCandles", "myCandles", "createdAt", "litName", "candles", "candle", "candlesInCount", "reset", "sort", "candles"];
|
6
|
+
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "imageCannotBeLoaded", "burnedOutCandle", "burnsSoFar", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "select", "burnedCandles", "burningCandles", "myCandles", "createdAt", "litName", "candles", "candle", "candlesInCount", "reset", "sort", "candles"];
|
7
7
|
};
|
8
8
|
readonly 'contact-page': {
|
9
|
-
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "contact-page.infoTitle", "contact-page.sendMessage.submitError", "contact-page.sendMessage.submitSuccess", "contact-page.sendMessageTitle", "contact-page", "email", "formInvalidEmailError", "formInvalidText", "formRequiredError", "reset", "send", "message", "name", "subject", "facebook"];
|
9
|
+
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "contact-page.infoTitle", "contact-page.sendMessage.submitError", "contact-page.sendMessage.submitSuccess", "contact-page.sendMessageTitle", "contact-page", "email", "formInvalidEmailError", "formInvalidText", "formRequiredError", "reset", "send", "message", "name", "subject", "facebook"];
|
10
10
|
};
|
11
11
|
readonly 'cookie-policy-page': {
|
12
|
-
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "acceptAll", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookie-policy-page"];
|
12
|
+
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "acceptAll", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookie-policy-page"];
|
13
13
|
};
|
14
14
|
readonly 'edit-candle-page': {
|
15
|
-
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "candle-details-page", "auth.candleLitWarning", "reset", "candle.description", "formMaxLengthError", "formRequiredError", "litName", "edit-candle-page", "modify", "edit-candle-page.maintenance.submitError", "edit-candle-page.maintenance.submitSuccess"];
|
15
|
+
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "candle-details-page", "auth.candleLitWarning", "reset", "candle.description", "formMaxLengthError", "formRequiredError", "litName", "edit-candle-page", "modify", "edit-candle-page.maintenance.submitError", "edit-candle-page.maintenance.submitSuccess"];
|
16
16
|
};
|
17
17
|
readonly 'help-page': {
|
18
|
-
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "help-page", "help-page.intro", "persons", "help-page.personsParagraph", "help-page.addPersonTitle", "help-page.addPersonRule1", "help-page.addPersonRule2", "help-page.addPersonRule3", "help-page.addPersonRule4", "candles", "help-page.candlesParagraph1", "help-page.candlesParagraph2", "help-page.candlesParagraph3", "help-page.lightACandleTitle", "help-page.lightACandleRule1", "help-page.lightACandleRule2"];
|
18
|
+
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "help-page", "help-page.intro", "persons", "help-page.personsParagraph", "help-page.addPersonTitle", "help-page.addPersonRule1", "help-page.addPersonRule2", "help-page.addPersonRule3", "help-page.addPersonRule4", "candles", "help-page.candlesParagraph1", "help-page.candlesParagraph2", "help-page.candlesParagraph3", "help-page.lightACandleTitle", "help-page.lightACandleRule1", "help-page.lightACandleRule2"];
|
19
19
|
};
|
20
20
|
readonly 'home-page': {
|
21
|
-
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "lightACandle", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "imageCannotBeLoaded", "burnedOutCandle", "burnsSoFar", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "candles", "home-page.lastLitCandles", "burnedCandles", "burningCandles", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "persons", "home-page.lastUploadedPersons", "auth.cannotBeChangedLaterWarning", "more", "reset", "light-candle-page.maintenance.submitError", "lightTheCandle", "light-candle-page.maintenance.submitSuccess", "formMaxLengthError", "person.name", "formRequiredError", "litName", "burnedCandles", "burningCandles", "candles", "persons", "home-page.statistics", "add-person-page", "auth.cannotBeChangedLaterWarning", "home-page.welcome.description1", "home-page.welcome.description2", "home-page.welcome", "persons-map-page", "home-page.proposal"];
|
21
|
+
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "lightACandle", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "imageCannotBeLoaded", "burnedOutCandle", "burnsSoFar", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "candles", "home-page.lastLitCandles", "burnedCandles", "burningCandles", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "persons", "home-page.lastUploadedPersons", "auth.cannotBeChangedLaterWarning", "more", "reset", "light-candle-page.maintenance.submitError", "lightTheCandle", "light-candle-page.maintenance.submitSuccess", "formMaxLengthError", "person.name", "formRequiredError", "litName", "burnedCandles", "burningCandles", "candles", "persons", "home-page.statistics", "add-person-page", "auth.cannotBeChangedLaterWarning", "home-page.welcome.description1", "home-page.welcome.description2", "home-page.welcome", "persons-map-page", "home-page.proposal"];
|
22
22
|
};
|
23
23
|
readonly 'light-candle-page': {
|
24
|
-
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "
|
24
|
+
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "person-candles-page", "auth.candleLitWarning", "reset", "candle.description", "formMaxLengthError", "formRequiredError", "litName", "lightTheCandle", "light-candle-page.maintenance.submitError", "light-candle-page.maintenance.submitSuccess", "light-candle-page"];
|
25
|
+
};
|
26
|
+
readonly 'person-candles-page': {
|
27
|
+
readonly translationIds: readonly ["auth.cannotBeChangedLaterWarning", "auth.candleLitWarning", "lightACandle", "person-candles-page.addCandle.description", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "imageCannotBeLoaded", "burnedOutCandle", "burnsSoFar", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "select", "burnedCandles", "burningCandles", "myCandles", "createdAt", "litName", "candles", "candle", "candlesInCount", "reset", "sort", "person-candles-page", "person-details-page"];
|
25
28
|
};
|
26
29
|
readonly 'terms-and-conditions-page': {
|
27
|
-
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "terms-and-conditions-page.intro", "terms-and-conditions-page.conditionsOfUseTitle", "terms-and-conditions-page.conditionsOfUseParagraph", "terms-and-conditions-page.intellectualPropertyTitle", "terms-and-conditions-page.intellectualPropertyParagraph", "terms-and-conditions-page.userAccountsTitle", "terms-and-conditions-page.userAccountsParagraph", "terms-and-conditions-page.applicableLawTitle", "terms-and-conditions-page.applicableLawParagraph", "terms-and-conditions-page.disputesTitle", "terms-and-conditions-page.disputesParagraph", "terms-and-conditions-page.limitationAndLiabilityTitle", "terms-and-conditions-page.limitationAndLiabilityParagraph", "terms-and-conditions-page"];
|
30
|
+
readonly translationIds: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "terms-and-conditions-page.intro", "terms-and-conditions-page.conditionsOfUseTitle", "terms-and-conditions-page.conditionsOfUseParagraph", "terms-and-conditions-page.intellectualPropertyTitle", "terms-and-conditions-page.intellectualPropertyParagraph", "terms-and-conditions-page.userAccountsTitle", "terms-and-conditions-page.userAccountsParagraph", "terms-and-conditions-page.applicableLawTitle", "terms-and-conditions-page.applicableLawParagraph", "terms-and-conditions-page.disputesTitle", "terms-and-conditions-page.disputesParagraph", "terms-and-conditions-page.limitationAndLiabilityTitle", "terms-and-conditions-page.limitationAndLiabilityParagraph", "terms-and-conditions-page"];
|
28
31
|
};
|
29
32
|
};
|
@@ -4,7 +4,7 @@ export const DICTIONARY_CONFIG = {
|
|
4
4
|
translationIds: [
|
5
5
|
'auth.loginRequired',
|
6
6
|
...COMMON_PAGE_TRANSLATION_IDS,
|
7
|
-
'
|
7
|
+
'person-candles-page',
|
8
8
|
...CANDLE_IMAGE_TRANSLATION_IDS,
|
9
9
|
'burnsSoFar',
|
10
10
|
'burnedOutCandle',
|
@@ -134,7 +134,7 @@ export const DICTIONARY_CONFIG = {
|
|
134
134
|
'light-candle-page': {
|
135
135
|
translationIds: [
|
136
136
|
...COMMON_PAGE_TRANSLATION_IDS,
|
137
|
-
'
|
137
|
+
'person-candles-page',
|
138
138
|
...CANDLE_MAINTENANCE_TRANSLATION_IDS,
|
139
139
|
'lightTheCandle',
|
140
140
|
'light-candle-page.maintenance.submitError',
|
@@ -142,6 +142,18 @@ export const DICTIONARY_CONFIG = {
|
|
142
142
|
'light-candle-page',
|
143
143
|
],
|
144
144
|
},
|
145
|
+
'person-candles-page': {
|
146
|
+
translationIds: [
|
147
|
+
'auth.cannotBeChangedLaterWarning',
|
148
|
+
'auth.candleLitWarning',
|
149
|
+
'lightACandle',
|
150
|
+
'person-candles-page.addCandle.description',
|
151
|
+
...PERSON_IMAGE_TRANSLATION_IDS,
|
152
|
+
...CANDLES_LIST_TRANSLATION_IDS,
|
153
|
+
'person-candles-page',
|
154
|
+
'person-details-page',
|
155
|
+
],
|
156
|
+
},
|
145
157
|
'terms-and-conditions-page': {
|
146
158
|
translationIds: [
|
147
159
|
...COMMON_PAGE_TRANSLATION_IDS,
|
@@ -1 +1 @@
|
|
1
|
-
export declare const COMMON_PAGE_TRANSLATION_IDS: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook"];
|
1
|
+
export declare const COMMON_PAGE_TRANSLATION_IDS: readonly ["acceptAll", "cookie-policy-page", "customize", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookieConsentForm.title", "author", "motto1", "motto2", "motto3", "login", "logout", "english", "hungarian", "add-person-page", "candles-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook"];
|
@@ -1 +1 @@
|
|
1
|
-
export declare const TRANSLATION_IDS: 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", "burnsSoFar", "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", "editPersonPage", "editPersonPage.maintenance.submitError", "editPersonPage.maintenance.submitSuccess", "email", "english", "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", "hungarian", "formDateError", "formInvalidEmailError", "formInvalidText", "formMaxLengthError", "formMessageError", "formRequiredError", "image", "invalidImage", "noMoreImages", "tooBigImage", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "light-candle-page", "light-candle-page.maintenance.submitError", "light-candle-page.maintenance.submitSuccess", "lightTheCandle", "litName", "login", "loginPage.login.submitError", "loginPage.login.showPassword", "logout", "map", "message", "modify", "more", "motto1", "motto2", "motto3", "myCandles", "myPersons", "name", "ok", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "password", "person", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "person.name", "
|
1
|
+
export declare const TRANSLATION_IDS: 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", "burnsSoFar", "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", "editPersonPage", "editPersonPage.maintenance.submitError", "editPersonPage.maintenance.submitSuccess", "email", "english", "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", "hungarian", "formDateError", "formInvalidEmailError", "formInvalidText", "formMaxLengthError", "formMessageError", "formRequiredError", "image", "invalidImage", "noMoreImages", "tooBigImage", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "light-candle-page", "light-candle-page.maintenance.submitError", "light-candle-page.maintenance.submitSuccess", "lightTheCandle", "litName", "login", "loginPage.login.submitError", "loginPage.login.showPassword", "logout", "map", "message", "modify", "more", "motto1", "motto2", "motto3", "myCandles", "myPersons", "name", "ok", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "password", "person", "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", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "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"];
|
@@ -116,6 +116,7 @@ export const TRANSLATION_IDS = [
|
|
116
116
|
'myPersons',
|
117
117
|
'name',
|
118
118
|
'ok',
|
119
|
+
'pageMenu.candles-page',
|
119
120
|
'pageMenu.contact-page',
|
120
121
|
'pageMenu.cookie-policy-page',
|
121
122
|
'pageMenu.help-page',
|
@@ -127,8 +128,8 @@ export const TRANSLATION_IDS = [
|
|
127
128
|
'person.deathDate',
|
128
129
|
'person.description',
|
129
130
|
'person.name',
|
130
|
-
'
|
131
|
-
'
|
131
|
+
'person-candles-page',
|
132
|
+
'person-candles-page.addCandle.description',
|
132
133
|
'person-details-page',
|
133
134
|
'person-details-page.deletePerson.submitError',
|
134
135
|
'person-details-page.deletePerson.submitSuccess',
|
@@ -1,6 +1,5 @@
|
|
1
1
|
export * from './add-person-page-translation-ids/index.js';
|
2
2
|
export * from './edit-person-page-translation-ids/index.js';
|
3
|
-
export * from './person-candles-page-translation-ids/index.js';
|
4
3
|
export * from './person-details-page-translation-ids/index.js';
|
5
4
|
export * from './persons-map-page-translation-ids/index.js';
|
6
5
|
export * from './persons-page-translation-ids/index.js';
|
@@ -1,6 +1,5 @@
|
|
1
1
|
export * from './add-person-page-translation-ids/index.js';
|
2
2
|
export * from './edit-person-page-translation-ids/index.js';
|
3
|
-
export * from './person-candles-page-translation-ids/index.js';
|
4
3
|
export * from './person-details-page-translation-ids/index.js';
|
5
4
|
export * from './persons-map-page-translation-ids/index.js';
|
6
5
|
export * from './persons-page-translation-ids/index.js';
|
@@ -1 +1 @@
|
|
1
|
-
export declare const PERSON_DETAILS_PAGE_TRANSLATION_IDS: readonly ["
|
1
|
+
export declare const PERSON_DETAILS_PAGE_TRANSLATION_IDS: readonly ["person-candles-page", "persons", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "proposable", "burnedCandles", "burningCandles", "person-details-page.deletePerson.submitError", "cancel", "ok", "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", "editPersonPage", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "person-details-page"];
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
package/src/page/config.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const PAGES: readonly ["candle-details-page", "candles-page", "contact-page", "cookie-policy-page", "edit-candle-page", "help-page", "home-page", "light-candle-page", "terms-and-conditions-page"];
|
1
|
+
export declare const PAGES: readonly ["candle-details-page", "candles-page", "contact-page", "cookie-policy-page", "edit-candle-page", "help-page", "home-page", "light-candle-page", "person-candles-page", "terms-and-conditions-page"];
|
package/src/page/config.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
export * from './type-guard.js';
|
2
|
-
export * from './validate.js';
|
3
|
-
export * from './comma-separated/index.js';
|
2
|
+
export * from './validate-string/index.js';
|
3
|
+
export * from './validate-comma-separated-string/index.js';
|
package/src/type/string/index.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
export * from './type-guard.js';
|
2
|
-
export * from './validate.js';
|
3
|
-
export * from './comma-separated/index.js';
|
2
|
+
export * from './validate-string/index.js';
|
3
|
+
export * from './validate-comma-separated-string/index.js';
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { customErrorWorker } from '
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
1
|
+
import { customErrorWorker } from '../../../error/index.js';
|
2
|
+
import { VALIDATOR_REG_EXP } from '../../../validator/index.js';
|
3
|
+
import { isString } from '../type-guard.js';
|
4
|
+
export const validateString = (data, name, validatorRegExpKey) => {
|
5
|
+
const { composeCustomError } = customErrorWorker({ data, ...(validatorRegExpKey && { validatorRegExpKey }) });
|
5
6
|
if (!data) {
|
6
7
|
return {
|
7
8
|
customError: composeCustomError(`Missing ${name}`),
|
@@ -12,8 +13,8 @@ export const validateString = (data, name, regexp) => {
|
|
12
13
|
customError: composeCustomError(`${name} not string`),
|
13
14
|
};
|
14
15
|
}
|
15
|
-
if (
|
16
|
-
if (!
|
16
|
+
if (validatorRegExpKey) {
|
17
|
+
if (!VALIDATOR_REG_EXP[validatorRegExpKey].test(data)) {
|
17
18
|
return {
|
18
19
|
customError: composeCustomError(`Invalid ${name}`),
|
19
20
|
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { CustomError } from '../../../error/index.js';
|
2
|
+
import { ValidatorRegExpKey } from '../../../validator/index.js';
|
3
|
+
export type ValidateString = (data: unknown, name: string, validatorRegExpKey?: ValidatorRegExpKey) => {
|
4
|
+
data: string;
|
5
|
+
} | {
|
6
|
+
customError: CustomError;
|
7
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './validator-regexp/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './validator-regexp/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const PERSON_CANDLES_PAGE_TRANSLATION_IDS: readonly ["auth.cannotBeChangedLaterWarning", "auth.candleLitWarning", "lightACandle", "personCandlesPage.addCandle.description", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "imageCannotBeLoaded", "burnedOutCandle", "burnsSoFar", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "select", "burnedCandles", "burningCandles", "myCandles", "createdAt", "litName", "candles", "candle", "candlesInCount", "reset", "sort", "personCandles", "person-details-page"];
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { CANDLES_LIST_TRANSLATION_IDS } from '../../candle/index.js';
|
2
|
-
import { PERSON_IMAGE_TRANSLATION_IDS } from '../../person/index.js';
|
3
|
-
export const PERSON_CANDLES_PAGE_TRANSLATION_IDS = [
|
4
|
-
'auth.cannotBeChangedLaterWarning',
|
5
|
-
'auth.candleLitWarning',
|
6
|
-
'lightACandle',
|
7
|
-
'personCandlesPage.addCandle.description',
|
8
|
-
...PERSON_IMAGE_TRANSLATION_IDS,
|
9
|
-
...CANDLES_LIST_TRANSLATION_IDS,
|
10
|
-
'personCandles',
|
11
|
-
'person-details-page',
|
12
|
-
];
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
14
|
-
const CHECK = PERSON_CANDLES_PAGE_TRANSLATION_IDS;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './validate.js';
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './validate.js';
|
File without changes
|
/package/src/type/string/{comma-separated/validate.js → validate-comma-separated-string/index.js}
RENAMED
File without changes
|
File without changes
|
File without changes
|