mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Use lodash import style that leads to smaller bundle sizes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { ComponentProps } from "svelte";
|
||||
|
||||
import { debounce } from "lodash";
|
||||
import debounce from "lodash/debounce";
|
||||
|
||||
import { formatObjectId } from "@app/lib/utils";
|
||||
import { toClipboard } from "@app/lib/utils";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { DefaultSeedingPolicy, SeedingPolicy } from "@http-client";
|
||||
|
||||
import { capitalize } from "lodash";
|
||||
import capitalize from "lodash/capitalize";
|
||||
|
||||
export let seedingPolicy: DefaultSeedingPolicy | SeedingPolicy;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { Readable, Writable } from "svelte/store";
|
||||
|
||||
import { derived } from "svelte/store";
|
||||
import { isEqual } from "lodash";
|
||||
import isEqual from "lodash/isEqual";
|
||||
|
||||
// Returns a derived store that only notifies subscribers if the value has changed.
|
||||
export function deduplicateStore<T>(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { DefaultSeedingPolicy } from "@http-client";
|
||||
|
||||
import { capitalize } from "lodash";
|
||||
import capitalize from "lodash/capitalize";
|
||||
|
||||
import IconButton from "@app/components/IconButton.svelte";
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Project, SeedingPolicy } from "@http-client";
|
||||
|
||||
import { capitalize } from "lodash";
|
||||
import capitalize from "lodash/capitalize";
|
||||
|
||||
import IconButton from "@app/components/IconButton.svelte";
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
import type { Project, Remote } from "@http-client";
|
||||
|
||||
import fuzzysort from "fuzzysort";
|
||||
import orderBy from "lodash/orderBy";
|
||||
import { formatCommit, formatNodeId } from "@app/lib/utils";
|
||||
import { orderBy } from "lodash";
|
||||
|
||||
import Badge from "@app/components/Badge.svelte";
|
||||
import Button from "@app/components/Button.svelte";
|
||||
|
||||
Reference in New Issue
Block a user