Skip to content

Commit

Permalink
Added drives equals (#259)
Browse files Browse the repository at this point in the history
* Added drivesEqual;

* Rename image resize method;

* Fix ref;

* Fixes after linting;
  • Loading branch information
stef-coenen authored Sep 10, 2024
1 parent 73420d6 commit 605a7e0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
getNewId,
getRandom16ByteArray,
jsonStringify64,
stringGuidsEqual,
stringToUint8Array,
} from '@homebase-id/js-lib/helpers';

Expand Down
2 changes: 1 addition & 1 deletion packages/feed-app/src/hooks/useLiveFeedProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useCallback } from 'react';
import { useQuery, useQueryClient } from '@tanstack/react-query';

import { TypedConnectionNotification } from '@homebase-id/js-lib/core';
import { drivesEqual, stringGuidsEqual } from '@homebase-id/js-lib/helpers';
import { drivesEqual } from '@homebase-id/js-lib/helpers';
import { useWebsocketSubscriber } from '@homebase-id/common-app';
import { BlogConfig } from '@homebase-id/js-lib/public';
import { processInbox } from '@homebase-id/js-lib/peer';
Expand Down
8 changes: 1 addition & 7 deletions packages/js-lib/src/core/WebsocketData/WebsocketProvider.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
hasDebugFlag,
jsonStringify64,
tryJsonParse,
stringGuidsEqual,
drivesEqual,
} from '../../helpers/helpers';
import { hasDebugFlag, jsonStringify64, tryJsonParse, drivesEqual } from '../../helpers/helpers';
import { ApiType, DotYouClient } from '../DotYouClient';
import { decryptData, encryptData, getRandomIv } from '../InterceptionEncryptionUtil';
import { TargetDrive } from '../core';
Expand Down
8 changes: 6 additions & 2 deletions packages/js-lib/src/helpers/DataUtil.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { Guid } from 'guid-typescript';

import md5 from './md5/md5';
import { AccessControlList, EncryptedKeyHeader, PayloadDescriptor } from '../core/core';
import { TargetDrive } from '../../dist/core/DriveData/File/DriveFileTypes';
import {
AccessControlList,
EncryptedKeyHeader,
PayloadDescriptor,
TargetDrive,
} from '../core/core';
const OdinBlob: typeof Blob =
(typeof window !== 'undefined' && 'CustomBlob' in window && (window.CustomBlob as typeof Blob)) ||
Blob;
Expand Down
2 changes: 1 addition & 1 deletion packages/js-lib/src/media/Video/VideoSegmenterFfmpeg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const toHexString = (byteArray: Uint8Array) => {
}).join('');
};

const MB = 1000000;
// const MB = 1000000;
export const segmentVideoFileWithFfmpeg = async (
file: File | Blob,
keyHeader?: KeyHeader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { ContactConfig } from '@homebase-id/js-lib/network';
import { formatDateExludingYearIfCurrent } from '@homebase-id/common-app';
import { useFile } from '../../../hooks/files/useFiles';
import { useAuth } from '../../../hooks/auth/useAuth';
import { drivesEqual, stringGuidsEqual } from '@homebase-id/js-lib/helpers';
import { drivesEqual } from '@homebase-id/js-lib/helpers';

export const FileCard = ({
targetDrive,
Expand Down

0 comments on commit 605a7e0

Please sign in to comment.