This commit is contained in:
eric
2025-09-08 15:58:34 +08:00
parent dd6fbe777e
commit c02a8f7172
15 changed files with 14 additions and 9 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -125,10 +125,10 @@
}
}
</style>
<script type="module" crossorigin src="[{[ .StaticURL ]}]/assets/index-CQxnOeHi.js"></script>
<script type="module" crossorigin src="[{[ .StaticURL ]}]/assets/index-rBmUZe0u.js"></script>
<link rel="modulepreload" crossorigin href="[{[ .StaticURL ]}]/assets/dayjs-BaXUFriC.js">
<link rel="modulepreload" crossorigin href="[{[ .StaticURL ]}]/assets/i18n-UjFZsrt2.js">
<link rel="stylesheet" crossorigin href="[{[ .StaticURL ]}]/assets/index-CKNdCj14.css">
<link rel="stylesheet" crossorigin href="[{[ .StaticURL ]}]/assets/index-Bw3R8OZH.css">
<script type="module">import.meta.url;import("_").catch(()=>1);(async function*(){})().next();if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
</head>
@@ -149,6 +149,6 @@
<link rel="stylesheet" href="[{[ .StaticURL ]}]/custom.css" />
[{[ end ]}]
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="[{[ .StaticURL ]}]/assets/polyfills-legacy-D8GbthlL.js"></script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="[{[ .StaticURL ]}]/assets/polyfills-legacy-D8GbthlL.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="[{[ .StaticURL ]}]/assets/index-legacy-BsTQJQ45.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>

1
frontend/file.sh Normal file
View File

@@ -0,0 +1 @@
./filebrowser -r /path/to/srv -a 0.0.0.0

View File

@@ -386,7 +386,9 @@ const stopLive = async () => {
const thread_id = props.url.replace(/\//g, "_");
// 调用 FastAPI 停止接口
const res = await fetch("http://192.168.31.103:8700/stop_live", {
// const res = await fetch("http://192.168.31.103:8700/stop_live", {
const res = await fetch("http://127.0.0.1:8700/stop_live", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ thread_id }) // 如果想停止全部可以 body: {}
@@ -414,8 +416,8 @@ const loopLive = async () => {
console.log('file_path',file_path)
// 调用 FastAPI 后端接口
const res = await fetch("http://192.168.31.103:8700/loop_Live", {
// const res = await fetch("http://192.168.31.245:8700/start_live", {
// const res = await fetch("http://192.168.31.103:8700/loop_Live", {
const res = await fetch("http://127.0.0.1:8700/loop_Live", {
method: "POST",
headers: { "Content-Type": "application/json" },
@@ -444,7 +446,9 @@ const obsLive = async () => {
console.log('file_path for OBS:', file_path);
// 这里模拟 OBS 推流逻辑,你可以根据实际后端接口来调整
const res = await fetch("http://192.168.31.103:8700/obs_live", {
// const res = await fetch("http://192.168.31.103:8700/obs_live", {
const res = await fetch("http://127.0.0.1:8700/obs_live", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ filename: file_path })
@@ -472,7 +476,7 @@ const startLive = async () => {
// 调用 FastAPI 后端接口
const res = await fetch("http://192.168.31.103:8700/start_live", {
// const res = await fetch("http://192.168.31.245:8700/start_live", {
// const res = await fetch("http://127.0.0.1:8700/start_live", {
method: "POST",
headers: { "Content-Type": "application/json" },