Skip to content

Commit

Permalink
feat: mfsdk
Browse files Browse the repository at this point in the history
  • Loading branch information
lovegaoshi committed Dec 18, 2024
1 parent aa0bae3 commit ab5af17
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/setting/developer/plugins/View.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import SettingListItem from '../../helpers/SettingListItem';
import { saveRegextractMapping } from '@utils/ChromeStorage';
import { downloadR128GainDB } from './r128gain/Sync';
import useSnack from '@stores/useSnack';
import MusicFreeButton from './MusicFreeButton';
import MusicFreeButton from './musicfree/MusicFreeButton';

const updateFromGithub = async () => {
const res = await fetch(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as React from 'react';
import { Image } from 'expo-image';
import { StyleSheet } from 'react-native';

import SettingListItem from '../../helpers/SettingListItem';
import { Route } from '../enums';
import SettingListItem from '@components/setting/helpers/SettingListItem';
import { Route } from '@components/setting/developer/enums';
import useNavigation from '@hooks/useNavigation';

const MusicFreeIcon = () => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ import logger from '@utils/Logger';
import SearchBar from '@components/commonui/SearchBar';
import { getUniqObjects } from '@utils/Utils';

interface Props {
getThemeID: (skin: NoxTheme.Style) => string;
}

export default ({ getThemeID }: Props) => {
export default () => {
const { t } = useTranslation();
const playerStyles = useNoxSetting(state => state.playerStyles);
const setPlayerStyles = useNoxSetting(state => state.setPlayerStyles);
Expand All @@ -21,7 +17,7 @@ export default ({ getThemeID }: Props) => {
}
const uniqueSkins = getUniqObjects(
skins.filter(skin => skin.metaData).concat(playerStyles),
getThemeID,
() => '',
);
setPlayerStyles(uniqueSkins);
};
Expand Down
3 changes: 2 additions & 1 deletion src/components/setting/developer/plugins/musicfree/View.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ import {
import { FlashList } from '@shopify/flash-list';

import { styles } from '@components/style';
import Searchbar from './Searchbar';

const MFSettings = () => {
return (
<SafeAreaView style={styles.flex}>
<Text>MFSettings</Text>
<Searchbar />
</SafeAreaView>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/objects/Storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const DefaultSetting: NoxStorage.PlayerSettingDict = {
keepForeground: false,
karaokeLyrics: false,
accentColor: false,
memoryEfficiency: false,
memoryEfficiency: true,
useSuggestion: false,
enableBili: false,
noRepeat: false,
Expand Down

0 comments on commit ab5af17

Please sign in to comment.