@candlerip/shared3 0.0.93 → 0.0.95

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.93",
3
+ "version": "0.0.95",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,5 +1,8 @@
1
1
  export declare const DATE_MINUTES_CONFIG: {
2
2
  ONE_DAY_IN_MINUTES: number;
3
+ ONE_DAY_IN_SECONDS: number;
3
4
  SEVEN_DAYS_IN_MINUTES: number;
5
+ SEVEN_DAYS_IN_SECONDS: number;
4
6
  ONE_YEAR_IN_MINUTES: number;
7
+ ONE_YEAR_IN_SECONDS: number;
5
8
  };
@@ -1,6 +1,9 @@
1
1
  const oneDayInMinutes = 1440;
2
2
  export const DATE_MINUTES_CONFIG = {
3
3
  ONE_DAY_IN_MINUTES: oneDayInMinutes,
4
+ ONE_DAY_IN_SECONDS: oneDayInMinutes * 60,
4
5
  SEVEN_DAYS_IN_MINUTES: oneDayInMinutes * 7,
6
+ SEVEN_DAYS_IN_SECONDS: oneDayInMinutes * 7 * 60,
5
7
  ONE_YEAR_IN_MINUTES: oneDayInMinutes * 365,
8
+ ONE_YEAR_IN_SECONDS: oneDayInMinutes * 365 * 60,
6
9
  };
@@ -1,6 +1,6 @@
1
1
  export declare const DICTIONARY_CONFIG: {
2
2
  readonly 'candle-details-page': {
3
- readonly translationIds: readonly ["personCandles", "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", "person-details-page.myCandle.submitError", "person-details-page.myCandle.submitSuccess", "person-details-page.myCandle.loginRequired", "person-details-page.myCandle.question", "person-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"];
3
+ 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", "personCandles", "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 'contact-page': {
6
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", "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"];
@@ -2,6 +2,7 @@ import { CANDLE_CARDS_TRANSLATION_IDS, CANDLE_IMAGE_TRANSLATION_IDS, CANDLE_MAIN
2
2
  export const DICTIONARY_CONFIG = {
3
3
  'candle-details-page': {
4
4
  translationIds: [
5
+ ...COMMON_PAGE_TRANSLATION_IDS,
5
6
  'personCandles',
6
7
  ...CANDLE_IMAGE_TRANSLATION_IDS,
7
8
  'burnsSoFar',
@@ -12,11 +13,11 @@ export const DICTIONARY_CONFIG = {
12
13
  'candle-details-page.deleteCandle.submitSuccess',
13
14
  'candle-details-page.deleteCandle.question',
14
15
  'candle-details-page.deleteCandle',
15
- 'person-details-page.myCandle.submitError',
16
- 'person-details-page.myCandle.submitSuccess',
17
- 'person-details-page.myCandle.loginRequired',
18
- 'person-details-page.myCandle.question',
19
- 'person-details-page.myCandle',
16
+ 'candle-details-page.myCandle.submitError',
17
+ 'candle-details-page.myCandle.submitSuccess',
18
+ 'candle-details-page.myCandle.loginRequired',
19
+ 'candle-details-page.myCandle.question',
20
+ 'candle-details-page.myCandle',
20
21
  'candle-details-page.relightCandle.submitError',
21
22
  'candle-details-page.relightCandle.submitSuccess',
22
23
  'candle-details-page.relightCandle.question',
@@ -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", "person-details-page.myCandle.submitError", "person-details-page.myCandle.submitSuccess", "person-details-page.myCandle.loginRequired", "person-details-page.myCandle.question", "person-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", "personCandles", "personCandlesPage.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"];
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", "personCandles", "personCandlesPage.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"];
@@ -17,11 +17,11 @@ export const TRANSLATION_IDS = [
17
17
  'candle-details-page.deleteCandle.submitSuccess',
18
18
  'candle-details-page.deleteCandle.question',
19
19
  'candle-details-page.deleteCandle',
20
- 'person-details-page.myCandle.submitError',
21
- 'person-details-page.myCandle.submitSuccess',
22
- 'person-details-page.myCandle.loginRequired',
23
- 'person-details-page.myCandle.question',
24
- 'person-details-page.myCandle',
20
+ 'candle-details-page.myCandle.submitError',
21
+ 'candle-details-page.myCandle.submitSuccess',
22
+ 'candle-details-page.myCandle.loginRequired',
23
+ 'candle-details-page.myCandle.question',
24
+ 'candle-details-page.myCandle',
25
25
  'candle-details-page.relightCandle.submitError',
26
26
  'candle-details-page.relightCandle.submitSuccess',
27
27
  'candle-details-page.relightCandle.question',
@@ -1,7 +1,5 @@
1
1
  export * from './add-person-page-translation-ids/index.js';
2
- export * from './candle-details-page-translation-ids/index.js';
3
2
  export * from './candles-page-translation-ids/index.js';
4
- export * from './edit-candle-page-translation-ids/index.js';
5
3
  export * from './edit-person-page-translation-ids/index.js';
6
4
  export * from './person-candles-page-translation-ids/index.js';
7
5
  export * from './person-details-page-translation-ids/index.js';
@@ -1,7 +1,5 @@
1
1
  export * from './add-person-page-translation-ids/index.js';
2
- export * from './candle-details-page-translation-ids/index.js';
3
2
  export * from './candles-page-translation-ids/index.js';
4
- export * from './edit-candle-page-translation-ids/index.js';
5
3
  export * from './edit-person-page-translation-ids/index.js';
6
4
  export * from './person-candles-page-translation-ids/index.js';
7
5
  export * from './person-details-page-translation-ids/index.js';
@@ -1,8 +1,6 @@
1
- import { Candle, Person } from '../../../database/index.js';
1
+ import { CandleExtPerson } from '../../../candle/index.js';
2
2
  export interface CandleDetailsPageData {
3
3
  detail: {
4
- candle: Candle & {
5
- person: Person;
6
- };
4
+ candle: CandleExtPerson;
7
5
  };
8
6
  }
@@ -1 +0,0 @@
1
- export declare const CANDLE_DETAILS_PAGE_TRANSLATION_IDS: readonly ["personCandles", "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", "person-details-page.myCandle.submitError", "person-details-page.myCandle.submitSuccess", "person-details-page.myCandle.loginRequired", "person-details-page.myCandle.question", "person-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"];
@@ -1,29 +0,0 @@
1
- import { CANDLE_IMAGE_TRANSLATION_IDS } from '../../candle/index.js';
2
- export const CANDLE_DETAILS_PAGE_TRANSLATION_IDS = [
3
- 'personCandles',
4
- ...CANDLE_IMAGE_TRANSLATION_IDS,
5
- 'burnsSoFar',
6
- 'burnedOutCandle',
7
- 'candle.description',
8
- 'litName',
9
- 'candle-details-page.deleteCandle.submitError',
10
- 'candle-details-page.deleteCandle.submitSuccess',
11
- 'candle-details-page.deleteCandle.question',
12
- 'candle-details-page.deleteCandle',
13
- 'person-details-page.myCandle.submitError',
14
- 'person-details-page.myCandle.submitSuccess',
15
- 'person-details-page.myCandle.loginRequired',
16
- 'person-details-page.myCandle.question',
17
- 'person-details-page.myCandle',
18
- 'candle-details-page.relightCandle.submitError',
19
- 'candle-details-page.relightCandle.submitSuccess',
20
- 'candle-details-page.relightCandle.question',
21
- 'candle-details-page.relightCandle',
22
- 'cancel',
23
- 'ok',
24
- 'edit-candle-page',
25
- 'candle-details-page',
26
- 'person-details-page',
27
- ];
28
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
29
- const CHECK = CANDLE_DETAILS_PAGE_TRANSLATION_IDS;
@@ -1 +0,0 @@
1
- export declare const EDIT_CANDLE_PAGE_TRANSLATION_IDS: readonly ["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"];
@@ -1,11 +0,0 @@
1
- import { CANDLE_MAINTENANCE_TRANSLATION_IDS } from '../../candle/index.js';
2
- export const EDIT_CANDLE_PAGE_TRANSLATION_IDS = [
3
- 'candle-details-page',
4
- ...CANDLE_MAINTENANCE_TRANSLATION_IDS,
5
- 'edit-candle-page',
6
- 'modify',
7
- 'edit-candle-page.maintenance.submitError',
8
- 'edit-candle-page.maintenance.submitSuccess',
9
- ];
10
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
11
- const CHECK = EDIT_CANDLE_PAGE_TRANSLATION_IDS;