lint
This commit is contained in:
parent
4e21031fde
commit
2520935676
4 changed files with 9 additions and 5 deletions
|
|
@ -5,9 +5,9 @@ const browserLocale = (navigator.language || 'en').split('-')[0]
|
|||
/// to override it.
|
||||
export const staticOrApiConfigDefault = {
|
||||
name: 'PleromaFE',
|
||||
theme: 'pleroma-dark',
|
||||
theme: null,
|
||||
palette: null,
|
||||
style: null,
|
||||
style: 'breezy',
|
||||
themeChecksum: undefined,
|
||||
defaultAvatar: '/images/avi.png',
|
||||
defaultBanner: '/images/banner.png',
|
||||
|
|
@ -189,6 +189,7 @@ export const defaultConfigLocal = {
|
|||
themeDebug: false, // debug mode that uses computed backgrounds instead of real ones to debug contrast functions
|
||||
forceThemeRecompilation: false, // flag that forces recompilation on boot even if cache exists
|
||||
}
|
||||
|
||||
export const LOCAL_ONLY_KEYS = new Set(Object.keys(defaultConfigLocal))
|
||||
|
||||
export const makeUndefined = (c) =>
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import { defineStore } from 'pinia'
|
|||
|
||||
import { instanceDefaultProperties } from '../modules/config.js'
|
||||
import {
|
||||
instanceDefaultConfig,
|
||||
defaultConfigLocal,
|
||||
instanceDefaultConfig,
|
||||
staticOrApiConfigDefault,
|
||||
} from '../modules/default_config_state.js'
|
||||
import apiService from '../services/api/api.service.js'
|
||||
|
|
|
|||
|
|
@ -643,7 +643,9 @@ export const useSyncConfigStore = defineStore('sync_config', {
|
|||
vuexState.config = vuexState.config ?? {}
|
||||
|
||||
const migratedEntries = new Set(vuexState.config._syncMigration ?? [])
|
||||
console.debug(`Already migrated Values: ${[...migratedEntries].join() || '[none]'}`)
|
||||
console.debug(
|
||||
`Already migrated Values: ${[...migratedEntries].join() || '[none]'}`,
|
||||
)
|
||||
|
||||
Object.entries(oldDefaultConfigSync).forEach(([key, value]) => {
|
||||
const oldValue = vuexState.config[key]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue