console/frontend: add whole lodash and use selective imports

The final bundle is a bit bigger (~952.60 vs 951.30 KiB), but it seems
rollup does the job.
This commit is contained in:
Vincent Bernat
2022-05-24 21:11:55 +02:00
parent f5f88938f0
commit 0fd59f5e05
6 changed files with 10 additions and 10 deletions

View File

@@ -15,7 +15,7 @@
"@vueuse/core": "^8.5.0",
"@vueuse/router": "^8.5.0",
"echarts": "^5.3.2",
"lodash.isequal": "^4.5.0",
"lodash-es": "^4.17.21",
"lz-string": "^1.4.4",
"sugar-date": "^2.0.6",
"uuid": "^8.3.2",

View File

@@ -69,7 +69,7 @@ import { dataColor } from "@/utils";
import InputString from "@/components/InputString.vue";
import InputListBox from "@/components/InputListBox.vue";
import fields from "@data/fields.json";
import isEqual from "lodash.isequal";
import { isEqual } from "lodash-es";
const selectedDimensions = ref([]);
const dimensionsError = computed(() => {

View File

@@ -30,7 +30,7 @@ import { ref, computed, watch } from "vue";
import { Date as SugarDate } from "sugar-date";
import InputString from "@/components/InputString.vue";
import InputListBox from "@/components/InputListBox.vue";
import isEqual from "lodash.isequal";
import { isEqual } from "lodash-es";
const startTime = ref("");
const endTime = ref("");

View File

@@ -57,7 +57,7 @@ import DataGraph from "./VisualizePage/DataGraph.vue";
import OptionsPanel from "./VisualizePage/OptionsPanel.vue";
import RequestSummary from "./VisualizePage/RequestSummary.vue";
import { graphTypes } from "./VisualizePage/constants";
import isEqual from "lodash.isequal";
import { isEqual } from "lodash-es";
const graphHeight = ref(500);
const highlightedSerie = ref(null);

View File

@@ -96,7 +96,7 @@ import InputToggle from "@/components/InputToggle.vue";
import SectionLabel from "./SectionLabel.vue";
import GraphIcon from "./GraphIcon.vue";
import { graphTypes } from "./constants";
import isEqual from "lodash.isequal";
import { isEqual } from "lodash-es";
const graphTypeList = Object.entries(graphTypes).map(([, v], idx) => ({
id: idx + 1,

View File

@@ -1036,16 +1036,16 @@ lines-and-columns@^1.1.6:
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
lodash-es@^4.17.21:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee"
integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==
lodash.castarray@^4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/lodash.castarray/-/lodash.castarray-4.4.0.tgz#c02513515e309daddd4c24c60cfddcf5976d9115"
integrity sha1-wCUTUV4wna3dTCTGDP3c9ZdtkRU=
lodash.isequal@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
integrity sha1-QVxEePK8wwEgwizhDtMib30+GOA=
lodash.isplainobject@^4.0.6:
version "4.0.6"
resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb"