/MusicFree/src/utils/ |
H A D | lrcParser.ts | 21 index: number; property 89 let index; variable 96 index = this.lastSearchIndex; 97 index < this.lrcItems.length - 1; 98 ++index 101 position >= this.lrcItems[index].time && 102 position < this.lrcItems[index + 1].time 104 this.lastSearchIndex = index; 105 return this.lrcItems[index]; 109 for (index = 0; index < this.lastSearchIndex; ++index) { [all …]
|
H A D | mediaIndexMap.ts | 12 mediaItems.forEach((item, index) => { 16 [item.id]: index, 20 indexMap[item.platform][item.id] = index;
|
H A D | fileUtils.ts | 128 const index = url.lastIndexOf('#'); constant 129 if (index === -1) { 132 return url.substring(0, index);
|
/MusicFree/src/pages/musicListEditor/components/ |
H A D | musicList.tsx | 21 index: number; 25 const {index, editorMusicItem} = props; 31 draft[index].checked = !draft[index].checked; 34 }, [index]); 55 prev.index === curr.index, 66 ({index, item}: any) => { 67 return <MusicEditorItem editorMusicItem={item} index={index!} />;
|
/MusicFree/src/pages/musicDetail/components/content/lyric/ |
H A D | lyricItem.tsx | 9 index?: number; 19 onLayout?: (index: number, height: number) => void; 23 const {light, highlight, text, onLayout, index, fontSize} = props; 30 if (index !== undefined) { 31 onLayout?.(index, nativeEvent.layout.height); 60 prev.index === curr.index &&
|
H A D | index.tsx | 93 (index: number, height: number) => { 94 itemHeightsRef.current[index] = height; 106 if (currentLrcItem?.index === -1 || !currentLrcItem) { 108 index: 0, 113 index: Math.min(currentLrcItem.index ?? 0, lyrics.length - 1), 144 if (currentLrcItem?.index === -1 || !currentLrcItem) { 146 index: 0, 151 index: Math.min(currentLrcItem.index ?? 0, lyrics.length - 1), 244 onScrollToIndexFailed={({index}) => { 247 index: Math.min( [all …]
|
/MusicFree/src/core/trackPlayer/internal/ |
H A D | playList.ts | 21 newPlayList.forEach((item, index) => { 25 [item.id]: index, 29 newIndexMap[item.platform][item.id] = index; 77 export function getPlayListMusicAt(index: number): IMusic.IMusicItem | null { 84 return playList[(index + len) % len];
|
/MusicFree/src/components/base/ |
H A D | SortableFlatList.tsx | 33 renderItem: (props: {item: T; index: number}) => JSX.Element; 234 let index = activeRef.current; 236 index = Math.round( 243 index = 252 index = Math.min(data.length, Math.max(index, 0)); 253 // from: activeRef.current to: index 254 if (activeRef.current !== index) { 258 nData.splice(index, 0, activeItem as T); 299 renderItem={({item, index}) => { 306 index={index} [all …]
|
/MusicFree/src/components/musicList/ |
H A D | index.tsx | 45 // (item: any, index: number) => 46 // '' + index + '-' + item.platform + '-' + item.id, 64 renderItem={({index, item: musicItem}) => { 68 index={showIndex ? index + 1 : undefined}
|
/MusicFree/src/lib/react-native-vdebug/ |
H A D | index.js | 119 getRef(index) { argument 121 if (!this.refsObj[index]) this.refsObj[index] = ref; 137 this.props.panels.forEach((item, index) => { 139 if (index >= 3) return; 198 scrollToPage(index, animated = true) { argument 199 this.scrollToCard(index, animated); 223 index: 0, property 234 {this.state.panels.map((item, index) => ( 236 key={index.toString()} 238 if (index != this.state.currentPageIndex) { [all …]
|
/MusicFree/src/pages/artistDetail/components/ |
H A D | body.tsx | 29 const [index, setIndex] = useState(0); 37 index, 79 const renderItem = ({item, index}: any) => ( 80 <Component item={item} index={index} />
|
H A D | resultList.tsx | 70 getItemLayout={(_, index) => ({ 72 offset: ITEM_HEIGHT * index, 73 index,
|
/MusicFree/src/components/mediaItem/ |
H A D | musicItem.tsx | 14 index?: string | number; 27 index, 42 leftPadding={index !== undefined ? 0 : undefined} 53 {index !== undefined ? ( 59 {index}
|
/MusicFree/src/components/panels/types/ |
H A D | timingClose.tsx | 17 // const hours = Array(24).fill(1).map(_ => _.index); 18 // const mins = Array(60).fill(1).map(_ => _.index); 80 .map((_, index) => index); 102 index: +selectedMin, 122 getItemLayout={(_, index) => ({ 124 offset: ITEM_HEIGHT * index, 125 index, 163 getItemLayout={(_, index) => ({ 165 offset: ITEM_HEIGHT * index, 166 index,
|
H A D | simpleInput.tsx | 77 {hints.map((_, index) => ( 79 key={`hint-index-${index}`}
|
H A D | simpleSelect.tsx | 44 {candidates.map((it, index) => { 46 <Fragment key={`frag-${index}`}>
|
/MusicFree/src/pages/setting/settingTypes/pluginSetting/views/ |
H A D | pluginSubscribe.tsx | 87 renderItem={({item, index}) => { 95 editingIndex: index, 129 getItemLayout={(_, index) => ({ 131 offset: ITEM_HEIGHT * index, 132 index,
|
/MusicFree/src/core/musicSheet/ |
H A D | migrate.ts | 42 musicItems.forEach((it, index) => { 45 it.$sortIndex = index;
|
/MusicFree/src/components/panels/types/searchLrc/ |
H A D | LyricList.tsx | 41 getItemLayout={(_, index) => ({ 43 offset: ITEM_HEIGHT * index, 44 index,
|
/MusicFree/src/pages/home/components/homeBody/ |
H A D | operations.tsx | 43 {actionButtons.map((action, index) => ( 47 index % 4 ? styles.actionMarginLeft : null,
|
H A D | sheets.tsx | 20 const [index, setIndex] = useState(0); 51 index === 0 ? selectedTabTextStyle : null, 76 index === 1 ? selectedTabTextStyle : null, 111 data={(index === 0 ? allSheets : staredSheets) ?? []}
|
/MusicFree/src/types/ |
H A D | lyric.d.ts | 22 index?: number; property
|
/MusicFree/src/pages/home/components/homeBodyHorizontal/ |
H A D | operations.tsx | 44 {actionButtons.map((action, index) => ( 48 index % 4 ? styles.actionMarginLeft : null,
|
/MusicFree/src/pages/downloading/ |
H A D | downloadingList.tsx | 20 renderItem={({item, index}) => { 21 if (index < downloading.length) {
|
/MusicFree/src/pages/searchPage/components/resultPanel/ |
H A D | resultWrapper.tsx | 52 const renderItem = ({item, index}: any) => ( 55 index={index}
|