Skip to content

Commit 9d16aa8

Browse files
committed
refactor: rename @flow/core to @flow/shared for better semantics
1 parent 614770c commit 9d16aa8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+49
-49
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions

apps/mobile/app/(tabs)/_layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { MaterialCommunityIcons } from '@expo/vector-icons'
2-
import { useTranslation } from '@flow/core'
2+
import { useTranslation } from '@flow/shared'
33
import { DeviceType, deviceType } from 'expo-device'
44
import { Drawer } from 'expo-router/drawer'
55
import { useWindowDimensions } from 'react-native'

apps/mobile/app/(tabs)/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Track } from '@flow/core'
1+
import type { Track } from '@flow/shared'
22
import { playerController, useDisplayTrack } from '@flow/player'
33
import { useTrackStore } from '@flow/store'
44
import { FlashList } from '@shopify/flash-list'

apps/mobile/app/(tabs)/setting.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Language, Theme } from '@flow/core'
2-
import { useTranslation } from '@flow/core'
1+
import type { Language, Theme } from '@flow/shared'
2+
import { useTranslation } from '@flow/shared'
33
import { useSettingStore } from '@flow/store'
44
import { ScrollView, StyleSheet } from 'react-native'
55
import { List, Surface } from 'react-native-paper'

apps/mobile/components/ui/Toast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ToastConfig } from '@/context/ToastContext'
2-
import { merge } from '@flow/core'
2+
import { merge } from '@flow/shared'
33
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
44
import { Animated, Dimensions, StyleSheet, Text, View } from 'react-native'
55
import { useTheme } from 'react-native-paper'

apps/mobile/modules/player/FullPlayerControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { formatDuration } from '@flow/core'
21
import { playerController, PlayMode, useDisplayTrack, usePlaybackStore, usePlayerStore } from '@flow/player'
2+
import { formatDuration } from '@flow/shared'
33
import Slider from '@react-native-community/slider'
44
import { useCallback, useState } from 'react'
55
import { Dimensions, StyleSheet, View } from 'react-native'

apps/mobile/modules/player/QueueList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Track } from '@flow/core'
1+
import type { Track } from '@flow/shared'
22
import { usePlayerStore } from '@flow/player'
33
import { FlashList } from '@shopify/flash-list'
44
import { Image, StyleSheet, View } from 'react-native'

apps/mobile/modules/player/TrackInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { formatFileSize, formatTime } from '@flow/core'
21
import { useDisplayTrack } from '@flow/player'
2+
import { formatFileSize, formatTime } from '@flow/shared'
33
import { Image, StyleSheet, View } from 'react-native'
44
import { Text } from 'react-native-paper'
55
import Animated from 'react-native-reanimated'

apps/mobile/modules/setting/TrackScanDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { Track } from '@flow/core'
1+
import type { Track } from '@flow/shared'
22
import type { PaginatedResult } from '@nodefinity/react-native-music-library'
3-
import { formatTime, useTranslation } from '@flow/core'
3+
import { formatTime, useTranslation } from '@flow/shared'
44
import { useTrackStore } from '@flow/store'
55
import { getTracksAsync } from '@nodefinity/react-native-music-library'
66
import { useEffect, useRef, useState } from 'react'

apps/mobile/modules/track/TrackItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Track } from '@flow/core'
1+
import type { Track } from '@flow/shared'
22
import type { ListItemProps } from 'react-native-paper'
33
import { usePlayerStore } from '@flow/player'
44
import { Image } from 'expo-image'

0 commit comments

Comments
 (0)