anytrek-front-public-component 1.13.7 → 1.13.9
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/README.md +18 -2
- package/anytrek-front-public-component.mjs +7224 -7194
- package/anytrek-front-public-component.umd.js +42 -42
- package/package.json +1 -1
- package/style.css +1 -1
package/README.md
CHANGED
|
@@ -807,10 +807,26 @@ export const groupCargoHandlingImages = (list: any[]): any[] => {
|
|
|
807
807
|
items.sort((a: any, b: any) => new Date(a.takeTime).getTime() - new Date(b.takeTime).getTime());
|
|
808
808
|
const timeStampGap = new Date(items[items.length - 1].takeTime).getTime() - new Date(items[0].takeTime).getTime();
|
|
809
809
|
const timeGap = formatDuration(timeStampGap, { d: true, h: true, m: true, s: true });
|
|
810
|
+
let list = items.slice(0);
|
|
811
|
+
if (import.meta.env.MODE === 'development') {
|
|
812
|
+
list = list.map((l: any) => {
|
|
813
|
+
const obj: any = {
|
|
814
|
+
...l,
|
|
815
|
+
}
|
|
816
|
+
if (l.media) {
|
|
817
|
+
obj.media = obj.media.replace('https://oss.anytrek.app', '/oss-anytrek-app')
|
|
818
|
+
} else {
|
|
819
|
+
obj.url = obj.url.replace('https://oss.anytrek.app', '/oss-anytrek-app')
|
|
820
|
+
}
|
|
821
|
+
return {
|
|
822
|
+
...obj,
|
|
823
|
+
}
|
|
824
|
+
})
|
|
825
|
+
}
|
|
810
826
|
if (items[0].media) {
|
|
811
|
-
result.push({ ...items[0], videoList: [...
|
|
827
|
+
result.push({ ...items[0], videoList: [...list], timeGap });
|
|
812
828
|
} else {
|
|
813
|
-
result.push({ ...items[0], imageList: [...
|
|
829
|
+
result.push({ ...items[0], imageList: [...list], timeGap });
|
|
814
830
|
}
|
|
815
831
|
|
|
816
832
|
});
|