Move to newer shared package
This commit is contained in:
parent
a2a8be3b19
commit
b056cf7f56
6 changed files with 7 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
import { cached } from "@/next/cache";
|
||||
import { ensureLocalUser } from "@/next/local-user";
|
||||
import log from "@/next/log";
|
||||
import { cached } from "@ente/shared/storage/cache";
|
||||
import { Skeleton, styled } from "@mui/material";
|
||||
import { Legend } from "components/PhotoViewer/styledComponents/Legend";
|
||||
import { t } from "i18next";
|
||||
|
|
|
@ -1,13 +1,10 @@
|
|||
import { CacheStorageService, type EnteCache } from "@/next/cache";
|
||||
import log from "@/next/log";
|
||||
import { APPS } from "@ente/shared/apps/constants";
|
||||
import ComlinkCryptoWorker from "@ente/shared/crypto";
|
||||
import { DedicatedCryptoWorker } from "@ente/shared/crypto/internal/crypto.worker";
|
||||
import { CustomError } from "@ente/shared/error";
|
||||
import { Events, eventBus } from "@ente/shared/events";
|
||||
import {
|
||||
CacheStorageService,
|
||||
type EnteCache,
|
||||
} from "@ente/shared/storage/cache";
|
||||
import { Remote } from "comlink";
|
||||
import { FILE_TYPE } from "constants/file";
|
||||
import isElectron from "is-electron";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { CacheStorageService } from "@ente/shared/storage/cache";
|
||||
import { CacheStorageService } from "@/next/cache";
|
||||
import { BlobOptions } from "types/image";
|
||||
import {
|
||||
FaceAlignment,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { cached } from "@/next/cache";
|
||||
import log from "@/next/log";
|
||||
import { cached } from "@ente/shared/storage/cache";
|
||||
import { FILE_TYPE } from "constants/file";
|
||||
import PQueue from "p-queue";
|
||||
import DownloadManager from "services/download";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { clearCaches } from "@/next/cache";
|
||||
import log from "@/next/log";
|
||||
import { Events, eventBus } from "@ente/shared/events";
|
||||
import InMemoryStore from "@ente/shared/storage/InMemoryStore";
|
||||
import { clearCaches } from "@ente/shared/storage/cache";
|
||||
import { clearFiles } from "@ente/shared/storage/localForage/helpers";
|
||||
import { clearData } from "@ente/shared/storage/localStorage";
|
||||
import { clearKeys } from "@ente/shared/storage/sessionStorage";
|
||||
|
|
|
@ -83,7 +83,7 @@ const openCache = async (name: CacheName) =>
|
|||
const openWebCache = async (name: CacheName) => {
|
||||
const cache = await caches.open(name);
|
||||
return {
|
||||
match: (key) => {
|
||||
match: (key: string) => {
|
||||
return cache.match(key);
|
||||
},
|
||||
put: (key: string, data: Response) => {
|
||||
|
@ -99,7 +99,7 @@ const openWebCache = async (name: CacheName) => {
|
|||
const openOPFSCacheWeb = async (name: CacheName) => {
|
||||
const cache = await caches.open(name);
|
||||
return {
|
||||
match: (key) => {
|
||||
match: (key: string) => {
|
||||
return cache.match(key);
|
||||
},
|
||||
put: (key: string, data: Response) => {
|
Loading…
Add table
Reference in a new issue