@@ -569,7 +569,7 @@ export default function Speakers() {
{/* Speaker Details Modal */}
{selectedSpeaker && (
-
+
Speaker Details
@@ -639,7 +639,7 @@ export default function Speakers() {
{/* Delete Confirmation Modal */}
{showDeleteConfirm && (
-
+
Delete Speaker
@@ -667,7 +667,7 @@ export default function Speakers() {
{/* Import Dialog Modal */}
{showImportDialog && (
-
+
Import Speakers
diff --git a/extras/speaker-recognition/webui/tailwind.config.js b/extras/speaker-recognition/webui/tailwind.config.js
index 89a305e0..73324ed5 100644
--- a/extras/speaker-recognition/webui/tailwind.config.js
+++ b/extras/speaker-recognition/webui/tailwind.config.js
@@ -4,6 +4,7 @@ export default {
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
+ darkMode: 'class',
theme: {
extend: {},
},
diff --git a/extras/speaker-recognition/webui/vite.config.ts b/extras/speaker-recognition/webui/vite.config.ts
index 405770f7..c3ba998b 100644
--- a/extras/speaker-recognition/webui/vite.config.ts
+++ b/extras/speaker-recognition/webui/vite.config.ts
@@ -16,6 +16,24 @@ export default defineConfig({
'127.0.0.1',
'.nip.io'
],
+ proxy: {
+ '/api': {
+ target: `http://${process.env.SPEAKER_SERVICE_HOST || 'localhost'}:${process.env.SPEAKER_SERVICE_PORT || '8085'}`,
+ changeOrigin: true,
+ secure: false,
+ rewrite: (path) => path.replace(/^\/api/, ''),
+ },
+ '/ws': {
+ target: `ws://${process.env.SPEAKER_SERVICE_HOST || 'localhost'}:${process.env.SPEAKER_SERVICE_PORT || '8085'}`,
+ ws: true,
+ changeOrigin: true,
+ },
+ '/v1': {
+ target: `http://${process.env.SPEAKER_SERVICE_HOST || 'localhost'}:${process.env.SPEAKER_SERVICE_PORT || '8085'}`,
+ changeOrigin: true,
+ secure: false,
+ },
+ },
},
define: {
global: 'globalThis',
|