Skip to content

Commit

Permalink
feat(iridium): add settings manager (#3946)
Browse files Browse the repository at this point in the history
* feat(iridium): add settings manager

* refactor(iridium): instantiate managers in constructor

* feat(iridium): add settings to iridium manager

* feat(settings): use iridium settings manager

* feat(theme): use iridium theme settings

* chore(store): remove old theme types/definitions

* feat(iridium): add init method for profile/group managers

* feat(theme): generate rgb color values for selection

* feat(settings): move flip local video setting to iridium

* chore(build): add deepmerge package

* feat(merge): add deepmerge utility function

* feat(settings): deep merge initial state

* feat(settings/audio): add notification sounds to settings

* feat(iridium): add keybinds to settings

* feat(settings): connect keybinds to iridium

* style(settings): use record for object types

* feat(iridium): add privacy to settings

* feat(settings): connect privacy to iridium

* refactor(settings): iterate over enum to generate initial state

* fix(build): bump @nuxtjs/eslint-config-typescript version

* style: organise imports

* fix(settings): only set in iridium if the value was changed

* fix(settings/audio): default values keys
  • Loading branch information
jasonwoodland authored and JustZacca committed Jul 15, 2022
1 parent 6a43c40 commit b477d3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions store/ui/state.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { UIState, GlyphMarketViewStatus, SettingsRoutes } from './types'
import { FileSortEnum } from '~/libraries/Enums/enums'

const InitialUIState = (): UIState => ({
contextMenuStatus: false,
Expand Down Expand Up @@ -62,6 +63,10 @@ const InitialUIState = (): UIState => ({
editMessage: { id: '', from: '', payload: '' },
mostEmojiUsed: [],
recentGlyphs: [],
filesUploadStatus: '',
renameItem: undefined,
filePreview: undefined,
fileDownloadList: [],
chatImageOverlay: undefined,
swiperSlideIndex: 0,
})
Expand Down

0 comments on commit b477d3c

Please sign in to comment.