Compare commits

...

10 Commits

Author SHA1 Message Date
eric
a3f743de4c 's' 2025-09-29 13:21:10 +08:00
eric
3f402b1398 's' 2025-09-29 13:19:36 +08:00
eric
9e797e018a 's' 2025-09-29 13:16:43 +08:00
eric
cf94ae2926 's' 2025-09-29 13:15:15 +08:00
eric
33793d7370 's' 2025-09-29 12:35:14 +08:00
eric
1753829889 s 2025-09-08 16:45:13 +08:00
eric
fa3e1d5924 's' 2025-09-08 16:27:49 +08:00
eric
39df8bcbf8 's' 2025-09-08 16:19:27 +08:00
eric
c02a8f7172 'ss' 2025-09-08 15:58:34 +08:00
eric
dd6fbe777e s 2025-09-08 15:51:55 +08:00
60 changed files with 33 additions and 23 deletions

2
.gitignore vendored
View File

@@ -33,7 +33,7 @@ build/
# Vue distributable files
# /frontend/dist/*
!/frontend/dist/.gitkeep
#!/frontend/dist/.gitkeep
# Playwright files
/frontend/test-results/

View File

@@ -59,7 +59,9 @@ func init() {
}
func addServerFlags(flags *pflag.FlagSet) {
flags.StringP("address", "a", "127.0.0.1", "address to listen on")
// flags.StringP("address", "a", "127.0.0.1", "address to listen on")
flags.StringP("address", "a", "0.0.0.0", "address to listen on")
flags.StringP("log", "l", "stdout", "log output")
flags.StringP("port", "p", "8080", "port to listen on")
flags.StringP("cert", "t", "", "tls certificate")

1
file.sh Normal file
View File

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

BIN
filebrowser_arm64 → filebrowser_dev Normal file → Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
frontend/dist/assets/ar-DtFJJrir.js.gz vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
frontend/dist/assets/de-CsTqJtDw.js.gz vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
frontend/dist/assets/en-VcjLuOQ9.js.gz vendored Normal file

Binary file not shown.

BIN
frontend/dist/assets/he-B4IfBkLC.js.gz vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
frontend/dist/assets/hu-BPfANBiL.js.gz vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
frontend/dist/assets/i18n-B51KFB2t.js.gz vendored Normal file

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.

BIN
frontend/dist/assets/it-CxzZEkDv.js.gz vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
frontend/dist/assets/ja-BGcYKjzK.js.gz vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
frontend/dist/assets/ko-Ck5pBF4s.js.gz vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
frontend/dist/assets/nl-BUJf3J9m.js.gz vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
frontend/dist/assets/pl-pV3PHVMk.js.gz vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
frontend/dist/assets/tr-DBYvv1ex.js.gz vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
frontend/dist/assets/uk-D_F9n3KQ.js.gz vendored Normal file

Binary file not shown.

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>
<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">
<script type="module" crossorigin src="[{[ .StaticURL ]}]/assets/index-EUD6rfX7.js"></script>
<link rel="modulepreload" crossorigin href="[{[ .StaticURL ]}]/assets/dayjs-DoHIBBbq.js">
<link rel="modulepreload" crossorigin href="[{[ .StaticURL ]}]/assets/i18n-B51KFB2t.js">
<link rel="stylesheet" crossorigin href="[{[ .StaticURL ]}]/assets/index-Cckpz6IB.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>
@@ -148,7 +148,7 @@
[{[ if .CSS -]}]
<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>!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-whU9bDSR.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="[{[ .StaticURL ]}]/assets/index-legacy-D1Xq-vUG.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>

View File

@@ -24,7 +24,9 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: "http://127.0.0.1:5173",
// baseURL: "http://127.0.0.1:5173",
baseURL: "http://0.0.0.0:5173",
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
@@ -74,7 +76,8 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
command: "npm run dev",
url: "http://127.0.0.1:5173",
// url: "http://127.0.0.1:5173",
url: "http://0.0.0.0:5173",
reuseExistingServer: !process.env.CI,
},
});

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(`${location.protocol}//${location.hostname}: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(`${location.protocol}//${location.hostname}: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(`${location.protocol}//${location.hostname}:8700/obs_live`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ filename: file_path })
@@ -471,8 +475,8 @@ const startLive = async () => {
console.log('file_path', file_path)
// 调用 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(`${location.protocol}//${location.hostname}:8700/start_live`, {
// const res = await fetch("http://127.0.0.1:8700/start_live", {
method: "POST",
headers: { "Content-Type": "application/json" },

View File

@@ -41,13 +41,13 @@ export default defineConfig(({ command }) => {
proxy: {
// Zero3 后端 WebSocket如果你有 ws 接口)
"/api/command": {
target: "ws://192.168.31.103:8081",
target: `ws://${location.protocol}//${location.hostname}:8081`,
// target: "ws://live.local:8081",
ws: true,
},
// Zero3 后端 HTTP
"/api": "http://192.168.31.103:8081",
"/api": `${location.protocol}//${location.hostname}:8081`,
// "/api": "http://live.local:8081",
},