mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-26 03:18:17 +01:00
Prepare for adding file suffixes
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import { z } from 'zod';
|
||||
import emojiRegex from 'emoji-regex';
|
||||
import { strictAssert } from '../../../util/assert.js';
|
||||
import { parseUnknown } from '../../../util/schemas.js';
|
||||
import { strictAssert } from '../../../util/assert.std.js';
|
||||
import { parseUnknown } from '../../../util/schemas.std.js';
|
||||
import type {
|
||||
FunEmojiSearchIndex,
|
||||
FunEmojiSearchIndexEntry,
|
||||
} from '../useFunEmojiSearch.js';
|
||||
import type { FunEmojiLocalizerIndex } from '../useFunEmojiLocalizer.js';
|
||||
import { removeDiacritics } from '../../../util/removeDiacritics.js';
|
||||
} from '../useFunEmojiSearch.dom.js';
|
||||
import type { FunEmojiLocalizerIndex } from '../useFunEmojiLocalizer.dom.js';
|
||||
import { removeDiacritics } from '../../../util/removeDiacritics.std.js';
|
||||
|
||||
// Import emoji-datasource dynamically to avoid costly typechecking.
|
||||
// eslint-disable-next-line import/no-dynamic-require, @typescript-eslint/no-var-requires
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { strictAssert } from '../../../util/assert.js';
|
||||
import type { GifType } from '../panels/FunPanelGifs.js';
|
||||
import { strictAssert } from '../../../util/assert.std.js';
|
||||
import type { GifType } from '../panels/FunPanelGifs.dom.js';
|
||||
import type {
|
||||
TenorContentFormat,
|
||||
TenorNextCursor,
|
||||
TenorResponseResult,
|
||||
} from './tenor.js';
|
||||
import { tenor, isTenorTailCursor } from './tenor.js';
|
||||
} from './tenor.preload.js';
|
||||
import { tenor, isTenorTailCursor } from './tenor.preload.js';
|
||||
|
||||
const PREVIEW_CONTENT_FORMAT: TenorContentFormat = 'tinymp4';
|
||||
const ATTACHMENT_CONTENT_FORMAT: TenorContentFormat = 'mp4';
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import { drop } from '../../../util/drop.js';
|
||||
import { createLogger } from '../../../logging/log.js';
|
||||
import * as Errors from '../../../types/errors.js';
|
||||
import { strictAssert } from '../../../util/assert.js';
|
||||
import { drop } from '../../../util/drop.std.js';
|
||||
import { createLogger } from '../../../logging/log.std.js';
|
||||
import * as Errors from '../../../types/errors.std.js';
|
||||
import { strictAssert } from '../../../util/assert.std.js';
|
||||
|
||||
const log = createLogger('infinite');
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import { strictAssert } from '../../../util/assert.js';
|
||||
import type { fetchBytesViaProxy } from '../../../textsecure/WebAPI.js';
|
||||
import { strictAssert } from '../../../util/assert.std.js';
|
||||
import type { fetchBytesViaProxy } from '../../../textsecure/WebAPI.preload.js';
|
||||
|
||||
/** @internal Exported for testing */
|
||||
export const _SEGMENT_SIZE_BUCKETS: ReadonlyArray<number> = [
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
|
||||
import { z } from 'zod';
|
||||
import type { Simplify } from 'type-fest';
|
||||
import { strictAssert } from '../../../util/assert.js';
|
||||
import { parseUnknown } from '../../../util/schemas.js';
|
||||
import { strictAssert } from '../../../util/assert.std.js';
|
||||
import { parseUnknown } from '../../../util/schemas.std.js';
|
||||
import {
|
||||
fetchJsonViaProxy,
|
||||
fetchBytesViaProxy,
|
||||
} from '../../../textsecure/WebAPI.js';
|
||||
import { fetchInSegments } from './segments.js';
|
||||
} from '../../../textsecure/WebAPI.preload.js';
|
||||
import { fetchInSegments } from './segments.std.js';
|
||||
|
||||
const BASE_URL = 'https://tenor.googleapis.com/v2';
|
||||
const API_KEY = 'AIzaSyBt6SUfSsCQic2P2VkNkLjsGI7HGWZI95g';
|
||||
|
||||
Reference in New Issue
Block a user