xvai-loi 0.1.98 → 0.1.99
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/co.txt +1 -1
- package/package.json +2 -3
- package/xvai-loi.js +19 -5
- package/sfx/LICENSE-Kenney-CC0.txt +0 -22
- package/sfx/bong_001.ogg +0 -0
- package/sfx/click_001.ogg +0 -0
- package/sfx/click_002.ogg +0 -0
- package/sfx/click_003.ogg +0 -0
- package/sfx/click_004.ogg +0 -0
- package/sfx/click_005.ogg +0 -0
- package/sfx/confirmation_001.ogg +0 -0
- package/sfx/confirmation_002.ogg +0 -0
- package/sfx/confirmation_003.ogg +0 -0
- package/sfx/confirmation_004.ogg +0 -0
- package/sfx/drop_001.ogg +0 -0
- package/sfx/drop_002.ogg +0 -0
- package/sfx/drop_003.ogg +0 -0
- package/sfx/drop_004.ogg +0 -0
- package/sfx/glass_001.ogg +0 -0
- package/sfx/glass_002.ogg +0 -0
- package/sfx/glass_003.ogg +0 -0
- package/sfx/glass_004.ogg +0 -0
- package/sfx/glass_005.ogg +0 -0
- package/sfx/glass_006.ogg +0 -0
- package/sfx/impactPunch_heavy_000.ogg +0 -0
- package/sfx/impactPunch_heavy_001.ogg +0 -0
- package/sfx/impactPunch_heavy_002.ogg +0 -0
- package/sfx/impactPunch_heavy_003.ogg +0 -0
- package/sfx/impactPunch_heavy_004.ogg +0 -0
- package/sfx/impactPunch_medium_000.ogg +0 -0
- package/sfx/impactPunch_medium_001.ogg +0 -0
- package/sfx/impactPunch_medium_002.ogg +0 -0
- package/sfx/impactPunch_medium_003.ogg +0 -0
- package/sfx/impactPunch_medium_004.ogg +0 -0
- package/sfx/impactSoft_medium_000.ogg +0 -0
- package/sfx/impactSoft_medium_001.ogg +0 -0
- package/sfx/impactSoft_medium_002.ogg +0 -0
- package/sfx/impactSoft_medium_003.ogg +0 -0
- package/sfx/impactSoft_medium_004.ogg +0 -0
- package/sfx/maximize_001.ogg +0 -0
- package/sfx/maximize_002.ogg +0 -0
- package/sfx/maximize_003.ogg +0 -0
- package/sfx/maximize_004.ogg +0 -0
- package/sfx/maximize_005.ogg +0 -0
- package/sfx/maximize_006.ogg +0 -0
- package/sfx/maximize_007.ogg +0 -0
- package/sfx/maximize_008.ogg +0 -0
- package/sfx/maximize_009.ogg +0 -0
- package/sfx/pluck_001.ogg +0 -0
- package/sfx/pluck_002.ogg +0 -0
- package/sfx/select_001.ogg +0 -0
- package/sfx/select_002.ogg +0 -0
- package/sfx/select_003.ogg +0 -0
- package/sfx/select_004.ogg +0 -0
- package/sfx/select_005.ogg +0 -0
- package/sfx/select_006.ogg +0 -0
- package/sfx/select_007.ogg +0 -0
- package/sfx/select_008.ogg +0 -0
- package/sfx/tick_001.ogg +0 -0
- package/sfx/tick_002.ogg +0 -0
- package/sfx/tick_004.ogg +0 -0
package/co.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
xvaiLoi121827
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xvai-loi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.99",
|
|
4
4
|
"description": "Loi dung video (Edit Video Tu Dong) nap vao tool Google Flow qua o cam engine/oCam.ts",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"xvai-loi.js",
|
|
9
9
|
"nap.js",
|
|
10
|
-
"co.txt"
|
|
11
|
-
"sfx/"
|
|
10
|
+
"co.txt"
|
|
12
11
|
],
|
|
13
12
|
"main": "nap.js",
|
|
14
13
|
"exports": {
|
package/xvai-loi.js
CHANGED
|
@@ -4541,9 +4541,6 @@ function phatMau(ctx, mau7, loai, t, amp) {
|
|
|
4541
4541
|
return true;
|
|
4542
4542
|
}
|
|
4543
4543
|
|
|
4544
|
-
// flow-src/engine/render.ts
|
|
4545
|
-
var DAU_CHU_HAU_KY = "titles are added in editing";
|
|
4546
|
-
|
|
4547
4544
|
// flow-src/engine/tiengNhan.ts
|
|
4548
4545
|
function mui(ctx, f0, f1, t, dai2, amp, kieu) {
|
|
4549
4546
|
const o = ctx.createOscillator(), g = ctx.createGain();
|
|
@@ -4644,6 +4641,7 @@ function tiengNhan(ctx, loai, t, amp) {
|
|
|
4644
4641
|
}
|
|
4645
4642
|
|
|
4646
4643
|
// flow-src/engine/hauKy.ts
|
|
4644
|
+
var DAU_CHU_HAU_KY = "titles are added in editing";
|
|
4647
4645
|
var NHAC_VOL = 0.18;
|
|
4648
4646
|
var HE_SO_NHAC = 0.3;
|
|
4649
4647
|
var DINH_POP = 0.35;
|
|
@@ -21068,6 +21066,22 @@ try {
|
|
|
21068
21066
|
}, 2500);
|
|
21069
21067
|
} catch (e) {
|
|
21070
21068
|
}
|
|
21069
|
+
try {
|
|
21070
|
+
if (!TRONG_LOI) window.addEventListener("message", async (ev) => {
|
|
21071
|
+
const d = ev.data, o = String(ev.origin || "");
|
|
21072
|
+
if (!(d && d.xvaiLenh === true)) return;
|
|
21073
|
+
if (!(o.indexOf("https://flow.google.com") === 0 || o.indexOf("https://labs.google") === 0)) return;
|
|
21074
|
+
const tra = (kq) => {
|
|
21075
|
+
try {
|
|
21076
|
+
ev.source.postMessage({ xvai: true, id: d.id, kq }, ev.origin);
|
|
21077
|
+
} catch (e) {
|
|
21078
|
+
}
|
|
21079
|
+
};
|
|
21080
|
+
if (d.lenh === "ping") tra("pong");
|
|
21081
|
+
else if (d.lenh === "napLoi") tra(await napLoi(d));
|
|
21082
|
+
});
|
|
21083
|
+
} catch (e) {
|
|
21084
|
+
}
|
|
21071
21085
|
|
|
21072
21086
|
// flow-src/engine/cauLenh.ts
|
|
21073
21087
|
var api = null;
|
|
@@ -21083,7 +21097,7 @@ function datCauLenh(a) {
|
|
|
21083
21097
|
on2 = true;
|
|
21084
21098
|
window.addEventListener("message", async (ev) => {
|
|
21085
21099
|
const d = ev.data;
|
|
21086
|
-
if (!d || d.
|
|
21100
|
+
if (!d || d.xvaiLoi121827 !== true) return;
|
|
21087
21101
|
const o = String(ev.origin || "");
|
|
21088
21102
|
if (!(o.indexOf("https://flow.google.com") === 0 || o.indexOf("https://labs.google") === 0)) return;
|
|
21089
21103
|
const tra = (kq) => {
|
|
@@ -21919,7 +21933,7 @@ var Vo = () => {
|
|
|
21919
21933
|
window.__loiApp = { p, ex, b, phienBan: PHIEN_BAN };
|
|
21920
21934
|
const [hienSua, setHienSua] = useState(false);
|
|
21921
21935
|
const dangXuat = !!(ex && !ex.error && ex.percent < 100) && !window.__loiHienUI;
|
|
21922
|
-
return /* @__PURE__ */ shim_react_default.createElement("div", { className: "min-h-screen bg-[#0B1A2D] text-[#E6EEF8]" }, /* @__PURE__ */ shim_react_default.createElement("div", { className: "sticky top-0 z-40 h-12 bg-[#0B1A2D]/95 backdrop-blur border-b border-[#2C4A73] px-4 flex items-center gap-3" }, /* @__PURE__ */ shim_react_default.createElement("span", { className: "text-[13px] font-black text-[#F6D178] whitespace-nowrap" }, "EDIT VIDEO T\u1EF0 \u0110\u1ED8NG \xB7 L\xD5I M\u1EDAI"), /* @__PURE__ */ shim_react_default.createElement("span", { className: "text-[11px] text-[#A2B2C9] truncate flex-1 min-w-0" }, PHIEN_BAN, " \xB7 ", p.name || "D\u1EF1 \xE1n m\u1EDBi", " \xB7 ", p.timeline ? p.timeline.length : 0, " \u0111o\u1EA1n"), /* @__PURE__ */ shim_react_default.createElement("button", { className: nut4 + (hienSua ? " ring-2 ring-[#F6D178]" : ""), onClick: () => setHienSua((v) => !v) }, "S\u1EEDa l\u1ECBch"), /* @__PURE__ */ shim_react_default.createElement("button", { className: nut4, onClick: () => handleExportProject(p, toast), disabled: !p.scenes || !p.scenes.length }, "L\u01B0u d\u1EF1 \xE1n"), /* @__PURE__ */ shim_react_default.createElement("button", { className: nut4, onClick: () => doi(TRONG()) }, "D\u1EF1 \xE1n m\u1EDBi")
|
|
21936
|
+
return /* @__PURE__ */ shim_react_default.createElement("div", { className: "min-h-screen bg-[#0B1A2D] text-[#E6EEF8]" }, /* @__PURE__ */ shim_react_default.createElement("div", { className: "sticky top-0 z-40 h-12 bg-[#0B1A2D]/95 backdrop-blur border-b border-[#2C4A73] px-4 flex items-center gap-3" }, /* @__PURE__ */ shim_react_default.createElement("span", { className: "text-[13px] font-black text-[#F6D178] whitespace-nowrap" }, "EDIT VIDEO T\u1EF0 \u0110\u1ED8NG \xB7 L\xD5I M\u1EDAI"), /* @__PURE__ */ shim_react_default.createElement("span", { className: "text-[11px] text-[#A2B2C9] truncate flex-1 min-w-0" }, PHIEN_BAN, " \xB7 ", p.name || "D\u1EF1 \xE1n m\u1EDBi", " \xB7 ", p.timeline ? p.timeline.length : 0, " \u0111o\u1EA1n"), /* @__PURE__ */ shim_react_default.createElement("button", { className: nut4 + (hienSua ? " ring-2 ring-[#F6D178]" : ""), onClick: () => setHienSua((v) => !v) }, "S\u1EEDa l\u1ECBch"), /* @__PURE__ */ shim_react_default.createElement("button", { className: nut4, onClick: () => handleExportProject(p, toast), disabled: !p.scenes || !p.scenes.length }, "L\u01B0u d\u1EF1 \xE1n"), /* @__PURE__ */ shim_react_default.createElement("button", { className: nut4, onClick: () => doi(TRONG()) }, "D\u1EF1 \xE1n m\u1EDBi")), bao && /* @__PURE__ */ shim_react_default.createElement("div", { className: "max-w-6xl mx-auto px-8 pt-3 text-[12px] text-[#F6D178]" }, bao), hienSua && /* @__PURE__ */ shim_react_default.createElement("div", { className: "max-w-6xl mx-auto px-8 pt-3" }, /* @__PURE__ */ shim_react_default.createElement(SuaLich, { ten: String(p.name || "du-an"), onDong: () => setHienSua(false) })), dangXuat && /* @__PURE__ */ shim_react_default.createElement("div", { className: "max-w-6xl mx-auto px-8 pt-6 text-[13px] text-[#E6EEF8]" }, /* @__PURE__ */ shim_react_default.createElement("div", { className: "rounded-xl border border-[#2C4A73] p-4" }, /* @__PURE__ */ shim_react_default.createElement("div", { className: "font-black text-[#F6D178]" }, "\u0110ANG D\u1EF0NG PHIM\u2026 ", ex && ex.percent > 0 ? Math.round(ex.percent) + "%" : ""), /* @__PURE__ */ shim_react_default.createElement("div", { className: "mt-1 text-[12px] text-[#A2B2C9] break-words" }, String(ex && ex.step || "")), /* @__PURE__ */ shim_react_default.createElement("div", { className: "mt-2 text-[11px] text-[#A2B2C9]" }, "Giao di\u1EC7n t\u1EA1m \u1EA9n \u0111\u1EC3 d\u1EF1ng nhanh h\u01A1n (\u0111o 09/10: nhanh ~5\xD7). C\xF3 th\u1EC3 chuy\u1EC3n tab kh\xE1c, \u0111\u1EEBng t\u1EA3i l\u1EA1i trang."))), /* @__PURE__ */ shim_react_default.createElement("div", { className: "max-w-6xl mx-auto w-full p-6", style: dangXuat ? { display: "none" } : void 0 }, /* @__PURE__ */ shim_react_default.createElement(StudioEdit, { project: p, setProject: setP, exporting: ex, blob: b, onExport: xuat, onDownload: tai, onOpenVoice: () => toast("Gi\u1ECDng \u0111\u1ECDc AI: ch\u01B0a c\xF3 trong b\u1EA3n edit") })));
|
|
21923
21937
|
};
|
|
21924
21938
|
async function giuThuc() {
|
|
21925
21939
|
const W4 = window;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Interface Sounds (1.0)
|
|
4
|
-
|
|
5
|
-
Created/distributed by Kenney (www.kenney.nl)
|
|
6
|
-
Creation date: 11-02-2020
|
|
7
|
-
|
|
8
|
-
------------------------------
|
|
9
|
-
|
|
10
|
-
License: (Creative Commons Zero, CC0)
|
|
11
|
-
http://creativecommons.org/publicdomain/zero/1.0/
|
|
12
|
-
|
|
13
|
-
This content is free to use in personal, educational and commercial projects.
|
|
14
|
-
Support us by crediting Kenney or www.kenney.nl (this is not mandatory)
|
|
15
|
-
|
|
16
|
-
------------------------------
|
|
17
|
-
|
|
18
|
-
Donate: http://support.kenney.nl
|
|
19
|
-
Patreon: http://patreon.com/kenney/
|
|
20
|
-
|
|
21
|
-
Follow on Twitter for updates:
|
|
22
|
-
http://twitter.com/KenneyNL
|
package/sfx/bong_001.ogg
DELETED
|
Binary file
|
package/sfx/click_001.ogg
DELETED
|
Binary file
|
package/sfx/click_002.ogg
DELETED
|
Binary file
|
package/sfx/click_003.ogg
DELETED
|
Binary file
|
package/sfx/click_004.ogg
DELETED
|
Binary file
|
package/sfx/click_005.ogg
DELETED
|
Binary file
|
package/sfx/confirmation_001.ogg
DELETED
|
Binary file
|
package/sfx/confirmation_002.ogg
DELETED
|
Binary file
|
package/sfx/confirmation_003.ogg
DELETED
|
Binary file
|
package/sfx/confirmation_004.ogg
DELETED
|
Binary file
|
package/sfx/drop_001.ogg
DELETED
|
Binary file
|
package/sfx/drop_002.ogg
DELETED
|
Binary file
|
package/sfx/drop_003.ogg
DELETED
|
Binary file
|
package/sfx/drop_004.ogg
DELETED
|
Binary file
|
package/sfx/glass_001.ogg
DELETED
|
Binary file
|
package/sfx/glass_002.ogg
DELETED
|
Binary file
|
package/sfx/glass_003.ogg
DELETED
|
Binary file
|
package/sfx/glass_004.ogg
DELETED
|
Binary file
|
package/sfx/glass_005.ogg
DELETED
|
Binary file
|
package/sfx/glass_006.ogg
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/sfx/maximize_001.ogg
DELETED
|
Binary file
|
package/sfx/maximize_002.ogg
DELETED
|
Binary file
|
package/sfx/maximize_003.ogg
DELETED
|
Binary file
|
package/sfx/maximize_004.ogg
DELETED
|
Binary file
|
package/sfx/maximize_005.ogg
DELETED
|
Binary file
|
package/sfx/maximize_006.ogg
DELETED
|
Binary file
|
package/sfx/maximize_007.ogg
DELETED
|
Binary file
|
package/sfx/maximize_008.ogg
DELETED
|
Binary file
|
package/sfx/maximize_009.ogg
DELETED
|
Binary file
|
package/sfx/pluck_001.ogg
DELETED
|
Binary file
|
package/sfx/pluck_002.ogg
DELETED
|
Binary file
|
package/sfx/select_001.ogg
DELETED
|
Binary file
|
package/sfx/select_002.ogg
DELETED
|
Binary file
|
package/sfx/select_003.ogg
DELETED
|
Binary file
|
package/sfx/select_004.ogg
DELETED
|
Binary file
|
package/sfx/select_005.ogg
DELETED
|
Binary file
|
package/sfx/select_006.ogg
DELETED
|
Binary file
|
package/sfx/select_007.ogg
DELETED
|
Binary file
|
package/sfx/select_008.ogg
DELETED
|
Binary file
|
package/sfx/tick_001.ogg
DELETED
|
Binary file
|
package/sfx/tick_002.ogg
DELETED
|
Binary file
|
package/sfx/tick_004.ogg
DELETED
|
Binary file
|