feat: Migrate packages from lodash to lodash-es (no-changelog) (#5538)

This commit is contained in:
Alex Grozav
2023-02-23 17:16:05 +02:00
committed by GitHub
parent e2d7c1804f
commit f0695827f5
91 changed files with 737 additions and 182 deletions

View File

@@ -95,7 +95,7 @@ import {
onUnmounted,
nextTick,
} from 'vue';
import camelcase from 'lodash.camelcase';
import { camelCase } from 'lodash-es';
import { externalHooks } from '@/mixins/externalHooks';
import { INodeTypeDescription } from 'n8n-workflow';
import ItemIterator from './ItemIterator.vue';
@@ -184,7 +184,7 @@ const activeSubcategoryTitle = computed<string>(() => {
if (!activeSubcategory.value || !activeSubcategory.value.properties) return '';
const subcategory = (activeSubcategory.value.properties as ISubcategoryItemProps).subcategory;
const subcategoryName = camelcase(subcategory);
const subcategoryName = camelCase(subcategory);
const titleLocaleKey = `nodeCreator.subcategoryTitles.${subcategoryName}` as BaseTextKey;
const nameLocaleKey = `nodeCreator.subcategoryNames.${subcategoryName}` as BaseTextKey;

View File

@@ -14,14 +14,14 @@
<script setup lang="ts">
import { ISubcategoryItemProps } from '@/Interface';
import camelcase from 'lodash.camelcase';
import { camelCase } from 'lodash-es';
import { computed } from 'vue';
export interface Props {
item: ISubcategoryItemProps;
}
const props = defineProps<Props>();
const subcategoryName = computed(() => camelcase(props.item.subcategory));
const subcategoryName = computed(() => camelCase(props.item.subcategory));
</script>
<style lang="scss" module>