Front: Use API to get settings

This commit is contained in:
Arthur Jamet
2023-04-23 15:30:37 +01:00
parent 8ccc90eceb
commit bb96d57f27
14 changed files with 152 additions and 174 deletions
+10
View File
@@ -0,0 +1,10 @@
interface LocalSettings {
deviceId: number,
micVolume: number,
colorScheme: 'light' | 'dark' | 'system',
lang: 'fr' | 'en' | 'sp',
difficulty: 'beg' | 'inter' | 'pro',
colorBlind: boolean,
customAds: boolean,
dataCollection: boolean
}
+4 -13
View File
@@ -1,23 +1,14 @@
interface UserSettings {
preferences: {
deviceId: number,
micVolume: number,
theme: 'light' | 'dark' | 'system',
lang: 'fr' | 'en' | 'sp',
difficulty: 'beg' | 'inter' | 'pro',
colorBlind: boolean
},
notifications: {
pushNotif: boolean,
emailNotif: boolean,
trainNotif: boolean,
newSongNotif: boolean
},
privacy: {
dataCollection: boolean,
customAd: boolean,
recommendation: boolean
}
weeklyReport: boolean,
leaderBoard: boolean,
showActivity: boolean,
recommendations: boolean
}
export default UserSettings