-
-
-
-
-
- {{ key }}
-
- -
- {{ value }}
-
-
-
-
-
-
-
-
-
-
- {{ key }}
-
- -
- {{ producer[key] }}
-
-
-
-
-
-
-
-
-
-
- {{ key }}
-
- -
- {{ consumer[key] }}
-
-
-
-
+
+
+
+ The chat is under development.
+
+
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/client/app/pages/preferences.vue b/client/app/pages/preferences.vue
index 4059764..f026811 100644
--- a/client/app/pages/preferences.vue
+++ b/client/app/pages/preferences.vue
@@ -1,23 +1,56 @@
-
-
+
+
+
+
+
-
-
-
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -39,24 +72,25 @@
definePageMeta({
name: 'Preferences',
})
-
const { isTauri } = useApp()
-const { checkForUpdates } = useUpdater()
-const { me, setMe, logout } = useAuth()
+const { checking, checkForUpdates } = useUpdater()
+const {
+ inputDeviceId,
+ outputDeviceId,
+ autoGainControl,
+ noiseSuppression,
+ echoCancellation,
+ audioInputs,
+ audioOutputs,
+} = usePreferences()
-const signaling = useSignaling()
const toast = useToast()
-const displayName = ref(me.value?.displayName || '')
-
-const valid = computed(() => {
- if (!displayName.value || !me.value)
- return false
-
- if (displayName.value === me.value.displayName)
- return false
-
- return true
+const audioInputsHack = computed(() => {
+ return JSON.parse(JSON.stringify(audioInputs.value))
+})
+const audioOutputsHack = computed(() => {
+ return JSON.parse(JSON.stringify(audioOutputs.value))
})
async function onCheckForUpdates() {
@@ -76,20 +110,5 @@ async function onCheckForUpdates() {
detail: `Version ${update?.version ?? '1.0.1'} is available!`,
closable: false,
})
-
- // asdasd
-}
-
-async function save() {
- if (!valid.value)
- return
-
- const updatedMe = await signaling.socket.value?.emitWithAck('updateClient', {
- displayName: displayName.value,
- })
-
- setMe({ ...me.value, displayName: updatedMe.displayName })
-
- toast.add({ severity: 'success', summary: 'Saved', life: 1000, closable: false })
}
diff --git a/client/app/pages/profile.vue b/client/app/pages/profile.vue
new file mode 100644
index 0000000..802dd1a
--- /dev/null
+++ b/client/app/pages/profile.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
diff --git a/client/nuxt.config.ts b/client/nuxt.config.ts
index 990c74e..b13acdc 100644
--- a/client/nuxt.config.ts
+++ b/client/nuxt.config.ts
@@ -97,7 +97,7 @@ export default defineNuxtConfig({
},
},
define: {
- __API_BASE_URL__: JSON.stringify(import.meta.env.API_BASE_URL || '/api'),
+ __API_BASE_URL__: JSON.stringify(import.meta.env.API_BASE_URL || 'http://localhost:4000/chad'),
__COMMIT_SHA__: JSON.stringify(import.meta.env.COMMIT_SHA || 'local'),
},
},
diff --git a/client/package.json b/client/package.json
index 7197509..d41a75c 100644
--- a/client/package.json
+++ b/client/package.json
@@ -17,6 +17,7 @@
"@tauri-apps/plugin-process": "~2",
"@tauri-apps/plugin-updater": "~2",
"@vueuse/core": "^13.9.0",
+ "lucide-vue-next": "^0.562.0",
"mediasoup-client": "^3.16.7",
"nuxt": "^4.2.2",
"postcss": "^8.5.6",
diff --git a/client/yarn.lock b/client/yarn.lock
index 6be3481..7be0bc4 100644
--- a/client/yarn.lock
+++ b/client/yarn.lock
@@ -4041,6 +4041,7 @@ __metadata:
"@vueuse/core": "npm:^13.9.0"
eslint: "npm:^9.36.0"
eslint-plugin-format: "npm:^1.0.2"
+ lucide-vue-next: "npm:^0.562.0"
mediasoup-client: "npm:^3.16.7"
nuxt: "npm:^4.2.2"
postcss: "npm:^8.5.6"
@@ -7024,6 +7025,15 @@ __metadata:
languageName: node
linkType: hard
+"lucide-vue-next@npm:^0.562.0":
+ version: 0.562.0
+ resolution: "lucide-vue-next@npm:0.562.0"
+ peerDependencies:
+ vue: ">=3.0.1"
+ checksum: 10c0/5ba792ea5e48d01fc99a3c5ae4a59d9767e5d4c7826901800831cf051cf85eb4a680b3564d2910ed4d17dc1d35223c37d006bdbcdb291d90a9491b9c6a20ae14
+ languageName: node
+ linkType: hard
+
"magic-regexp@npm:^0.10.0":
version: 0.10.0
resolution: "magic-regexp@npm:0.10.0"