change time.ts to numbers.ts

This commit is contained in:
WardPearce
2025-04-08 19:57:12 +12:00
parent e2988d5be9
commit ee2c01bccc
12 changed files with 11 additions and 11 deletions
@@ -1,6 +1,6 @@
<script lang="ts">
import { getBestThumbnail, proxyGoogleImage } from '$lib/images';
import { cleanNumber } from '$lib/time';
import { cleanNumber } from '$lib/numbers';
import { onMount } from 'svelte';
import { _ } from 'svelte-i18n';
import { get } from 'svelte/store';
@@ -2,8 +2,8 @@
import { getComments } from '$lib/api';
import { type Comment, type Comments } from '$lib/api/model';
import { getBestThumbnail, proxyGoogleImage } from '$lib/images';
import { numberWithCommas } from '$lib/numbers';
import { interfaceLowBandwidthMode } from '$lib/store';
import { numberWithCommas } from '$lib/time';
import CommentSelf from './Comment.svelte';
interface Props {
@@ -1,5 +1,5 @@
<script lang="ts">
import { cleanNumber } from '$lib/time';
import { cleanNumber } from '$lib/numbers';
import { _ } from 'svelte-i18n';
import type { HashTag } from '../api/model';
import { truncate } from '../misc';
@@ -2,7 +2,7 @@
import { page } from '$app/stores';
import '$lib/css/shaka-player-theme.css';
import { getBestThumbnail } from '$lib/images';
import { padTime, videoLength } from '$lib/time';
import { padTime, videoLength } from '$lib/numbers';
import { type PhasedDescription } from '$lib/timestamps';
import { Capacitor } from '@capacitor/core';
import { ScreenOrientation, type ScreenOrientationResult } from '@capacitor/screen-orientation';
@@ -1,7 +1,7 @@
<script lang="ts">
import { getBestThumbnail, proxyGoogleImage } from '$lib/images';
import { letterCase } from '$lib/letterCasing';
import { cleanNumber, videoLength } from '$lib/time';
import { cleanNumber, videoLength } from '$lib/numbers';
import { createEventDispatcher, onDestroy, onMount } from 'svelte';
import { _ } from 'svelte-i18n';
import { get } from 'svelte/store';
@@ -1,5 +1,5 @@
<script lang="ts">
import { videoLength } from '$lib/time';
import { videoLength } from '$lib/numbers';
import Fuse from 'fuse.js';
import { VTTCue, parseText, type ParsedCaptionsResult } from 'media-captions';
import { _ } from 'svelte-i18n';
+1 -1
View File
@@ -1,7 +1,7 @@
import { androidPoTokenMinter } from '$lib/android/youtube/minter';
import type { AdaptiveFormats, Captions, Image, StoryBoard, Thumbnail, VideoBase, VideoPlay } from '$lib/api/model';
import { numberWithCommas } from '$lib/numbers';
import { interfaceRegionStore, poTokenCacheStore } from '$lib/store';
import { numberWithCommas } from '$lib/time';
import { Capacitor } from '@capacitor/core';
import { USER_AGENT } from 'bgutils-js';
import { Buffer } from 'buffer';
+1 -1
View File
@@ -1,5 +1,5 @@
import { decodeHtmlCharCodes } from "./misc";
import { convertToSeconds } from "./time";
import { convertToSeconds } from "./numbers";
export interface PhasedDescription {
description: string;
@@ -6,8 +6,8 @@
import PlaylistThumbnail from '$lib/components/PlaylistThumbnail.svelte';
import VideoList from '$lib/components/VideoList.svelte';
import { getBestThumbnail, proxyGoogleImage } from '$lib/images';
import { cleanNumber } from '$lib/numbers';
import { activePageStore, authStore, interfaceLowBandwidthMode } from '$lib/store';
import { cleanNumber } from '$lib/time';
import { Clipboard } from '@capacitor/clipboard';
import { Capacitor } from '@capacitor/core';
import { onMount } from 'svelte';
@@ -3,8 +3,8 @@
import type { PlaylistPageVideo } from '$lib/api/model';
import VideoList from '$lib/components/VideoList.svelte';
import { unsafeRandomItem } from '$lib/misc';
import { cleanNumber } from '$lib/numbers';
import { activePageStore, playlistSettingsStore } from '$lib/store';
import { cleanNumber } from '$lib/time';
import { Clipboard } from '@capacitor/clipboard';
import { Capacitor } from '@capacitor/core';
import { onMount } from 'svelte';
@@ -18,6 +18,7 @@
import { getBestThumbnail, proxyGoogleImage } from '$lib/images';
import { letterCase } from '$lib/letterCasing';
import { truncate, unsafeRandomItem } from '$lib/misc';
import { cleanNumber, humanizeSeconds, numberWithCommas } from '$lib/numbers';
import type { PlayerEvents } from '$lib/player.js';
import {
activePageStore,
@@ -31,7 +32,6 @@
syncPartyConnectionsStore,
syncPartyPeerStore
} from '$lib/store';
import { cleanNumber, humanizeSeconds, numberWithCommas } from '$lib/time';
import ui from 'beercss';
import type { DataConnection } from 'peerjs';
import { type Segment } from 'sponsorblock-api';