Import specific parts of lodash where possible
This commit is contained in:
parent
f19d85b17a
commit
8e17cc3103
|
@ -14,7 +14,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import _ from 'lodash'
|
import reverse from 'lodash/reverse'
|
||||||
import TaskLogItem from '@/components/Environment/TaskLog/TaskLogItem'
|
import TaskLogItem from '@/components/Environment/TaskLog/TaskLogItem'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -30,7 +30,7 @@ export default {
|
||||||
reversedTasks: function () {
|
reversedTasks: function () {
|
||||||
let tasks = this.tasks
|
let tasks = this.tasks
|
||||||
|
|
||||||
return _.reverse(tasks)
|
return reverse(tasks)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import _ from 'lodash'
|
import { omitBy, _ } from 'lodash'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -31,7 +31,7 @@ export default {
|
||||||
filteredLinks: function () {
|
filteredLinks: function () {
|
||||||
let links = this.links
|
let links = this.links
|
||||||
|
|
||||||
return _.omitBy(links, _.isEmpty)
|
return omitBy(links, _.isEmpty)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import _ from 'lodash'
|
import sortBy from 'lodash/sortBy'
|
||||||
import ApiClient from '@/api-client.js'
|
import ApiClient from '@/api-client.js'
|
||||||
import ApplicationCard from '@/components/Application/ApplicationCard'
|
import ApplicationCard from '@/components/Application/ApplicationCard'
|
||||||
import ApplicationDisplaySwitcher from '@/components/Application/ApplicationDisplaySwitcher'
|
import ApplicationDisplaySwitcher from '@/components/Application/ApplicationDisplaySwitcher'
|
||||||
|
@ -80,7 +80,7 @@ export default {
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
sortedApplications: function () {
|
sortedApplications: function () {
|
||||||
return _.sortBy(this.applications, [function (a) { return a.name }])
|
return sortBy(this.applications, [function (a) { return a.name }])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Reference in a new issue