@candlerip/shared3 0.0.132 → 0.0.134
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +3 -2
- package/src/aws/http/configs/cache-control/index.d.ts +1 -0
- package/src/aws/http/configs/cache-control/index.js +1 -0
- package/src/aws/http/configs/cache-control/max-age/index.d.ts +1 -0
- package/src/aws/http/configs/cache-control/max-age/index.js +1 -0
- package/src/aws/http/configs/index.d.ts +1 -0
- package/src/aws/http/configs/index.js +1 -0
- package/src/aws/http/index.d.ts +1 -0
- package/src/aws/http/index.js +1 -0
- package/src/aws/image/convert-base-64-image/index.d.ts +1 -0
- package/src/aws/image/convert-base-64-image/index.js +1 -0
- package/src/aws/image/convert-base-64-image/type.d.ts +1 -0
- package/src/aws/image/convert-base-64-image/type.js +1 -0
- package/src/aws/image/convert-base-64-image/util.d.ts +2 -0
- package/src/aws/image/convert-base-64-image/util.js +1 -0
- package/src/aws/image/index.d.ts +1 -0
- package/src/aws/image/index.js +1 -0
- package/src/aws/index.d.ts +1 -0
- package/src/aws/index.js +1 -0
- package/src/aws/s3/index.d.ts +2 -0
- package/src/aws/s3/index.js +2 -0
- package/src/aws/s3/person-image-worker/index.d.ts +2 -0
- package/src/aws/s3/person-image-worker/index.js +106 -0
- package/src/aws/s3/person-image-worker/types.d.ts +35 -0
- package/src/aws/s3/person-image-worker/types.js +1 -0
- package/src/aws/s3/worker/index.d.ts +13 -0
- package/src/aws/s3/worker/index.js +89 -0
- package/src/aws/s3/worker/types.d.ts +23 -0
- package/src/aws/s3/worker/types.js +1 -0
- 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 +14 -11
- package/src/dictionary/dictionary/config.js +11 -0
- 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 +4 -3
- package/src/dictionary/translation-id/page/index.d.ts +0 -2
- package/src/dictionary/translation-id/page/index.js +0 -2
- 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/image/image/index.d.ts +1 -0
- package/src/image/image/index.js +1 -0
- package/src/image/image/type.d.ts +5 -0
- package/src/image/image/type.js +1 -0
- package/src/image/image-dimension/index.d.ts +1 -0
- package/src/image/image-dimension/index.js +1 -0
- package/src/image/image-dimension/type.d.ts +5 -0
- package/src/image/image-dimension/type.js +1 -0
- package/src/image/index.d.ts +2 -0
- package/src/image/index.js +2 -0
- 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/person/index.d.ts +1 -0
- package/src/person/index.js +1 -0
- package/src/person/person-image/file-name/config.d.ts +1 -0
- package/src/person/person-image/file-name/config.js +2 -0
- package/src/{dictionary/translation-id/page/edit-person-page-translation-ids → person/person-image/file-name}/index.d.ts +1 -0
- package/src/{dictionary/translation-id/page/edit-person-page-translation-ids → person/person-image/file-name}/index.js +1 -0
- package/src/person/person-image/file-name/type.d.ts +2 -0
- package/src/person/person-image/file-name/type.js +1 -0
- package/src/person/person-image/index.d.ts +3 -0
- package/src/person/person-image/index.js +3 -0
- package/src/person/person-image/type.d.ts +10 -0
- package/src/person/person-image/type.js +1 -0
- package/src/person/person-image/width/config.d.ts +1 -0
- package/src/person/person-image/width/config.js +1 -0
- package/src/{dictionary/translation-id/page/add-person-page-translation-ids → person/person-image/width}/index.d.ts +1 -0
- package/src/{dictionary/translation-id/page/add-person-page-translation-ids → person/person-image/width}/index.js +1 -0
- package/src/person/person-image/width/type.d.ts +2 -0
- package/src/person/person-image/width/type.js +1 -0
- package/src/dictionary/translation-id/page/add-person-page-translation-ids/config.d.ts +0 -1
- package/src/dictionary/translation-id/page/add-person-page-translation-ids/config.js +0 -11
- package/src/dictionary/translation-id/page/edit-person-page-translation-ids/config.d.ts +0 -1
- package/src/dictionary/translation-id/page/edit-person-page-translation-ids/config.js +0 -10
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@candlerip/shared3",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.134",
|
4
4
|
"type": "module",
|
5
5
|
"exports": {
|
6
6
|
".": "./src/index.js",
|
@@ -52,6 +52,7 @@
|
|
52
52
|
"dotenv": "^16.4.5",
|
53
53
|
"express": "^4.21.1",
|
54
54
|
"mongoose": "^8.8.0",
|
55
|
-
"redis": "^4.7.0"
|
55
|
+
"redis": "^4.7.0",
|
56
|
+
"sharp": "^0.33.5"
|
56
57
|
}
|
57
58
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './max-age/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './max-age/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const HTTP_CACHE_CONTROL_MAX_AGE = 7776000;
|
@@ -0,0 +1 @@
|
|
1
|
+
export const HTTP_CACHE_CONTROL_MAX_AGE = 7776000;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './cache-control/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './cache-control/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './configs/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './configs/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './util.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './util.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export type ConvertBase64ToImage = (base64Image: string) => string;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export const convertBase64ToImage = (base64Image) => base64Image.replace(/^data:image\/\w+;base64,/, '');
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './convert-base-64-image/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './convert-base-64-image/index.js';
|
package/src/aws/index.d.ts
CHANGED
package/src/aws/index.js
CHANGED
package/src/aws/s3/index.d.ts
CHANGED
package/src/aws/s3/index.js
CHANGED
@@ -0,0 +1,106 @@
|
|
1
|
+
import sharp from 'sharp';
|
2
|
+
import { composeCustomError } from '../../../error/index.js';
|
3
|
+
import { S3Worker } from '../worker/index.js';
|
4
|
+
import { convertBase64ToImage } from '../../image/index.js';
|
5
|
+
export const PersonImageWorker = (() => {
|
6
|
+
let s3Worker;
|
7
|
+
const init = (bucketName) => {
|
8
|
+
s3Worker = new S3Worker(bucketName);
|
9
|
+
};
|
10
|
+
const deleteImage = async (personId, imageName, fileName) => s3Worker.deleteFile(`persons/${personId}/${imageName}/${fileName}`);
|
11
|
+
const deleteImages = async (personId, personImages) => {
|
12
|
+
const promises = [];
|
13
|
+
personImages.forEach((personImage) => {
|
14
|
+
['original', ...personImage.dimensions.resized.map((it) => it.width)].forEach((it) => {
|
15
|
+
promises.push(deleteImage(personId, personImage.name, `${it.toString()}.${personImage.extension}`));
|
16
|
+
});
|
17
|
+
});
|
18
|
+
const resp = await Promise.all(promises);
|
19
|
+
const errors = resp.filter((it) => it);
|
20
|
+
if (errors.length > 0) {
|
21
|
+
return {
|
22
|
+
customError: composeCustomError('Errors during delete person images', 'backend', {
|
23
|
+
errors,
|
24
|
+
personImages,
|
25
|
+
personId,
|
26
|
+
}),
|
27
|
+
};
|
28
|
+
}
|
29
|
+
return;
|
30
|
+
};
|
31
|
+
const getImage = async (personId, imageName, fileName, extension) => s3Worker.getImage(`persons/${personId}/${imageName}/${fileName}`, extension);
|
32
|
+
const getImages = async (personId, personImages, personImageFileName) => {
|
33
|
+
const promises = [];
|
34
|
+
personImages.forEach((personImage) => {
|
35
|
+
promises.push(getImage(personId, personImage.name, `${personImageFileName}.${personImage.extension}`, personImage.extension));
|
36
|
+
});
|
37
|
+
const resp = await Promise.all(promises);
|
38
|
+
const errors = resp.filter((it) => 'customError' in it);
|
39
|
+
if (errors.length > 0) {
|
40
|
+
return {
|
41
|
+
customError: composeCustomError('Errors during get person images', 'backend', {
|
42
|
+
errors,
|
43
|
+
personImages,
|
44
|
+
personId,
|
45
|
+
}),
|
46
|
+
};
|
47
|
+
}
|
48
|
+
return {
|
49
|
+
base64Images: resp.filter((it) => 'base64Image' in it).map((it) => it.base64Image),
|
50
|
+
};
|
51
|
+
};
|
52
|
+
const uploadImage = async (fileBuffer, personId, imageName, fileName, extension) => s3Worker.uploadImage(`persons/${personId}/${imageName}/${fileName}`, fileBuffer, extension);
|
53
|
+
const uploadImages = async (personId, images) => {
|
54
|
+
const promises = [];
|
55
|
+
for (let i = 0; i < images.length; i++) {
|
56
|
+
const image = images[i];
|
57
|
+
const { base64Image, personImage } = image;
|
58
|
+
const originalBuffer = Buffer.from(convertBase64ToImage(base64Image), 'base64');
|
59
|
+
const imageResizePromises = personImage.dimensions.resized.map((dimension) => sharp(originalBuffer).resize({ width: dimension.width }).withMetadata().toBuffer());
|
60
|
+
let resp;
|
61
|
+
try {
|
62
|
+
resp = await Promise.all(imageResizePromises);
|
63
|
+
}
|
64
|
+
catch (err) {
|
65
|
+
return {
|
66
|
+
customError: composeCustomError('Error during image convertion', 'backend', {
|
67
|
+
err,
|
68
|
+
}),
|
69
|
+
};
|
70
|
+
}
|
71
|
+
[
|
72
|
+
{
|
73
|
+
buffer: originalBuffer,
|
74
|
+
width: 'original',
|
75
|
+
},
|
76
|
+
...resp.map((it, i) => ({
|
77
|
+
buffer: it,
|
78
|
+
width: personImage.dimensions.resized[i].width,
|
79
|
+
})),
|
80
|
+
].forEach((it) => {
|
81
|
+
promises.push(uploadImage(it.buffer, personId, personImage.name, `${it.width.toString()}.${personImage.extension}`, personImage.extension));
|
82
|
+
});
|
83
|
+
}
|
84
|
+
const resp = await Promise.all(promises);
|
85
|
+
const errors = resp.filter((it) => it);
|
86
|
+
if (errors.length > 0) {
|
87
|
+
return {
|
88
|
+
customError: composeCustomError('Errors during update person images', 'backend', {
|
89
|
+
errors,
|
90
|
+
images,
|
91
|
+
personId,
|
92
|
+
}),
|
93
|
+
};
|
94
|
+
}
|
95
|
+
return;
|
96
|
+
};
|
97
|
+
return {
|
98
|
+
deleteImage,
|
99
|
+
deleteImages,
|
100
|
+
getImage,
|
101
|
+
getImages,
|
102
|
+
init,
|
103
|
+
uploadImage,
|
104
|
+
uploadImages,
|
105
|
+
};
|
106
|
+
})();
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { CustomError } from '../../../error/index.js';
|
2
|
+
import { Image } from '../../../image/index.js';
|
3
|
+
import { PersonImage, PersonImageFileName } from '../../../person/index.js';
|
4
|
+
export interface IPersonImageWorker {
|
5
|
+
deleteImage: DeleteImage;
|
6
|
+
deleteImages: DeleteImages;
|
7
|
+
getImage: GetImage;
|
8
|
+
getImages: GetImages;
|
9
|
+
init: Init;
|
10
|
+
uploadImage: UploadImage;
|
11
|
+
uploadImages: UploadImages;
|
12
|
+
}
|
13
|
+
export type DeleteImage = (personId: string, imageName: string, fileName: string) => Promise<void | {
|
14
|
+
customError: CustomError;
|
15
|
+
}>;
|
16
|
+
export type DeleteImages = (personId: string, personImages: PersonImage[]) => Promise<void | {
|
17
|
+
customError: CustomError;
|
18
|
+
}>;
|
19
|
+
export type GetImage = (personId: string, imageName: string, fileName: string, extension: string) => Promise<{
|
20
|
+
customError: CustomError;
|
21
|
+
} | {
|
22
|
+
base64Image: string;
|
23
|
+
}>;
|
24
|
+
export type GetImages = (personId: string, personImages: PersonImage[], personImageFileName: PersonImageFileName) => Promise<{
|
25
|
+
base64Images: string[];
|
26
|
+
} | {
|
27
|
+
customError: CustomError;
|
28
|
+
}>;
|
29
|
+
export type Init = (bucketName: string) => void;
|
30
|
+
export type UploadImage = (fileBuffer: Buffer, personId: string, imageName: string, fileName: string, extension: string) => Promise<void | {
|
31
|
+
customError: CustomError;
|
32
|
+
}>;
|
33
|
+
export type UploadImages = (personId: string, images: Image[]) => Promise<void | {
|
34
|
+
customError: CustomError;
|
35
|
+
}>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { S3Client } from '@aws-sdk/client-s3';
|
2
|
+
import { DeleteFile, GetFile, GetImage, UploadFile, UploadImage } from './types.js';
|
3
|
+
export declare class S3Worker {
|
4
|
+
bucketName: string;
|
5
|
+
client: S3Client;
|
6
|
+
startDate: Date;
|
7
|
+
constructor(bucketName: string);
|
8
|
+
deleteFile: DeleteFile;
|
9
|
+
getFile: GetFile;
|
10
|
+
getImage: GetImage;
|
11
|
+
uploadFile: UploadFile;
|
12
|
+
uploadImage: UploadImage;
|
13
|
+
}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
import { DeleteObjectCommand, GetObjectCommand, PutObjectCommand, S3Client } from '@aws-sdk/client-s3';
|
2
|
+
import { HTTP_CACHE_CONTROL_MAX_AGE } from '../../http/index.js';
|
3
|
+
import { DEFAULT_AWS_REGION } from '../../region/index.js';
|
4
|
+
import { composeCustomError } from '../../../error/index.js';
|
5
|
+
export class S3Worker {
|
6
|
+
bucketName;
|
7
|
+
client;
|
8
|
+
startDate = new Date();
|
9
|
+
constructor(bucketName) {
|
10
|
+
this.bucketName = bucketName;
|
11
|
+
this.client = new S3Client({ region: DEFAULT_AWS_REGION });
|
12
|
+
}
|
13
|
+
deleteFile = async (key) => {
|
14
|
+
try {
|
15
|
+
await this.client.send(new DeleteObjectCommand({
|
16
|
+
Bucket: this.bucketName,
|
17
|
+
Key: key,
|
18
|
+
}));
|
19
|
+
}
|
20
|
+
catch (err) {
|
21
|
+
return {
|
22
|
+
customError: composeCustomError('Cannot delete file in S3', 'backend', { err, bucketName: this.bucketName, key }),
|
23
|
+
};
|
24
|
+
}
|
25
|
+
return;
|
26
|
+
};
|
27
|
+
getFile = async (key) => {
|
28
|
+
let stream;
|
29
|
+
try {
|
30
|
+
const response = await this.client.send(new GetObjectCommand({
|
31
|
+
Bucket: this.bucketName,
|
32
|
+
Key: key,
|
33
|
+
}));
|
34
|
+
if (!response) {
|
35
|
+
return {
|
36
|
+
customError: composeCustomError('Error during get image from S3', 'backend', { key }),
|
37
|
+
};
|
38
|
+
}
|
39
|
+
stream = response.Body;
|
40
|
+
}
|
41
|
+
catch (err) {
|
42
|
+
return {
|
43
|
+
customError: composeCustomError('Cannot get file from S3', 'backend', { err, key }),
|
44
|
+
};
|
45
|
+
}
|
46
|
+
return {
|
47
|
+
stream,
|
48
|
+
};
|
49
|
+
};
|
50
|
+
getImage = async (key, extension) => {
|
51
|
+
let base64Image;
|
52
|
+
const resp = await this.getFile(key);
|
53
|
+
if ('customError' in resp) {
|
54
|
+
return resp;
|
55
|
+
}
|
56
|
+
const { stream } = resp;
|
57
|
+
try {
|
58
|
+
const buffer = Buffer.concat(await stream.toArray());
|
59
|
+
base64Image = `data:image/${extension};base64,${btoa(new Uint8Array(buffer).reduce((data, byte) => data + String.fromCharCode(byte), ''))}`;
|
60
|
+
}
|
61
|
+
catch (err) {
|
62
|
+
return {
|
63
|
+
customError: composeCustomError('Cannot get file from S3', 'backend', { err, key }),
|
64
|
+
};
|
65
|
+
}
|
66
|
+
return { base64Image };
|
67
|
+
};
|
68
|
+
uploadFile = async (key, fileBuffer, options) => {
|
69
|
+
try {
|
70
|
+
await this.client.send(new PutObjectCommand({
|
71
|
+
Body: fileBuffer,
|
72
|
+
Bucket: this.bucketName,
|
73
|
+
Key: key,
|
74
|
+
...options,
|
75
|
+
CacheControl: `max-age=${HTTP_CACHE_CONTROL_MAX_AGE}`,
|
76
|
+
}));
|
77
|
+
}
|
78
|
+
catch (err) {
|
79
|
+
return {
|
80
|
+
customError: composeCustomError('Cannot upload file to S3', 'backend', { err, file: fileBuffer, key, options }),
|
81
|
+
};
|
82
|
+
}
|
83
|
+
return;
|
84
|
+
};
|
85
|
+
uploadImage = async (key, fileBuffer, extension) => this.uploadFile(key, fileBuffer, {
|
86
|
+
ContentEncoding: 'base64',
|
87
|
+
ContentType: `image/${extension}`,
|
88
|
+
});
|
89
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { CustomError } from '../../../error/index.js';
|
2
|
+
export type DeleteFile = (key: string) => Promise<void | {
|
3
|
+
customError: CustomError;
|
4
|
+
}>;
|
5
|
+
export type GetFile = (key: string) => Promise<{
|
6
|
+
stream: any;
|
7
|
+
} | {
|
8
|
+
customError: CustomError;
|
9
|
+
}>;
|
10
|
+
export type GetImage = (key: string, extension: string) => Promise<{
|
11
|
+
customError: CustomError;
|
12
|
+
} | {
|
13
|
+
base64Image: string;
|
14
|
+
}>;
|
15
|
+
export type UploadFile = (key: string, fileBuffer: Buffer, options?: {
|
16
|
+
ContentEncoding?: string;
|
17
|
+
ContentType?: string;
|
18
|
+
}) => Promise<void | {
|
19
|
+
customError: CustomError;
|
20
|
+
}>;
|
21
|
+
export type UploadImage = (key: string, fileBuffer: Buffer, extension: string) => Promise<void | {
|
22
|
+
customError: CustomError;
|
23
|
+
}>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1 +1 @@
|
|
1
|
-
export declare const CACHE_KEYS: readonly ["add-person-page-dictionary-en", "add-person-page-dictionary-hu", "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", "home-page-dictionary-en", "home-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"];
|
1
|
+
export declare const CACHE_KEYS: readonly ["add-person-page-dictionary-en", "add-person-page-dictionary-hu", "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", "edit-person-page-dictionary-en", "edit-person-page-dictionary-hu", "light-candle-page-dictionary-en", "light-candle-page-dictionary-hu", "help-page-dictionary-en", "help-page-dictionary-hu", "home-page-dictionary-en", "home-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"];
|
@@ -11,6 +11,8 @@ export const CACHE_KEYS = [
|
|
11
11
|
'cookie-policy-page-dictionary-hu',
|
12
12
|
'edit-candle-page-dictionary-en',
|
13
13
|
'edit-candle-page-dictionary-hu',
|
14
|
+
'edit-person-page-dictionary-en',
|
15
|
+
'edit-person-page-dictionary-hu',
|
14
16
|
'light-candle-page-dictionary-en',
|
15
17
|
'light-candle-page-dictionary-hu',
|
16
18
|
'help-page-dictionary-en',
|
@@ -1,35 +1,38 @@
|
|
1
1
|
export declare const DICTIONARY_CONFIG: {
|
2
2
|
readonly 'add-person-page': {
|
3
|
-
readonly translationIds: readonly ["persons", "auth.cannotBeChangedLaterWarning", "auth.loginRequired", "add-person-page", "modify", "reset", "count", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "invalidImage", "tooBigImage", "image", "noMoreImages", "formDateError", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "select", "formMaxLengthError", "proposable", "formRequiredError", "name", "add-person-page", "person-details-page", "add-person-page.maintenance.submitError", "add-person-page.maintenance.submitSuccess"];
|
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.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "persons", "auth.cannotBeChangedLaterWarning", "auth.loginRequired", "add-person-page", "modify", "reset", "count", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "invalidImage", "tooBigImage", "image", "noMoreImages", "formDateError", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "select", "formMaxLengthError", "proposable", "formRequiredError", "name", "add-person-page", "person-details-page", "add-person-page.maintenance.submitError", "add-person-page.maintenance.submitSuccess"];
|
4
4
|
};
|
5
5
|
readonly 'candle-details-page': {
|
6
|
-
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"];
|
6
|
+
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.add-person-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"];
|
7
7
|
};
|
8
8
|
readonly 'candles-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.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"];
|
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.add-person-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"];
|
10
10
|
};
|
11
11
|
readonly 'contact-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", "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"];
|
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.add-person-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"];
|
13
13
|
};
|
14
14
|
readonly 'cookie-policy-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.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"];
|
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.add-person-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"];
|
16
16
|
};
|
17
17
|
readonly 'edit-candle-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.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"];
|
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.add-person-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"];
|
19
|
+
};
|
20
|
+
readonly 'edit-person-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.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "edit-person-page", "auth.cannotBeChangedLaterWarning", "auth.loginRequired", "add-person-page", "modify", "reset", "count", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "invalidImage", "tooBigImage", "image", "noMoreImages", "formDateError", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "select", "formMaxLengthError", "proposable", "formRequiredError", "name", "person-details-page", "edit-person-page.maintenance.submitError", "edit-person-page.maintenance.submitSuccess"];
|
19
22
|
};
|
20
23
|
readonly 'help-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.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"];
|
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.add-person-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"];
|
22
25
|
};
|
23
26
|
readonly 'home-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.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"];
|
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.add-person-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"];
|
25
28
|
};
|
26
29
|
readonly 'light-candle-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.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"];
|
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.add-person-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"];
|
28
31
|
};
|
29
32
|
readonly 'person-candles-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", "auth.cannotBeChangedLaterWarning", "auth.candleLitWarning", "light-candle-page", "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"];
|
33
|
+
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.add-person-page", "pageMenu.candles-page", "pageMenu.contact-page", "pageMenu.cookie-policy-page", "pageMenu.help-page", "pageMenu.terms-and-conditions-page", "shareOnFacebook", "auth.cannotBeChangedLaterWarning", "auth.candleLitWarning", "light-candle-page", "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"];
|
31
34
|
};
|
32
35
|
readonly 'terms-and-conditions-page': {
|
33
|
-
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"];
|
36
|
+
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.add-person-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"];
|
34
37
|
};
|
35
38
|
};
|
@@ -2,6 +2,7 @@ import { PERSON_MAINTENANCE_TRANSLATION_IDS, CANDLE_CARDS_TRANSLATION_IDS, CANDL
|
|
2
2
|
export const DICTIONARY_CONFIG = {
|
3
3
|
'add-person-page': {
|
4
4
|
translationIds: [
|
5
|
+
...COMMON_PAGE_TRANSLATION_IDS,
|
5
6
|
'persons',
|
6
7
|
...PERSON_MAINTENANCE_TRANSLATION_IDS,
|
7
8
|
'add-person-page',
|
@@ -85,6 +86,16 @@ export const DICTIONARY_CONFIG = {
|
|
85
86
|
'edit-candle-page.maintenance.submitSuccess',
|
86
87
|
],
|
87
88
|
},
|
89
|
+
'edit-person-page': {
|
90
|
+
translationIds: [
|
91
|
+
...COMMON_PAGE_TRANSLATION_IDS,
|
92
|
+
'edit-person-page',
|
93
|
+
...PERSON_MAINTENANCE_TRANSLATION_IDS,
|
94
|
+
'person-details-page',
|
95
|
+
'edit-person-page.maintenance.submitError',
|
96
|
+
'edit-person-page.maintenance.submitSuccess',
|
97
|
+
],
|
98
|
+
},
|
88
99
|
'help-page': {
|
89
100
|
translationIds: [
|
90
101
|
...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.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.add-person-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", "
|
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", "edit-person-page", "edit-person-page.maintenance.submitError", "edit-person-page.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.add-person-page", "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"];
|
@@ -51,9 +51,9 @@ export const TRANSLATION_IDS = [
|
|
51
51
|
'edit-candle-page',
|
52
52
|
'edit-candle-page.maintenance.submitError',
|
53
53
|
'edit-candle-page.maintenance.submitSuccess',
|
54
|
-
'
|
55
|
-
'
|
56
|
-
'
|
54
|
+
'edit-person-page',
|
55
|
+
'edit-person-page.maintenance.submitError',
|
56
|
+
'edit-person-page.maintenance.submitSuccess',
|
57
57
|
'email',
|
58
58
|
'english',
|
59
59
|
'facebook',
|
@@ -116,6 +116,7 @@ export const TRANSLATION_IDS = [
|
|
116
116
|
'myPersons',
|
117
117
|
'name',
|
118
118
|
'ok',
|
119
|
+
'pageMenu.add-person-page',
|
119
120
|
'pageMenu.candles-page',
|
120
121
|
'pageMenu.contact-page',
|
121
122
|
'pageMenu.cookie-policy-page',
|
@@ -1,5 +1,3 @@
|
|
1
|
-
export * from './add-person-page-translation-ids/index.js';
|
2
|
-
export * from './edit-person-page-translation-ids/index.js';
|
3
1
|
export * from './person-details-page-translation-ids/index.js';
|
4
2
|
export * from './persons-map-page-translation-ids/index.js';
|
5
3
|
export * from './persons-page-translation-ids/index.js';
|
@@ -1,5 +1,3 @@
|
|
1
|
-
export * from './add-person-page-translation-ids/index.js';
|
2
|
-
export * from './edit-person-page-translation-ids/index.js';
|
3
1
|
export * from './person-details-page-translation-ids/index.js';
|
4
2
|
export * from './persons-map-page-translation-ids/index.js';
|
5
3
|
export * from './persons-page-translation-ids/index.js';
|
@@ -1 +1 @@
|
|
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", "
|
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", "edit-person-page", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "person-details-page"];
|
@@ -20,7 +20,7 @@ export const PERSON_DETAILS_PAGE_TRANSLATION_IDS = [
|
|
20
20
|
'person-details-page.myPerson.loginRequired',
|
21
21
|
'person-details-page.myPerson.question',
|
22
22
|
'person-details-page.myPerson',
|
23
|
-
'
|
23
|
+
'edit-person-page',
|
24
24
|
...PERSON_IMAGE_TRANSLATION_IDS,
|
25
25
|
'person-details-page',
|
26
26
|
];
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './type.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './type.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './type.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './type.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/src/index.d.ts
CHANGED
@@ -3,6 +3,7 @@ export * from './environment/index.js';
|
|
3
3
|
export * from './error/index.js';
|
4
4
|
export * from './helper/index.js';
|
5
5
|
export * from './page/index.js';
|
6
|
+
export * from './person/index.js';
|
6
7
|
export * from './project/index.js';
|
7
8
|
export * from './type/index.js';
|
8
9
|
export * from './validator/index.js';
|
package/src/index.js
CHANGED
@@ -3,6 +3,7 @@ export * from './environment/index.js';
|
|
3
3
|
export * from './error/index.js';
|
4
4
|
export * from './helper/index.js';
|
5
5
|
export * from './page/index.js';
|
6
|
+
export * from './person/index.js';
|
6
7
|
export * from './project/index.js';
|
7
8
|
export * from './type/index.js';
|
8
9
|
export * from './validator/index.js';
|
package/src/page/config.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const PAGES: readonly ["add-person-page", "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"];
|
1
|
+
export declare const PAGES: readonly ["add-person-page", "candle-details-page", "candles-page", "contact-page", "cookie-policy-page", "edit-candle-page", "edit-person-page", "help-page", "home-page", "light-candle-page", "person-candles-page", "terms-and-conditions-page"];
|
package/src/page/config.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './person-image/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './person-image/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const PERSON_IMAGE_FILE_NAMES: readonly ["original", 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288];
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ImageDimension } from '../../image/index.js';
|
2
|
+
import { PersonImageWidth } from './width/index.js';
|
3
|
+
export interface PersonImage {
|
4
|
+
dimensions: {
|
5
|
+
original: ImageDimension<number>;
|
6
|
+
resized: ImageDimension<PersonImageWidth>[];
|
7
|
+
};
|
8
|
+
extension: string;
|
9
|
+
name: string;
|
10
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const PERSON_IMAGE_WIDTHS: readonly [32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288];
|
@@ -0,0 +1 @@
|
|
1
|
+
export const PERSON_IMAGE_WIDTHS = [32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288];
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const ADD_PERSON_PAGE_TRANSLATION_IDS: readonly ["persons", "auth.cannotBeChangedLaterWarning", "auth.loginRequired", "add-person-page", "modify", "reset", "count", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "invalidImage", "tooBigImage", "image", "noMoreImages", "formDateError", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "select", "formMaxLengthError", "proposable", "formRequiredError", "name", "add-person-page", "person-details-page", "add-person-page.maintenance.submitError", "add-person-page.maintenance.submitSuccess"];
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { PERSON_MAINTENANCE_TRANSLATION_IDS } from '../../person/index.js';
|
2
|
-
export const ADD_PERSON_PAGE_TRANSLATION_IDS = [
|
3
|
-
'persons',
|
4
|
-
...PERSON_MAINTENANCE_TRANSLATION_IDS,
|
5
|
-
'add-person-page',
|
6
|
-
'person-details-page',
|
7
|
-
'add-person-page.maintenance.submitError',
|
8
|
-
'add-person-page.maintenance.submitSuccess',
|
9
|
-
];
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
11
|
-
const CHECK = ADD_PERSON_PAGE_TRANSLATION_IDS;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const EDIT_PERSON_PAGE_TRANSLATION_IDS: readonly ["editPersonPage", "auth.cannotBeChangedLaterWarning", "auth.loginRequired", "add-person-page", "modify", "reset", "count", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "invalidImage", "tooBigImage", "image", "noMoreImages", "formDateError", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "select", "formMaxLengthError", "proposable", "formRequiredError", "name", "person-details-page", "editPersonPage.maintenance.submitError", "editPersonPage.maintenance.submitSuccess"];
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { PERSON_MAINTENANCE_TRANSLATION_IDS } from '../../person/index.js';
|
2
|
-
export const EDIT_PERSON_PAGE_TRANSLATION_IDS = [
|
3
|
-
'editPersonPage',
|
4
|
-
...PERSON_MAINTENANCE_TRANSLATION_IDS,
|
5
|
-
'person-details-page',
|
6
|
-
'editPersonPage.maintenance.submitError',
|
7
|
-
'editPersonPage.maintenance.submitSuccess',
|
8
|
-
];
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
10
|
-
const CHECK = EDIT_PERSON_PAGE_TRANSLATION_IDS;
|