anytrek-front-public-component 1.13.6 → 1.13.8

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 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: [...items], timeGap });
827
+ result.push({ ...items[0], videoList: [...list], timeGap });
812
828
  } else {
813
- result.push({ ...items[0], imageList: [...items], timeGap });
829
+ result.push({ ...items[0], imageList: [...list], timeGap });
814
830
  }
815
831
 
816
832
  });
@@ -19341,7 +19341,7 @@ const m5 = { class: "image-display-normal" }, p5 = { class: "time" }, A5 = { cla
19341
19341
  ]);
19342
19342
  };
19343
19343
  }
19344
- }), r8 = /* @__PURE__ */ Gt(n8, [["__scopeId", "data-v-9909d03c"]]);
19344
+ }), r8 = /* @__PURE__ */ Gt(n8, [["__scopeId", "data-v-a33001c1"]]);
19345
19345
  function a8(r, o) {
19346
19346
  var i = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
19347
19347
  if (i != null) {
@@ -42590,7 +42590,7 @@ const N7 = {
42590
42590
  ], 36);
42591
42591
  };
42592
42592
  }
42593
- }), W7 = /* @__PURE__ */ Gt(K7, [["__scopeId", "data-v-9296c55c"]]), J7 = ["src"], X7 = {
42593
+ }), W7 = /* @__PURE__ */ Gt(K7, [["__scopeId", "data-v-f1a9f042"]]), J7 = ["src"], X7 = {
42594
42594
  key: 1,
42595
42595
  class: "converting-overlay error"
42596
42596
  }, q7 = { class: "converting-progress" }, _7 = { class: "converting-text error" }, $7 = {
@@ -42941,7 +42941,7 @@ const N7 = {
42941
42941
  ], 4);
42942
42942
  };
42943
42943
  }
42944
- }), lk = /* @__PURE__ */ Gt(sk, [["__scopeId", "data-v-d27cde65"]]), uk = {
42944
+ }), lk = /* @__PURE__ */ Gt(sk, [["__scopeId", "data-v-b61e00fc"]]), uk = {
42945
42945
  key: 3,
42946
42946
  class: "change-pic"
42947
42947
  }, ck = { style: { "user-select": "none" } }, dk = { style: { color: "#9a9a9a" } }, fk = {