@panoramax/web-viewer 3.2.3-develop-387e736b → 3.2.3-develop-efc61aeb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/build/index.js +7 -7
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/menus/PictureMetadata.js +14 -4
- package/src/translations/eo.json +31 -12
- package/src/utils/picture.js +8 -0
- package/tests/utils/__snapshots__/picture.test.js.snap +2 -0
package/package.json
CHANGED
|
@@ -127,8 +127,18 @@ export default class PictureMetadata extends LitElement {
|
|
|
127
127
|
this._meta?.caption?.date && {
|
|
128
128
|
title: this._parent?._t.pnx.metadata_general_date,
|
|
129
129
|
content: html`
|
|
130
|
-
<strong>${new Intl.DateTimeFormat(undefined, {
|
|
131
|
-
|
|
130
|
+
<strong>${new Intl.DateTimeFormat(undefined, {
|
|
131
|
+
timeZone: this._meta.caption.tz,
|
|
132
|
+
dateStyle: "short"
|
|
133
|
+
}).format(this._meta.caption.date)}</strong>
|
|
134
|
+
<br />${new Intl.DateTimeFormat(undefined, {
|
|
135
|
+
timeZone: this._meta.caption.tz,
|
|
136
|
+
hour: "numeric",
|
|
137
|
+
minute: "numeric",
|
|
138
|
+
second: "numeric",
|
|
139
|
+
fractionalSecondDigits: 3,
|
|
140
|
+
timeZoneName: "longOffset"
|
|
141
|
+
}).format(this._meta.caption.date)}
|
|
132
142
|
`
|
|
133
143
|
}
|
|
134
144
|
];
|
|
@@ -216,8 +226,8 @@ export default class PictureMetadata extends LitElement {
|
|
|
216
226
|
this._meta?.caption?.date && {
|
|
217
227
|
title: this._parent?._t.pnx.metadata_general_date,
|
|
218
228
|
content: html`
|
|
219
|
-
<strong>${new Intl.DateTimeFormat(undefined, {dateStyle: "long"}).format(this._meta.caption.date)}</strong>
|
|
220
|
-
<br />${new Intl.DateTimeFormat(undefined, {hour: "numeric",minute:"numeric"}).format(this._meta.caption.date)}
|
|
229
|
+
<strong>${new Intl.DateTimeFormat(undefined, {timeZone: this._meta.caption.tz, dateStyle: "long"}).format(this._meta.caption.date)}</strong>
|
|
230
|
+
<br />${new Intl.DateTimeFormat(undefined, {timeZone: this._meta.caption.tz, hour: "numeric",minute:"numeric"}).format(this._meta.caption.date)}
|
|
221
231
|
`
|
|
222
232
|
},
|
|
223
233
|
// Camera
|
package/src/translations/eo.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"search_user": "Serĉi uzantnomon…",
|
|
39
39
|
"share": "Kunhavigi",
|
|
40
40
|
"share_links": "Ligiloj",
|
|
41
|
-
"share_page": "Ligilo de la
|
|
41
|
+
"share_page": "Ligilo de la foto",
|
|
42
42
|
"share_image": "HD bildo",
|
|
43
43
|
"share_rss": "RSS abonfluo",
|
|
44
44
|
"share_rss_title": "RSS abonfluo de la novaj sekvecoj en la nuntempe videbla mapzono",
|
|
@@ -55,7 +55,10 @@
|
|
|
55
55
|
"🏘️ 3D-rendumo",
|
|
56
56
|
"📷 Inico de 360°-bildoj",
|
|
57
57
|
"🟠 Kolora ekvilibrigo",
|
|
58
|
-
"💯 Kalkulo de kvalitpoentaro ©"
|
|
58
|
+
"💯 Kalkulo de kvalitpoentaro ©",
|
|
59
|
+
"📡 Elŝutante ĝisdatoj",
|
|
60
|
+
"🌍 Reakirante mapkaheloj",
|
|
61
|
+
"📸 Traktadante ombroj"
|
|
59
62
|
],
|
|
60
63
|
"legend_title": "Montri la detaloj de la bildo",
|
|
61
64
|
"error_api": "La bildservilo ne estas disponebla",
|
|
@@ -79,7 +82,13 @@
|
|
|
79
82
|
"👥 Verkado de roluloj",
|
|
80
83
|
"❇️ Lokalizo de la Esperanto-flagoj",
|
|
81
84
|
"🧑💻 Sencimigado de la interfaco",
|
|
82
|
-
"📈 Alkrementi de la statistikoj"
|
|
85
|
+
"📈 Alkrementi de la statistikoj",
|
|
86
|
+
"🤖 Lernadante semantiko",
|
|
87
|
+
"🎨 Interfaca redezajno",
|
|
88
|
+
"📅 Planante fota-mapa-festoj",
|
|
89
|
+
"🧀 Finmaturigo de la fromaĝoj",
|
|
90
|
+
"🌄 Kalkulante la sunbrilon de la Saharo",
|
|
91
|
+
"🌊 Mezurado de la altaj tajdoj"
|
|
83
92
|
],
|
|
84
93
|
"picture_360": "360°",
|
|
85
94
|
"picture_flat": "Klasika",
|
|
@@ -95,7 +104,7 @@
|
|
|
95
104
|
"mislocated": "La bildo estas malbone poziciigita sur la mapo",
|
|
96
105
|
"other": "Ĉia alia speco de problemo"
|
|
97
106
|
},
|
|
98
|
-
"report": "Raporti
|
|
107
|
+
"report": "Raporti",
|
|
99
108
|
"report_auth": "Ĉi tiu raporto estos sendita per via konto \"{a}\"",
|
|
100
109
|
"filter_date": "Dato",
|
|
101
110
|
"filter_user_mypics": "Miaj fotoj",
|
|
@@ -111,7 +120,7 @@
|
|
|
111
120
|
"map_theme_score": "Kvalitpoentaro",
|
|
112
121
|
"metadata": "Metadatenoj de la bildo",
|
|
113
122
|
"map_theme_type": "Fotiltipo",
|
|
114
|
-
"metadata_general_seqid": "
|
|
123
|
+
"metadata_general_seqid": "Sekvenco",
|
|
115
124
|
"metadata_camera_resolution": "Difino",
|
|
116
125
|
"metadata_quality_resolution_score": "Rezolucia poentaro",
|
|
117
126
|
"error_psv": "Foto-Sfera Spektilo ne ŝarĝiĝas ĝuste",
|
|
@@ -122,9 +131,9 @@
|
|
|
122
131
|
"filter_date_1month": "1 monato",
|
|
123
132
|
"filter_date_1year": "1 jaro",
|
|
124
133
|
"contrast": "Pliigi bildkontraston",
|
|
125
|
-
"metadata_general_picid": "
|
|
134
|
+
"metadata_general_picid": "Foto",
|
|
126
135
|
"filter_picture": "Bilda tipo",
|
|
127
|
-
"filter_zoom_in": "Zomu por vidi
|
|
136
|
+
"filter_zoom_in": "Zomu en la mapo por vidi tiun filtrilon",
|
|
128
137
|
"map_background": "Bazmapo",
|
|
129
138
|
"map_background_aerial": "Aera",
|
|
130
139
|
"map_background_streets": "Stratoj",
|
|
@@ -140,17 +149,17 @@
|
|
|
140
149
|
"metadata_camera_model": "Ŝablono",
|
|
141
150
|
"metadata_camera_type": "Tipo",
|
|
142
151
|
"metadata_camera_focal_length": "Fokuslongo",
|
|
143
|
-
"metadata_location": "
|
|
152
|
+
"metadata_location": "Pozicio",
|
|
144
153
|
"metadata_location_longitude": "Longitudo",
|
|
145
154
|
"metadata_location_latitude": "Latitudo",
|
|
146
|
-
"metadata_location_orientation": "
|
|
155
|
+
"metadata_location_orientation": "Direkto",
|
|
147
156
|
"metadata_location_precision": "Pozicia precizeco",
|
|
148
|
-
"metadata_quality": "
|
|
157
|
+
"metadata_quality": "Kvalito",
|
|
149
158
|
"metadata_quality_help": "Pli pri la Kvalitapoentaro",
|
|
150
159
|
"metadata_quality_score": "Malloka poentaro",
|
|
151
160
|
"metadata_quality_gps_score": "Pozicia poentaro",
|
|
152
161
|
"metadata_quality_missing": "neniu valoro en la bildo",
|
|
153
|
-
"metadata_exif": "EXIF
|
|
162
|
+
"metadata_exif": "EXIF",
|
|
154
163
|
"metadata_exif_name": "Etikedo",
|
|
155
164
|
"metadata_exif_value": "Valoro",
|
|
156
165
|
"report_whole_sequence": "Ĉi tio koncernas la tutan sekvencon",
|
|
@@ -169,7 +178,17 @@
|
|
|
169
178
|
"minimize_short": "Maski",
|
|
170
179
|
"qualityscore_doc_2": "La poentaro estas montrita al uzantoj kiel litero A/B/C/D/E (A estas la plej bona, E la plej malbona) kaj grafike prezentita per ĉi tiu skalo:",
|
|
171
180
|
"id": "iD",
|
|
172
|
-
"josm": "JOSM"
|
|
181
|
+
"josm": "JOSM",
|
|
182
|
+
"contribute_id": "Kontribuu al OpenStreetMap kun iD-modifilo",
|
|
183
|
+
"filter_date_6months": "6 monatoj",
|
|
184
|
+
"picture_all": "Ĉiuj",
|
|
185
|
+
"picture_flat_long": "Klasika foto",
|
|
186
|
+
"picture_360_long": "Panorama foto",
|
|
187
|
+
"metadata_summary": "Resumo",
|
|
188
|
+
"metadata_general_copy_id": "Kopii la ID-on",
|
|
189
|
+
"metadata_general_copy_picid": "Kopii la fotan ID-on",
|
|
190
|
+
"metadata_general_instance": "Origina instanco",
|
|
191
|
+
"geo_uri": "Ekseteraj aplikaĵoj"
|
|
173
192
|
},
|
|
174
193
|
"maplibre": {
|
|
175
194
|
"GeolocateControl.FindMyLocation": "Trovi mian pozicion",
|
package/src/utils/picture.js
CHANGED
|
@@ -235,6 +235,14 @@ export function getNodeCaption(metadata, t) {
|
|
|
235
235
|
// Timestamp
|
|
236
236
|
if(metadata?.properties?.datetimetz) {
|
|
237
237
|
caption.date = new Date(metadata.properties.datetimetz);
|
|
238
|
+
const timeZoneMatch = metadata.properties.datetimetz.match(/([+-]\d{2}):(\d{2})$|Z$/);
|
|
239
|
+
if (timeZoneMatch) {
|
|
240
|
+
if (timeZoneMatch[0] === "Z") {
|
|
241
|
+
caption.tz = "UTC";
|
|
242
|
+
} else {
|
|
243
|
+
caption.tz = timeZoneMatch[0];
|
|
244
|
+
}
|
|
245
|
+
}
|
|
238
246
|
}
|
|
239
247
|
else if(metadata?.properties?.datetime) {
|
|
240
248
|
caption.date = new Date(metadata.properties.datetime);
|
|
@@ -8,6 +8,7 @@ Object {
|
|
|
8
8
|
"producer": Array [
|
|
9
9
|
"Hopen111",
|
|
10
10
|
],
|
|
11
|
+
"tz": "+00:00",
|
|
11
12
|
},
|
|
12
13
|
"gps": Array [
|
|
13
14
|
-92.70188245,
|
|
@@ -297,6 +298,7 @@ Object {
|
|
|
297
298
|
"date": Object {
|
|
298
299
|
"toLocaleDateString": [Function],
|
|
299
300
|
},
|
|
301
|
+
"tz": "-03:00",
|
|
300
302
|
}
|
|
301
303
|
`;
|
|
302
304
|
|