Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 51) sorted by relevance

123

/MusicFree/src/utils/
H A DlrcParser.ts21 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 DmediaIndexMap.ts12 mediaItems.forEach((item, index) => {
16 [item.id]: index,
20 indexMap[item.platform][item.id] = index;
H A DfileUtils.ts128 const index = url.lastIndexOf('#'); constant
129 if (index === -1) {
132 return url.substring(0, index);
/MusicFree/src/pages/musicListEditor/components/
H A DmusicList.tsx21 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 DlyricItem.tsx9 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 Dindex.tsx93 (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 DplayList.ts21 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 DSortableFlatList.tsx33 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 Dindex.tsx45 // (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 Dindex.js119 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 Dbody.tsx29 const [index, setIndex] = useState(0);
37 index,
79 const renderItem = ({item, index}: any) => (
80 <Component item={item} index={index} />
H A DresultList.tsx70 getItemLayout={(_, index) => ({
72 offset: ITEM_HEIGHT * index,
73 index,
/MusicFree/src/components/mediaItem/
H A DmusicItem.tsx14 index?: string | number;
27 index,
42 leftPadding={index !== undefined ? 0 : undefined}
53 {index !== undefined ? (
59 {index}
/MusicFree/src/components/panels/types/
H A DtimingClose.tsx17 // 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 DsimpleInput.tsx77 {hints.map((_, index) => (
79 key={`hint-index-${index}`}
H A DsimpleSelect.tsx44 {candidates.map((it, index) => {
46 <Fragment key={`frag-${index}`}>
/MusicFree/src/pages/setting/settingTypes/pluginSetting/views/
H A DpluginSubscribe.tsx87 renderItem={({item, index}) => {
95 editingIndex: index,
129 getItemLayout={(_, index) => ({
131 offset: ITEM_HEIGHT * index,
132 index,
/MusicFree/src/core/musicSheet/
H A Dmigrate.ts42 musicItems.forEach((it, index) => {
45 it.$sortIndex = index;
/MusicFree/src/components/panels/types/searchLrc/
H A DLyricList.tsx41 getItemLayout={(_, index) => ({
43 offset: ITEM_HEIGHT * index,
44 index,
/MusicFree/src/pages/home/components/homeBody/
H A Doperations.tsx43 {actionButtons.map((action, index) => (
47 index % 4 ? styles.actionMarginLeft : null,
H A Dsheets.tsx20 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 Dlyric.d.ts22 index?: number; property
/MusicFree/src/pages/home/components/homeBodyHorizontal/
H A Doperations.tsx44 {actionButtons.map((action, index) => (
48 index % 4 ? styles.actionMarginLeft : null,
/MusicFree/src/pages/downloading/
H A DdownloadingList.tsx20 renderItem={({item, index}) => {
21 if (index < downloading.length) {
/MusicFree/src/pages/searchPage/components/resultPanel/
H A DresultWrapper.tsx52 const renderItem = ({item, index}: any) => (
55 index={index}

123