better imports organization

This commit is contained in:
Henry Jameson 2026-01-08 17:26:52 +02:00
commit 42930252b1
167 changed files with 663 additions and 445 deletions

View file

@ -1,4 +1,5 @@
import { concat, each, get, last, map } from 'lodash'
import {
parseAttachment,
parseChat,

View file

@ -1,6 +1,7 @@
import { parseLinkHeader } from '@web3-storage/parse-link-header'
import escapeHtml from 'escape-html'
import punycode from 'punycode.js'
import { isStatusNotification } from '../notification_utils/notification_utils.js'
/** NOTICE! **

View file

@ -1,4 +1,5 @@
import { unescape as ldUnescape } from 'lodash'
import { getTagName } from './utility.service.js'
/**

View file

@ -1,5 +1,6 @@
import ISO6391 from 'iso-639-1'
import _ from 'lodash'
import languagesObject from '../../i18n/messages'
const specialLanguageCodes = {

View file

@ -1,4 +1,5 @@
import { reduce } from 'lodash'
import { StatusCodeError } from 'src/services/errors/errors.js'
const REDIRECT_URI = `${window.location.origin}/oauth-callback`

View file

@ -1,4 +1,5 @@
import { uniq } from 'lodash'
import * as DateUtils from 'src/services/date_utils/date_utils.js'
const pollFallbackValues = {

View file

@ -1,4 +1,5 @@
import { map } from 'lodash'
import apiService from '../api/api.service.js'
const postStatus = ({

View file

@ -1,5 +1,6 @@
import localforage from 'localforage'
import { chunk, throttle } from 'lodash'
import { defaultState } from 'src/modules/default_config_state.js'
import { getCssRules } from '../theme_data/css_utils.js'
import { getEngineChecksum, init } from '../theme_data/theme_data_3.service.js'

View file

@ -1,4 +1,5 @@
import { brightness, invertLightness } from 'chromatism'
import { alphaBlend, mixrgb } from '../color_convert/color_convert.js'
/* This is a definition of all layer combinations
* each key is a topmost layer, each value represents layer underneath

View file

@ -1,4 +1,5 @@
import { convert } from 'chromatism'
import allKeys from './theme2_keys'
// keys that are meant to be used globally, i.e. what's the rest of the theme is based upon.

View file

@ -1,4 +1,5 @@
import { brightness, convert } from 'chromatism'
import {
alphaBlend,
arithmeticBlend,

View file

@ -1,4 +1,5 @@
import { brightness, contrastRatio, convert } from 'chromatism'
import {
alphaBlendLayers,
getCssColor,

View file

@ -1,6 +1,7 @@
import { brightness, convert } from 'chromatism'
import sum from 'hash-sum'
import { flattenDeep, sortBy } from 'lodash'
import {
alphaBlend,
getTextColor,
@ -9,7 +10,6 @@ import {
rgba2css,
} from '../color_convert/color_convert.js'
import { deserializeShadow } from './iss_deserializer.js'
import {
findRules,
genericRuleToSelector,

View file

@ -1,4 +1,5 @@
import { camelCase } from 'lodash'
import { useInterfaceStore } from 'src/stores/interface.js'
import apiService from '../api/api.service.js'
import { promiseInterval } from '../promise_interval/promise_interval.js'