better imports organization
This commit is contained in:
parent
6f5eb6c442
commit
42930252b1
167 changed files with 663 additions and 445 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { concat, each, get, last, map } from 'lodash'
|
||||
|
||||
import {
|
||||
parseAttachment,
|
||||
parseChat,
|
||||
|
|
|
|||
|
|
@ -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! **
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { unescape as ldUnescape } from 'lodash'
|
||||
|
||||
import { getTagName } from './utility.service.js'
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import ISO6391 from 'iso-639-1'
|
||||
import _ from 'lodash'
|
||||
|
||||
import languagesObject from '../../i18n/messages'
|
||||
|
||||
const specialLanguageCodes = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { reduce } from 'lodash'
|
||||
|
||||
import { StatusCodeError } from 'src/services/errors/errors.js'
|
||||
|
||||
const REDIRECT_URI = `${window.location.origin}/oauth-callback`
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { uniq } from 'lodash'
|
||||
|
||||
import * as DateUtils from 'src/services/date_utils/date_utils.js'
|
||||
|
||||
const pollFallbackValues = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { map } from 'lodash'
|
||||
|
||||
import apiService from '../api/api.service.js'
|
||||
|
||||
const postStatus = ({
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { brightness, convert } from 'chromatism'
|
||||
|
||||
import {
|
||||
alphaBlend,
|
||||
arithmeticBlend,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { brightness, contrastRatio, convert } from 'chromatism'
|
||||
|
||||
import {
|
||||
alphaBlendLayers,
|
||||
getCssColor,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue