cleanup unused imports
This commit is contained in:
parent
495e6143d4
commit
893ab9d73b
60 changed files with 15 additions and 101 deletions
|
|
@ -1,15 +1,11 @@
|
|||
import {
|
||||
merge as _merge,
|
||||
clamp,
|
||||
clone,
|
||||
cloneDeep,
|
||||
findLastIndex,
|
||||
flatten,
|
||||
get,
|
||||
groupBy,
|
||||
isEqual,
|
||||
takeRight,
|
||||
uniqWith,
|
||||
} from 'lodash'
|
||||
import { defineStore } from 'pinia'
|
||||
import { toRaw } from 'vue'
|
||||
|
|
@ -33,17 +29,6 @@ export const defaultState = {
|
|||
cache: null,
|
||||
}
|
||||
|
||||
export const _moveItemInArray = (array, value, movement) => {
|
||||
const oldIndex = array.indexOf(value)
|
||||
const newIndex = oldIndex + movement
|
||||
const newArray = [...array]
|
||||
// remove old
|
||||
newArray.splice(oldIndex, 1)
|
||||
// add new
|
||||
newArray.splice(clamp(newIndex, 0, newArray.length + 1), 0, value)
|
||||
return newArray
|
||||
}
|
||||
|
||||
const _wrapData = (data, userName) => {
|
||||
return {
|
||||
...data,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue