language + biome
This commit is contained in:
parent
1b310d7174
commit
9822ebc3bf
135 changed files with 441 additions and 247 deletions
|
|
@ -1,8 +1,9 @@
|
|||
import { defineStore } from 'pinia'
|
||||
|
||||
import { ensureFinalFallback } from 'src/i18n/languages.js'
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
|
||||
import { ensureFinalFallback } from 'src/i18n/languages.js'
|
||||
|
||||
import { annotationsLoader } from 'virtual:pleroma-fe/emoji-annotations'
|
||||
|
||||
const defaultState = {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
import { get, set } from 'lodash'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import { ensureFinalFallback } from 'src/i18n/languages.js'
|
||||
import { useInterfaceStore } from 'src/stores/interface.js'
|
||||
import { instanceDefaultProperties } from '../modules/config.js'
|
||||
import {
|
||||
instanceDefaultConfig,
|
||||
|
|
@ -10,6 +8,10 @@ import {
|
|||
} from '../modules/default_config_state.js'
|
||||
import apiService from '../services/api/api.service.js'
|
||||
|
||||
import { useInterfaceStore } from 'src/stores/interface.js'
|
||||
|
||||
import { ensureFinalFallback } from 'src/i18n/languages.js'
|
||||
|
||||
const REMOTE_INTERACTION_URL = '/main/ostatus'
|
||||
|
||||
const defaultState = {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,5 @@
|
|||
import { defineStore } from 'pinia'
|
||||
|
||||
import {
|
||||
CURRENT_VERSION,
|
||||
generatePreset,
|
||||
} from 'src/services/theme_data/theme_data.service.js'
|
||||
import { convertTheme2To3 } from 'src/services/theme_data/theme2_to_theme3.js'
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
import { useSyncConfigStore } from 'src/stores/sync_config.js'
|
||||
import {
|
||||
applyTheme,
|
||||
getResourcesIndex,
|
||||
|
|
@ -14,6 +7,15 @@ import {
|
|||
} from '../services/style_setter/style_setter.js'
|
||||
import { deserialize } from '../services/theme_data/iss_deserializer.js'
|
||||
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
import { useSyncConfigStore } from 'src/stores/sync_config.js'
|
||||
|
||||
import {
|
||||
CURRENT_VERSION,
|
||||
generatePreset,
|
||||
} from 'src/services/theme_data/theme_data.service.js'
|
||||
import { convertTheme2To3 } from 'src/services/theme_data/theme2_to_theme3.js'
|
||||
|
||||
export const useInterfaceStore = defineStore('interface', {
|
||||
state: () => ({
|
||||
localFonts: null,
|
||||
|
|
|
|||
|
|
@ -16,11 +16,13 @@ import { defineStore } from 'pinia'
|
|||
import { toRaw } from 'vue'
|
||||
|
||||
import { CURRENT_UPDATE_COUNTER } from 'src/components/update_notification/update_notification.js'
|
||||
|
||||
import { useInstanceStore } from 'src/stores/instance'
|
||||
|
||||
import {
|
||||
defaultState as configDefaultState,
|
||||
instanceDefaultConfig,
|
||||
} from 'src/modules/default_config_state'
|
||||
import { useInstanceStore } from 'src/stores/instance'
|
||||
|
||||
export const VERSION = 2
|
||||
export const NEW_USER_DATE = new Date('2022-08-04') // date of writing this, basically
|
||||
|
|
@ -408,7 +410,7 @@ export const _doMigrations = (cache, live) => {
|
|||
return cache
|
||||
}
|
||||
|
||||
export const useSyncConfigStore = defineStore('syncConfigStore', {
|
||||
export const useSyncConfigStore = defineStore('sync_config', {
|
||||
state() {
|
||||
return cloneDeep(defaultState)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue