@candlerip/shared3 0.0.86 → 0.0.88

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/package.json +1 -1
  2. package/src/auth/auth/domain.d.ts +1 -0
  3. package/src/dictionary/dictionary/config.d.ts +13 -7
  4. package/src/dictionary/dictionary/config.js +54 -9
  5. package/src/dictionary/translation-id/page-translation-ids/candle-details-page-translation-ids/config.d.ts +1 -1
  6. package/src/dictionary/translation-id/page-translation-ids/candle-details-page-translation-ids/config.js +10 -10
  7. package/src/dictionary/translation-id/page-translation-ids/common-page-translation-ids/config.d.ts +1 -1
  8. package/src/dictionary/translation-id/page-translation-ids/common-page-translation-ids/config.js +4 -7
  9. package/src/dictionary/translation-id/page-translation-ids/edit-candle-page-translation-ids/config.d.ts +1 -1
  10. package/src/dictionary/translation-id/page-translation-ids/edit-candle-page-translation-ids/config.js +4 -4
  11. package/src/dictionary/translation-id/translation-id/config.d.ts +1 -1
  12. package/src/dictionary/translation-id/translation-id/config.js +19 -15
  13. package/src/page/page/config.d.ts +1 -1
  14. package/src/page/page/config.js +10 -1
  15. package/src/page/page-data/candle-details-page-data/domain.d.ts +8 -0
  16. package/src/page/page-data/edit-candle-page-data/domain.d.ts +8 -0
  17. package/src/page/page-data/index.d.ts +3 -1
  18. package/src/page/page-data/index.js +3 -1
  19. package/src/page/page-data/{add-candle-page-data → light-candle-page-data}/domain.d.ts +1 -1
  20. package/src/ssr/server-side-props/candle-details-server-side-props.d.ts +9 -0
  21. package/src/ssr/server-side-props/candle-details-server-side-props.js +1 -0
  22. package/src/ssr/server-side-props/edit-candle-server-side-props.d.ts +9 -0
  23. package/src/ssr/server-side-props/edit-candle-server-side-props.js +1 -0
  24. package/src/ssr/server-side-props/index.d.ts +4 -2
  25. package/src/ssr/server-side-props/index.js +4 -2
  26. package/src/ssr/server-side-props/{add-candle-page-server-side-props → light-candle-page-server-side-props}/domain.d.ts +3 -3
  27. package/src/ssr/server-side-props/light-candle-page-server-side-props/domain.js +1 -0
  28. package/src/ssr/server-side-props/light-candle-page-server-side-props/index.d.ts +1 -0
  29. package/src/ssr/server-side-props/light-candle-page-server-side-props/index.js +1 -0
  30. package/src/ssr/server-side-props/server-side-props.d.ts +8 -0
  31. package/src/ssr/server-side-props/server-side-props.js +1 -0
  32. package/src/type/index.d.ts +1 -0
  33. package/src/type/index.js +1 -0
  34. package/src/type/undefined/index.d.ts +1 -0
  35. package/src/type/undefined/index.js +1 -0
  36. package/src/type/undefined/util.d.ts +1 -0
  37. package/src/type/undefined/util.js +1 -0
  38. package/src/ssr/server-side-props/server-side-props/domain.d.ts +0 -6
  39. /package/src/page/page-data/{add-candle-page-data → candle-details-page-data}/domain.js +0 -0
  40. /package/src/page/page-data/{add-candle-page-data → candle-details-page-data}/index.d.ts +0 -0
  41. /package/src/page/page-data/{add-candle-page-data → candle-details-page-data}/index.js +0 -0
  42. /package/src/{ssr/server-side-props/add-candle-page-server-side-props → page/page-data/edit-candle-page-data}/domain.js +0 -0
  43. /package/src/{ssr/server-side-props/add-candle-page-server-side-props → page/page-data/edit-candle-page-data}/index.d.ts +0 -0
  44. /package/src/{ssr/server-side-props/add-candle-page-server-side-props → page/page-data/edit-candle-page-data}/index.js +0 -0
  45. /package/src/{ssr/server-side-props/server-side-props → page/page-data/light-candle-page-data}/domain.js +0 -0
  46. /package/src/{ssr/server-side-props/server-side-props → page/page-data/light-candle-page-data}/index.d.ts +0 -0
  47. /package/src/{ssr/server-side-props/server-side-props → page/page-data/light-candle-page-data}/index.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.86",
3
+ "version": "0.0.88",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -4,4 +4,5 @@ export interface Auth {
4
4
  user?: {
5
5
  [key in string]: any;
6
6
  };
7
+ userId?: string;
7
8
  }
@@ -1,20 +1,26 @@
1
1
  export declare const DICTIONARY_CONFIG: {
2
- readonly 'add-candle-page': {
3
- readonly translationIds: readonly ["personCandles", "auth.candleLitWarning", "reset", "candle.description", "formMaxLengthError", "formRequiredError", "litName", "lightTheCandle", "add-candle-page.maintenance.submitError", "add-candle-page.maintenance.submitSuccess", "add-candle-page"];
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"];
4
4
  };
5
5
  readonly 'contact-page': {
6
- readonly translationIds: readonly ["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"];
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"];
7
7
  };
8
8
  readonly 'cookie-policy-page': {
9
- readonly translationIds: readonly ["acceptAll", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookie-policy-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", "acceptAll", "rejectAll", "save", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookie-policy-page"];
10
+ };
11
+ readonly 'edit-candle-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", "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"];
10
13
  };
11
14
  readonly 'help-page': {
12
- readonly translationIds: readonly ["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"];
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", "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"];
13
16
  };
14
17
  readonly 'home-page': {
15
- readonly translationIds: readonly ["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", "add-candle-page.maintenance.submitError", "lightTheCandle", "add-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"];
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", "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"];
19
+ };
20
+ readonly 'light-candle-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", "personCandles", "auth.candleLitWarning", "reset", "candle.description", "formMaxLengthError", "formRequiredError", "litName", "lightTheCandle", "light-candle-page.maintenance.submitError", "light-candle-page.maintenance.submitSuccess", "light-candle-page"];
16
22
  };
17
23
  readonly 'terms-and-conditions-page': {
18
- readonly translationIds: readonly ["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"];
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", "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"];
19
25
  };
20
26
  };
@@ -1,17 +1,36 @@
1
- import { CANDLE_CARDS_TRANSLATION_IDS, CANDLE_MAINTENANCE_TRANSLATION_IDS, PERSON_CARDS_TRANSLATION_IDS, PERSON_IMAGE_TRANSLATION_IDS, } from '../translation-id/index.js';
1
+ import { CANDLE_CARDS_TRANSLATION_IDS, CANDLE_IMAGE_TRANSLATION_IDS, CANDLE_MAINTENANCE_TRANSLATION_IDS, COMMON_PAGE_TRANSLATION_IDS, PERSON_CARDS_TRANSLATION_IDS, PERSON_IMAGE_TRANSLATION_IDS, } from '../translation-id/index.js';
2
2
  export const DICTIONARY_CONFIG = {
3
- 'add-candle-page': {
3
+ 'candle-details-page': {
4
4
  translationIds: [
5
5
  'personCandles',
6
- ...CANDLE_MAINTENANCE_TRANSLATION_IDS,
7
- 'lightTheCandle',
8
- 'add-candle-page.maintenance.submitError',
9
- 'add-candle-page.maintenance.submitSuccess',
10
- 'add-candle-page',
6
+ ...CANDLE_IMAGE_TRANSLATION_IDS,
7
+ 'burnsSoFar',
8
+ 'burnedOutCandle',
9
+ 'candle.description',
10
+ 'litName',
11
+ 'candle-details-page.deleteCandle.submitError',
12
+ 'candle-details-page.deleteCandle.submitSuccess',
13
+ 'candle-details-page.deleteCandle.question',
14
+ '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',
20
+ 'candle-details-page.relightCandle.submitError',
21
+ 'candle-details-page.relightCandle.submitSuccess',
22
+ 'candle-details-page.relightCandle.question',
23
+ 'candle-details-page.relightCandle',
24
+ 'cancel',
25
+ 'ok',
26
+ 'edit-candle-page',
27
+ 'candle-details-page',
28
+ 'person-details-page',
11
29
  ],
12
30
  },
13
31
  'contact-page': {
14
32
  translationIds: [
33
+ ...COMMON_PAGE_TRANSLATION_IDS,
15
34
  'contact-page.infoTitle',
16
35
  'contact-page.sendMessage.submitError',
17
36
  'contact-page.sendMessage.submitSuccess',
@@ -31,6 +50,7 @@ export const DICTIONARY_CONFIG = {
31
50
  },
32
51
  'cookie-policy-page': {
33
52
  translationIds: [
53
+ ...COMMON_PAGE_TRANSLATION_IDS,
34
54
  'acceptAll',
35
55
  'rejectAll',
36
56
  'save',
@@ -39,8 +59,20 @@ export const DICTIONARY_CONFIG = {
39
59
  'cookie-policy-page',
40
60
  ],
41
61
  },
62
+ 'edit-candle-page': {
63
+ translationIds: [
64
+ ...COMMON_PAGE_TRANSLATION_IDS,
65
+ 'candle-details-page',
66
+ ...CANDLE_MAINTENANCE_TRANSLATION_IDS,
67
+ 'edit-candle-page',
68
+ 'modify',
69
+ 'edit-candle-page.maintenance.submitError',
70
+ 'edit-candle-page.maintenance.submitSuccess',
71
+ ],
72
+ },
42
73
  'help-page': {
43
74
  translationIds: [
75
+ ...COMMON_PAGE_TRANSLATION_IDS,
44
76
  'help-page',
45
77
  'help-page.intro',
46
78
  'persons',
@@ -61,6 +93,7 @@ export const DICTIONARY_CONFIG = {
61
93
  },
62
94
  'home-page': {
63
95
  translationIds: [
96
+ ...COMMON_PAGE_TRANSLATION_IDS,
64
97
  'lightACandle',
65
98
  ...PERSON_IMAGE_TRANSLATION_IDS,
66
99
  ...CANDLE_CARDS_TRANSLATION_IDS,
@@ -72,9 +105,9 @@ export const DICTIONARY_CONFIG = {
72
105
  'auth.cannotBeChangedLaterWarning',
73
106
  'more',
74
107
  'reset',
75
- 'add-candle-page.maintenance.submitError',
108
+ 'light-candle-page.maintenance.submitError',
76
109
  'lightTheCandle',
77
- 'add-candle-page.maintenance.submitSuccess',
110
+ 'light-candle-page.maintenance.submitSuccess',
78
111
  'formMaxLengthError',
79
112
  'person.name',
80
113
  'formRequiredError',
@@ -93,8 +126,20 @@ export const DICTIONARY_CONFIG = {
93
126
  'home-page.proposal',
94
127
  ],
95
128
  },
129
+ 'light-candle-page': {
130
+ translationIds: [
131
+ ...COMMON_PAGE_TRANSLATION_IDS,
132
+ 'personCandles',
133
+ ...CANDLE_MAINTENANCE_TRANSLATION_IDS,
134
+ 'lightTheCandle',
135
+ 'light-candle-page.maintenance.submitError',
136
+ 'light-candle-page.maintenance.submitSuccess',
137
+ 'light-candle-page',
138
+ ],
139
+ },
96
140
  'terms-and-conditions-page': {
97
141
  translationIds: [
142
+ ...COMMON_PAGE_TRANSLATION_IDS,
98
143
  'terms-and-conditions-page.intro',
99
144
  'terms-and-conditions-page.conditionsOfUseTitle',
100
145
  'terms-and-conditions-page.conditionsOfUseParagraph',
@@ -1 +1 @@
1
- export declare const CANDLE_DETAILS_PAGE_TRANSLATION_IDS: readonly ["personCandles", "imageCannotBeLoaded", "burnsSoFar", "burnedOutCandle", "candle.description", "litName", "candleDetailsPage.deleteCandle.submitError", "candleDetailsPage.deleteCandle.submitSuccess", "candleDetailsPage.deleteCandle.question", "candleDetailsPage.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", "candleDetailsPage.relightCandle.submitError", "candleDetailsPage.relightCandle.submitSuccess", "candleDetailsPage.relightCandle.question", "candleDetailsPage.relightCandle", "cancel", "ok", "editCandlePage", "candleDetailsPage", "person-details-page"];
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"];
@@ -6,23 +6,23 @@ export const CANDLE_DETAILS_PAGE_TRANSLATION_IDS = [
6
6
  'burnedOutCandle',
7
7
  'candle.description',
8
8
  'litName',
9
- 'candleDetailsPage.deleteCandle.submitError',
10
- 'candleDetailsPage.deleteCandle.submitSuccess',
11
- 'candleDetailsPage.deleteCandle.question',
12
- 'candleDetailsPage.deleteCandle',
9
+ 'candle-details-page.deleteCandle.submitError',
10
+ 'candle-details-page.deleteCandle.submitSuccess',
11
+ 'candle-details-page.deleteCandle.question',
12
+ 'candle-details-page.deleteCandle',
13
13
  'person-details-page.myCandle.submitError',
14
14
  'person-details-page.myCandle.submitSuccess',
15
15
  'person-details-page.myCandle.loginRequired',
16
16
  'person-details-page.myCandle.question',
17
17
  'person-details-page.myCandle',
18
- 'candleDetailsPage.relightCandle.submitError',
19
- 'candleDetailsPage.relightCandle.submitSuccess',
20
- 'candleDetailsPage.relightCandle.question',
21
- 'candleDetailsPage.relightCandle',
18
+ 'candle-details-page.relightCandle.submitError',
19
+ 'candle-details-page.relightCandle.submitSuccess',
20
+ 'candle-details-page.relightCandle.question',
21
+ 'candle-details-page.relightCandle',
22
22
  'cancel',
23
23
  'ok',
24
- 'editCandlePage',
25
- 'candleDetailsPage',
24
+ 'edit-candle-page',
25
+ 'candle-details-page',
26
26
  'person-details-page',
27
27
  ];
28
28
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -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", "contact-page", "cookie-policy-page", "help-page", "persons-page", "persons-map-page", "terms-and-conditions-page", "persons", "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.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook"];
@@ -17,13 +17,10 @@ export const COMMON_PAGE_TRANSLATION_IDS = [
17
17
  'hungarian',
18
18
  'add-person-page',
19
19
  'candles-page',
20
- 'contact-page',
21
- 'cookie-policy-page',
22
- 'help-page',
23
- 'persons-page',
24
- 'persons-map-page',
25
- 'terms-and-conditions-page',
26
- 'persons',
20
+ 'pageMenu.contact-page',
21
+ 'pageMenu.cookie-policy-page',
22
+ 'pageMenu.help-page',
23
+ 'pageMenu.terms-and-conditions-page',
27
24
  'shareOnFacebook',
28
25
  ];
29
26
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -1 +1 @@
1
- export declare const EDIT_CANDLE_PAGE_TRANSLATION_IDS: readonly ["candleDetailsPage", "auth.candleLitWarning", "reset", "candle.description", "formMaxLengthError", "formRequiredError", "litName", "editCandlePage", "modify", "editCandlePage.maintenance.submitError", "editCandlePage.maintenance.submitSuccess"];
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 +1,11 @@
1
1
  import { CANDLE_MAINTENANCE_TRANSLATION_IDS } from '../../candle-translation-ids/index.js';
2
2
  export const EDIT_CANDLE_PAGE_TRANSLATION_IDS = [
3
- 'candleDetailsPage',
3
+ 'candle-details-page',
4
4
  ...CANDLE_MAINTENANCE_TRANSLATION_IDS,
5
- 'editCandlePage',
5
+ 'edit-candle-page',
6
6
  'modify',
7
- 'editCandlePage.maintenance.submitError',
8
- 'editCandlePage.maintenance.submitSuccess',
7
+ 'edit-candle-page.maintenance.submitError',
8
+ 'edit-candle-page.maintenance.submitSuccess',
9
9
  ];
10
10
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
11
11
  const CHECK = EDIT_CANDLE_PAGE_TRANSLATION_IDS;
@@ -1 +1 @@
1
- export declare const TRANSLATION_IDS: readonly ["acceptAll", "add-candle-page", "add-candle-page.maintenance.submitError", "add-candle-page.maintenance.submitSuccess", "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", "candleDetailsPage", "candleDetailsPage.deleteCandle.submitError", "candleDetailsPage.deleteCandle.submitSuccess", "candleDetailsPage.deleteCandle.question", "candleDetailsPage.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", "candleDetailsPage.relightCandle.submitError", "candleDetailsPage.relightCandle.submitSuccess", "candleDetailsPage.relightCandle.question", "candleDetailsPage.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", "editCandlePage", "editCandlePage.maintenance.submitError", "editCandlePage.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", "lightTheCandle", "litName", "login", "loginPage.login.submitError", "loginPage.login.showPassword", "logout", "map", "message", "modify", "more", "motto1", "motto2", "motto3", "myCandles", "myPersons", "name", "ok", "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", "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,8 +1,5 @@
1
1
  export const TRANSLATION_IDS = [
2
2
  'acceptAll',
3
- 'add-candle-page',
4
- 'add-candle-page.maintenance.submitError',
5
- 'add-candle-page.maintenance.submitSuccess',
6
3
  'add-person-page',
7
4
  'add-person-page.maintenance.submitError',
8
5
  'add-person-page.maintenance.submitSuccess',
@@ -15,20 +12,20 @@ export const TRANSLATION_IDS = [
15
12
  'burningCandles',
16
13
  'burnsSoFar',
17
14
  'cancel',
18
- 'candleDetailsPage',
19
- 'candleDetailsPage.deleteCandle.submitError',
20
- 'candleDetailsPage.deleteCandle.submitSuccess',
21
- 'candleDetailsPage.deleteCandle.question',
22
- 'candleDetailsPage.deleteCandle',
15
+ 'candle-details-page',
16
+ 'candle-details-page.deleteCandle.submitError',
17
+ 'candle-details-page.deleteCandle.submitSuccess',
18
+ 'candle-details-page.deleteCandle.question',
19
+ 'candle-details-page.deleteCandle',
23
20
  'person-details-page.myCandle.submitError',
24
21
  'person-details-page.myCandle.submitSuccess',
25
22
  'person-details-page.myCandle.loginRequired',
26
23
  'person-details-page.myCandle.question',
27
24
  'person-details-page.myCandle',
28
- 'candleDetailsPage.relightCandle.submitError',
29
- 'candleDetailsPage.relightCandle.submitSuccess',
30
- 'candleDetailsPage.relightCandle.question',
31
- 'candleDetailsPage.relightCandle',
25
+ 'candle-details-page.relightCandle.submitError',
26
+ 'candle-details-page.relightCandle.submitSuccess',
27
+ 'candle-details-page.relightCandle.question',
28
+ 'candle-details-page.relightCandle',
32
29
  'candle',
33
30
  'candlesInCount',
34
31
  'candles',
@@ -51,9 +48,9 @@ export const TRANSLATION_IDS = [
51
48
  'dropZone.drapActive',
52
49
  'dropZone.dropZone',
53
50
  'dropZone.sizeLimit',
54
- 'editCandlePage',
55
- 'editCandlePage.maintenance.submitError',
56
- 'editCandlePage.maintenance.submitSuccess',
51
+ 'edit-candle-page',
52
+ 'edit-candle-page.maintenance.submitError',
53
+ 'edit-candle-page.maintenance.submitSuccess',
57
54
  'editPersonPage',
58
55
  'editPersonPage.maintenance.submitError',
59
56
  'editPersonPage.maintenance.submitSuccess',
@@ -99,6 +96,9 @@ export const TRANSLATION_IDS = [
99
96
  'imageClickToSeeOriginal',
100
97
  'imageNotSet',
101
98
  'lightACandle',
99
+ 'light-candle-page',
100
+ 'light-candle-page.maintenance.submitError',
101
+ 'light-candle-page.maintenance.submitSuccess',
102
102
  'lightTheCandle',
103
103
  'litName',
104
104
  'login',
@@ -116,6 +116,10 @@ export const TRANSLATION_IDS = [
116
116
  'myPersons',
117
117
  'name',
118
118
  'ok',
119
+ 'pageMenu.contact-page',
120
+ 'pageMenu.cookie-policy-page',
121
+ 'pageMenu.help-page',
122
+ 'pageMenu.terms-and-conditions-page',
119
123
  'password',
120
124
  'person',
121
125
  'person.birthDate',
@@ -1 +1 @@
1
- export declare const PAGES: readonly ["add-candle-page", "home-page", "contact-page", "cookie-policy-page", "help-page", "terms-and-conditions-page"];
1
+ export declare const PAGES: readonly ["candle-details-page", "contact-page", "cookie-policy-page", "edit-candle-page", "help-page", "home-page", "light-candle-page", "terms-and-conditions-page"];
@@ -1 +1,10 @@
1
- export const PAGES = ['add-candle-page', 'home-page', 'contact-page', 'cookie-policy-page', 'help-page', 'terms-and-conditions-page'];
1
+ export const PAGES = [
2
+ 'candle-details-page',
3
+ 'contact-page',
4
+ 'cookie-policy-page',
5
+ 'edit-candle-page',
6
+ 'help-page',
7
+ 'home-page',
8
+ 'light-candle-page',
9
+ 'terms-and-conditions-page',
10
+ ];
@@ -0,0 +1,8 @@
1
+ import { Candle, Person } from '../../../database/index.js';
2
+ export interface CandleDetailsPageData {
3
+ detail: {
4
+ candle: Candle & {
5
+ person: Person;
6
+ };
7
+ };
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Candle, Person } from '../../../database/index.js';
2
+ export interface EditCandlePageData {
3
+ maintenance: {
4
+ candle: Candle & {
5
+ person: Person;
6
+ };
7
+ };
8
+ }
@@ -1 +1,3 @@
1
- export * from './add-candle-page-data/domain.js';
1
+ export * from './candle-details-page-data/index.js';
2
+ export * from './edit-candle-page-data/index.js';
3
+ export * from './light-candle-page-data/domain.js';
@@ -1 +1,3 @@
1
- export * from './add-candle-page-data/domain.js';
1
+ export * from './candle-details-page-data/index.js';
2
+ export * from './edit-candle-page-data/index.js';
3
+ export * from './light-candle-page-data/domain.js';
@@ -1,5 +1,5 @@
1
1
  import { Person } from '../../../database/index.js';
2
- export interface AddCandlePageData {
2
+ export interface LightCandlePageData {
3
3
  maintenance: {
4
4
  person: Person;
5
5
  };
@@ -0,0 +1,9 @@
1
+ import { Auth } from '../../auth/index.js';
2
+ import { Dictionary, Language } from '../../dictionary/index.js';
3
+ import { CandleDetailsPageData } from '../../page/index.js';
4
+ export interface CandleDetailsServerSideProps {
5
+ auth: Auth;
6
+ dictionary: Dictionary;
7
+ language: Language;
8
+ pageData: CandleDetailsPageData;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { Auth } from '../../auth/index.js';
2
+ import { Dictionary, Language } from '../../dictionary/index.js';
3
+ import { EditCandlePageData } from '../../page/index.js';
4
+ export interface EditCandleServerSideProps {
5
+ auth: Auth;
6
+ dictionary: Dictionary;
7
+ language: Language;
8
+ pageData: EditCandlePageData;
9
+ }
@@ -1,6 +1,8 @@
1
- export * from './add-candle-page-server-side-props/index.js';
1
+ export * from './candle-details-server-side-props.js';
2
+ export * from './edit-candle-server-side-props.js';
3
+ export * from './light-candle-page-server-side-props/index.js';
2
4
  export * from './contact-page-server-side-props/index.js';
3
5
  export * from './cookie-policy-page-server-side-props/index.js';
4
6
  export * from './help-page-server-side-props/index.js';
5
- export * from './server-side-props/index.js';
7
+ export * from './server-side-props.js';
6
8
  export * from './terms-and-conditions-page-server-side-props/index.js';
@@ -1,6 +1,8 @@
1
- export * from './add-candle-page-server-side-props/index.js';
1
+ export * from './candle-details-server-side-props.js';
2
+ export * from './edit-candle-server-side-props.js';
3
+ export * from './light-candle-page-server-side-props/index.js';
2
4
  export * from './contact-page-server-side-props/index.js';
3
5
  export * from './cookie-policy-page-server-side-props/index.js';
4
6
  export * from './help-page-server-side-props/index.js';
5
- export * from './server-side-props/index.js';
7
+ export * from './server-side-props.js';
6
8
  export * from './terms-and-conditions-page-server-side-props/index.js';
@@ -1,9 +1,9 @@
1
1
  import { Auth } from '../../../auth/index.js';
2
2
  import { Dictionary, Language } from '../../../dictionary/index.js';
3
- import { AddCandlePageData } from '../../../page/index.js';
4
- export interface AddCandlePageServerSideProps {
3
+ import { LightCandlePageData } from '../../../page/index.js';
4
+ export interface LightCandlePageServerSideProps {
5
5
  auth: Auth;
6
6
  dictionary: Dictionary;
7
7
  language: Language;
8
- pageData: AddCandlePageData;
8
+ pageData: LightCandlePageData;
9
9
  }
@@ -0,0 +1 @@
1
+ export * from './domain.js';
@@ -0,0 +1 @@
1
+ export * from './domain.js';
@@ -0,0 +1,8 @@
1
+ import { LightCandlePageServerSideProps } from './light-candle-page-server-side-props/index.js';
2
+ import { ContactPageServerSideProps } from './contact-page-server-side-props/domain.js';
3
+ import { CookiePolicyPageServerSideProps } from './cookie-policy-page-server-side-props/domain.js';
4
+ import { HelpPageServerSideProps } from './help-page-server-side-props/domain.js';
5
+ import { TermsAndConditionsPageServerSideProps } from './terms-and-conditions-page-server-side-props/domain.js';
6
+ import { EditCandleServerSideProps } from './edit-candle-server-side-props.js';
7
+ import { CandleDetailsServerSideProps } from './candle-details-server-side-props.js';
8
+ export type ServerSideProps = CandleDetailsServerSideProps | ContactPageServerSideProps | CookiePolicyPageServerSideProps | EditCandleServerSideProps | HelpPageServerSideProps | LightCandlePageServerSideProps | TermsAndConditionsPageServerSideProps;
@@ -0,0 +1 @@
1
+ export {};
@@ -2,3 +2,4 @@ export * from './array/index.js';
2
2
  export * from './object/index.js';
3
3
  export * from './string/index.js';
4
4
  export * from './type/index.js';
5
+ export * from './undefined/index.js';
package/src/type/index.js CHANGED
@@ -2,3 +2,4 @@ export * from './array/index.js';
2
2
  export * from './object/index.js';
3
3
  export * from './string/index.js';
4
4
  export * from './type/index.js';
5
+ export * from './undefined/index.js';
@@ -0,0 +1 @@
1
+ export * from './util.js';
@@ -0,0 +1 @@
1
+ export * from './util.js';
@@ -0,0 +1 @@
1
+ export declare const isUndefined: (data?: unknown) => data is undefined;
@@ -0,0 +1 @@
1
+ export const isUndefined = (data) => data === undefined;
@@ -1,6 +0,0 @@
1
- import { AddCandlePageServerSideProps } from '../add-candle-page-server-side-props/index.js';
2
- import { ContactPageServerSideProps } from '../contact-page-server-side-props/domain.js';
3
- import { CookiePolicyPageServerSideProps } from '../cookie-policy-page-server-side-props/domain.js';
4
- import { HelpPageServerSideProps } from '../help-page-server-side-props/domain.js';
5
- import { TermsAndConditionsPageServerSideProps } from '../terms-and-conditions-page-server-side-props/domain.js';
6
- export type ServerSideProps = AddCandlePageServerSideProps | ContactPageServerSideProps | CookiePolicyPageServerSideProps | HelpPageServerSideProps | TermsAndConditionsPageServerSideProps;