@cmstops/pro-compo 3.9.2-alpha.7 → 3.9.2-alpha.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/es/utils/index.js CHANGED
@@ -137,13 +137,13 @@ async function copyContent(content) {
137
137
  }
138
138
  }
139
139
  function mediaTime(v) {
140
- const h = Math.floor(v / (60 * 60));
141
- const m = Math.floor((v - h) / 60);
142
- const s = Math.floor(v - h * 360 - m * 60);
140
+ const h = Math.floor(v / 3600);
141
+ const m = Math.floor(v % 3600 / 60);
142
+ const s = Math.floor(v % 60);
143
143
  let ret = "";
144
- ret += `${h < 10 ? `0${h}` : h || "--"}:`;
145
- ret += `${m < 10 ? `0${m}` : m || "--"}:`;
146
- ret += s < 10 ? `0${s}` : s || "--";
144
+ ret += `${h < 10 ? `0${h}` : h}:`;
145
+ ret += `${m < 10 ? `0${m}` : m}:`;
146
+ ret += s < 10 ? `0${s}` : s;
147
147
  return ret;
148
148
  }
149
149
  export { copyContent, dateYYYYDDMMHHmm, generateUUID, getRealUrl, getThemeColor, mediaTime, noCoverText, replaceSuffix, timeFormat, to, validateForm };
@@ -144,13 +144,13 @@ async function copyContent(content) {
144
144
  }
145
145
  }
146
146
  function mediaTime(v) {
147
- const h = Math.floor(v / (60 * 60));
148
- const m = Math.floor((v - h) / 60);
149
- const s = Math.floor(v - h * 360 - m * 60);
147
+ const h = Math.floor(v / 3600);
148
+ const m = Math.floor(v % 3600 / 60);
149
+ const s = Math.floor(v % 60);
150
150
  let ret = "";
151
- ret += `${h < 10 ? `0${h}` : h || "--"}:`;
152
- ret += `${m < 10 ? `0${m}` : m || "--"}:`;
153
- ret += s < 10 ? `0${s}` : s || "--";
151
+ ret += `${h < 10 ? `0${h}` : h}:`;
152
+ ret += `${m < 10 ? `0${m}` : m}:`;
153
+ ret += s < 10 ? `0${s}` : s;
154
154
  return ret;
155
155
  }
156
156
  exports.copyContent = copyContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "3.9.2-alpha.7",
3
+ "version": "3.9.2-alpha.8",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",