feat: add push notification support (#73)
* feat: add push notification support * misc: set localstorage on start
This commit is contained in:
1 parent
4f898915b2
commit
fc38560eda
6 files changed
+204
-24
No files matched your search
+14
-3
@@ -18,11 +18,17 @@ interface Settings {
|
||||
feed: 'All' | 'Subscribed' | 'Local'
|
||||
}
|
||||
hidePosts: {
|
||||
deleted: boolean,
|
||||
removed: boolean,
|
||||
},
|
||||
deleted: boolean
|
||||
removed: boolean
|
||||
}
|
||||
fullWidthLayout: boolean
|
||||
expandSidebar: boolean
|
||||
notifications: {
|
||||
enabled: boolean
|
||||
pollRate: number
|
||||
// how often to check in the background
|
||||
notifRate: number
|
||||
}
|
||||
}
|
||||
|
||||
const defaultSettings: Settings = {
|
||||
@@ -46,6 +52,11 @@ const defaultSettings: Settings = {
|
||||
},
|
||||
fullWidthLayout: false,
|
||||
expandSidebar: true,
|
||||
notifications: {
|
||||
enabled: false,
|
||||
pollRate: 60 * 1000,
|
||||
notifRate: 10 * 60 * 1000,
|
||||
},
|
||||
}
|
||||
|
||||
export const userSettings = writable(defaultSettings)
|
||||
|
||||
Reference in new issue
Block a user