This commit is contained in:
Henry Jameson 2026-03-24 13:59:47 +02:00
commit 2520935676
4 changed files with 9 additions and 5 deletions

View file

@ -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) =>

View file

@ -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'

View file

@ -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]

View file

@ -1,6 +1,8 @@
import { cloneDeep } from 'lodash'
import { createPinia, setActivePinia } from 'pinia'
import { CURRENT_UPDATE_COUNTER } from 'src/components/update_notification/update_notification.js'
import {
_getAllFlags,
_getRecentData,
@ -15,7 +17,6 @@ import {
useSyncConfigStore,
VERSION,
} from 'src/stores/sync_config.js'
import { CURRENT_UPDATE_COUNTER } from 'src/components/update_notification/update_notification.js'
describe('The SyncConfig store', () => {
beforeEach(() => {