ADD - implement Feather social app

This commit is contained in:
smx.pusha
2026-08-09 22:09:50 +02:00
parent e7eafb207f
commit 5a4a1beed2
23 changed files with 7642 additions and 10 deletions
+10 -2
View File
@@ -14,12 +14,20 @@ export async function nuiCall<T = unknown>(
'apiPort',
)
const baseUrl = import.meta.env.DEV
? `http://localhost:${developmentPort ?? '3001'}/api`
? `http://localhost:${developmentPort ?? '3002'}/api`
: `https://${resourceName}`
const requestData = import.meta.env.DEV
? {
...data,
_testScenario:
new URLSearchParams(window.location.search).get('testScenario') ??
undefined,
}
: data
try {
const response = await fetch(`${baseUrl}/${endpoint}`, {
body: JSON.stringify(data),
body: JSON.stringify(requestData),
headers: { 'Content-Type': 'application/json' },
method: 'POST',
})
+1
View File
@@ -83,6 +83,7 @@ const DEFAULT_APP_NOTIFICATIONS: Record<
citymarkt: { enabled: true, sounds: true },
'local-pages': { enabled: true, sounds: true },
fliptok: { enabled: true, sounds: true },
feather: { enabled: true, sounds: true },
camera: { enabled: true, sounds: true },
clock: { enabled: true, sounds: true },
calendar: { enabled: true, sounds: true },