From 1f65bc64ffdf0bc91787d53d3ddfa36459adf871 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Mon, 21 Aug 2023 20:09:24 +0800 Subject: [PATCH] lint fix --- .eslintrc.cjs | 76 +++ .eslintrc.js | 61 -- package-lock.json | 561 +++++++++--------- package.json | 10 +- .../MusicAddModal/CreateUserList.tsx | 2 +- src/components/MusicAddModal/List.tsx | 2 +- src/components/MusicAddModal/ListItem.tsx | 1 - .../MusicAddModal/MusicAddModal.tsx | 2 +- src/components/MusicAddModal/Title.tsx | 1 - src/components/MusicAddModal/index.tsx | 2 +- src/components/MusicMultiAddModal/List.tsx | 2 +- .../MusicMultiAddModal/ListItem.tsx | 1 - .../MusicMultiAddModal/MusicMultiAddModal.tsx | 2 +- src/components/MusicMultiAddModal/Title.tsx | 1 - src/components/MusicMultiAddModal/index.tsx | 2 +- src/components/OnlineList/List.tsx | 2 +- src/components/OnlineList/ListItem.tsx | 2 +- src/components/OnlineList/ListMenu.tsx | 2 +- src/components/OnlineList/MultipleModeBar.tsx | 2 +- src/components/OnlineList/index.tsx | 2 +- src/components/PageContent.tsx | 2 +- src/components/SearchTipList/List.tsx | 2 +- src/components/SearchTipList/index.tsx | 2 +- src/components/SourceSelector.tsx | 2 +- src/components/TimeoutExitEditModal.tsx | 2 +- src/components/common/Badge.tsx | 2 +- src/components/common/Button.tsx | 2 +- src/components/common/ButtonPrimary.tsx | 2 +- src/components/common/CheckBox/index.tsx | 2 +- src/components/common/ChoosePath/List.tsx | 2 +- .../common/ChoosePath/components/Footer.tsx | 2 +- .../common/ChoosePath/components/Header.tsx | 2 +- .../common/ChoosePath/components/ListItem.tsx | 2 +- .../common/ChoosePath/components/Main.tsx | 2 +- src/components/common/ChoosePath/index.tsx | 2 +- src/components/common/ConfirmAlert.tsx | 2 +- src/components/common/Dialog.tsx | 2 +- src/components/common/DorpDownMenu.tsx | 2 +- src/components/common/DorpDownPanel/Panel.tsx | 2 +- src/components/common/DorpDownPanel/index.tsx | 2 +- src/components/common/DrawerLayoutFixed.tsx | 2 +- src/components/common/ImageBackground.tsx | 4 +- src/components/common/Input.tsx | 2 +- src/components/common/LoadingMask.tsx | 2 +- src/components/common/Menu.tsx | 2 +- src/components/common/Modal.tsx | 2 +- src/components/common/Popup.tsx | 2 +- src/components/common/ScaledImage.tsx | 2 +- src/components/common/Slider.tsx | 2 +- src/components/common/StatusBar.tsx | 1 - src/components/common/Text.tsx | 1 - src/components/player/Progress.tsx | 2 +- src/core/common.ts | 2 +- src/core/init/player/playerEvent.ts | 2 +- src/navigation/components/ModalContent.tsx | 1 - src/navigation/components/PactModal.tsx | 2 +- src/navigation/components/SyncModeModal.tsx | 2 +- src/navigation/components/Toast.js | 1 - src/navigation/components/VersionModal.tsx | 2 +- src/navigation/registerScreens.tsx | 1 - src/plugins/player/playList.ts | 2 +- src/screens/Comment/CommentHot.tsx | 2 +- src/screens/Comment/CommentNew.tsx | 2 +- .../Comment/components/CommentFloor.tsx | 2 +- src/screens/Comment/components/Header.tsx | 2 +- src/screens/Comment/components/List.tsx | 2 +- src/screens/Comment/index.tsx | 2 +- src/screens/Home/Horizontal/Aside.tsx | 2 +- src/screens/Home/Horizontal/Header.tsx | 1 - src/screens/Home/Horizontal/Main.tsx | 2 +- src/screens/Home/Horizontal/index.tsx | 1 - src/screens/Home/Vertical/Content.tsx | 2 +- src/screens/Home/Vertical/DrawerNav.tsx | 2 +- src/screens/Home/Vertical/Header.tsx | 1 - src/screens/Home/Vertical/Main.tsx | 2 +- src/screens/Home/Vertical/index.tsx | 1 - src/screens/Home/Views/Download/index.js | 1 - .../Views/Leaderboard/BoardsList/List.tsx | 2 +- .../Views/Leaderboard/BoardsList/ListItem.tsx | 2 +- .../Views/Leaderboard/BoardsList/ListMenu.tsx | 2 +- .../Views/Leaderboard/BoardsList/index.tsx | 2 +- .../Views/Leaderboard/Horizontal/LeftBar.tsx | 2 +- .../Views/Leaderboard/Horizontal/index.tsx | 2 +- .../Home/Views/Leaderboard/MusicList.tsx | 2 +- .../Vertical/HeaderBar/ActiveListName.tsx | 2 +- .../Vertical/HeaderBar/SourceSelector.tsx | 2 +- .../Leaderboard/Vertical/HeaderBar/index.tsx | 2 +- .../Home/Views/Leaderboard/Vertical/index.tsx | 2 +- src/screens/Home/Views/Leaderboard/index.tsx | 1 - .../Views/Mylist/MusicList/ActiveList.tsx | 2 +- .../Home/Views/Mylist/MusicList/List.tsx | 2 +- .../Home/Views/Mylist/MusicList/ListItem.tsx | 2 +- .../Home/Views/Mylist/MusicList/ListMenu.tsx | 2 +- .../Mylist/MusicList/ListMusicSearch.tsx | 2 +- .../Views/Mylist/MusicList/ListSearchBar.tsx | 2 +- .../Mylist/MusicList/MultipleModeBar.tsx | 2 +- .../Mylist/MusicList/MusicPositionModal.tsx | 2 +- .../Home/Views/Mylist/MusicList/index.tsx | 2 +- src/screens/Home/Views/Mylist/MyList/List.tsx | 2 +- .../Views/Mylist/MyList/ListImportExport.tsx | 2 +- .../Home/Views/Mylist/MyList/ListMenu.tsx | 2 +- .../Home/Views/Mylist/MyList/ListNameEdit.tsx | 2 +- .../Home/Views/Mylist/MyList/index.tsx | 2 +- src/screens/Home/Views/Mylist/index.tsx | 2 +- .../Views/Search/BlankView/HistorySearch.tsx | 2 +- .../Home/Views/Search/BlankView/HotSearch.tsx | 2 +- .../Home/Views/Search/BlankView/index.tsx | 2 +- .../Views/Search/HeaderBar/SearchInput.tsx | 2 +- .../Home/Views/Search/HeaderBar/index.tsx | 2 +- src/screens/Home/Views/Search/List.tsx | 2 +- src/screens/Home/Views/Search/MusicList.tsx | 2 +- .../Home/Views/Search/SearchTypeSelector.tsx | 2 +- .../Home/Views/Search/SonglistList.tsx | 2 +- src/screens/Home/Views/Search/TipList.tsx | 2 +- src/screens/Home/Views/Search/index.tsx | 2 +- .../Home/Views/Setting/Horizontal/NavList.tsx | 2 +- .../Home/Views/Setting/Horizontal/index.tsx | 2 +- src/screens/Home/Views/Setting/Main.tsx | 2 +- .../Home/Views/Setting/Vertical/Header.tsx | 2 +- .../Home/Views/Setting/Vertical/Main.tsx | 5 +- .../Home/Views/Setting/Vertical/NavList.tsx | 3 +- .../Home/Views/Setting/Vertical/index.tsx | 3 +- .../Home/Views/Setting/components/Button.tsx | 2 +- .../Views/Setting/components/CheckBoxItem.tsx | 2 +- .../Views/Setting/components/InputItem.tsx | 2 +- .../Home/Views/Setting/components/Section.tsx | 1 - .../Home/Views/Setting/components/Slider.tsx | 2 +- .../Views/Setting/components/SubTitle.tsx | 2 +- src/screens/Home/Views/Setting/index.tsx | 1 - .../Home/Views/Setting/settings/About.tsx | 2 +- .../settings/Backup/ListImportExport.tsx | 2 +- .../Views/Setting/settings/Backup/Part.tsx | 2 +- .../Views/Setting/settings/Backup/index.tsx | 2 +- .../settings/Basic/DrawerLayoutPosition.tsx | 2 +- .../Views/Setting/settings/Basic/FontSize.tsx | 2 +- .../settings/Basic/IsAutoHidePlayBar.tsx | 2 +- .../Setting/settings/Basic/IsShowBackBtn.tsx | 2 +- .../Setting/settings/Basic/IsShowExitBtn.tsx | 2 +- .../settings/Basic/IsStartupAutoPlay.tsx | 2 +- .../Views/Setting/settings/Basic/Language.tsx | 2 +- .../Setting/settings/Basic/ShareType.tsx | 2 +- .../Views/Setting/settings/Basic/Source.tsx | 2 +- .../Setting/settings/Basic/SourceName.tsx | 2 +- .../Views/Setting/settings/Basic/index.tsx | 2 +- .../settings/List/AddMusicLocationType.tsx | 2 +- .../Setting/settings/List/IsClickPlayList.tsx | 2 +- .../Setting/settings/List/IsShowAlbumName.tsx | 2 +- .../Setting/settings/List/IsShowInterval.tsx | 2 +- .../Views/Setting/settings/List/index.tsx | 2 +- .../settings/LyricDesktop/IsLockLyric.tsx | 2 +- .../settings/LyricDesktop/IsShowLyric.tsx | 2 +- .../LyricDesktop/IsShowToggleAnima.tsx | 2 +- .../settings/LyricDesktop/IsSingleLine.tsx | 2 +- .../settings/LyricDesktop/MaxLineNum.tsx | 2 +- .../settings/LyricDesktop/TextOpacity.tsx | 2 +- .../settings/LyricDesktop/TextPositionX.tsx | 2 +- .../settings/LyricDesktop/TextPositionY.tsx | 2 +- .../settings/LyricDesktop/TextSize.tsx | 2 +- .../Setting/settings/LyricDesktop/Theme.tsx | 2 +- .../settings/LyricDesktop/ViewWidth.tsx | 2 +- .../Setting/settings/LyricDesktop/index.tsx | 2 +- .../Home/Views/Setting/settings/Other/Log.tsx | 2 +- .../Setting/settings/Other/MetaCache.tsx | 10 +- .../Setting/settings/Other/ResourceCache.tsx | 4 +- .../Views/Setting/settings/Other/index.tsx | 2 +- .../settings/Player/IsHandleAudioFocus.tsx | 2 +- .../settings/Player/IsPlayHighQuality.tsx | 2 +- .../Views/Setting/settings/Player/IsS2T.tsx | 2 +- .../settings/Player/IsSavePlayTime.tsx | 2 +- .../settings/Player/IsShowLyricRoma.tsx | 2 +- .../Player/IsShowLyricTranslation.tsx | 2 +- .../Player/IsShowNotificationImage.tsx | 2 +- .../Setting/settings/Player/MaxCache.tsx | 2 +- .../Views/Setting/settings/Player/index.tsx | 2 +- .../settings/Search/IsShowHistorySearch.tsx | 2 +- .../settings/Search/IsShowHotSearch.tsx | 2 +- .../Views/Setting/settings/Search/index.tsx | 2 +- .../Views/Setting/settings/Sync/History.tsx | 2 +- .../Views/Setting/settings/Sync/IsEnable.tsx | 2 +- .../Views/Setting/settings/Sync/index.tsx | 2 +- .../Setting/settings/Sync/isEnable.tsx.bak | 2 +- .../Setting/settings/Theme/IsAutoTheme.tsx | 2 +- .../Setting/settings/Theme/IsHideBgDark.tsx | 2 +- .../Views/Setting/settings/Theme/Theme.tsx | 2 +- .../Views/Setting/settings/Theme/index.tsx | 2 +- .../Home/Views/Setting/settings/Version.tsx | 2 +- src/screens/Home/Views/SongList/Content.tsx | 2 +- .../SongList/HeaderBar/OpenList/Modal.tsx | 2 +- .../SongList/HeaderBar/OpenList/index.tsx | 2 +- .../Home/Views/SongList/HeaderBar/SortTab.tsx | 2 +- .../SongList/HeaderBar/SourceSelector.tsx | 2 +- .../SongList/HeaderBar/Tag/CurrentTagBtn.tsx | 2 +- .../Views/SongList/HeaderBar/Tag/index.tsx | 2 +- .../Home/Views/SongList/HeaderBar/index.tsx | 2 +- src/screens/Home/Views/SongList/List.tsx | 2 +- .../Home/Views/SongList/TagList/List.tsx | 2 +- .../Home/Views/SongList/TagList/TagGroup.tsx | 1 - .../Home/Views/SongList/TagList/index.tsx | 2 +- .../SongList/components/Songlist/List.tsx | 2 +- .../SongList/components/Songlist/ListItem.tsx | 2 +- .../SongList/components/Songlist/index.tsx | 2 +- src/screens/Home/Views/SongList/index.tsx | 2 +- .../PlayerBar/components/ControlBtn.tsx | 1 - .../components/PlayerBar/components/Pic.tsx | 2 +- .../PlayerBar/components/PlayInfo.tsx | 2 +- .../PlayerBar/components/Status.tsx | 1 - .../components/PlayerBar/components/Title.tsx | 1 - .../Home/components/PlayerBar/index.tsx | 2 +- src/screens/Home/index.tsx | 2 +- src/screens/PlayDetail/Horizontal/Lyric.tsx | 2 +- src/screens/PlayDetail/Horizontal/Pic.tsx | 2 +- .../Horizontal/Player/ControlBtn.tsx | 1 - .../Horizontal/Player/MoreBtn/Btn.tsx | 1 - .../Horizontal/Player/MoreBtn/MusicAddBtn.tsx | 2 +- .../Horizontal/Player/MoreBtn/PlayModeBtn.tsx | 2 +- .../Player/MoreBtn/TimeoutExitBtn.tsx | 2 +- .../Horizontal/Player/MoreBtn/index.tsx | 1 - .../PlayDetail/Horizontal/Player/PlayInfo.tsx | 2 +- .../PlayDetail/Horizontal/Player/Progress.tsx | 2 +- .../PlayDetail/Horizontal/Player/Status.tsx | 1 - .../PlayDetail/Horizontal/Player/index.tsx | 2 +- .../PlayDetail/Horizontal/components/Btn.tsx | 1 - .../Horizontal/components/CommentBtn.tsx | 1 - .../Horizontal/components/Header.tsx | 2 +- src/screens/PlayDetail/Horizontal/index.tsx | 2 +- src/screens/PlayDetail/Vertical/Lyric.tsx | 2 +- src/screens/PlayDetail/Vertical/Pic.tsx | 2 +- .../Vertical/Player/components/ControlBtn.tsx | 1 - .../Player/components/MoreBtn/Btn.tsx | 1 - .../Player/components/MoreBtn/CommentBtn.tsx | 1 - .../Player/components/MoreBtn/MusicAddBtn.tsx | 2 +- .../Player/components/MoreBtn/PlayModeBtn.tsx | 2 +- .../components/MoreBtn/TimeoutExitBtn.tsx | 2 +- .../Player/components/MoreBtn/index.tsx | 1 - .../Vertical/Player/components/PlayInfo.tsx | 2 +- .../Vertical/Player/components/Progress.tsx | 2 +- .../Vertical/Player/components/Status.tsx | 1 - .../PlayDetail/Vertical/Player/index.tsx | 2 +- .../PlayDetail/Vertical/components/Header.tsx | 2 +- src/screens/PlayDetail/Vertical/index.tsx | 2 +- .../components/SettingPopup/index.tsx | 2 +- .../SettingPopup/settings/SettingLrcAlign.tsx | 2 +- .../settings/SettingLrcFontSize.tsx | 2 +- .../settings/SettingPlaybackRate.tsx | 2 +- .../SettingPopup/settings/SettingVolume.tsx | 2 +- src/screens/PlayDetail/index.tsx | 2 +- src/screens/SonglistDetail/ActionBar.tsx | 2 +- src/screens/SonglistDetail/Header.tsx | 2 +- src/screens/SonglistDetail/MusicList.tsx | 2 +- .../SonglistDetail/PlayerBar/ControlBtn.tsx | 1 - src/screens/SonglistDetail/PlayerBar/Pic.tsx | 2 +- .../SonglistDetail/PlayerBar/PlayInfo.tsx | 2 +- .../SonglistDetail/PlayerBar/Status.tsx | 1 - .../SonglistDetail/PlayerBar/Title.tsx | 1 - .../SonglistDetail/PlayerBar/index.tsx | 2 +- src/screens/SonglistDetail/index.tsx | 2 +- src/store/Provider/Provider.tsx | 2 +- src/store/Provider/ThemeProvider.tsx | 2 +- tsconfig.json | 2 +- 259 files changed, 588 insertions(+), 612 deletions(-) create mode 100644 .eslintrc.cjs delete mode 100644 .eslintrc.js diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..e246ed2 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,76 @@ + +const baseRule = { + 'no-new': 'off', + camelcase: 'off', + 'no-return-assign': 'off', + 'space-before-function-paren': ['error', 'never'], + 'no-var': 'error', + 'no-fallthrough': 'off', + 'prefer-promise-reject-errors': 'off', + eqeqeq: 'off', + 'no-multiple-empty-lines': [1, { max: 2 }], + 'comma-dangle': [2, 'always-multiline'], + 'standard/no-callback-literal': 'off', + 'prefer-const': 'off', + 'no-labels': 'off', + 'node/no-callback-literal': 'off', + 'multiline-ternary': 'off', + 'react/display-name': 'off', + 'react/prop-types': 'off', +} + +module.exports = { + root: true, + extends: [ + 'standard', + 'plugin:react/recommended', + 'plugin:react-hooks/recommended', + 'plugin:react/jsx-runtime', + ], + plugins: [ + 'react', + ], + rules: baseRule, + parser: '@babel/eslint-parser', + overrides: [ + { + files: ['*.ts', '*.tsx'], + extends: ['standard-with-typescript'], + rules: { + ...baseRule, + '@typescript-eslint/strict-boolean-expressions': 'off', + '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/space-before-function-paren': 'off', + '@typescript-eslint/no-non-null-assertion': 'off', + '@typescript-eslint/restrict-template-expressions': [ + 1, + { + allowBoolean: true, + }, + ], + '@typescript-eslint/naming-convention': 'off', + '@typescript-eslint/return-await': 'off', + '@typescript-eslint/comma-dangle': 'off', + '@typescript-eslint/no-dynamic-delete': 'off', + '@typescript-eslint/ban-ts-comment': 'off', + '@typescript-eslint/ban-types': 'off', + }, + parserOptions: { + project: './tsconfig.json', + }, + }, + ], + settings: { + react: { + version: 'detect', // React version. "detect" automatically picks the version you have installed. + // You can also use `16.0`, `16.3`, etc, if you want to override the detected value. + // It will default to "latest" and warn if missing, and to "detect" in the future + }, + }, + ignorePatterns: [ + 'node_modules', + '*.min.js', + 'test.js', + '*Test.ts', + ], +} diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 1206c86..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1,61 +0,0 @@ -module.exports = { - root: true, - extends: [ - 'standard-with-typescript', - 'plugin:react-hooks/recommended', - ], - rules: { - 'no-new': 'off', - camelcase: 'off', - 'no-return-assign': 'off', - 'space-before-function-paren': ['error', 'never'], - 'no-var': 'error', - 'no-fallthrough': 'off', - 'prefer-promise-reject-errors': 'off', - eqeqeq: 'off', - 'no-multiple-empty-lines': [1, { max: 2 }], - 'comma-dangle': [2, 'always-multiline'], - 'standard/no-callback-literal': 'off', - 'prefer-const': 'off', - 'no-labels': 'off', - 'node/no-callback-literal': 'off', - }, - overrides: [ - { - files: ['*.ts', '*.tsx'], - rules: { - 'no-new': 'off', - camelcase: 'off', - 'no-return-assign': 'off', - 'space-before-function-paren': ['error', 'never'], - 'no-var': 'error', - 'no-fallthrough': 'off', - 'prefer-promise-reject-errors': 'off', - eqeqeq: 'off', - 'no-multiple-empty-lines': [1, { max: 2 }], - 'comma-dangle': [2, 'always-multiline'], - 'standard/no-callback-literal': 'off', - 'prefer-const': 'off', - 'no-labels': 'off', - 'node/no-callback-literal': 'off', - '@typescript-eslint/strict-boolean-expressions': 'off', - '@typescript-eslint/explicit-function-return-type': 'off', - '@typescript-eslint/space-before-function-paren': 'off', - '@typescript-eslint/no-non-null-assertion': 'off', - '@typescript-eslint/restrict-template-expressions': [1, { - allowBoolean: true, - }], - '@typescript-eslint/naming-convention': 'off', - '@typescript-eslint/return-await': 'off', - 'multiline-ternary': 'off', - '@typescript-eslint/comma-dangle': 'off', - '@typescript-eslint/no-dynamic-delete': 'off', - '@typescript-eslint/ban-ts-comment': 'off', - '@typescript-eslint/ban-types': 'off', - }, - parserOptions: { - project: './tsconfig.json', - }, - }, - ], -} diff --git a/package-lock.json b/package-lock.json index 7d14469..f012dab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,18 @@ { "name": "lx-music-mobile", - "version": "1.0.7-beta.10", + "version": "1.1.0-beta.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "lx-music-mobile", - "version": "1.0.7-beta.10", + "version": "1.1.0-beta.1", "license": "Apache-2.0", "dependencies": { "@craftzdog/react-native-buffer": "^6.0.5", "@react-native-async-storage/async-storage": "^1.19.2", "@react-native-clipboard/clipboard": "^1.11.2", - "@react-native-community/slider": "^4.4.2", + "@react-native-community/slider": "^4.4.3", "iconv-lite": "^0.6.3", "lrc-file-parser": "^2.4.1", "message2call": "^0.1.0", @@ -31,6 +31,7 @@ }, "devDependencies": { "@babel/core": "^7.22.10", + "@babel/eslint-parser": "^7.22.10", "@babel/plugin-proposal-export-namespace-from": "^7.18.9", "@babel/preset-env": "^7.22.10", "@babel/runtime": "^7.22.10", @@ -42,7 +43,8 @@ "@types/react-native-vector-icons": "^6.4.14", "babel-plugin-module-resolver": "^5.0.0", "changelog-parser": "^3.0.1", - "eslint-config-standard-with-typescript": "^37.0.0", + "eslint-config-standard": "^17.1.0", + "eslint-config-standard-with-typescript": "^38.0.0", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "metro-react-native-babel-preset": "0.76.8", @@ -183,6 +185,33 @@ "url": "https://opencollective.com/babel" } }, + "node_modules/@babel/eslint-parser": { + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.22.10.tgz", + "integrity": "sha512-0J8DNPRXQRLeR9rPaUMM3fA+RbixjnVLe/MRMYCkp3hzgsSuxCHQ8NN8xQG1wIHKJ4a1DTROTvFJdW+B5/eOsg==", + "dev": true, + "dependencies": { + "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", + "eslint-visitor-keys": "^2.1.0", + "semver": "^6.3.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || >=14.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.11.0", + "eslint": "^7.5.0 || ^8.0.0" + } + }, + "node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, "node_modules/@babel/generator": { "version": "7.22.10", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.10.tgz", @@ -2511,6 +2540,15 @@ "@jridgewell/sourcemap-codec": "1.4.14" } }, + "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { + "version": "5.1.1-v1", + "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", + "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", + "dev": true, + "dependencies": { + "eslint-scope": "5.1.1" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -2958,9 +2996,9 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/@react-native-community/slider": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/@react-native-community/slider/-/slider-4.4.2.tgz", - "integrity": "sha512-D9bv+3Vd2gairAhnRPAghwccgEmoM7g562pm8i4qB3Esrms5mggF81G3UvCyc0w3jjtFHh8dpQkfEoKiP0NW/Q==" + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/@react-native-community/slider/-/slider-4.4.3.tgz", + "integrity": "sha512-WdjvGtqJfqcCiLwtbzie53Z/H6w6dIfRHhlW832D89ySAdE5DxLAsqRhDOG0eacuAxxEB+T9sGCkVMD0fa3aBg==" }, "node_modules/@react-native/assets-registry": { "version": "0.72.0", @@ -3475,7 +3513,6 @@ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", "dev": true, - "license": "MIT", "peer": true }, "node_modules/@types/json5": { @@ -3546,7 +3583,6 @@ "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==", "dev": true, - "license": "MIT", "peer": true }, "node_modules/@types/stack-utils": { @@ -3571,34 +3607,34 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", - "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.4.0.tgz", + "integrity": "sha512-62o2Hmc7Gs3p8SLfbXcipjWAa6qk2wZGChXG2JbBtYpwSRmti/9KHLqfbLs9uDigOexG+3PaQ9G2g3201FWLKg==", "dev": true, - "license": "MIT", "peer": true, "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/type-utils": "5.62.0", - "@typescript-eslint/utils": "5.62.0", + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.4.0", + "@typescript-eslint/type-utils": "6.4.0", + "@typescript-eslint/utils": "6.4.0", + "@typescript-eslint/visitor-keys": "6.4.0", "debug": "^4.3.4", "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -3611,7 +3647,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "license": "ISC", "peer": true, "dependencies": { "yallist": "^4.0.0" @@ -3625,7 +3660,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, - "license": "ISC", "peer": true, "dependencies": { "lru-cache": "^6.0.0" @@ -3642,30 +3676,29 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true, - "license": "ISC", "peer": true }, "node_modules/@typescript-eslint/parser": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", - "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.4.0.tgz", + "integrity": "sha512-I1Ah1irl033uxjxO9Xql7+biL3YD7w9IU8zF+xlzD/YxY6a4b7DYA08PXUUCbm2sEljwJF6ERFy2kTGAGcNilg==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/scope-manager": "6.4.0", + "@typescript-eslint/types": "6.4.0", + "@typescript-eslint/typescript-estree": "6.4.0", + "@typescript-eslint/visitor-keys": "6.4.0", "debug": "^4.3.4" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -3674,17 +3707,16 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", - "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.4.0.tgz", + "integrity": "sha512-TUS7vaKkPWDVvl7GDNHFQMsMruD+zhkd3SdVW0d7b+7Zo+bd/hXJQ8nsiUZMi1jloWo6c9qt3B7Sqo+flC1nig==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0" + "@typescript-eslint/types": "6.4.0", + "@typescript-eslint/visitor-keys": "6.4.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -3692,27 +3724,26 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", - "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.4.0.tgz", + "integrity": "sha512-TvqrUFFyGY0cX3WgDHcdl2/mMCWCDv/0thTtx/ODMY1QhEiyFtv/OlLaNIiYLwRpAxAtOLOY9SUf1H3Q3dlwAg==", "dev": true, - "license": "MIT", "peer": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.62.0", - "@typescript-eslint/utils": "5.62.0", + "@typescript-eslint/typescript-estree": "6.4.0", + "@typescript-eslint/utils": "6.4.0", "debug": "^4.3.4", - "tsutils": "^3.21.0" + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "*" + "eslint": "^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -3721,13 +3752,12 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", - "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.4.0.tgz", + "integrity": "sha512-+FV9kVFrS7w78YtzkIsNSoYsnOtrYVnKWSTVXoL1761CsCRv5wpDOINgsXpxD67YCLZtVQekDDyaxfjVWUJmmg==", "dev": true, - "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -3735,22 +3765,21 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", - "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.4.0.tgz", + "integrity": "sha512-iDPJArf/K2sxvjOR6skeUCNgHR/tCQXBsa+ee1/clRKr3olZjZ/dSkXPZjG6YkPtnW6p5D1egeEPMCW6Gn4yLA==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0", + "@typescript-eslint/types": "6.4.0", + "@typescript-eslint/visitor-keys": "6.4.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -3767,7 +3796,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -3780,7 +3808,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, - "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -3795,35 +3822,32 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/@typescript-eslint/utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", - "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.4.0.tgz", + "integrity": "sha512-BvvwryBQpECPGo8PwF/y/q+yacg8Hn/2XS+DqL/oRsOPK+RPt29h5Ui5dqOKHDlbXrAeHUTnyG3wZA0KTDxRZw==", "dev": true, - "license": "MIT", "peer": true, "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.4.0", + "@typescript-eslint/types": "6.4.0", + "@typescript-eslint/typescript-estree": "6.4.0", + "semver": "^7.5.4" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0" } }, "node_modules/@typescript-eslint/utils/node_modules/lru-cache": { @@ -3831,7 +3855,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "license": "ISC", "peer": true, "dependencies": { "yallist": "^4.0.0" @@ -3845,7 +3868,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, - "license": "ISC", "peer": true, "dependencies": { "lru-cache": "^6.0.0" @@ -3862,21 +3884,19 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true, - "license": "ISC", "peer": true }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", - "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.4.0.tgz", + "integrity": "sha512-yJSfyT+uJm+JRDWYRYdCm2i+pmvXJSMtPR9Cq5/XQs4QIgNoLcoRtDdzsLbLsFM/c6um6ohQkg/MLxWvoIndJA==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.62.0", - "eslint-visitor-keys": "^3.3.0" + "@typescript-eslint/types": "6.4.0", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -4074,7 +4094,6 @@ "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -5088,7 +5107,6 @@ "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, - "license": "MIT", "dependencies": { "path-type": "^4.0.0" }, @@ -5406,16 +5424,16 @@ } }, "node_modules/eslint-config-standard-with-typescript": { - "version": "37.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-37.0.0.tgz", - "integrity": "sha512-V8I/Q1eFf9tiOuFHkbksUdWO3p1crFmewecfBtRxXdnvb71BCJx+1xAknlIRZMwZioMX3/bPtMVCZsf1+AjjOw==", + "version": "38.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-38.0.0.tgz", + "integrity": "sha512-G7JR6I8tmWEQjzbESo/9gVq4AQctbVO4J8PINQj8l2lgbJF/W9KCJ4uDLiKmLMjWszW/F5SsucoA/5VpHvfwOQ==", "dev": true, "dependencies": { - "@typescript-eslint/parser": "^5.52.0", + "@typescript-eslint/parser": "^6.1.0", "eslint-config-standard": "17.1.0" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^5.52.0", + "@typescript-eslint/eslint-plugin": "^6.1.0", "eslint": "^8.0.1", "eslint-plugin-import": "^2.25.2", "eslint-plugin-n": "^15.0.0 || ^16.0.0 ", @@ -5424,15 +5442,15 @@ } }, "node_modules/eslint-import-resolver-node": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", - "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", "dev": true, "peer": true, "dependencies": { "debug": "^3.2.7", - "is-core-module": "^2.11.0", - "resolve": "^1.22.1" + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" } }, "node_modules/eslint-import-resolver-node/node_modules/debug": { @@ -5494,9 +5512,9 @@ } }, "node_modules/eslint-plugin-import": { - "version": "2.28.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.0.tgz", - "integrity": "sha512-B8s/n+ZluN7sxj9eUf7/pRFERX0r5bnFA2dCaLHy2ZeaQEAz0k+ZZkFWRFHJAqxfxQDx6KLv9LeIki7cFdwW+Q==", + "version": "2.28.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.1.tgz", + "integrity": "sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==", "dev": true, "peer": true, "dependencies": { @@ -5509,13 +5527,12 @@ "eslint-import-resolver-node": "^0.3.7", "eslint-module-utils": "^2.8.0", "has": "^1.0.3", - "is-core-module": "^2.12.1", + "is-core-module": "^2.13.0", "is-glob": "^4.0.3", "minimatch": "^3.1.2", "object.fromentries": "^2.0.6", "object.groupby": "^1.0.0", "object.values": "^1.1.6", - "resolve": "^1.22.3", "semver": "^6.3.1", "tsconfig-paths": "^3.14.2" }, @@ -5703,8 +5720,6 @@ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, - "license": "BSD-2-Clause", - "peer": true, "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" @@ -5718,8 +5733,6 @@ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true, - "license": "BSD-2-Clause", - "peer": true, "engines": { "node": ">=4.0" } @@ -5912,7 +5925,6 @@ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, "license": "BSD-2-Clause", - "peer": true, "dependencies": { "estraverse": "^5.2.0" }, @@ -5991,7 +6003,6 @@ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", "dev": true, - "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -6008,7 +6019,6 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, - "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -6501,7 +6511,6 @@ "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, - "license": "MIT", "dependencies": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", @@ -6919,10 +6928,9 @@ } }, "node_modules/is-core-module": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", - "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", - "license": "MIT", + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", + "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", "dependencies": { "has": "^1.0.3" }, @@ -7852,7 +7860,6 @@ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 8" } @@ -8655,14 +8662,6 @@ "license": "MIT", "peer": true }, - "node_modules/natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true, - "license": "MIT", - "peer": true - }, "node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", @@ -9131,7 +9130,6 @@ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -9869,11 +9867,11 @@ "dev": true }, "node_modules/resolve": { - "version": "1.22.3", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.3.tgz", - "integrity": "sha512-P8ur/gp/AmbEzjr729bZnLjXK5Z+4P0zhIJgBgzqRih7hL7BOukHGtSTA3ACMY467GRFz3duQsi0bDZdR7DKdw==", + "version": "1.22.4", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.4.tgz", + "integrity": "sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==", "dependencies": { - "is-core-module": "^2.12.0", + "is-core-module": "^2.13.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, @@ -10434,6 +10432,16 @@ "node": ">=8" } }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, "node_modules/strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", @@ -10633,6 +10641,18 @@ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "license": "MIT" }, + "node_modules/ts-api-utils": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.2.tgz", + "integrity": "sha512-Cbu4nIqnEdd+THNEsBdkolnOXhg0I8XteoHaEKgvsxpsbWda4IsUut2c187HxywQCvveojow0Dgw/amxtSKVkQ==", + "dev": true, + "engines": { + "node": ">=16.13.0" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, "node_modules/tsconfig-paths": { "version": "3.14.2", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", @@ -10659,45 +10679,12 @@ "json5": "lib/cli.js" } }, - "node_modules/tsconfig-paths/node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "peer": true, - "engines": { - "node": ">=4" - } - }, "node_modules/tslib": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz", "integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==", "license": "0BSD" }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true, - "license": "0BSD" - }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -11348,6 +11335,25 @@ "semver": "^6.3.1" } }, + "@babel/eslint-parser": { + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.22.10.tgz", + "integrity": "sha512-0J8DNPRXQRLeR9rPaUMM3fA+RbixjnVLe/MRMYCkp3hzgsSuxCHQ8NN8xQG1wIHKJ4a1DTROTvFJdW+B5/eOsg==", + "dev": true, + "requires": { + "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", + "eslint-visitor-keys": "^2.1.0", + "semver": "^6.3.1" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true + } + } + }, "@babel/generator": { "version": "7.22.10", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.10.tgz", @@ -12832,6 +12838,15 @@ "@jridgewell/sourcemap-codec": "1.4.14" } }, + "@nicolo-ribaudo/eslint-scope-5-internals": { + "version": "5.1.1-v1", + "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", + "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", + "dev": true, + "requires": { + "eslint-scope": "5.1.1" + } + }, "@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -13205,9 +13220,9 @@ } }, "@react-native-community/slider": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/@react-native-community/slider/-/slider-4.4.2.tgz", - "integrity": "sha512-D9bv+3Vd2gairAhnRPAghwccgEmoM7g562pm8i4qB3Esrms5mggF81G3UvCyc0w3jjtFHh8dpQkfEoKiP0NW/Q==" + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/@react-native-community/slider/-/slider-4.4.3.tgz", + "integrity": "sha512-WdjvGtqJfqcCiLwtbzie53Z/H6w6dIfRHhlW832D89ySAdE5DxLAsqRhDOG0eacuAxxEB+T9sGCkVMD0fa3aBg==" }, "@react-native/assets-registry": { "version": "0.72.0", @@ -13719,22 +13734,23 @@ "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" }, "@typescript-eslint/eslint-plugin": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", - "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.4.0.tgz", + "integrity": "sha512-62o2Hmc7Gs3p8SLfbXcipjWAa6qk2wZGChXG2JbBtYpwSRmti/9KHLqfbLs9uDigOexG+3PaQ9G2g3201FWLKg==", "dev": true, "peer": true, "requires": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/type-utils": "5.62.0", - "@typescript-eslint/utils": "5.62.0", + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.4.0", + "@typescript-eslint/type-utils": "6.4.0", + "@typescript-eslint/utils": "6.4.0", + "@typescript-eslint/visitor-keys": "6.4.0", "debug": "^4.3.4", "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "dependencies": { "lru-cache": { @@ -13767,59 +13783,60 @@ } }, "@typescript-eslint/parser": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", - "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.4.0.tgz", + "integrity": "sha512-I1Ah1irl033uxjxO9Xql7+biL3YD7w9IU8zF+xlzD/YxY6a4b7DYA08PXUUCbm2sEljwJF6ERFy2kTGAGcNilg==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/scope-manager": "6.4.0", + "@typescript-eslint/types": "6.4.0", + "@typescript-eslint/typescript-estree": "6.4.0", + "@typescript-eslint/visitor-keys": "6.4.0", "debug": "^4.3.4" } }, "@typescript-eslint/scope-manager": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", - "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.4.0.tgz", + "integrity": "sha512-TUS7vaKkPWDVvl7GDNHFQMsMruD+zhkd3SdVW0d7b+7Zo+bd/hXJQ8nsiUZMi1jloWo6c9qt3B7Sqo+flC1nig==", "dev": true, "requires": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0" + "@typescript-eslint/types": "6.4.0", + "@typescript-eslint/visitor-keys": "6.4.0" } }, "@typescript-eslint/type-utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", - "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.4.0.tgz", + "integrity": "sha512-TvqrUFFyGY0cX3WgDHcdl2/mMCWCDv/0thTtx/ODMY1QhEiyFtv/OlLaNIiYLwRpAxAtOLOY9SUf1H3Q3dlwAg==", "dev": true, "peer": true, "requires": { - "@typescript-eslint/typescript-estree": "5.62.0", - "@typescript-eslint/utils": "5.62.0", + "@typescript-eslint/typescript-estree": "6.4.0", + "@typescript-eslint/utils": "6.4.0", "debug": "^4.3.4", - "tsutils": "^3.21.0" + "ts-api-utils": "^1.0.1" } }, "@typescript-eslint/types": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", - "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.4.0.tgz", + "integrity": "sha512-+FV9kVFrS7w78YtzkIsNSoYsnOtrYVnKWSTVXoL1761CsCRv5wpDOINgsXpxD67YCLZtVQekDDyaxfjVWUJmmg==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", - "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.4.0.tgz", + "integrity": "sha512-iDPJArf/K2sxvjOR6skeUCNgHR/tCQXBsa+ee1/clRKr3olZjZ/dSkXPZjG6YkPtnW6p5D1egeEPMCW6Gn4yLA==", "dev": true, "requires": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0", + "@typescript-eslint/types": "6.4.0", + "@typescript-eslint/visitor-keys": "6.4.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "dependencies": { "lru-cache": { @@ -13849,20 +13866,19 @@ } }, "@typescript-eslint/utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", - "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.4.0.tgz", + "integrity": "sha512-BvvwryBQpECPGo8PwF/y/q+yacg8Hn/2XS+DqL/oRsOPK+RPt29h5Ui5dqOKHDlbXrAeHUTnyG3wZA0KTDxRZw==", "dev": true, "peer": true, "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.4.0", + "@typescript-eslint/types": "6.4.0", + "@typescript-eslint/typescript-estree": "6.4.0", + "semver": "^7.5.4" }, "dependencies": { "lru-cache": { @@ -13895,13 +13911,13 @@ } }, "@typescript-eslint/visitor-keys": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", - "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.4.0.tgz", + "integrity": "sha512-yJSfyT+uJm+JRDWYRYdCm2i+pmvXJSMtPR9Cq5/XQs4QIgNoLcoRtDdzsLbLsFM/c6um6ohQkg/MLxWvoIndJA==", "dev": true, "requires": { - "@typescript-eslint/types": "5.62.0", - "eslint-visitor-keys": "^3.3.0" + "@typescript-eslint/types": "6.4.0", + "eslint-visitor-keys": "^3.4.1" } }, "abort-controller": { @@ -15064,25 +15080,25 @@ "requires": {} }, "eslint-config-standard-with-typescript": { - "version": "37.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-37.0.0.tgz", - "integrity": "sha512-V8I/Q1eFf9tiOuFHkbksUdWO3p1crFmewecfBtRxXdnvb71BCJx+1xAknlIRZMwZioMX3/bPtMVCZsf1+AjjOw==", + "version": "38.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-38.0.0.tgz", + "integrity": "sha512-G7JR6I8tmWEQjzbESo/9gVq4AQctbVO4J8PINQj8l2lgbJF/W9KCJ4uDLiKmLMjWszW/F5SsucoA/5VpHvfwOQ==", "dev": true, "requires": { - "@typescript-eslint/parser": "^5.52.0", + "@typescript-eslint/parser": "^6.1.0", "eslint-config-standard": "17.1.0" } }, "eslint-import-resolver-node": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", - "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", "dev": true, "peer": true, "requires": { "debug": "^3.2.7", - "is-core-module": "^2.11.0", - "resolve": "^1.22.1" + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" }, "dependencies": { "debug": { @@ -15131,9 +15147,9 @@ } }, "eslint-plugin-import": { - "version": "2.28.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.0.tgz", - "integrity": "sha512-B8s/n+ZluN7sxj9eUf7/pRFERX0r5bnFA2dCaLHy2ZeaQEAz0k+ZZkFWRFHJAqxfxQDx6KLv9LeIki7cFdwW+Q==", + "version": "2.28.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.1.tgz", + "integrity": "sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==", "dev": true, "peer": true, "requires": { @@ -15146,13 +15162,12 @@ "eslint-import-resolver-node": "^0.3.7", "eslint-module-utils": "^2.8.0", "has": "^1.0.3", - "is-core-module": "^2.12.1", + "is-core-module": "^2.13.0", "is-glob": "^4.0.3", "minimatch": "^3.1.2", "object.fromentries": "^2.0.6", "object.groupby": "^1.0.0", "object.values": "^1.1.6", - "resolve": "^1.22.3", "semver": "^6.3.1", "tsconfig-paths": "^3.14.2" }, @@ -15291,7 +15306,6 @@ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, - "peer": true, "requires": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" @@ -15301,8 +15315,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "peer": true + "dev": true } } }, @@ -15344,7 +15357,6 @@ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, - "peer": true, "requires": { "estraverse": "^5.2.0" } @@ -16030,9 +16042,9 @@ "dev": true }, "is-core-module": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", - "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", + "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", "requires": { "has": "^1.0.3" } @@ -17343,13 +17355,6 @@ "dev": true, "peer": true }, - "natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true, - "peer": true - }, "negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", @@ -18192,11 +18197,11 @@ "dev": true }, "resolve": { - "version": "1.22.3", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.3.tgz", - "integrity": "sha512-P8ur/gp/AmbEzjr729bZnLjXK5Z+4P0zhIJgBgzqRih7hL7BOukHGtSTA3ACMY467GRFz3duQsi0bDZdR7DKdw==", + "version": "1.22.4", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.4.tgz", + "integrity": "sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==", "requires": { - "is-core-module": "^2.12.0", + "is-core-module": "^2.13.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" } @@ -18596,6 +18601,13 @@ "ansi-regex": "^5.0.1" } }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "peer": true + }, "strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", @@ -18745,6 +18757,13 @@ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, + "ts-api-utils": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.2.tgz", + "integrity": "sha512-Cbu4nIqnEdd+THNEsBdkolnOXhg0I8XteoHaEKgvsxpsbWda4IsUut2c187HxywQCvveojow0Dgw/amxtSKVkQ==", + "dev": true, + "requires": {} + }, "tsconfig-paths": { "version": "3.14.2", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", @@ -18767,13 +18786,6 @@ "requires": { "minimist": "^1.2.0" } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "peer": true } } }, @@ -18782,23 +18794,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz", "integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==" }, - "tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "requires": { - "tslib": "^1.8.1" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } - }, "type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", diff --git a/package.json b/package.json index 85aface..00896e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lx-music-mobile", - "version": "1.1.0-beta.0", + "version": "1.1.0-beta.1", "versionCode": 60, "private": true, "scripts": { @@ -8,8 +8,8 @@ "ios": "react-native run-ios", "start": "react-native start", "sc": "react-native start --reset-cache", - "test": "jest", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", + "lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix", "rd": "react-devtools", "menu": "adb shell input keyevent 82", "bundle-android": "react-native bundle --platform android --dev true --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res", @@ -46,7 +46,7 @@ "@craftzdog/react-native-buffer": "^6.0.5", "@react-native-async-storage/async-storage": "^1.19.2", "@react-native-clipboard/clipboard": "^1.11.2", - "@react-native-community/slider": "^4.4.2", + "@react-native-community/slider": "^4.4.3", "iconv-lite": "^0.6.3", "lrc-file-parser": "^2.4.1", "message2call": "^0.1.0", @@ -65,6 +65,7 @@ }, "devDependencies": { "@babel/core": "^7.22.10", + "@babel/eslint-parser": "^7.22.10", "@babel/plugin-proposal-export-namespace-from": "^7.18.9", "@babel/preset-env": "^7.22.10", "@babel/runtime": "^7.22.10", @@ -76,7 +77,8 @@ "@types/react-native-vector-icons": "^6.4.14", "babel-plugin-module-resolver": "^5.0.0", "changelog-parser": "^3.0.1", - "eslint-config-standard-with-typescript": "^37.0.0", + "eslint-config-standard": "^17.1.0", + "eslint-config-standard-with-typescript": "^38.0.0", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "metro-react-native-babel-preset": "0.76.8", diff --git a/src/components/MusicAddModal/CreateUserList.tsx b/src/components/MusicAddModal/CreateUserList.tsx index 0006fdc..74b1897 100644 --- a/src/components/MusicAddModal/CreateUserList.tsx +++ b/src/components/MusicAddModal/CreateUserList.tsx @@ -1,4 +1,4 @@ -import React, { useState, useRef, useEffect } from 'react' +import { useState, useRef, useEffect } from 'react' import { View } from 'react-native' import Input, { type InputType } from '@/components/common/Input' import { createStyle } from '@/utils/tools' diff --git a/src/components/MusicAddModal/List.tsx b/src/components/MusicAddModal/List.tsx index cc13e60..1389e78 100644 --- a/src/components/MusicAddModal/List.tsx +++ b/src/components/MusicAddModal/List.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useState } from 'react' +import { useMemo, useState } from 'react' import { ScrollView, TouchableOpacity, View } from 'react-native' import Text from '@/components/common/Text' diff --git a/src/components/MusicAddModal/ListItem.tsx b/src/components/MusicAddModal/ListItem.tsx index aa69f3b..91745d2 100644 --- a/src/components/MusicAddModal/ListItem.tsx +++ b/src/components/MusicAddModal/ListItem.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { View } from 'react-native' import Button from '@/components/common/Button' import Text from '@/components/common/Text' diff --git a/src/components/MusicAddModal/MusicAddModal.tsx b/src/components/MusicAddModal/MusicAddModal.tsx index c1b1a50..f77f789 100644 --- a/src/components/MusicAddModal/MusicAddModal.tsx +++ b/src/components/MusicAddModal/MusicAddModal.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react' +import { forwardRef, useImperativeHandle, useRef, useState } from 'react' import Dialog, { type DialogType } from '@/components/common/Dialog' import { toast } from '@/utils/tools' import Title from './Title' diff --git a/src/components/MusicAddModal/Title.tsx b/src/components/MusicAddModal/Title.tsx index eeefd72..1aba19d 100644 --- a/src/components/MusicAddModal/Title.tsx +++ b/src/components/MusicAddModal/Title.tsx @@ -1,4 +1,3 @@ -import React from 'react' import Text from '@/components/common/Text' import { createStyle } from '@/utils/tools' import { useTheme } from '@/store/theme/hook' diff --git a/src/components/MusicAddModal/index.tsx b/src/components/MusicAddModal/index.tsx index 73498cf..534f601 100644 --- a/src/components/MusicAddModal/index.tsx +++ b/src/components/MusicAddModal/index.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useImperativeHandle, forwardRef, useState } from 'react' +import { useRef, useImperativeHandle, forwardRef, useState } from 'react' import Modal, { type MusicAddModalType as ModalType, type MusicAddModalProps as ModalProps, type SelectInfo } from './MusicAddModal' export interface MusicAddModalProps { diff --git a/src/components/MusicMultiAddModal/List.tsx b/src/components/MusicMultiAddModal/List.tsx index 559b39d..63b5954 100644 --- a/src/components/MusicMultiAddModal/List.tsx +++ b/src/components/MusicMultiAddModal/List.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useState } from 'react' +import { useMemo, useState } from 'react' import { ScrollView, TouchableOpacity, View } from 'react-native' import Text from '@/components/common/Text' diff --git a/src/components/MusicMultiAddModal/ListItem.tsx b/src/components/MusicMultiAddModal/ListItem.tsx index 3ae7549..3d00535 100644 --- a/src/components/MusicMultiAddModal/ListItem.tsx +++ b/src/components/MusicMultiAddModal/ListItem.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { View } from 'react-native' import Button from '@/components/common/Button' import Text from '@/components/common/Text' diff --git a/src/components/MusicMultiAddModal/MusicMultiAddModal.tsx b/src/components/MusicMultiAddModal/MusicMultiAddModal.tsx index 4f8f2be..d742e6f 100644 --- a/src/components/MusicMultiAddModal/MusicMultiAddModal.tsx +++ b/src/components/MusicMultiAddModal/MusicMultiAddModal.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react' +import { forwardRef, useImperativeHandle, useRef, useState } from 'react' import Dialog, { type DialogType } from '@/components/common/Dialog' import { toast } from '@/utils/tools' import Title from './Title' diff --git a/src/components/MusicMultiAddModal/Title.tsx b/src/components/MusicMultiAddModal/Title.tsx index 0ae7a74..7ffd3e6 100644 --- a/src/components/MusicMultiAddModal/Title.tsx +++ b/src/components/MusicMultiAddModal/Title.tsx @@ -1,4 +1,3 @@ -import React from 'react' import Text from '@/components/common/Text' import { createStyle } from '@/utils/tools' import { useTheme } from '@/store/theme/hook' diff --git a/src/components/MusicMultiAddModal/index.tsx b/src/components/MusicMultiAddModal/index.tsx index 59c1000..6e28c6d 100644 --- a/src/components/MusicMultiAddModal/index.tsx +++ b/src/components/MusicMultiAddModal/index.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useImperativeHandle, forwardRef, useState } from 'react' +import { useRef, useImperativeHandle, forwardRef, useState } from 'react' import Modal, { type MusicMultiAddModalType as ModalType, type MusicMultiAddModalProps as ModalProps, type SelectInfo } from './MusicMultiAddModal' export interface MusicAddModalProps { diff --git a/src/components/OnlineList/List.tsx b/src/components/OnlineList/List.tsx index a3ff750..6cc70c1 100644 --- a/src/components/OnlineList/List.tsx +++ b/src/components/OnlineList/List.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useRef, useState, forwardRef, useImperativeHandle } from 'react' +import { useMemo, useRef, useState, forwardRef, useImperativeHandle } from 'react' import { FlatList, type FlatListProps, RefreshControl, View } from 'react-native' // import { useMusicList } from '@/store/list/hook' diff --git a/src/components/OnlineList/ListItem.tsx b/src/components/OnlineList/ListItem.tsx index 6459281..d258817 100644 --- a/src/components/OnlineList/ListItem.tsx +++ b/src/components/OnlineList/ListItem.tsx @@ -1,4 +1,4 @@ -import React, { memo, useRef } from 'react' +import { memo, useRef } from 'react' import { View, TouchableOpacity } from 'react-native' // import Button from '@/components/common/Button' import Text from '@/components/common/Text' diff --git a/src/components/OnlineList/ListMenu.tsx b/src/components/OnlineList/ListMenu.tsx index 51ce558..bd51ce3 100644 --- a/src/components/OnlineList/ListMenu.tsx +++ b/src/components/OnlineList/ListMenu.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useRef, useImperativeHandle, forwardRef, useState } from 'react' +import { useMemo, useRef, useImperativeHandle, forwardRef, useState } from 'react' import { useI18n } from '@/lang' import Menu, { type MenuType, type Position } from '@/components/common/Menu' diff --git a/src/components/OnlineList/MultipleModeBar.tsx b/src/components/OnlineList/MultipleModeBar.tsx index 158709f..f535695 100644 --- a/src/components/OnlineList/MultipleModeBar.tsx +++ b/src/components/OnlineList/MultipleModeBar.tsx @@ -1,4 +1,4 @@ -import React, { useState, useRef, useCallback, useMemo, forwardRef, useImperativeHandle } from 'react' +import { useState, useRef, useCallback, useMemo, forwardRef, useImperativeHandle } from 'react' import { Animated, View, TouchableOpacity } from 'react-native' import Text from '@/components/common/Text' diff --git a/src/components/OnlineList/index.tsx b/src/components/OnlineList/index.tsx index 358f878..d1569f4 100644 --- a/src/components/OnlineList/index.tsx +++ b/src/components/OnlineList/index.tsx @@ -1,4 +1,4 @@ -import React, { useRef, forwardRef, useImperativeHandle } from 'react' +import { useRef, forwardRef, useImperativeHandle } from 'react' import { View } from 'react-native' // import LoadingMask, { LoadingMaskType } from '@/components/common/LoadingMask' import List, { type ListProps, type ListType, type Status, type RowInfoType } from './List' diff --git a/src/components/PageContent.tsx b/src/components/PageContent.tsx index 5b0bda9..3566858 100644 --- a/src/components/PageContent.tsx +++ b/src/components/PageContent.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react' +import { useEffect, useState } from 'react' import { Dimensions, View, type LayoutChangeEvent } from 'react-native' import { useTheme } from '@/store/theme/hook' import ImageBackground from '@/components/common/ImageBackground' diff --git a/src/components/SearchTipList/List.tsx b/src/components/SearchTipList/List.tsx index 217a16a..4727bff 100644 --- a/src/components/SearchTipList/List.tsx +++ b/src/components/SearchTipList/List.tsx @@ -1,4 +1,4 @@ -import React, { useState, forwardRef, useImperativeHandle, type Ref } from 'react' +import { useState, forwardRef, useImperativeHandle, type Ref } from 'react' import { FlatList, type FlatListProps } from 'react-native' // import InsetShadow from 'react-native-inset-shadow' diff --git a/src/components/SearchTipList/index.tsx b/src/components/SearchTipList/index.tsx index 5e2f26a..1c139d6 100644 --- a/src/components/SearchTipList/index.tsx +++ b/src/components/SearchTipList/index.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useState, useCallback, useMemo, forwardRef, useImperativeHandle, type Ref } from 'react' +import { useRef, useState, useCallback, useMemo, forwardRef, useImperativeHandle, type Ref } from 'react' import { StyleSheet, View, Animated } from 'react-native' // import PropTypes from 'prop-types' // import { AppColors } from '@/theme' diff --git a/src/components/SourceSelector.tsx b/src/components/SourceSelector.tsx index 7ce919c..e47156d 100644 --- a/src/components/SourceSelector.tsx +++ b/src/components/SourceSelector.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, type Ref, useImperativeHandle, useMemo, useState } from 'react' +import { forwardRef, type Ref, useImperativeHandle, useMemo, useState } from 'react' import { View } from 'react-native' import DorpDownMenu, { type DorpDownMenuProps as _DorpDownMenuProps } from '@/components/common/DorpDownMenu' diff --git a/src/components/TimeoutExitEditModal.tsx b/src/components/TimeoutExitEditModal.tsx index d41254f..faaf072 100644 --- a/src/components/TimeoutExitEditModal.tsx +++ b/src/components/TimeoutExitEditModal.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useImperativeHandle, forwardRef, useState, useEffect } from 'react' +import { useRef, useImperativeHandle, forwardRef, useState, useEffect } from 'react' import ConfirmAlert, { type ConfirmAlertType } from '@/components/common/ConfirmAlert' import Text from '@/components/common/Text' import { View } from 'react-native' diff --git a/src/components/common/Badge.tsx b/src/components/common/Badge.tsx index 48da3ee..9ef5355 100644 --- a/src/components/common/Badge.tsx +++ b/src/components/common/Badge.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { createStyle } from '@/utils/tools' import { useTheme } from '@/store/theme/hook' import Text from './Text' diff --git a/src/components/common/Button.tsx b/src/components/common/Button.tsx index 83953bc..59c4d8e 100644 --- a/src/components/common/Button.tsx +++ b/src/components/common/Button.tsx @@ -1,5 +1,5 @@ import { useTheme } from '@/store/theme/hook' -import React, { useMemo, useRef, useImperativeHandle, forwardRef } from 'react' +import { useMemo, useRef, useImperativeHandle, forwardRef } from 'react' import { Pressable, type PressableProps, StyleSheet, type View, type ViewProps } from 'react-native' // import { AppColors } from '@/theme' diff --git a/src/components/common/ButtonPrimary.tsx b/src/components/common/ButtonPrimary.tsx index 761378e..8ecb450 100644 --- a/src/components/common/ButtonPrimary.tsx +++ b/src/components/common/ButtonPrimary.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import Button, { type BtnProps } from '@/components/common/Button' import Text from '@/components/common/Text' diff --git a/src/components/common/CheckBox/index.tsx b/src/components/common/CheckBox/index.tsx index b3f9761..542a97c 100644 --- a/src/components/common/CheckBox/index.tsx +++ b/src/components/common/CheckBox/index.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useEffect, useState } from 'react' +import { useCallback, useEffect, useState } from 'react' import { View, TouchableOpacity } from 'react-native' import CheckBox from './Checkbox' diff --git a/src/components/common/ChoosePath/List.tsx b/src/components/common/ChoosePath/List.tsx index 54054aa..b8bc2dd 100644 --- a/src/components/common/ChoosePath/List.tsx +++ b/src/components/common/ChoosePath/List.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState, useRef, forwardRef, useImperativeHandle } from 'react' +import { useEffect, useState, useRef, forwardRef, useImperativeHandle } from 'react' import { View } from 'react-native' import { readDir, externalStorageDirectoryPath } from '@/utils/fs' import { createStyle, toast } from '@/utils/tools' diff --git a/src/components/common/ChoosePath/components/Footer.tsx b/src/components/common/ChoosePath/components/Footer.tsx index 3e2b15f..09c8a38 100644 --- a/src/components/common/ChoosePath/components/Footer.tsx +++ b/src/components/common/ChoosePath/components/Footer.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View, StyleSheet } from 'react-native' import Button from '@/components/common/Button' import Text from '@/components/common/Text' diff --git a/src/components/common/ChoosePath/components/Header.tsx b/src/components/common/ChoosePath/components/Header.tsx index a3e0709..291ae9d 100644 --- a/src/components/common/ChoosePath/components/Header.tsx +++ b/src/components/common/ChoosePath/components/Header.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, memo, useImperativeHandle, useRef, useState } from 'react' +import { forwardRef, memo, useImperativeHandle, useRef, useState } from 'react' import { View, TouchableOpacity } from 'react-native' import Input, { type InputType } from '@/components/common/Input' import Text from '@/components/common/Text' diff --git a/src/components/common/ChoosePath/components/ListItem.tsx b/src/components/common/ChoosePath/components/ListItem.tsx index 3acf41c..aff3a0c 100644 --- a/src/components/common/ChoosePath/components/ListItem.tsx +++ b/src/components/common/ChoosePath/components/ListItem.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View, TouchableOpacity } from 'react-native' import { Icon } from '@/components/common/Icon' import { useTheme } from '@/store/theme/hook' diff --git a/src/components/common/ChoosePath/components/Main.tsx b/src/components/common/ChoosePath/components/Main.tsx index e1b1f58..c72e91c 100644 --- a/src/components/common/ChoosePath/components/Main.tsx +++ b/src/components/common/ChoosePath/components/Main.tsx @@ -1,7 +1,7 @@ import { useI18n } from '@/lang' import { useTheme } from '@/store/theme/hook' import { createStyle } from '@/utils/tools' -import React, { useMemo } from 'react' +import { useMemo } from 'react' import { View, FlatList } from 'react-native' import ListItem, { type PathItem } from './ListItem' diff --git a/src/components/common/ChoosePath/index.tsx b/src/components/common/ChoosePath/index.tsx index abb7f32..3717f62 100644 --- a/src/components/common/ChoosePath/index.tsx +++ b/src/components/common/ChoosePath/index.tsx @@ -1,4 +1,4 @@ -import React, { useState, useRef, forwardRef, useImperativeHandle } from 'react' +import { useState, useRef, forwardRef, useImperativeHandle } from 'react' // import { StyleSheet, View, Text, StatusBar, ScrollView } from 'react-native' // import { useGetter, useDispatch } from '@/store' diff --git a/src/components/common/ConfirmAlert.tsx b/src/components/common/ConfirmAlert.tsx index 4a0fd20..f67a059 100644 --- a/src/components/common/ConfirmAlert.tsx +++ b/src/components/common/ConfirmAlert.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useRef } from 'react' +import { forwardRef, useImperativeHandle, useRef } from 'react' import { View, ScrollView } from 'react-native' import Dialog, { type DialogType } from './Dialog' import Button from './Button' diff --git a/src/components/common/Dialog.tsx b/src/components/common/Dialog.tsx index c6dece8..8515585 100644 --- a/src/components/common/Dialog.tsx +++ b/src/components/common/Dialog.tsx @@ -1,4 +1,4 @@ -import React, { useImperativeHandle, forwardRef, useMemo, useRef } from 'react' +import { useImperativeHandle, forwardRef, useMemo, useRef } from 'react' import { View, TouchableHighlight } from 'react-native' import Modal, { type ModalType } from './Modal' diff --git a/src/components/common/DorpDownMenu.tsx b/src/components/common/DorpDownMenu.tsx index 0a5dd33..204d743 100644 --- a/src/components/common/DorpDownMenu.tsx +++ b/src/components/common/DorpDownMenu.tsx @@ -1,4 +1,4 @@ -import React, { useRef } from 'react' +import { useRef } from 'react' // import { View } from 'react-native' import Menu, { type MenuType, type MenuProps, type Menus } from './Menu' diff --git a/src/components/common/DorpDownPanel/Panel.tsx b/src/components/common/DorpDownPanel/Panel.tsx index 89f6967..ef999e1 100644 --- a/src/components/common/DorpDownPanel/Panel.tsx +++ b/src/components/common/DorpDownPanel/Panel.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useRef, useImperativeHandle, forwardRef, useState } from 'react' +import { useMemo, useRef, useImperativeHandle, forwardRef, useState } from 'react' import { View, TouchableWithoutFeedback } from 'react-native' import { useDimensions } from '@/utils/hooks' diff --git a/src/components/common/DorpDownPanel/index.tsx b/src/components/common/DorpDownPanel/index.tsx index af698b9..4466db4 100644 --- a/src/components/common/DorpDownPanel/index.tsx +++ b/src/components/common/DorpDownPanel/index.tsx @@ -1,4 +1,4 @@ -import React, { useRef, forwardRef } from 'react' +import { useRef, forwardRef } from 'react' // import { View } from 'react-native' import Panel, { type PanelType } from './Panel' diff --git a/src/components/common/DrawerLayoutFixed.tsx b/src/components/common/DrawerLayoutFixed.tsx index 45875c3..07475cc 100644 --- a/src/components/common/DrawerLayoutFixed.tsx +++ b/src/components/common/DrawerLayoutFixed.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useCallback, useImperativeHandle, useRef, useState } from 'react' +import { forwardRef, useCallback, useImperativeHandle, useRef, useState } from 'react' import { DrawerLayoutAndroid, type DrawerLayoutAndroidProps, View, type LayoutChangeEvent } from 'react-native' // import { getWindowSise } from '@/utils/tools' import { usePageVisible } from '@/store/common/hook' diff --git a/src/components/common/ImageBackground.tsx b/src/components/common/ImageBackground.tsx index 06d7430..32160f0 100644 --- a/src/components/common/ImageBackground.tsx +++ b/src/components/common/ImageBackground.tsx @@ -9,7 +9,7 @@ * @format */ -import React, { forwardRef } from 'react' +import { forwardRef } from 'react' import { View, StyleSheet, @@ -22,7 +22,7 @@ import type { ImageBackgroundProps as _ImageBackgroundProps } from 'react-native * Very simple drop-in replacement for which supports nesting views. * * ```ReactNativeWebPlayer - * import React, { Component } from 'react'; + * import { Component } from 'react'; * import { AppRegistry, View, ImageBackground, Text } from 'react-native'; * * class DisplayAnImageBackground extends Component { diff --git a/src/components/common/Input.tsx b/src/components/common/Input.tsx index b049705..6c213af 100644 --- a/src/components/common/Input.tsx +++ b/src/components/common/Input.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useImperativeHandle, forwardRef, useCallback } from 'react' +import { useRef, useImperativeHandle, forwardRef, useCallback } from 'react' import { TextInput, View, TouchableOpacity, StyleSheet, type TextInputProps } from 'react-native' import { Icon } from '@/components/common/Icon' import { createStyle } from '@/utils/tools' diff --git a/src/components/common/LoadingMask.tsx b/src/components/common/LoadingMask.tsx index 14e2584..8885583 100644 --- a/src/components/common/LoadingMask.tsx +++ b/src/components/common/LoadingMask.tsx @@ -1,4 +1,4 @@ -import React, { useState, useCallback, useMemo, useRef, forwardRef, useImperativeHandle } from 'react' +import { useState, useCallback, useMemo, useRef, forwardRef, useImperativeHandle } from 'react' import { Animated } from 'react-native' import { useTheme } from '@/store/theme/hook' import { useI18n } from '@/lang' diff --git a/src/components/common/Menu.tsx b/src/components/common/Menu.tsx index ef85fad..97378e9 100644 --- a/src/components/common/Menu.tsx +++ b/src/components/common/Menu.tsx @@ -1,4 +1,4 @@ -import React, { useImperativeHandle, forwardRef, useMemo, useRef, useState, type Ref } from 'react' +import { useImperativeHandle, forwardRef, useMemo, useRef, useState, type Ref } from 'react' import { View, Animated, TouchableHighlight } from 'react-native' import { useDimensions } from '@/utils/hooks' diff --git a/src/components/common/Modal.tsx b/src/components/common/Modal.tsx index 59b2742..b98807d 100644 --- a/src/components/common/Modal.tsx +++ b/src/components/common/Modal.tsx @@ -1,5 +1,5 @@ // import { createStyle } from '@/utils/tools' -import React, { useImperativeHandle, forwardRef, useState, useMemo } from 'react' +import { useImperativeHandle, forwardRef, useState, useMemo } from 'react' import { Modal, TouchableWithoutFeedback, View, type ModalProps as _ModalProps } from 'react-native' import StatusBar from './StatusBar' // import { useDimensions } from '@/utils/hooks' diff --git a/src/components/common/Popup.tsx b/src/components/common/Popup.tsx index deeb5d1..51af484 100644 --- a/src/components/common/Popup.tsx +++ b/src/components/common/Popup.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useMemo, useRef } from 'react' +import { forwardRef, useImperativeHandle, useMemo, useRef } from 'react' import { View, TouchableOpacity } from 'react-native' import Modal, { type ModalType } from './Modal' diff --git a/src/components/common/ScaledImage.tsx b/src/components/common/ScaledImage.tsx index 03c1040..df83bb9 100644 --- a/src/components/common/ScaledImage.tsx +++ b/src/components/common/ScaledImage.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react' +import { useEffect, useState } from 'react' import { Image, StyleSheet, type ImageProps } from 'react-native' export interface ScaledImageProps extends Pick { diff --git a/src/components/common/Slider.tsx b/src/components/common/Slider.tsx index ead4266..fc63b89 100644 --- a/src/components/common/Slider.tsx +++ b/src/components/common/Slider.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import Slider, { type SliderProps as _SliderProps } from '@react-native-community/slider' import { createStyle } from '@/utils/tools' diff --git a/src/components/common/StatusBar.tsx b/src/components/common/StatusBar.tsx index 7f5e7be..c39e09f 100644 --- a/src/components/common/StatusBar.tsx +++ b/src/components/common/StatusBar.tsx @@ -1,5 +1,4 @@ import { useTheme } from '@/store/theme/hook' -import React from 'react' import { StatusBar as RNStatusBar } from 'react-native' const StatusBar = function() { diff --git a/src/components/common/Text.tsx b/src/components/common/Text.tsx index 70f28bd..34bcd26 100644 --- a/src/components/common/Text.tsx +++ b/src/components/common/Text.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Text, type TextProps as _TextProps, StyleSheet } from 'react-native' import { useTheme } from '@/store/theme/hook' import { setSpText } from '@/utils/pixelRatio' diff --git a/src/components/player/Progress.tsx b/src/components/player/Progress.tsx index 1db1b4f..0c9b593 100644 --- a/src/components/player/Progress.tsx +++ b/src/components/player/Progress.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { View, Pressable, type GestureResponderEvent } from 'react-native' import { useLayout } from '@/utils/hooks' import { createStyle } from '@/utils/tools' diff --git a/src/core/common.ts b/src/core/common.ts index 3c52530..4ab3627 100644 --- a/src/core/common.ts +++ b/src/core/common.ts @@ -53,7 +53,7 @@ export const exitApp = (reason: string) => { console.log('Handle Exit App, Reason: ' + reason) if (isDestroying) return isDestroying = true - Promise.all([ + void Promise.all([ hideDesktopLyric(), destroyPlayer(), hideLyric(), diff --git a/src/core/init/player/playerEvent.ts b/src/core/init/player/playerEvent.ts index e97a478..d41bcbd 100644 --- a/src/core/init/player/playerEvent.ts +++ b/src/core/init/player/playerEvent.ts @@ -91,7 +91,7 @@ export default () => { if (global.lx.isPlayedStop) return if (playerState.playMusicInfo.musicInfo && retryNum < 2) { // 若音频URL无效则尝试刷新2次URL let musicInfo = playerState.playMusicInfo.musicInfo - getPosition().then((position) => { + void getPosition().then((position) => { if (position) setNowPlayTime(position) }).finally(() => { // console.log(this.retryNum) diff --git a/src/navigation/components/ModalContent.tsx b/src/navigation/components/ModalContent.tsx index da30617..3851778 100644 --- a/src/navigation/components/ModalContent.tsx +++ b/src/navigation/components/ModalContent.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { View } from 'react-native' import { useTheme } from '@/store/theme/hook' import { createStyle } from '@/utils/tools' diff --git a/src/navigation/components/PactModal.tsx b/src/navigation/components/PactModal.tsx index c73d409..844986f 100644 --- a/src/navigation/components/PactModal.tsx +++ b/src/navigation/components/PactModal.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useState, useEffect } from 'react' +import { useMemo, useState, useEffect } from 'react' import { View, ScrollView, Alert } from 'react-native' import { Navigation } from 'react-native-navigation' diff --git a/src/navigation/components/SyncModeModal.tsx b/src/navigation/components/SyncModeModal.tsx index da46250..086f946 100644 --- a/src/navigation/components/SyncModeModal.tsx +++ b/src/navigation/components/SyncModeModal.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react' +import { useEffect, useState } from 'react' import { View, ScrollView } from 'react-native' import Button from '@/components/common/Button' diff --git a/src/navigation/components/Toast.js b/src/navigation/components/Toast.js index a8771ce..7926748 100644 --- a/src/navigation/components/Toast.js +++ b/src/navigation/components/Toast.js @@ -1,4 +1,3 @@ -import React from 'react' import { View, Text, StyleSheet, TouchableOpacity } from 'react-native' import { useGetter } from '@/store' import { Navigation } from 'react-native-navigation' diff --git a/src/navigation/components/VersionModal.tsx b/src/navigation/components/VersionModal.tsx index 2706854..f46de0f 100644 --- a/src/navigation/components/VersionModal.tsx +++ b/src/navigation/components/VersionModal.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useState, useEffect, memo } from 'react' +import { useMemo, useState, useEffect, memo } from 'react' import { View, ScrollView } from 'react-native' import { compareVer, sizeFormate } from '@/utils' diff --git a/src/navigation/registerScreens.tsx b/src/navigation/registerScreens.tsx index c7aefc7..06a40a4 100644 --- a/src/navigation/registerScreens.tsx +++ b/src/navigation/registerScreens.tsx @@ -1,6 +1,5 @@ // @flow -import React from 'react' import { Navigation } from 'react-native-navigation' import { diff --git a/src/plugins/player/playList.ts b/src/plugins/player/playList.ts index 730e0c1..e5e553f 100644 --- a/src/plugins/player/playList.ts +++ b/src/plugins/player/playList.ts @@ -166,7 +166,7 @@ let playPromise = Promise.resolve() let actionId = Math.random() export const playMusic = (musicInfo: LX.Player.PlayMusic, url: string, time: number) => { const id = actionId = Math.random() - playPromise.finally(() => { + void playPromise.finally(() => { if (id != actionId) return playPromise = handlePlayMusic(musicInfo, url, time) }) diff --git a/src/screens/Comment/CommentHot.tsx b/src/screens/Comment/CommentHot.tsx index 42bd79d..aefd9d5 100644 --- a/src/screens/Comment/CommentHot.tsx +++ b/src/screens/Comment/CommentHot.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef } from 'react' +import { useEffect, useRef } from 'react' import { filterList, getHotComment } from './utils' import music from '@/utils/musicSdk' import List, { type ListType } from './components/List' diff --git a/src/screens/Comment/CommentNew.tsx b/src/screens/Comment/CommentNew.tsx index 99c691c..ae0efac 100644 --- a/src/screens/Comment/CommentNew.tsx +++ b/src/screens/Comment/CommentNew.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef } from 'react' +import { useEffect, useRef } from 'react' import { filterList, getNewComment } from './utils' import music from '@/utils/musicSdk' import List, { type ListType } from './components/List' diff --git a/src/screens/Comment/components/CommentFloor.tsx b/src/screens/Comment/components/CommentFloor.tsx index 1f5a75d..a2b579c 100644 --- a/src/screens/Comment/components/CommentFloor.tsx +++ b/src/screens/Comment/components/CommentFloor.tsx @@ -1,4 +1,4 @@ -import React, { memo, useState, useMemo, useCallback } from 'react' +import { memo, useState, useMemo, useCallback } from 'react' import { View, Image } from 'react-native' import { BorderWidths } from '@/theme' import { Icon } from '@/components/common/Icon' diff --git a/src/screens/Comment/components/Header.tsx b/src/screens/Comment/components/Header.tsx index d1984a7..31e24ef 100644 --- a/src/screens/Comment/components/Header.tsx +++ b/src/screens/Comment/components/Header.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View, TouchableOpacity } from 'react-native' import { Icon } from '@/components/common/Icon' diff --git a/src/screens/Comment/components/List.tsx b/src/screens/Comment/components/List.tsx index 6095e0a..38b0c44 100644 --- a/src/screens/Comment/components/List.tsx +++ b/src/screens/Comment/components/List.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useRef, useState, forwardRef, useImperativeHandle } from 'react' +import { useMemo, useRef, useState, forwardRef, useImperativeHandle } from 'react' import { FlatList, type FlatListProps, RefreshControl, View } from 'react-native' // import { useMusicList } from '@/store/list/hook' diff --git a/src/screens/Comment/index.tsx b/src/screens/Comment/index.tsx index 3e24129..05054f8 100644 --- a/src/screens/Comment/index.tsx +++ b/src/screens/Comment/index.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo, useEffect, useRef, useState, useCallback } from 'react' +import { memo, useMemo, useEffect, useRef, useState, useCallback } from 'react' import { View, TouchableOpacity } from 'react-native' import PagerView, { type PagerViewOnPageSelectedEvent } from 'react-native-pager-view' import Header from './components/Header' diff --git a/src/screens/Home/Horizontal/Aside.tsx b/src/screens/Home/Horizontal/Aside.tsx index 3e52628..b22f193 100644 --- a/src/screens/Home/Horizontal/Aside.tsx +++ b/src/screens/Home/Horizontal/Aside.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { ScrollView, StatusBar, TouchableOpacity, View } from 'react-native' import { useNavActiveId } from '@/store/common/hook' import { useTheme } from '@/store/theme/hook' diff --git a/src/screens/Home/Horizontal/Header.tsx b/src/screens/Home/Horizontal/Header.tsx index bd7d051..63d54ad 100644 --- a/src/screens/Home/Horizontal/Header.tsx +++ b/src/screens/Home/Horizontal/Header.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { View } from 'react-native' // import Button from '@/components/common/Button' // import { navigations } from '@/navigation' diff --git a/src/screens/Home/Horizontal/Main.tsx b/src/screens/Home/Horizontal/Main.tsx index 4e63a82..216eeac 100644 --- a/src/screens/Home/Horizontal/Main.tsx +++ b/src/screens/Home/Horizontal/Main.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useMemo, useState } from 'react' +import { useEffect, useMemo, useState } from 'react' import { InteractionManager } from 'react-native' import Search from '../Views/Search' import SongList from '../Views/SongList' diff --git a/src/screens/Home/Horizontal/index.tsx b/src/screens/Home/Horizontal/index.tsx index e1c1772..4f6503b 100644 --- a/src/screens/Home/Horizontal/index.tsx +++ b/src/screens/Home/Horizontal/index.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { View } from 'react-native' import Aside from './Aside' import PlayerBar from '../components/PlayerBar' diff --git a/src/screens/Home/Vertical/Content.tsx b/src/screens/Home/Vertical/Content.tsx index d3db4b1..801bb64 100644 --- a/src/screens/Home/Vertical/Content.tsx +++ b/src/screens/Home/Vertical/Content.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef } from 'react' +import { useEffect, useRef } from 'react' // import { getWindowSise, onDimensionChange } from '@/utils/tools' import DrawerNav from './DrawerNav' import Header from './Header' diff --git a/src/screens/Home/Vertical/DrawerNav.tsx b/src/screens/Home/Vertical/DrawerNav.tsx index 1dc27a2..437ed0c 100644 --- a/src/screens/Home/Vertical/DrawerNav.tsx +++ b/src/screens/Home/Vertical/DrawerNav.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { ScrollView, StatusBar, TouchableOpacity, View } from 'react-native' import { useI18n } from '@/lang' import { useNavActiveId } from '@/store/common/hook' diff --git a/src/screens/Home/Vertical/Header.tsx b/src/screens/Home/Vertical/Header.tsx index 33d09e6..e320ab5 100644 --- a/src/screens/Home/Vertical/Header.tsx +++ b/src/screens/Home/Vertical/Header.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { View, TouchableOpacity } from 'react-native' // import Button from '@/components/common/Button' // import { navigations } from '@/navigation' diff --git a/src/screens/Home/Vertical/Main.tsx b/src/screens/Home/Vertical/Main.tsx index e9bbefb..66d314d 100644 --- a/src/screens/Home/Vertical/Main.tsx +++ b/src/screens/Home/Vertical/Main.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react' +import { useCallback, useEffect, useMemo, useRef, useState } from 'react' import { InteractionManager, View } from 'react-native' import Search from '../Views/Search' import SongList from '../Views/SongList' diff --git a/src/screens/Home/Vertical/index.tsx b/src/screens/Home/Vertical/index.tsx index 9943d7c..e71b859 100644 --- a/src/screens/Home/Vertical/index.tsx +++ b/src/screens/Home/Vertical/index.tsx @@ -1,4 +1,3 @@ -import React from 'react' import Content from './Content' import PlayerBar from '../components/PlayerBar' diff --git a/src/screens/Home/Views/Download/index.js b/src/screens/Home/Views/Download/index.js index 7f816ec..dea35aa 100644 --- a/src/screens/Home/Views/Download/index.js +++ b/src/screens/Home/Views/Download/index.js @@ -1,4 +1,3 @@ -import React from 'react' import { // StyleSheet, View, diff --git a/src/screens/Home/Views/Leaderboard/BoardsList/List.tsx b/src/screens/Home/Views/Leaderboard/BoardsList/List.tsx index 957ee08..63accbb 100644 --- a/src/screens/Home/Views/Leaderboard/BoardsList/List.tsx +++ b/src/screens/Home/Views/Leaderboard/BoardsList/List.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useState } from 'react' +import { forwardRef, useImperativeHandle, useState } from 'react' import { View, ScrollView } from 'react-native' import { createStyle } from '@/utils/tools' diff --git a/src/screens/Home/Views/Leaderboard/BoardsList/ListItem.tsx b/src/screens/Home/Views/Leaderboard/BoardsList/ListItem.tsx index 8edaec9..4ae2a93 100644 --- a/src/screens/Home/Views/Leaderboard/BoardsList/ListItem.tsx +++ b/src/screens/Home/Views/Leaderboard/BoardsList/ListItem.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useRef } from 'react' +import { useCallback, useRef } from 'react' import Text from '@/components/common/Text' import { useTheme } from '@/store/theme/hook' import Button, { type BtnType } from '@/components/common/Button' diff --git a/src/screens/Home/Views/Leaderboard/BoardsList/ListMenu.tsx b/src/screens/Home/Views/Leaderboard/BoardsList/ListMenu.tsx index df846d2..9f8ea2b 100644 --- a/src/screens/Home/Views/Leaderboard/BoardsList/ListMenu.tsx +++ b/src/screens/Home/Views/Leaderboard/BoardsList/ListMenu.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useRef, useImperativeHandle, forwardRef, useState } from 'react' +import { useMemo, useRef, useImperativeHandle, forwardRef, useState } from 'react' import { useI18n } from '@/lang' import Menu, { type MenuType, type Position } from '@/components/common/Menu' diff --git a/src/screens/Home/Views/Leaderboard/BoardsList/index.tsx b/src/screens/Home/Views/Leaderboard/BoardsList/index.tsx index 2617a81..5bcedd2 100644 --- a/src/screens/Home/Views/Leaderboard/BoardsList/index.tsx +++ b/src/screens/Home/Views/Leaderboard/BoardsList/index.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useRef } from 'react' +import { forwardRef, useImperativeHandle, useRef } from 'react' import { StyleSheet, View } from 'react-native' import List, { type ListType, type ListProps } from './List' import ListMenu, { type ListMenuType, type Position } from './ListMenu' diff --git a/src/screens/Home/Views/Leaderboard/Horizontal/LeftBar.tsx b/src/screens/Home/Views/Leaderboard/Horizontal/LeftBar.tsx index dea2c1b..6e04f85 100644 --- a/src/screens/Home/Views/Leaderboard/Horizontal/LeftBar.tsx +++ b/src/screens/Home/Views/Leaderboard/Horizontal/LeftBar.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useRef } from 'react' +import { forwardRef, useImperativeHandle, useRef } from 'react' import { View } from 'react-native' import SourceSelector, { diff --git a/src/screens/Home/Views/Leaderboard/Horizontal/index.tsx b/src/screens/Home/Views/Leaderboard/Horizontal/index.tsx index 59c2e67..f44f570 100644 --- a/src/screens/Home/Views/Leaderboard/Horizontal/index.tsx +++ b/src/screens/Home/Views/Leaderboard/Horizontal/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef } from 'react' +import { useEffect, useRef } from 'react' import { View } from 'react-native' import { createStyle } from '@/utils/tools' diff --git a/src/screens/Home/Views/Leaderboard/MusicList.tsx b/src/screens/Home/Views/Leaderboard/MusicList.tsx index 83a56a6..5c06f09 100644 --- a/src/screens/Home/Views/Leaderboard/MusicList.tsx +++ b/src/screens/Home/Views/Leaderboard/MusicList.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useEffect, useImperativeHandle, useRef } from 'react' +import { forwardRef, useEffect, useImperativeHandle, useRef } from 'react' import OnlineList, { type OnlineListType, type OnlineListProps } from '@/components/OnlineList' import { clearListDetail, getListDetail, setListDetail, setListDetailInfo } from '@/core/leaderboard' import boardState from '@/store/leaderboard/state' diff --git a/src/screens/Home/Views/Leaderboard/Vertical/HeaderBar/ActiveListName.tsx b/src/screens/Home/Views/Leaderboard/Vertical/HeaderBar/ActiveListName.tsx index d3f6e9d..9be11b5 100644 --- a/src/screens/Home/Views/Leaderboard/Vertical/HeaderBar/ActiveListName.tsx +++ b/src/screens/Home/Views/Leaderboard/Vertical/HeaderBar/ActiveListName.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useState } from 'react' +import { forwardRef, useImperativeHandle, useState } from 'react' import { TouchableOpacity } from 'react-native' import { useTheme } from '@/store/theme/hook' diff --git a/src/screens/Home/Views/Leaderboard/Vertical/HeaderBar/SourceSelector.tsx b/src/screens/Home/Views/Leaderboard/Vertical/HeaderBar/SourceSelector.tsx index 929d6d0..3908e0a 100644 --- a/src/screens/Home/Views/Leaderboard/Vertical/HeaderBar/SourceSelector.tsx +++ b/src/screens/Home/Views/Leaderboard/Vertical/HeaderBar/SourceSelector.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useRef } from 'react' +import { forwardRef, useImperativeHandle, useRef } from 'react' import { StyleSheet, View, type ViewStyle } from 'react-native' import { createStyle } from '@/utils/tools' diff --git a/src/screens/Home/Views/Leaderboard/Vertical/HeaderBar/index.tsx b/src/screens/Home/Views/Leaderboard/Vertical/HeaderBar/index.tsx index 059e321..6f6ff95 100644 --- a/src/screens/Home/Views/Leaderboard/Vertical/HeaderBar/index.tsx +++ b/src/screens/Home/Views/Leaderboard/Vertical/HeaderBar/index.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useRef } from 'react' +import { forwardRef, useImperativeHandle, useRef } from 'react' import { View } from 'react-native' // import { useGetter, useDispatch } from '@/store' diff --git a/src/screens/Home/Views/Leaderboard/Vertical/index.tsx b/src/screens/Home/Views/Leaderboard/Vertical/index.tsx index fea206a..7304f8f 100644 --- a/src/screens/Home/Views/Leaderboard/Vertical/index.tsx +++ b/src/screens/Home/Views/Leaderboard/Vertical/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef } from 'react' +import { useEffect, useRef } from 'react' import { View } from 'react-native' import { createStyle } from '@/utils/tools' diff --git a/src/screens/Home/Views/Leaderboard/index.tsx b/src/screens/Home/Views/Leaderboard/index.tsx index 1b5f74d..d9c7116 100644 --- a/src/screens/Home/Views/Leaderboard/index.tsx +++ b/src/screens/Home/Views/Leaderboard/index.tsx @@ -1,5 +1,4 @@ import { useDimensions } from '@/utils/hooks' -import React from 'react' import Vertical from './Vertical' import Horizontal from './Horizontal' // import { AppColors } from '@/theme' diff --git a/src/screens/Home/Views/Mylist/MusicList/ActiveList.tsx b/src/screens/Home/Views/Mylist/MusicList/ActiveList.tsx index 128e03d..52a57cd 100644 --- a/src/screens/Home/Views/Mylist/MusicList/ActiveList.tsx +++ b/src/screens/Home/Views/Mylist/MusicList/ActiveList.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useEffect, useImperativeHandle, useState } from 'react' +import { forwardRef, useEffect, useImperativeHandle, useState } from 'react' import { TouchableOpacity } from 'react-native' import { Icon } from '@/components/common/Icon' diff --git a/src/screens/Home/Views/Mylist/MusicList/List.tsx b/src/screens/Home/Views/Mylist/MusicList/List.tsx index da32ad2..7649f00 100644 --- a/src/screens/Home/Views/Mylist/MusicList/List.tsx +++ b/src/screens/Home/Views/Mylist/MusicList/List.tsx @@ -1,5 +1,5 @@ import { playList } from '@/core/player/player' -import React, { useMemo, useRef, useState, useEffect, forwardRef, useImperativeHandle } from 'react' +import { useMemo, useRef, useState, useEffect, forwardRef, useImperativeHandle } from 'react' import { FlatList, type NativeScrollEvent, type NativeSyntheticEvent, InteractionManager, type FlatListProps } from 'react-native' import listState from '@/store/list/state' diff --git a/src/screens/Home/Views/Mylist/MusicList/ListItem.tsx b/src/screens/Home/Views/Mylist/MusicList/ListItem.tsx index e84b8a4..824c245 100644 --- a/src/screens/Home/Views/Mylist/MusicList/ListItem.tsx +++ b/src/screens/Home/Views/Mylist/MusicList/ListItem.tsx @@ -1,4 +1,4 @@ -import React, { memo, useRef } from 'react' +import { memo, useRef } from 'react' import { View, TouchableOpacity } from 'react-native' import { LIST_ITEM_HEIGHT } from '@/config/constant' // import { BorderWidths } from '@/theme' diff --git a/src/screens/Home/Views/Mylist/MusicList/ListMenu.tsx b/src/screens/Home/Views/Mylist/MusicList/ListMenu.tsx index 0165417..072db95 100644 --- a/src/screens/Home/Views/Mylist/MusicList/ListMenu.tsx +++ b/src/screens/Home/Views/Mylist/MusicList/ListMenu.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useRef, useImperativeHandle, forwardRef, useState } from 'react' +import { useMemo, useRef, useImperativeHandle, forwardRef, useState } from 'react' import { useI18n } from '@/lang' import Menu, { type MenuType, type Position } from '@/components/common/Menu' diff --git a/src/screens/Home/Views/Mylist/MusicList/ListMusicSearch.tsx b/src/screens/Home/Views/Mylist/MusicList/ListMusicSearch.tsx index 6e95c60..ef06434 100644 --- a/src/screens/Home/Views/Mylist/MusicList/ListMusicSearch.tsx +++ b/src/screens/Home/Views/Mylist/MusicList/ListMusicSearch.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useImperativeHandle, forwardRef, useState, useEffect } from 'react' +import { useRef, useImperativeHandle, forwardRef, useState, useEffect } from 'react' import SearchTipList, { type SearchTipListProps as _SearchTipListProps, type SearchTipListType } from '@/components/SearchTipList' import { debounce } from '@/utils' import { searchListMusic } from './listAction' diff --git a/src/screens/Home/Views/Mylist/MusicList/ListSearchBar.tsx b/src/screens/Home/Views/Mylist/MusicList/ListSearchBar.tsx index a549b05..9371c85 100644 --- a/src/screens/Home/Views/Mylist/MusicList/ListSearchBar.tsx +++ b/src/screens/Home/Views/Mylist/MusicList/ListSearchBar.tsx @@ -1,4 +1,4 @@ -import React, { useState, useRef, useCallback, useMemo, forwardRef, useImperativeHandle } from 'react' +import { useState, useRef, useCallback, useMemo, forwardRef, useImperativeHandle } from 'react' import { Animated, View, TouchableOpacity } from 'react-native' import Text from '@/components/common/Text' diff --git a/src/screens/Home/Views/Mylist/MusicList/MultipleModeBar.tsx b/src/screens/Home/Views/Mylist/MusicList/MultipleModeBar.tsx index 32ec8c1..e037a8b 100644 --- a/src/screens/Home/Views/Mylist/MusicList/MultipleModeBar.tsx +++ b/src/screens/Home/Views/Mylist/MusicList/MultipleModeBar.tsx @@ -1,4 +1,4 @@ -import React, { useState, useRef, useCallback, useMemo, forwardRef, useImperativeHandle } from 'react' +import { useState, useRef, useCallback, useMemo, forwardRef, useImperativeHandle } from 'react' import { Animated, View, TouchableOpacity } from 'react-native' import Text from '@/components/common/Text' diff --git a/src/screens/Home/Views/Mylist/MusicList/MusicPositionModal.tsx b/src/screens/Home/Views/Mylist/MusicList/MusicPositionModal.tsx index ea53dea..484eaa7 100644 --- a/src/screens/Home/Views/Mylist/MusicList/MusicPositionModal.tsx +++ b/src/screens/Home/Views/Mylist/MusicList/MusicPositionModal.tsx @@ -1,4 +1,4 @@ -import React, { useState, useRef, useImperativeHandle, forwardRef } from 'react' +import { useState, useRef, useImperativeHandle, forwardRef } from 'react' import { View } from 'react-native' import ConfirmAlert, { type ConfirmAlertType } from '@/components/common/ConfirmAlert' diff --git a/src/screens/Home/Views/Mylist/MusicList/index.tsx b/src/screens/Home/Views/Mylist/MusicList/index.tsx index 21a64d4..25292bf 100644 --- a/src/screens/Home/Views/Mylist/MusicList/index.tsx +++ b/src/screens/Home/Views/Mylist/MusicList/index.tsx @@ -1,4 +1,4 @@ -import React, { useRef } from 'react' +import { useRef } from 'react' import listState from '@/store/list/state' import ListMenu, { type ListMenuType, type Position, type SelectInfo } from './ListMenu' diff --git a/src/screens/Home/Views/Mylist/MyList/List.tsx b/src/screens/Home/Views/Mylist/MyList/List.tsx index 59af454..404c0fc 100644 --- a/src/screens/Home/Views/Mylist/MyList/List.tsx +++ b/src/screens/Home/Views/Mylist/MyList/List.tsx @@ -1,4 +1,4 @@ -import React, { memo, useEffect, useRef } from 'react' +import { memo, useEffect, useRef } from 'react' import { View, TouchableOpacity, FlatList, InteractionManager, type NativeScrollEvent, type NativeSyntheticEvent, type FlatListProps } from 'react-native' import { Icon } from '@/components/common/Icon' diff --git a/src/screens/Home/Views/Mylist/MyList/ListImportExport.tsx b/src/screens/Home/Views/Mylist/MyList/ListImportExport.tsx index a94aee4..8cd5d75 100644 --- a/src/screens/Home/Views/Mylist/MyList/ListImportExport.tsx +++ b/src/screens/Home/Views/Mylist/MyList/ListImportExport.tsx @@ -1,6 +1,6 @@ import ChoosePath, { type ChoosePathType } from '@/components/common/ChoosePath' import { LXM_FILE_EXT_RXP } from '@/config/constant' -import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react' +import { forwardRef, useImperativeHandle, useRef, useState } from 'react' import { handleExport, handleImport } from './listAction' export interface SelectInfo { diff --git a/src/screens/Home/Views/Mylist/MyList/ListMenu.tsx b/src/screens/Home/Views/Mylist/MyList/ListMenu.tsx index f2b8733..af09313 100644 --- a/src/screens/Home/Views/Mylist/MyList/ListMenu.tsx +++ b/src/screens/Home/Views/Mylist/MyList/ListMenu.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useImperativeHandle, forwardRef, useState } from 'react' +import { useRef, useImperativeHandle, forwardRef, useState } from 'react' import { useI18n } from '@/lang' import Menu, { type Menus, type MenuType, type Position } from '@/components/common/Menu' import { LIST_IDS } from '@/config/constant' diff --git a/src/screens/Home/Views/Mylist/MyList/ListNameEdit.tsx b/src/screens/Home/Views/Mylist/MyList/ListNameEdit.tsx index 391a8ac..65a305a 100644 --- a/src/screens/Home/Views/Mylist/MyList/ListNameEdit.tsx +++ b/src/screens/Home/Views/Mylist/MyList/ListNameEdit.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useImperativeHandle, forwardRef, useState } from 'react' +import { useRef, useImperativeHandle, forwardRef, useState } from 'react' import ConfirmAlert, { type ConfirmAlertType } from '@/components/common/ConfirmAlert' import Text from '@/components/common/Text' import { View } from 'react-native' diff --git a/src/screens/Home/Views/Mylist/MyList/index.tsx b/src/screens/Home/Views/Mylist/MyList/index.tsx index 0a16634..de81ab1 100644 --- a/src/screens/Home/Views/Mylist/MyList/index.tsx +++ b/src/screens/Home/Views/Mylist/MyList/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef, useState } from 'react' +import { useEffect, useRef, useState } from 'react' import ListMenu, { type ListMenuType } from './ListMenu' import ListNameEdit, { type ListNameEditType } from './ListNameEdit' diff --git a/src/screens/Home/Views/Mylist/index.tsx b/src/screens/Home/Views/Mylist/index.tsx index 15e3668..10dfaa6 100644 --- a/src/screens/Home/Views/Mylist/index.tsx +++ b/src/screens/Home/Views/Mylist/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef } from 'react' +import { useEffect, useRef } from 'react' import settingState from '@/store/setting/state' import MusicList from './MusicList' import MyList from './MyList' diff --git a/src/screens/Home/Views/Search/BlankView/HistorySearch.tsx b/src/screens/Home/Views/Search/BlankView/HistorySearch.tsx index c313871..6d69180 100644 --- a/src/screens/Home/Views/Search/BlankView/HistorySearch.tsx +++ b/src/screens/Home/Views/Search/BlankView/HistorySearch.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react' +import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react' import { TouchableOpacity, View } from 'react-native' import { type InitState } from '@/store/hotSearch/state' import Button from '@/components/common/Button' diff --git a/src/screens/Home/Views/Search/BlankView/HotSearch.tsx b/src/screens/Home/Views/Search/BlankView/HotSearch.tsx index 69ece08..4318088 100644 --- a/src/screens/Home/Views/Search/BlankView/HotSearch.tsx +++ b/src/screens/Home/Views/Search/BlankView/HotSearch.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react' +import { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react' import { ScrollView, View } from 'react-native' import { type Source, type InitState } from '@/store/hotSearch/state' import Button from '@/components/common/Button' diff --git a/src/screens/Home/Views/Search/BlankView/index.tsx b/src/screens/Home/Views/Search/BlankView/index.tsx index 906af30..838474d 100644 --- a/src/screens/Home/Views/Search/BlankView/index.tsx +++ b/src/screens/Home/Views/Search/BlankView/index.tsx @@ -3,7 +3,7 @@ import { useI18n } from '@/lang' import { useSettingValue } from '@/store/setting/hook' import { useTheme } from '@/store/theme/hook' import { createStyle } from '@/utils/tools' -import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react' +import { forwardRef, useImperativeHandle, useRef, useState } from 'react' import { ScrollView, View } from 'react-native' import HistorySearch, { type HistorySearchType } from './HistorySearch' import HotSearch, { type HotSearchType } from './HotSearch' diff --git a/src/screens/Home/Views/Search/HeaderBar/SearchInput.tsx b/src/screens/Home/Views/Search/HeaderBar/SearchInput.tsx index 10d219a..eb8c81f 100644 --- a/src/screens/Home/Views/Search/HeaderBar/SearchInput.tsx +++ b/src/screens/Home/Views/Search/HeaderBar/SearchInput.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useRef, forwardRef, useImperativeHandle, useState } from 'react' +import { useCallback, useRef, forwardRef, useImperativeHandle, useState } from 'react' // import { StyleSheet } from 'react-native' import Input, { type InputType, type InputProps } from '@/components/common/Input' diff --git a/src/screens/Home/Views/Search/HeaderBar/index.tsx b/src/screens/Home/Views/Search/HeaderBar/index.tsx index 0949235..68e153e 100644 --- a/src/screens/Home/Views/Search/HeaderBar/index.tsx +++ b/src/screens/Home/Views/Search/HeaderBar/index.tsx @@ -1,4 +1,4 @@ -import React, { useRef, forwardRef, useImperativeHandle } from 'react' +import { useRef, forwardRef, useImperativeHandle } from 'react' import { View } from 'react-native' // import music from '@/utils/musicSdk' diff --git a/src/screens/Home/Views/Search/List.tsx b/src/screens/Home/Views/Search/List.tsx index 55937e7..b4b4f7c 100644 --- a/src/screens/Home/Views/Search/List.tsx +++ b/src/screens/Home/Views/Search/List.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react' +import { forwardRef, useImperativeHandle, useRef, useState } from 'react' import type { InitState as SearchState } from '@/store/search/state' import type { Source as MusicSource } from '@/store/search/music/state' import type { Source as SongListSource } from '@/store/search/songlist/state' diff --git a/src/screens/Home/Views/Search/MusicList.tsx b/src/screens/Home/Views/Search/MusicList.tsx index e1741ee..027d36f 100644 --- a/src/screens/Home/Views/Search/MusicList.tsx +++ b/src/screens/Home/Views/Search/MusicList.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useEffect, useImperativeHandle, useRef } from 'react' +import { forwardRef, useEffect, useImperativeHandle, useRef } from 'react' import OnlineList, { type OnlineListType, type OnlineListProps } from '@/components/OnlineList' import { search } from '@/core/search/music' import searchMusicState, { type ListInfo, type Source } from '@/store/search/music/state' diff --git a/src/screens/Home/Views/Search/SearchTypeSelector.tsx b/src/screens/Home/Views/Search/SearchTypeSelector.tsx index ed3f07a..7a55d82 100644 --- a/src/screens/Home/Views/Search/SearchTypeSelector.tsx +++ b/src/screens/Home/Views/Search/SearchTypeSelector.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useMemo, useState } from 'react' +import { useEffect, useMemo, useState } from 'react' import { ScrollView, TouchableOpacity } from 'react-native' import { createStyle } from '@/utils/tools' diff --git a/src/screens/Home/Views/Search/SonglistList.tsx b/src/screens/Home/Views/Search/SonglistList.tsx index e43b0dc..25cf177 100644 --- a/src/screens/Home/Views/Search/SonglistList.tsx +++ b/src/screens/Home/Views/Search/SonglistList.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useEffect, useImperativeHandle, useRef } from 'react' +import { forwardRef, useEffect, useImperativeHandle, useRef } from 'react' import { search } from '@/core/search/songlist' import Songlist, { type SonglistProps, type SonglistType } from '@/screens/Home/Views/SongList/components/Songlist' diff --git a/src/screens/Home/Views/Search/TipList.tsx b/src/screens/Home/Views/Search/TipList.tsx index d79b195..49bc345 100644 --- a/src/screens/Home/Views/Search/TipList.tsx +++ b/src/screens/Home/Views/Search/TipList.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useImperativeHandle, forwardRef, useState, useEffect } from 'react' +import { useRef, useImperativeHandle, forwardRef, useState, useEffect } from 'react' import SearchTipList, { type SearchTipListProps as _SearchTipListProps, type SearchTipListType as _SearchTipListType } from '@/components/SearchTipList' import Button from '@/components/common/Button' import { createStyle } from '@/utils/tools' diff --git a/src/screens/Home/Views/Search/index.tsx b/src/screens/Home/Views/Search/index.tsx index 9121fac..6945dd1 100644 --- a/src/screens/Home/Views/Search/index.tsx +++ b/src/screens/Home/Views/Search/index.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useEffect } from 'react' +import { useRef, useEffect } from 'react' import { type LayoutChangeEvent, View } from 'react-native' // import music from '@/utils/musicSdk' diff --git a/src/screens/Home/Views/Setting/Horizontal/NavList.tsx b/src/screens/Home/Views/Setting/Horizontal/NavList.tsx index 43bcf44..b2a4c04 100644 --- a/src/screens/Home/Views/Setting/Horizontal/NavList.tsx +++ b/src/screens/Home/Views/Setting/Horizontal/NavList.tsx @@ -1,4 +1,4 @@ -import React, { memo, useRef, useState } from 'react' +import { memo, useRef, useState } from 'react' import { View, TouchableOpacity, FlatList, type FlatListProps } from 'react-native' import { Icon } from '@/components/common/Icon' diff --git a/src/screens/Home/Views/Setting/Horizontal/index.tsx b/src/screens/Home/Views/Setting/Horizontal/index.tsx index a7fe904..c4bb71d 100644 --- a/src/screens/Home/Views/Setting/Horizontal/index.tsx +++ b/src/screens/Home/Views/Setting/Horizontal/index.tsx @@ -1,4 +1,4 @@ -import React, { useRef } from 'react' +import { useRef } from 'react' import { ScrollView, View } from 'react-native' import NavList from './NavList' import Main, { type MainType } from '../Main' diff --git a/src/screens/Home/Views/Setting/Main.tsx b/src/screens/Home/Views/Setting/Main.tsx index 631c2c0..caf70cd 100644 --- a/src/screens/Home/Views/Setting/Main.tsx +++ b/src/screens/Home/Views/Setting/Main.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useMemo, useState } from 'react' +import { forwardRef, useImperativeHandle, useMemo, useState } from 'react' import { InteractionManager } from 'react-native' import Basic from './settings/Basic' diff --git a/src/screens/Home/Views/Setting/Vertical/Header.tsx b/src/screens/Home/Views/Setting/Vertical/Header.tsx index 024b82e..885137a 100644 --- a/src/screens/Home/Views/Setting/Vertical/Header.tsx +++ b/src/screens/Home/Views/Setting/Vertical/Header.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useState } from 'react' +import { forwardRef, useImperativeHandle, useState } from 'react' import { TouchableOpacity } from 'react-native' import { Icon } from '@/components/common/Icon' diff --git a/src/screens/Home/Views/Setting/Vertical/Main.tsx b/src/screens/Home/Views/Setting/Vertical/Main.tsx index 04fafa3..8e7f1a9 100644 --- a/src/screens/Home/Views/Setting/Vertical/Main.tsx +++ b/src/screens/Home/Views/Setting/Vertical/Main.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { FlatList, type FlatListProps } from 'react-native' import Basic from '../settings/Basic' @@ -40,8 +40,7 @@ const ListItem = memo(({ case 'other': return case 'version': return case 'about': return - case 'basic': - default: return + case 'basic': return } }, () => true) diff --git a/src/screens/Home/Views/Setting/Vertical/NavList.tsx b/src/screens/Home/Views/Setting/Vertical/NavList.tsx index 13538ee..fd67737 100644 --- a/src/screens/Home/Views/Setting/Vertical/NavList.tsx +++ b/src/screens/Home/Views/Setting/Vertical/NavList.tsx @@ -1,4 +1,4 @@ -import React, { memo, useCallback, useState } from 'react' +import { memo, useCallback, useState } from 'react' import { View, TouchableOpacity, ScrollView } from 'react-native' import { useTheme } from '@/store/theme/hook' @@ -48,6 +48,7 @@ export default ({ onChangeId }: { onChangeId(id) setActiveId(id) global.lx.settingActiveId = id + // eslint-disable-next-line react-hooks/exhaustive-deps }, []) return ( diff --git a/src/screens/Home/Views/Setting/Vertical/index.tsx b/src/screens/Home/Views/Setting/Vertical/index.tsx index a6286f5..0fb357f 100644 --- a/src/screens/Home/Views/Setting/Vertical/index.tsx +++ b/src/screens/Home/Views/Setting/Vertical/index.tsx @@ -1,6 +1,5 @@ export { default } from './Main' -// import React from 'react' -// import { View } from 'react-native' +// // import { View } from 'react-native' // import Main from './Main' // import { createStyle } from '@/utils/tools' diff --git a/src/screens/Home/Views/Setting/components/Button.tsx b/src/screens/Home/Views/Setting/components/Button.tsx index 761378e..8ecb450 100644 --- a/src/screens/Home/Views/Setting/components/Button.tsx +++ b/src/screens/Home/Views/Setting/components/Button.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import Button, { type BtnProps } from '@/components/common/Button' import Text from '@/components/common/Text' diff --git a/src/screens/Home/Views/Setting/components/CheckBoxItem.tsx b/src/screens/Home/Views/Setting/components/CheckBoxItem.tsx index 8ac1ec1..d588abd 100644 --- a/src/screens/Home/Views/Setting/components/CheckBoxItem.tsx +++ b/src/screens/Home/Views/Setting/components/CheckBoxItem.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' diff --git a/src/screens/Home/Views/Setting/components/InputItem.tsx b/src/screens/Home/Views/Setting/components/InputItem.tsx index 6df154f..1fb1d7a 100644 --- a/src/screens/Home/Views/Setting/components/InputItem.tsx +++ b/src/screens/Home/Views/Setting/components/InputItem.tsx @@ -1,4 +1,4 @@ -import React, { memo, useState, useEffect, useRef } from 'react' +import { memo, useState, useEffect, useRef } from 'react' import { StyleSheet, View, Keyboard } from 'react-native' import type { InputType, InputProps } from '@/components/common/Input' diff --git a/src/screens/Home/Views/Setting/components/Section.tsx b/src/screens/Home/Views/Setting/components/Section.tsx index e255db5..48f16ad 100644 --- a/src/screens/Home/Views/Setting/components/Section.tsx +++ b/src/screens/Home/Views/Setting/components/Section.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { View } from 'react-native' import { createStyle } from '@/utils/tools' diff --git a/src/screens/Home/Views/Setting/components/Slider.tsx b/src/screens/Home/Views/Setting/components/Slider.tsx index d59f057..6f84737 100644 --- a/src/screens/Home/Views/Setting/components/Slider.tsx +++ b/src/screens/Home/Views/Setting/components/Slider.tsx @@ -1,5 +1,5 @@ -import React, { memo } from 'react' +import { memo } from 'react' import Slider, { type SliderProps } from '@react-native-community/slider' import { useTheme } from '@/store/theme/hook' diff --git a/src/screens/Home/Views/Setting/components/SubTitle.tsx b/src/screens/Home/Views/Setting/components/SubTitle.tsx index b540133..2f9cb30 100644 --- a/src/screens/Home/Views/Setting/components/SubTitle.tsx +++ b/src/screens/Home/Views/Setting/components/SubTitle.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { createStyle } from '@/utils/tools' diff --git a/src/screens/Home/Views/Setting/index.tsx b/src/screens/Home/Views/Setting/index.tsx index ed192e0..94175a1 100644 --- a/src/screens/Home/Views/Setting/index.tsx +++ b/src/screens/Home/Views/Setting/index.tsx @@ -1,5 +1,4 @@ import { useDimensions } from '@/utils/hooks' -import React from 'react' import Vertical from './Vertical' import Horizontal from './Horizontal' // import { AppColors } from '@/theme' diff --git a/src/screens/Home/Views/Setting/settings/About.tsx b/src/screens/Home/Views/Setting/settings/About.tsx index 115cb6d..98798af 100644 --- a/src/screens/Home/Views/Setting/settings/About.tsx +++ b/src/screens/Home/Views/Setting/settings/About.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View, TouchableOpacity } from 'react-native' import Section from '../components/Section' diff --git a/src/screens/Home/Views/Setting/settings/Backup/ListImportExport.tsx b/src/screens/Home/Views/Setting/settings/Backup/ListImportExport.tsx index b3263b7..e93b28c 100644 --- a/src/screens/Home/Views/Setting/settings/Backup/ListImportExport.tsx +++ b/src/screens/Home/Views/Setting/settings/Backup/ListImportExport.tsx @@ -1,6 +1,6 @@ import ChoosePath, { type ChoosePathType } from '@/components/common/ChoosePath' import { LXM_FILE_EXT_RXP } from '@/config/constant' -import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react' +import { forwardRef, useImperativeHandle, useRef, useState } from 'react' import { handleExportList, handleImportList } from './actions' export interface SelectInfo { diff --git a/src/screens/Home/Views/Setting/settings/Backup/Part.tsx b/src/screens/Home/Views/Setting/settings/Backup/Part.tsx index 5fb00ba..2995571 100644 --- a/src/screens/Home/Views/Setting/settings/Backup/Part.tsx +++ b/src/screens/Home/Views/Setting/settings/Backup/Part.tsx @@ -1,4 +1,4 @@ -import React, { memo, useRef } from 'react' +import { memo, useRef } from 'react' import { StyleSheet, View } from 'react-native' // import { gzip, ungzip } from 'pako' diff --git a/src/screens/Home/Views/Setting/settings/Backup/index.tsx b/src/screens/Home/Views/Setting/settings/Backup/index.tsx index f37db81..b307d95 100644 --- a/src/screens/Home/Views/Setting/settings/Backup/index.tsx +++ b/src/screens/Home/Views/Setting/settings/Backup/index.tsx @@ -1,5 +1,5 @@ import { useI18n } from '@/lang' -import React, { memo } from 'react' +import { memo } from 'react' import Section from '../../components/Section' import Part from './Part' diff --git a/src/screens/Home/Views/Setting/settings/Basic/DrawerLayoutPosition.tsx b/src/screens/Home/Views/Setting/settings/Basic/DrawerLayoutPosition.tsx index a51be6d..abf918a 100644 --- a/src/screens/Home/Views/Setting/settings/Basic/DrawerLayoutPosition.tsx +++ b/src/screens/Home/Views/Setting/settings/Basic/DrawerLayoutPosition.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { StyleSheet, View } from 'react-native' diff --git a/src/screens/Home/Views/Setting/settings/Basic/FontSize.tsx b/src/screens/Home/Views/Setting/settings/Basic/FontSize.tsx index 0d59a80..1e343e9 100644 --- a/src/screens/Home/Views/Setting/settings/Basic/FontSize.tsx +++ b/src/screens/Home/Views/Setting/settings/Basic/FontSize.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { StyleSheet, View } from 'react-native' diff --git a/src/screens/Home/Views/Setting/settings/Basic/IsAutoHidePlayBar.tsx b/src/screens/Home/Views/Setting/settings/Basic/IsAutoHidePlayBar.tsx index 68e4079..7b90b02 100644 --- a/src/screens/Home/Views/Setting/settings/Basic/IsAutoHidePlayBar.tsx +++ b/src/screens/Home/Views/Setting/settings/Basic/IsAutoHidePlayBar.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/Basic/IsShowBackBtn.tsx b/src/screens/Home/Views/Setting/settings/Basic/IsShowBackBtn.tsx index 10f11fd..24b42d8 100644 --- a/src/screens/Home/Views/Setting/settings/Basic/IsShowBackBtn.tsx +++ b/src/screens/Home/Views/Setting/settings/Basic/IsShowBackBtn.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/Basic/IsShowExitBtn.tsx b/src/screens/Home/Views/Setting/settings/Basic/IsShowExitBtn.tsx index 584c343..7e5815c 100644 --- a/src/screens/Home/Views/Setting/settings/Basic/IsShowExitBtn.tsx +++ b/src/screens/Home/Views/Setting/settings/Basic/IsShowExitBtn.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/Basic/IsStartupAutoPlay.tsx b/src/screens/Home/Views/Setting/settings/Basic/IsStartupAutoPlay.tsx index 2b76438..0d031d1 100644 --- a/src/screens/Home/Views/Setting/settings/Basic/IsStartupAutoPlay.tsx +++ b/src/screens/Home/Views/Setting/settings/Basic/IsStartupAutoPlay.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/Basic/Language.tsx b/src/screens/Home/Views/Setting/settings/Basic/Language.tsx index 32cd3e2..a24b0ab 100644 --- a/src/screens/Home/Views/Setting/settings/Basic/Language.tsx +++ b/src/screens/Home/Views/Setting/settings/Basic/Language.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { StyleSheet, View } from 'react-native' diff --git a/src/screens/Home/Views/Setting/settings/Basic/ShareType.tsx b/src/screens/Home/Views/Setting/settings/Basic/ShareType.tsx index 3d63d5d..336ddb6 100644 --- a/src/screens/Home/Views/Setting/settings/Basic/ShareType.tsx +++ b/src/screens/Home/Views/Setting/settings/Basic/ShareType.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { StyleSheet, View } from 'react-native' diff --git a/src/screens/Home/Views/Setting/settings/Basic/Source.tsx b/src/screens/Home/Views/Setting/settings/Basic/Source.tsx index 45a9d43..97b171a 100644 --- a/src/screens/Home/Views/Setting/settings/Basic/Source.tsx +++ b/src/screens/Home/Views/Setting/settings/Basic/Source.tsx @@ -1,4 +1,4 @@ -import React, { memo, useCallback, useMemo } from 'react' +import { memo, useCallback, useMemo } from 'react' import { View } from 'react-native' diff --git a/src/screens/Home/Views/Setting/settings/Basic/SourceName.tsx b/src/screens/Home/Views/Setting/settings/Basic/SourceName.tsx index 59351da..733b34e 100644 --- a/src/screens/Home/Views/Setting/settings/Basic/SourceName.tsx +++ b/src/screens/Home/Views/Setting/settings/Basic/SourceName.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { StyleSheet, View } from 'react-native' diff --git a/src/screens/Home/Views/Setting/settings/Basic/index.tsx b/src/screens/Home/Views/Setting/settings/Basic/index.tsx index cb6c318..f4e152f 100644 --- a/src/screens/Home/Views/Setting/settings/Basic/index.tsx +++ b/src/screens/Home/Views/Setting/settings/Basic/index.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import Theme from '../Theme' import Section from '../../components/Section' diff --git a/src/screens/Home/Views/Setting/settings/List/AddMusicLocationType.tsx b/src/screens/Home/Views/Setting/settings/List/AddMusicLocationType.tsx index 3b3493a..d406af5 100644 --- a/src/screens/Home/Views/Setting/settings/List/AddMusicLocationType.tsx +++ b/src/screens/Home/Views/Setting/settings/List/AddMusicLocationType.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { StyleSheet, View } from 'react-native' diff --git a/src/screens/Home/Views/Setting/settings/List/IsClickPlayList.tsx b/src/screens/Home/Views/Setting/settings/List/IsClickPlayList.tsx index cddfd56..e8dac0e 100644 --- a/src/screens/Home/Views/Setting/settings/List/IsClickPlayList.tsx +++ b/src/screens/Home/Views/Setting/settings/List/IsClickPlayList.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/List/IsShowAlbumName.tsx b/src/screens/Home/Views/Setting/settings/List/IsShowAlbumName.tsx index 9dde780..d66b340 100644 --- a/src/screens/Home/Views/Setting/settings/List/IsShowAlbumName.tsx +++ b/src/screens/Home/Views/Setting/settings/List/IsShowAlbumName.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/List/IsShowInterval.tsx b/src/screens/Home/Views/Setting/settings/List/IsShowInterval.tsx index bb4f6f7..15cd7fe 100644 --- a/src/screens/Home/Views/Setting/settings/List/IsShowInterval.tsx +++ b/src/screens/Home/Views/Setting/settings/List/IsShowInterval.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/List/index.tsx b/src/screens/Home/Views/Setting/settings/List/index.tsx index 71ead3c..1601244 100644 --- a/src/screens/Home/Views/Setting/settings/List/index.tsx +++ b/src/screens/Home/Views/Setting/settings/List/index.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import Section from '../../components/Section' import AddMusicLocationType from './AddMusicLocationType' diff --git a/src/screens/Home/Views/Setting/settings/LyricDesktop/IsLockLyric.tsx b/src/screens/Home/Views/Setting/settings/LyricDesktop/IsLockLyric.tsx index 5f37e84..aac52ed 100644 --- a/src/screens/Home/Views/Setting/settings/LyricDesktop/IsLockLyric.tsx +++ b/src/screens/Home/Views/Setting/settings/LyricDesktop/IsLockLyric.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' import { useI18n } from '@/lang' diff --git a/src/screens/Home/Views/Setting/settings/LyricDesktop/IsShowLyric.tsx b/src/screens/Home/Views/Setting/settings/LyricDesktop/IsShowLyric.tsx index 88be79a..c9f3f5c 100644 --- a/src/screens/Home/Views/Setting/settings/LyricDesktop/IsShowLyric.tsx +++ b/src/screens/Home/Views/Setting/settings/LyricDesktop/IsShowLyric.tsx @@ -1,4 +1,4 @@ -import React, { memo, useRef } from 'react' +import { memo, useRef } from 'react' import { View } from 'react-native' import ConfirmAlert, { type ConfirmAlertType } from '@/components/common/ConfirmAlert' diff --git a/src/screens/Home/Views/Setting/settings/LyricDesktop/IsShowToggleAnima.tsx b/src/screens/Home/Views/Setting/settings/LyricDesktop/IsShowToggleAnima.tsx index d3bf765..f61f03a 100644 --- a/src/screens/Home/Views/Setting/settings/LyricDesktop/IsShowToggleAnima.tsx +++ b/src/screens/Home/Views/Setting/settings/LyricDesktop/IsShowToggleAnima.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' import { useI18n } from '@/lang' diff --git a/src/screens/Home/Views/Setting/settings/LyricDesktop/IsSingleLine.tsx b/src/screens/Home/Views/Setting/settings/LyricDesktop/IsSingleLine.tsx index 817b691..8d91f6d 100644 --- a/src/screens/Home/Views/Setting/settings/LyricDesktop/IsSingleLine.tsx +++ b/src/screens/Home/Views/Setting/settings/LyricDesktop/IsSingleLine.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' import { useI18n } from '@/lang' diff --git a/src/screens/Home/Views/Setting/settings/LyricDesktop/MaxLineNum.tsx b/src/screens/Home/Views/Setting/settings/LyricDesktop/MaxLineNum.tsx index 35db7ab..e4eacb5 100644 --- a/src/screens/Home/Views/Setting/settings/LyricDesktop/MaxLineNum.tsx +++ b/src/screens/Home/Views/Setting/settings/LyricDesktop/MaxLineNum.tsx @@ -1,4 +1,4 @@ -import React, { memo, useCallback, useState } from 'react' +import { memo, useCallback, useState } from 'react' import { View } from 'react-native' import SubTitle from '../../components/SubTitle' diff --git a/src/screens/Home/Views/Setting/settings/LyricDesktop/TextOpacity.tsx b/src/screens/Home/Views/Setting/settings/LyricDesktop/TextOpacity.tsx index 6ad3dab..6ab507f 100644 --- a/src/screens/Home/Views/Setting/settings/LyricDesktop/TextOpacity.tsx +++ b/src/screens/Home/Views/Setting/settings/LyricDesktop/TextOpacity.tsx @@ -1,4 +1,4 @@ -import React, { memo, useCallback, useState } from 'react' +import { memo, useCallback, useState } from 'react' import { View } from 'react-native' import SubTitle from '../../components/SubTitle' diff --git a/src/screens/Home/Views/Setting/settings/LyricDesktop/TextPositionX.tsx b/src/screens/Home/Views/Setting/settings/LyricDesktop/TextPositionX.tsx index a872ae9..34ebf1c 100644 --- a/src/screens/Home/Views/Setting/settings/LyricDesktop/TextPositionX.tsx +++ b/src/screens/Home/Views/Setting/settings/LyricDesktop/TextPositionX.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { View } from 'react-native' diff --git a/src/screens/Home/Views/Setting/settings/LyricDesktop/TextPositionY.tsx b/src/screens/Home/Views/Setting/settings/LyricDesktop/TextPositionY.tsx index 2a5c802..a3efcbd 100644 --- a/src/screens/Home/Views/Setting/settings/LyricDesktop/TextPositionY.tsx +++ b/src/screens/Home/Views/Setting/settings/LyricDesktop/TextPositionY.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { View } from 'react-native' import SubTitle from '../../components/SubTitle' diff --git a/src/screens/Home/Views/Setting/settings/LyricDesktop/TextSize.tsx b/src/screens/Home/Views/Setting/settings/LyricDesktop/TextSize.tsx index 636796b..1e4dacf 100644 --- a/src/screens/Home/Views/Setting/settings/LyricDesktop/TextSize.tsx +++ b/src/screens/Home/Views/Setting/settings/LyricDesktop/TextSize.tsx @@ -1,4 +1,4 @@ -import React, { memo, useCallback, useState } from 'react' +import { memo, useCallback, useState } from 'react' import { View } from 'react-native' import SubTitle from '../../components/SubTitle' diff --git a/src/screens/Home/Views/Setting/settings/LyricDesktop/Theme.tsx b/src/screens/Home/Views/Setting/settings/LyricDesktop/Theme.tsx index fd68f1b..07f6424 100644 --- a/src/screens/Home/Views/Setting/settings/LyricDesktop/Theme.tsx +++ b/src/screens/Home/Views/Setting/settings/LyricDesktop/Theme.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { setDesktopLyricColor } from '@/core/desktopLyric' import { useI18n } from '@/lang' -import React, { memo } from 'react' +import { memo } from 'react' import { StyleSheet, View, TouchableOpacity } from 'react-native' import SubTitle from '../../components/SubTitle' diff --git a/src/screens/Home/Views/Setting/settings/LyricDesktop/ViewWidth.tsx b/src/screens/Home/Views/Setting/settings/LyricDesktop/ViewWidth.tsx index 7bb2482..24ea0bd 100644 --- a/src/screens/Home/Views/Setting/settings/LyricDesktop/ViewWidth.tsx +++ b/src/screens/Home/Views/Setting/settings/LyricDesktop/ViewWidth.tsx @@ -1,4 +1,4 @@ -import React, { memo, useCallback, useState } from 'react' +import { memo, useCallback, useState } from 'react' import { View } from 'react-native' import SubTitle from '../../components/SubTitle' diff --git a/src/screens/Home/Views/Setting/settings/LyricDesktop/index.tsx b/src/screens/Home/Views/Setting/settings/LyricDesktop/index.tsx index 3be3273..484d954 100644 --- a/src/screens/Home/Views/Setting/settings/LyricDesktop/index.tsx +++ b/src/screens/Home/Views/Setting/settings/LyricDesktop/index.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import Section from '../../components/Section' import IsShowLyric from './IsShowLyric' diff --git a/src/screens/Home/Views/Setting/settings/Other/Log.tsx b/src/screens/Home/Views/Setting/settings/Other/Log.tsx index 66ee8eb..1528b52 100644 --- a/src/screens/Home/Views/Setting/settings/Other/Log.tsx +++ b/src/screens/Home/Views/Setting/settings/Other/Log.tsx @@ -1,4 +1,4 @@ -import React, { memo, useRef, useState, useEffect } from 'react' +import { memo, useRef, useState, useEffect } from 'react' import { View } from 'react-native' import { getLogs, clearLogs } from '@/utils/log' // import { gzip, ungzip } from 'pako' diff --git a/src/screens/Home/Views/Setting/settings/Other/MetaCache.tsx b/src/screens/Home/Views/Setting/settings/Other/MetaCache.tsx index 993ab18..8fd28ba 100644 --- a/src/screens/Home/Views/Setting/settings/Other/MetaCache.tsx +++ b/src/screens/Home/Views/Setting/settings/Other/MetaCache.tsx @@ -1,4 +1,4 @@ -import React, { memo, useState, useEffect } from 'react' +import { memo, useState, useEffect } from 'react' import { StyleSheet, View } from 'react-native' // import { gzip, ungzip } from 'pako' @@ -27,9 +27,9 @@ export default memo(() => { } const handleCleanOtherSourceCache = () => { - if (cacheInfo.otherSourceKeys == null || !cacheInfo.otherSourceKeys.length) return + if (!cacheInfo.otherSourceKeys?.length) return setOtherSourceCleaning(true) - clearOtherSource(cacheInfo.otherSourceKeys).then(() => { + void clearOtherSource(cacheInfo.otherSourceKeys).then(() => { toast(t('setting_other_cache_clear_success_tip')) }).finally(() => { handleGetMetaCache() @@ -38,9 +38,9 @@ export default memo(() => { } const handleCleanLyricKeysCache = () => { - if (cacheInfo.lyricKeys == null || !cacheInfo.lyricKeys.length) return + if (!cacheInfo.lyricKeys?.length) return setLyricCleaning(true) - clearLyric(cacheInfo.lyricKeys).then(() => { + void clearLyric(cacheInfo.lyricKeys).then(() => { toast(t('setting_other_cache_clear_success_tip')) }).finally(() => { handleGetMetaCache() diff --git a/src/screens/Home/Views/Setting/settings/Other/ResourceCache.tsx b/src/screens/Home/Views/Setting/settings/Other/ResourceCache.tsx index 4e4c54e..8c1be82 100644 --- a/src/screens/Home/Views/Setting/settings/Other/ResourceCache.tsx +++ b/src/screens/Home/Views/Setting/settings/Other/ResourceCache.tsx @@ -1,4 +1,4 @@ -import React, { memo, useState, useEffect } from 'react' +import { memo, useState, useEffect } from 'react' import { StyleSheet, View, InteractionManager } from 'react-native' // import { gzip, ungzip } from 'pako' @@ -35,7 +35,7 @@ export default memo(() => { if (!confirm) return setCleaning(true) void InteractionManager.runAfterInteractions(() => { - Promise.all([ + void Promise.all([ clearAppCache(), clearMusicUrl(), resetNotificationPermissionCheck(), diff --git a/src/screens/Home/Views/Setting/settings/Other/index.tsx b/src/screens/Home/Views/Setting/settings/Other/index.tsx index 84fbf9d..4609e63 100644 --- a/src/screens/Home/Views/Setting/settings/Other/index.tsx +++ b/src/screens/Home/Views/Setting/settings/Other/index.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import Section from '../../components/Section' import ResourceCache from './ResourceCache' diff --git a/src/screens/Home/Views/Setting/settings/Player/IsHandleAudioFocus.tsx b/src/screens/Home/Views/Setting/settings/Player/IsHandleAudioFocus.tsx index df1e16b..a176a60 100644 --- a/src/screens/Home/Views/Setting/settings/Player/IsHandleAudioFocus.tsx +++ b/src/screens/Home/Views/Setting/settings/Player/IsHandleAudioFocus.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle, toast } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/Player/IsPlayHighQuality.tsx b/src/screens/Home/Views/Setting/settings/Player/IsPlayHighQuality.tsx index f4ee6ea..12d18cb 100644 --- a/src/screens/Home/Views/Setting/settings/Player/IsPlayHighQuality.tsx +++ b/src/screens/Home/Views/Setting/settings/Player/IsPlayHighQuality.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/Player/IsS2T.tsx b/src/screens/Home/Views/Setting/settings/Player/IsS2T.tsx index fa103e0..2972bf0 100644 --- a/src/screens/Home/Views/Setting/settings/Player/IsS2T.tsx +++ b/src/screens/Home/Views/Setting/settings/Player/IsS2T.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/Player/IsSavePlayTime.tsx b/src/screens/Home/Views/Setting/settings/Player/IsSavePlayTime.tsx index 56a6f8c..9b59ae2 100644 --- a/src/screens/Home/Views/Setting/settings/Player/IsSavePlayTime.tsx +++ b/src/screens/Home/Views/Setting/settings/Player/IsSavePlayTime.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/Player/IsShowLyricRoma.tsx b/src/screens/Home/Views/Setting/settings/Player/IsShowLyricRoma.tsx index 755b91d..3c1fece 100644 --- a/src/screens/Home/Views/Setting/settings/Player/IsShowLyricRoma.tsx +++ b/src/screens/Home/Views/Setting/settings/Player/IsShowLyricRoma.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/Player/IsShowLyricTranslation.tsx b/src/screens/Home/Views/Setting/settings/Player/IsShowLyricTranslation.tsx index f056ba0..3386686 100644 --- a/src/screens/Home/Views/Setting/settings/Player/IsShowLyricTranslation.tsx +++ b/src/screens/Home/Views/Setting/settings/Player/IsShowLyricTranslation.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/Player/IsShowNotificationImage.tsx b/src/screens/Home/Views/Setting/settings/Player/IsShowNotificationImage.tsx index 6c84072..6d83e2c 100644 --- a/src/screens/Home/Views/Setting/settings/Player/IsShowNotificationImage.tsx +++ b/src/screens/Home/Views/Setting/settings/Player/IsShowNotificationImage.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/Player/MaxCache.tsx b/src/screens/Home/Views/Setting/settings/Player/MaxCache.tsx index 1958e15..71b9ab4 100644 --- a/src/screens/Home/Views/Setting/settings/Player/MaxCache.tsx +++ b/src/screens/Home/Views/Setting/settings/Player/MaxCache.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { View } from 'react-native' import InputItem, { type InputItemProps } from '../../components/InputItem' diff --git a/src/screens/Home/Views/Setting/settings/Player/index.tsx b/src/screens/Home/Views/Setting/settings/Player/index.tsx index 178dddc..010a8d4 100644 --- a/src/screens/Home/Views/Setting/settings/Player/index.tsx +++ b/src/screens/Home/Views/Setting/settings/Player/index.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import Section from '../../components/Section' import IsSavePlayTime from './IsSavePlayTime' diff --git a/src/screens/Home/Views/Setting/settings/Search/IsShowHistorySearch.tsx b/src/screens/Home/Views/Setting/settings/Search/IsShowHistorySearch.tsx index edaf820..ebec9c6 100644 --- a/src/screens/Home/Views/Setting/settings/Search/IsShowHistorySearch.tsx +++ b/src/screens/Home/Views/Setting/settings/Search/IsShowHistorySearch.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/Search/IsShowHotSearch.tsx b/src/screens/Home/Views/Setting/settings/Search/IsShowHotSearch.tsx index 8334d5c..123f753 100644 --- a/src/screens/Home/Views/Setting/settings/Search/IsShowHotSearch.tsx +++ b/src/screens/Home/Views/Setting/settings/Search/IsShowHotSearch.tsx @@ -1,7 +1,7 @@ import { updateSetting } from '@/core/common' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/Home/Views/Setting/settings/Search/index.tsx b/src/screens/Home/Views/Setting/settings/Search/index.tsx index 5a83ea3..b73b227 100644 --- a/src/screens/Home/Views/Setting/settings/Search/index.tsx +++ b/src/screens/Home/Views/Setting/settings/Search/index.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import Section from '../../components/Section' import IsShowHotSearch from './IsShowHotSearch' diff --git a/src/screens/Home/Views/Setting/settings/Sync/History.tsx b/src/screens/Home/Views/Setting/settings/Sync/History.tsx index 762d3c3..cd9b059 100644 --- a/src/screens/Home/Views/Setting/settings/Sync/History.tsx +++ b/src/screens/Home/Views/Setting/settings/Sync/History.tsx @@ -1,4 +1,4 @@ -import React, { memo, useRef, useState, useCallback, useImperativeHandle, forwardRef } from 'react' +import { memo, useRef, useState, useCallback, useImperativeHandle, forwardRef } from 'react' import { View, TouchableOpacity, ScrollView } from 'react-native' // import { gzip, ungzip } from 'pako' import { Icon } from '@/components/common/Icon' diff --git a/src/screens/Home/Views/Setting/settings/Sync/IsEnable.tsx b/src/screens/Home/Views/Setting/settings/Sync/IsEnable.tsx index 3881a8e..53d0f33 100644 --- a/src/screens/Home/Views/Setting/settings/Sync/IsEnable.tsx +++ b/src/screens/Home/Views/Setting/settings/Sync/IsEnable.tsx @@ -1,4 +1,4 @@ -import React, { memo, useCallback, useState, useEffect, useRef, useMemo } from 'react' +import { memo, useCallback, useState, useEffect, useRef, useMemo } from 'react' import { View } from 'react-native' import CheckBoxItem from '../../components/CheckBoxItem' diff --git a/src/screens/Home/Views/Setting/settings/Sync/index.tsx b/src/screens/Home/Views/Setting/settings/Sync/index.tsx index e07eaf1..b96885e 100644 --- a/src/screens/Home/Views/Setting/settings/Sync/index.tsx +++ b/src/screens/Home/Views/Setting/settings/Sync/index.tsx @@ -1,4 +1,4 @@ -import React, { memo, useState } from 'react' +import { memo, useState } from 'react' import Section from '../../components/Section' import IsEnable from './IsEnable' diff --git a/src/screens/Home/Views/Setting/settings/Sync/isEnable.tsx.bak b/src/screens/Home/Views/Setting/settings/Sync/isEnable.tsx.bak index c3f07cf..4f72a0b 100644 --- a/src/screens/Home/Views/Setting/settings/Sync/isEnable.tsx.bak +++ b/src/screens/Home/Views/Setting/settings/Sync/isEnable.tsx.bak @@ -1,4 +1,4 @@ -import React, { memo, useState, useEffect, useRef } from 'react' +import { memo, useState, useEffect, useRef } from 'react' import { View } from 'react-native' import CheckBoxItem from '../../components/CheckBoxItem' diff --git a/src/screens/Home/Views/Setting/settings/Theme/IsAutoTheme.tsx b/src/screens/Home/Views/Setting/settings/Theme/IsAutoTheme.tsx index bb9ef80..925a5cc 100644 --- a/src/screens/Home/Views/Setting/settings/Theme/IsAutoTheme.tsx +++ b/src/screens/Home/Views/Setting/settings/Theme/IsAutoTheme.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import CheckBoxItem from '../../components/CheckBoxItem' diff --git a/src/screens/Home/Views/Setting/settings/Theme/IsHideBgDark.tsx b/src/screens/Home/Views/Setting/settings/Theme/IsHideBgDark.tsx index 360587e..a71d768 100644 --- a/src/screens/Home/Views/Setting/settings/Theme/IsHideBgDark.tsx +++ b/src/screens/Home/Views/Setting/settings/Theme/IsHideBgDark.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import CheckBoxItem from '../../components/CheckBoxItem' diff --git a/src/screens/Home/Views/Setting/settings/Theme/Theme.tsx b/src/screens/Home/Views/Setting/settings/Theme/Theme.tsx index 139fc3a..8fda1f1 100644 --- a/src/screens/Home/Views/Setting/settings/Theme/Theme.tsx +++ b/src/screens/Home/Views/Setting/settings/Theme/Theme.tsx @@ -1,4 +1,4 @@ -import React, { memo, useCallback, useEffect, useMemo, useState } from 'react' +import { memo, useCallback, useEffect, useMemo, useState } from 'react' import { View, ImageBackground, TouchableOpacity, InteractionManager, type ImageSourcePropType } from 'react-native' import { setTheme } from '@/core/theme' import { useI18n } from '@/lang' diff --git a/src/screens/Home/Views/Setting/settings/Theme/index.tsx b/src/screens/Home/Views/Setting/settings/Theme/index.tsx index af0d876..0e117a0 100644 --- a/src/screens/Home/Views/Setting/settings/Theme/index.tsx +++ b/src/screens/Home/Views/Setting/settings/Theme/index.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' // import Section from '../../components/Section' import Theme from './Theme' diff --git a/src/screens/Home/Views/Setting/settings/Version.tsx b/src/screens/Home/Views/Setting/settings/Version.tsx index e5e11ca..e58f783 100644 --- a/src/screens/Home/Views/Setting/settings/Version.tsx +++ b/src/screens/Home/Views/Setting/settings/Version.tsx @@ -1,4 +1,4 @@ -import React, { memo, useState, useEffect } from 'react' +import { memo, useState, useEffect } from 'react' import { StyleSheet, View } from 'react-native' import Section from '../components/Section' diff --git a/src/screens/Home/Views/SongList/Content.tsx b/src/screens/Home/Views/SongList/Content.tsx index 56f5840..7764f06 100644 --- a/src/screens/Home/Views/SongList/Content.tsx +++ b/src/screens/Home/Views/SongList/Content.tsx @@ -1,5 +1,5 @@ import { getSongListSetting, saveSongListSetting } from '@/utils/data' -import React, { useEffect, useRef } from 'react' +import { useEffect, useRef } from 'react' import { StyleSheet, View } from 'react-native' // import List from './List/List' diff --git a/src/screens/Home/Views/SongList/HeaderBar/OpenList/Modal.tsx b/src/screens/Home/Views/SongList/HeaderBar/OpenList/Modal.tsx index d5c7f54..8a4d42c 100644 --- a/src/screens/Home/Views/SongList/HeaderBar/OpenList/Modal.tsx +++ b/src/screens/Home/Views/SongList/HeaderBar/OpenList/Modal.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useImperativeHandle, forwardRef, useState } from 'react' +import { useRef, useImperativeHandle, forwardRef, useState } from 'react' import ConfirmAlert, { type ConfirmAlertType } from '@/components/common/ConfirmAlert' import Text from '@/components/common/Text' import { View } from 'react-native' diff --git a/src/screens/Home/Views/SongList/HeaderBar/OpenList/index.tsx b/src/screens/Home/Views/SongList/HeaderBar/OpenList/index.tsx index a4de015..60bdf01 100644 --- a/src/screens/Home/Views/SongList/HeaderBar/OpenList/index.tsx +++ b/src/screens/Home/Views/SongList/HeaderBar/OpenList/index.tsx @@ -1,4 +1,4 @@ -import React, { useRef, forwardRef, useImperativeHandle } from 'react' +import { useRef, forwardRef, useImperativeHandle } from 'react' // import { Icon } from '@/components/common/Icon' import Button from '@/components/common/Button' // import { navigations } from '@/navigation' diff --git a/src/screens/Home/Views/SongList/HeaderBar/SortTab.tsx b/src/screens/Home/Views/SongList/HeaderBar/SortTab.tsx index fedf9ce..d90bd24 100644 --- a/src/screens/Home/Views/SongList/HeaderBar/SortTab.tsx +++ b/src/screens/Home/Views/SongList/HeaderBar/SortTab.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useMemo, useRef, useState } from 'react' +import { forwardRef, useImperativeHandle, useMemo, useRef, useState } from 'react' import { ScrollView, TouchableOpacity } from 'react-native' import songlistState, { type SortInfo, type Source } from '@/store/songlist/state' import { useI18n } from '@/lang' diff --git a/src/screens/Home/Views/SongList/HeaderBar/SourceSelector.tsx b/src/screens/Home/Views/SongList/HeaderBar/SourceSelector.tsx index 1b16d45..950b33e 100644 --- a/src/screens/Home/Views/SongList/HeaderBar/SourceSelector.tsx +++ b/src/screens/Home/Views/SongList/HeaderBar/SourceSelector.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useRef } from 'react' +import { forwardRef, useImperativeHandle, useRef } from 'react' import { StyleSheet, View, type ViewStyle } from 'react-native' import { createStyle } from '@/utils/tools' diff --git a/src/screens/Home/Views/SongList/HeaderBar/Tag/CurrentTagBtn.tsx b/src/screens/Home/Views/SongList/HeaderBar/Tag/CurrentTagBtn.tsx index 8a95df0..a75adc0 100644 --- a/src/screens/Home/Views/SongList/HeaderBar/Tag/CurrentTagBtn.tsx +++ b/src/screens/Home/Views/SongList/HeaderBar/Tag/CurrentTagBtn.tsx @@ -2,7 +2,7 @@ import Button from '@/components/common/Button' import Text from '@/components/common/Text' import { useI18n } from '@/lang' import { createStyle } from '@/utils/tools' -import React, { forwardRef, useImperativeHandle, useState } from 'react' +import { forwardRef, useImperativeHandle, useState } from 'react' export interface CurrentTagBtnProps { diff --git a/src/screens/Home/Views/SongList/HeaderBar/Tag/index.tsx b/src/screens/Home/Views/SongList/HeaderBar/Tag/index.tsx index 8ed9ded..3087abe 100644 --- a/src/screens/Home/Views/SongList/HeaderBar/Tag/index.tsx +++ b/src/screens/Home/Views/SongList/HeaderBar/Tag/index.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useEffect, useImperativeHandle, useRef } from 'react' +import { forwardRef, useEffect, useImperativeHandle, useRef } from 'react' // import TagPopup, { type TagPopupProps, type TagPopupType } from './TagPopup' import CurrentTagBtn, { type CurrentTagBtnType } from './CurrentTagBtn' diff --git a/src/screens/Home/Views/SongList/HeaderBar/index.tsx b/src/screens/Home/Views/SongList/HeaderBar/index.tsx index c61f715..0561e0c 100644 --- a/src/screens/Home/Views/SongList/HeaderBar/index.tsx +++ b/src/screens/Home/Views/SongList/HeaderBar/index.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useRef } from 'react' +import { forwardRef, useImperativeHandle, useRef } from 'react' import { View } from 'react-native' // import { useGetter, useDispatch } from '@/store' diff --git a/src/screens/Home/Views/SongList/List.tsx b/src/screens/Home/Views/SongList/List.tsx index a784ab7..9f48f9d 100644 --- a/src/screens/Home/Views/SongList/List.tsx +++ b/src/screens/Home/Views/SongList/List.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useEffect, useImperativeHandle, useRef } from 'react' +import { forwardRef, useEffect, useImperativeHandle, useRef } from 'react' import Songlist, { type SonglistProps, type SonglistType } from './components/Songlist' import { clearList, getList, setList, setListInfo } from '@/core/songlist' import songlistState from '@/store/songlist/state' diff --git a/src/screens/Home/Views/SongList/TagList/List.tsx b/src/screens/Home/Views/SongList/TagList/List.tsx index e7329a0..2c113dc 100644 --- a/src/screens/Home/Views/SongList/TagList/List.tsx +++ b/src/screens/Home/Views/SongList/TagList/List.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState, useRef, forwardRef, useImperativeHandle } from 'react' +import { useEffect, useState, useRef, forwardRef, useImperativeHandle } from 'react' import { View, ScrollView } from 'react-native' import { createStyle } from '@/utils/tools' diff --git a/src/screens/Home/Views/SongList/TagList/TagGroup.tsx b/src/screens/Home/Views/SongList/TagList/TagGroup.tsx index ee51d16..805bac0 100644 --- a/src/screens/Home/Views/SongList/TagList/TagGroup.tsx +++ b/src/screens/Home/Views/SongList/TagList/TagGroup.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { View } from 'react-native' import Button from '@/components/common/Button' diff --git a/src/screens/Home/Views/SongList/TagList/index.tsx b/src/screens/Home/Views/SongList/TagList/index.tsx index 95d4fb4..884f2a1 100644 --- a/src/screens/Home/Views/SongList/TagList/index.tsx +++ b/src/screens/Home/Views/SongList/TagList/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef, useState } from 'react' +import { useEffect, useRef, useState } from 'react' import { InteractionManager } from 'react-native' import { type Source } from '@/store/songlist/state' diff --git a/src/screens/Home/Views/SongList/components/Songlist/List.tsx b/src/screens/Home/Views/SongList/components/Songlist/List.tsx index 6c4da6b..926452b 100644 --- a/src/screens/Home/Views/SongList/components/Songlist/List.tsx +++ b/src/screens/Home/Views/SongList/components/Songlist/List.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useState, useMemo, forwardRef, useImperativeHandle } from 'react' +import { useRef, useState, useMemo, forwardRef, useImperativeHandle } from 'react' import { FlatList, View, RefreshControl, type FlatListProps } from 'react-native' import ListItem from './ListItem' diff --git a/src/screens/Home/Views/SongList/components/Songlist/ListItem.tsx b/src/screens/Home/Views/SongList/components/Songlist/ListItem.tsx index c7ced82..8be3e9a 100644 --- a/src/screens/Home/Views/SongList/components/Songlist/ListItem.tsx +++ b/src/screens/Home/Views/SongList/components/Songlist/ListItem.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View, Image, Platform, TouchableOpacity } from 'react-native' import { createStyle } from '@/utils/tools' import { type ListInfoItem } from '@/store/songlist/state' diff --git a/src/screens/Home/Views/SongList/components/Songlist/index.tsx b/src/screens/Home/Views/SongList/components/Songlist/index.tsx index 931201a..cd153ba 100644 --- a/src/screens/Home/Views/SongList/components/Songlist/index.tsx +++ b/src/screens/Home/Views/SongList/components/Songlist/index.tsx @@ -1,4 +1,4 @@ -import React, { useRef, forwardRef, useImperativeHandle } from 'react' +import { useRef, forwardRef, useImperativeHandle } from 'react' import { type ListInfoItem } from '@/store/songlist/state' // import LoadingMask, { LoadingMaskType } from '@/components/common/LoadingMask' import List, { type ListProps, type ListType, type Status } from './List' diff --git a/src/screens/Home/Views/SongList/index.tsx b/src/screens/Home/Views/SongList/index.tsx index a004ca8..0b681b1 100644 --- a/src/screens/Home/Views/SongList/index.tsx +++ b/src/screens/Home/Views/SongList/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef } from 'react' +import { useEffect, useRef } from 'react' import settingState from '@/store/setting/state' import Content from './Content' import TagList from './TagList' diff --git a/src/screens/Home/components/PlayerBar/components/ControlBtn.tsx b/src/screens/Home/components/PlayerBar/components/ControlBtn.tsx index d1b1ce3..e737cd5 100644 --- a/src/screens/Home/components/PlayerBar/components/ControlBtn.tsx +++ b/src/screens/Home/components/PlayerBar/components/ControlBtn.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { TouchableOpacity } from 'react-native' import { Icon } from '@/components/common/Icon' import { useIsPlay } from '@/store/player/hook' diff --git a/src/screens/Home/components/PlayerBar/components/Pic.tsx b/src/screens/Home/components/PlayerBar/components/Pic.tsx index e54c105..9ceca0c 100644 --- a/src/screens/Home/components/PlayerBar/components/Pic.tsx +++ b/src/screens/Home/components/PlayerBar/components/Pic.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View, Image, TouchableOpacity } from 'react-native' import { navigations } from '@/navigation' import { usePlayerMusicInfo } from '@/store/player/hook' diff --git a/src/screens/Home/components/PlayerBar/components/PlayInfo.tsx b/src/screens/Home/components/PlayerBar/components/PlayInfo.tsx index 6c3ef2e..87643ad 100644 --- a/src/screens/Home/components/PlayerBar/components/PlayInfo.tsx +++ b/src/screens/Home/components/PlayerBar/components/PlayInfo.tsx @@ -1,4 +1,4 @@ -import React, { memo, useState } from 'react' +import { memo, useState } from 'react' import { View } from 'react-native' import Progress from '@/components/player/Progress' diff --git a/src/screens/Home/components/PlayerBar/components/Status.tsx b/src/screens/Home/components/PlayerBar/components/Status.tsx index a77bfdc..bae25e1 100644 --- a/src/screens/Home/components/PlayerBar/components/Status.tsx +++ b/src/screens/Home/components/PlayerBar/components/Status.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useLrcPlay } from '@/plugins/lyric' import { useIsPlay, useStatusText } from '@/store/player/hook' // import { createStyle } from '@/utils/tools' diff --git a/src/screens/Home/components/PlayerBar/components/Title.tsx b/src/screens/Home/components/PlayerBar/components/Title.tsx index 908038a..b07ad50 100644 --- a/src/screens/Home/components/PlayerBar/components/Title.tsx +++ b/src/screens/Home/components/PlayerBar/components/Title.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { TouchableOpacity } from 'react-native' import { navigations } from '@/navigation' import { usePlayerMusicInfo } from '@/store/player/hook' diff --git a/src/screens/Home/components/PlayerBar/index.tsx b/src/screens/Home/components/PlayerBar/index.tsx index 7dcfe6a..facfe2a 100644 --- a/src/screens/Home/components/PlayerBar/index.tsx +++ b/src/screens/Home/components/PlayerBar/index.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { View } from 'react-native' import { useKeyboard } from '@/utils/hooks' diff --git a/src/screens/Home/index.tsx b/src/screens/Home/index.tsx index a2d6419..dc43dd3 100644 --- a/src/screens/Home/index.tsx +++ b/src/screens/Home/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect } from 'react' +import { useEffect } from 'react' import { useDimensions } from '@/utils/hooks' import PageContent from '@/components/PageContent' import { setComponentId } from '@/core/common' diff --git a/src/screens/PlayDetail/Horizontal/Lyric.tsx b/src/screens/PlayDetail/Horizontal/Lyric.tsx index 2ce5bf8..a0ba3d9 100644 --- a/src/screens/PlayDetail/Horizontal/Lyric.tsx +++ b/src/screens/PlayDetail/Horizontal/Lyric.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo, useEffect, useRef } from 'react' +import { memo, useMemo, useEffect, useRef } from 'react' import { View, FlatList, type FlatListProps } from 'react-native' // import { useLayout } from '@/utils/hooks' import { type Line, useLrcPlay, useLrcSet } from '@/plugins/lyric' diff --git a/src/screens/PlayDetail/Horizontal/Pic.tsx b/src/screens/PlayDetail/Horizontal/Pic.tsx index fda7eb2..7dfb8cf 100644 --- a/src/screens/PlayDetail/Horizontal/Pic.tsx +++ b/src/screens/PlayDetail/Horizontal/Pic.tsx @@ -1,4 +1,4 @@ -import React, { memo, useState } from 'react' +import { memo, useState } from 'react' import { View, Image, StyleSheet } from 'react-native' // import { useLayout } from '@/utils/hooks' import { useTheme } from '@/store/theme/hook' diff --git a/src/screens/PlayDetail/Horizontal/Player/ControlBtn.tsx b/src/screens/PlayDetail/Horizontal/Player/ControlBtn.tsx index db4f530..efaaa9f 100644 --- a/src/screens/PlayDetail/Horizontal/Player/ControlBtn.tsx +++ b/src/screens/PlayDetail/Horizontal/Player/ControlBtn.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { StyleSheet, TouchableOpacity, View } from 'react-native' import { Icon } from '@/components/common/Icon' import { useTheme } from '@/store/theme/hook' diff --git a/src/screens/PlayDetail/Horizontal/Player/MoreBtn/Btn.tsx b/src/screens/PlayDetail/Horizontal/Player/MoreBtn/Btn.tsx index 9f7e2fb..1766905 100644 --- a/src/screens/PlayDetail/Horizontal/Player/MoreBtn/Btn.tsx +++ b/src/screens/PlayDetail/Horizontal/Player/MoreBtn/Btn.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { TouchableOpacity } from 'react-native' import { Icon } from '@/components/common/Icon' import { createStyle } from '@/utils/tools' diff --git a/src/screens/PlayDetail/Horizontal/Player/MoreBtn/MusicAddBtn.tsx b/src/screens/PlayDetail/Horizontal/Player/MoreBtn/MusicAddBtn.tsx index 9ae309c..9e3c920 100644 --- a/src/screens/PlayDetail/Horizontal/Player/MoreBtn/MusicAddBtn.tsx +++ b/src/screens/PlayDetail/Horizontal/Player/MoreBtn/MusicAddBtn.tsx @@ -1,4 +1,4 @@ -import React, { useRef } from 'react' +import { useRef } from 'react' import MusicAddModal, { type MusicAddModalType } from '@/components/MusicAddModal' import playerState from '@/store/player/state' import Btn from './Btn' diff --git a/src/screens/PlayDetail/Horizontal/Player/MoreBtn/PlayModeBtn.tsx b/src/screens/PlayDetail/Horizontal/Player/MoreBtn/PlayModeBtn.tsx index 35227f8..d480824 100644 --- a/src/screens/PlayDetail/Horizontal/Player/MoreBtn/PlayModeBtn.tsx +++ b/src/screens/PlayDetail/Horizontal/Player/MoreBtn/PlayModeBtn.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { toast } from '@/utils/tools' import { MUSIC_TOGGLE_MODE_LIST, MUSIC_TOGGLE_MODE } from '@/config/constant' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/PlayDetail/Horizontal/Player/MoreBtn/TimeoutExitBtn.tsx b/src/screens/PlayDetail/Horizontal/Player/MoreBtn/TimeoutExitBtn.tsx index cd6083e..b857979 100644 --- a/src/screens/PlayDetail/Horizontal/Player/MoreBtn/TimeoutExitBtn.tsx +++ b/src/screens/PlayDetail/Horizontal/Player/MoreBtn/TimeoutExitBtn.tsx @@ -1,4 +1,4 @@ -import React, { memo, useRef } from 'react' +import { memo, useRef } from 'react' import TimeoutExitEditModal, { type TimeoutExitEditModalType, useTimeInfo } from '@/components/TimeoutExitEditModal' import { useTheme } from '@/store/theme/hook' import Btn from './Btn' diff --git a/src/screens/PlayDetail/Horizontal/Player/MoreBtn/index.tsx b/src/screens/PlayDetail/Horizontal/Player/MoreBtn/index.tsx index 110c66c..ffd5ed2 100644 --- a/src/screens/PlayDetail/Horizontal/Player/MoreBtn/index.tsx +++ b/src/screens/PlayDetail/Horizontal/Player/MoreBtn/index.tsx @@ -1,5 +1,4 @@ import { createStyle } from '@/utils/tools' -import React from 'react' import { View } from 'react-native' import PlayModeBtn from './PlayModeBtn' import MusicAddBtn from './MusicAddBtn' diff --git a/src/screens/PlayDetail/Horizontal/Player/PlayInfo.tsx b/src/screens/PlayDetail/Horizontal/Player/PlayInfo.tsx index c1cec2d..fdc3238 100644 --- a/src/screens/PlayDetail/Horizontal/Player/PlayInfo.tsx +++ b/src/screens/PlayDetail/Horizontal/Player/PlayInfo.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import Progress from './Progress' diff --git a/src/screens/PlayDetail/Horizontal/Player/Progress.tsx b/src/screens/PlayDetail/Horizontal/Player/Progress.tsx index 3bb4d47..9946646 100644 --- a/src/screens/PlayDetail/Horizontal/Player/Progress.tsx +++ b/src/screens/PlayDetail/Horizontal/Player/Progress.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { View, Pressable, type GestureResponderEvent } from 'react-native' import { useLayout } from '@/utils/hooks' import { createStyle } from '@/utils/tools' diff --git a/src/screens/PlayDetail/Horizontal/Player/Status.tsx b/src/screens/PlayDetail/Horizontal/Player/Status.tsx index 2c473f9..14be6d6 100644 --- a/src/screens/PlayDetail/Horizontal/Player/Status.tsx +++ b/src/screens/PlayDetail/Horizontal/Player/Status.tsx @@ -1,4 +1,3 @@ -import React from 'react' // import { useLrcPlay } from '@/plugins/lyric' import { useStatusText } from '@/store/player/hook' // import { createStyle } from '@/utils/tools' diff --git a/src/screens/PlayDetail/Horizontal/Player/index.tsx b/src/screens/PlayDetail/Horizontal/Player/index.tsx index fc82871..5283ed5 100644 --- a/src/screens/PlayDetail/Horizontal/Player/index.tsx +++ b/src/screens/PlayDetail/Horizontal/Player/index.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' // import Title from './components/Title' diff --git a/src/screens/PlayDetail/Horizontal/components/Btn.tsx b/src/screens/PlayDetail/Horizontal/components/Btn.tsx index 7dc30b6..eb84b3d 100644 --- a/src/screens/PlayDetail/Horizontal/components/Btn.tsx +++ b/src/screens/PlayDetail/Horizontal/components/Btn.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { TouchableOpacity } from 'react-native' import { Icon } from '@/components/common/Icon' import { createStyle } from '@/utils/tools' diff --git a/src/screens/PlayDetail/Horizontal/components/CommentBtn.tsx b/src/screens/PlayDetail/Horizontal/components/CommentBtn.tsx index 36abe9d..e800102 100644 --- a/src/screens/PlayDetail/Horizontal/components/CommentBtn.tsx +++ b/src/screens/PlayDetail/Horizontal/components/CommentBtn.tsx @@ -1,4 +1,3 @@ -import React from 'react' import Btn from './Btn' import { navigations } from '@/navigation' import commonState from '@/store/common/state' diff --git a/src/screens/PlayDetail/Horizontal/components/Header.tsx b/src/screens/PlayDetail/Horizontal/components/Header.tsx index d9a977a..3577c96 100644 --- a/src/screens/PlayDetail/Horizontal/components/Header.tsx +++ b/src/screens/PlayDetail/Horizontal/components/Header.tsx @@ -1,4 +1,4 @@ -import React, { memo, useRef } from 'react' +import { memo, useRef } from 'react' import { View, StyleSheet, TouchableOpacity } from 'react-native' diff --git a/src/screens/PlayDetail/Horizontal/index.tsx b/src/screens/PlayDetail/Horizontal/index.tsx index 9b5fabe..0e5648d 100644 --- a/src/screens/PlayDetail/Horizontal/index.tsx +++ b/src/screens/PlayDetail/Horizontal/index.tsx @@ -1,4 +1,4 @@ -import React, { memo, useEffect } from 'react' +import { memo, useEffect } from 'react' import { View, StyleSheet, AppState } from 'react-native' import { screenkeepAwake, screenUnkeepAwake } from '@/utils/nativeModules/utils' import StatusBar from '@/components/common/StatusBar' diff --git a/src/screens/PlayDetail/Vertical/Lyric.tsx b/src/screens/PlayDetail/Vertical/Lyric.tsx index dbf926d..dc954e3 100644 --- a/src/screens/PlayDetail/Vertical/Lyric.tsx +++ b/src/screens/PlayDetail/Vertical/Lyric.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo, useEffect, useRef } from 'react' +import { memo, useMemo, useEffect, useRef } from 'react' import { View, FlatList, type FlatListProps } from 'react-native' // import { useLayout } from '@/utils/hooks' import { type Line, useLrcPlay, useLrcSet } from '@/plugins/lyric' diff --git a/src/screens/PlayDetail/Vertical/Pic.tsx b/src/screens/PlayDetail/Vertical/Pic.tsx index eca4c34..dfcd7a2 100644 --- a/src/screens/PlayDetail/Vertical/Pic.tsx +++ b/src/screens/PlayDetail/Vertical/Pic.tsx @@ -1,4 +1,4 @@ -import React, { memo, useState } from 'react' +import { memo, useState } from 'react' import { View, Image } from 'react-native' // import { useLayout } from '@/utils/hooks' import { createStyle } from '@/utils/tools' diff --git a/src/screens/PlayDetail/Vertical/Player/components/ControlBtn.tsx b/src/screens/PlayDetail/Vertical/Player/components/ControlBtn.tsx index 12b7e83..29cd130 100644 --- a/src/screens/PlayDetail/Vertical/Player/components/ControlBtn.tsx +++ b/src/screens/PlayDetail/Vertical/Player/components/ControlBtn.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { StyleSheet, TouchableOpacity } from 'react-native' import { Icon } from '@/components/common/Icon' import { useTheme } from '@/store/theme/hook' diff --git a/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/Btn.tsx b/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/Btn.tsx index 6524f7b..313bd50 100644 --- a/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/Btn.tsx +++ b/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/Btn.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { TouchableOpacity } from 'react-native' import { Icon } from '@/components/common/Icon' import { createStyle } from '@/utils/tools' diff --git a/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/CommentBtn.tsx b/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/CommentBtn.tsx index 36abe9d..e800102 100644 --- a/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/CommentBtn.tsx +++ b/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/CommentBtn.tsx @@ -1,4 +1,3 @@ -import React from 'react' import Btn from './Btn' import { navigations } from '@/navigation' import commonState from '@/store/common/state' diff --git a/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/MusicAddBtn.tsx b/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/MusicAddBtn.tsx index 9ae309c..9e3c920 100644 --- a/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/MusicAddBtn.tsx +++ b/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/MusicAddBtn.tsx @@ -1,4 +1,4 @@ -import React, { useRef } from 'react' +import { useRef } from 'react' import MusicAddModal, { type MusicAddModalType } from '@/components/MusicAddModal' import playerState from '@/store/player/state' import Btn from './Btn' diff --git a/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/PlayModeBtn.tsx b/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/PlayModeBtn.tsx index 35227f8..d480824 100644 --- a/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/PlayModeBtn.tsx +++ b/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/PlayModeBtn.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { toast } from '@/utils/tools' import { MUSIC_TOGGLE_MODE_LIST, MUSIC_TOGGLE_MODE } from '@/config/constant' import { useSettingValue } from '@/store/setting/hook' diff --git a/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/TimeoutExitBtn.tsx b/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/TimeoutExitBtn.tsx index cd6083e..b857979 100644 --- a/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/TimeoutExitBtn.tsx +++ b/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/TimeoutExitBtn.tsx @@ -1,4 +1,4 @@ -import React, { memo, useRef } from 'react' +import { memo, useRef } from 'react' import TimeoutExitEditModal, { type TimeoutExitEditModalType, useTimeInfo } from '@/components/TimeoutExitEditModal' import { useTheme } from '@/store/theme/hook' import Btn from './Btn' diff --git a/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/index.tsx b/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/index.tsx index 4276c84..2861d1b 100644 --- a/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/index.tsx +++ b/src/screens/PlayDetail/Vertical/Player/components/MoreBtn/index.tsx @@ -1,5 +1,4 @@ import { createStyle } from '@/utils/tools' -import React from 'react' import { View } from 'react-native' import PlayModeBtn from './PlayModeBtn' import MusicAddBtn from './MusicAddBtn' diff --git a/src/screens/PlayDetail/Vertical/Player/components/PlayInfo.tsx b/src/screens/PlayDetail/Vertical/Player/components/PlayInfo.tsx index 59cf86f..9fb6513 100644 --- a/src/screens/PlayDetail/Vertical/Player/components/PlayInfo.tsx +++ b/src/screens/PlayDetail/Vertical/Player/components/PlayInfo.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import Progress from './Progress' diff --git a/src/screens/PlayDetail/Vertical/Player/components/Progress.tsx b/src/screens/PlayDetail/Vertical/Player/components/Progress.tsx index a530783..0c73b79 100644 --- a/src/screens/PlayDetail/Vertical/Player/components/Progress.tsx +++ b/src/screens/PlayDetail/Vertical/Player/components/Progress.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { View, Pressable, type GestureResponderEvent } from 'react-native' import { useLayout } from '@/utils/hooks' import { createStyle } from '@/utils/tools' diff --git a/src/screens/PlayDetail/Vertical/Player/components/Status.tsx b/src/screens/PlayDetail/Vertical/Player/components/Status.tsx index d52a2b6..5f236a4 100644 --- a/src/screens/PlayDetail/Vertical/Player/components/Status.tsx +++ b/src/screens/PlayDetail/Vertical/Player/components/Status.tsx @@ -1,4 +1,3 @@ -import React from 'react' // import { useLrcPlay } from '@/plugins/lyric' import { useStatusText } from '@/store/player/hook' import { createStyle } from '@/utils/tools' diff --git a/src/screens/PlayDetail/Vertical/Player/index.tsx b/src/screens/PlayDetail/Vertical/Player/index.tsx index 2115284..596823c 100644 --- a/src/screens/PlayDetail/Vertical/Player/index.tsx +++ b/src/screens/PlayDetail/Vertical/Player/index.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' // import Title from './components/Title' diff --git a/src/screens/PlayDetail/Vertical/components/Header.tsx b/src/screens/PlayDetail/Vertical/components/Header.tsx index c7e8161..a5ac731 100644 --- a/src/screens/PlayDetail/Vertical/components/Header.tsx +++ b/src/screens/PlayDetail/Vertical/components/Header.tsx @@ -1,4 +1,4 @@ -import React, { memo, useRef } from 'react' +import { memo, useRef } from 'react' import { View, StyleSheet, TouchableOpacity } from 'react-native' diff --git a/src/screens/PlayDetail/Vertical/index.tsx b/src/screens/PlayDetail/Vertical/index.tsx index 080185d..ac61b40 100644 --- a/src/screens/PlayDetail/Vertical/index.tsx +++ b/src/screens/PlayDetail/Vertical/index.tsx @@ -1,4 +1,4 @@ -import React, { memo, useState, useRef, useMemo, useEffect } from 'react' +import { memo, useState, useRef, useMemo, useEffect } from 'react' import { View, StyleSheet, AppState } from 'react-native' import Header from './components/Header' diff --git a/src/screens/PlayDetail/components/SettingPopup/index.tsx b/src/screens/PlayDetail/components/SettingPopup/index.tsx index 37f84a7..db9684f 100644 --- a/src/screens/PlayDetail/components/SettingPopup/index.tsx +++ b/src/screens/PlayDetail/components/SettingPopup/index.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react' +import { forwardRef, useImperativeHandle, useRef, useState } from 'react' import { ScrollView, View } from 'react-native' import Popup, { type PopupType, type PopupProps } from '@/components/common/Popup' import { useI18n } from '@/lang' diff --git a/src/screens/PlayDetail/components/SettingPopup/settings/SettingLrcAlign.tsx b/src/screens/PlayDetail/components/SettingPopup/settings/SettingLrcAlign.tsx index 9591fc9..5327d44 100644 --- a/src/screens/PlayDetail/components/SettingPopup/settings/SettingLrcAlign.tsx +++ b/src/screens/PlayDetail/components/SettingPopup/settings/SettingLrcAlign.tsx @@ -1,4 +1,4 @@ -import React, { useMemo } from 'react' +import { useMemo } from 'react' import { View } from 'react-native' import Text from '@/components/common/Text' diff --git a/src/screens/PlayDetail/components/SettingPopup/settings/SettingLrcFontSize.tsx b/src/screens/PlayDetail/components/SettingPopup/settings/SettingLrcFontSize.tsx index 4241d57..c6dcd71 100644 --- a/src/screens/PlayDetail/components/SettingPopup/settings/SettingLrcFontSize.tsx +++ b/src/screens/PlayDetail/components/SettingPopup/settings/SettingLrcFontSize.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react' +import { useState } from 'react' import { View } from 'react-native' import { useTheme } from '@/store/theme/hook' diff --git a/src/screens/PlayDetail/components/SettingPopup/settings/SettingPlaybackRate.tsx b/src/screens/PlayDetail/components/SettingPopup/settings/SettingPlaybackRate.tsx index 2212910..ae07f54 100644 --- a/src/screens/PlayDetail/components/SettingPopup/settings/SettingPlaybackRate.tsx +++ b/src/screens/PlayDetail/components/SettingPopup/settings/SettingPlaybackRate.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react' +import { useState } from 'react' import { View } from 'react-native' import { useTheme } from '@/store/theme/hook' diff --git a/src/screens/PlayDetail/components/SettingPopup/settings/SettingVolume.tsx b/src/screens/PlayDetail/components/SettingPopup/settings/SettingVolume.tsx index 4e0638d..3cfb151 100644 --- a/src/screens/PlayDetail/components/SettingPopup/settings/SettingVolume.tsx +++ b/src/screens/PlayDetail/components/SettingPopup/settings/SettingVolume.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react' +import { useState } from 'react' import { View } from 'react-native' import { useTheme } from '@/store/theme/hook' diff --git a/src/screens/PlayDetail/index.tsx b/src/screens/PlayDetail/index.tsx index 232f783..80804c3 100644 --- a/src/screens/PlayDetail/index.tsx +++ b/src/screens/PlayDetail/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect } from 'react' +import { useEffect } from 'react' // import { View, StyleSheet } from 'react-native' import { useDimensions } from '@/utils/hooks' diff --git a/src/screens/SonglistDetail/ActionBar.tsx b/src/screens/SonglistDetail/ActionBar.tsx index 5c7909b..c63fcd3 100644 --- a/src/screens/SonglistDetail/ActionBar.tsx +++ b/src/screens/SonglistDetail/ActionBar.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import Button from '@/components/common/Button' diff --git a/src/screens/SonglistDetail/Header.tsx b/src/screens/SonglistDetail/Header.tsx index 3d4dd46..9e59457 100644 --- a/src/screens/SonglistDetail/Header.tsx +++ b/src/screens/SonglistDetail/Header.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useImperativeHandle, useState } from 'react' +import { forwardRef, useImperativeHandle, useState } from 'react' import { View, Image } from 'react-native' import { BorderWidths } from '@/theme' import ButtonBar from './ActionBar' diff --git a/src/screens/SonglistDetail/MusicList.tsx b/src/screens/SonglistDetail/MusicList.tsx index d7f8aa9..3b78527 100644 --- a/src/screens/SonglistDetail/MusicList.tsx +++ b/src/screens/SonglistDetail/MusicList.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef } from 'react' +import { forwardRef, useEffect, useImperativeHandle, useMemo, useRef } from 'react' import OnlineList, { type OnlineListType, type OnlineListProps } from '@/components/OnlineList' import { clearListDetail, getListDetail, setListDetail, setListDetailInfo } from '@/core/songlist' import songlistState from '@/store/songlist/state' diff --git a/src/screens/SonglistDetail/PlayerBar/ControlBtn.tsx b/src/screens/SonglistDetail/PlayerBar/ControlBtn.tsx index d1b1ce3..e737cd5 100644 --- a/src/screens/SonglistDetail/PlayerBar/ControlBtn.tsx +++ b/src/screens/SonglistDetail/PlayerBar/ControlBtn.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { TouchableOpacity } from 'react-native' import { Icon } from '@/components/common/Icon' import { useIsPlay } from '@/store/player/hook' diff --git a/src/screens/SonglistDetail/PlayerBar/Pic.tsx b/src/screens/SonglistDetail/PlayerBar/Pic.tsx index 221d206..2c0cb44 100644 --- a/src/screens/SonglistDetail/PlayerBar/Pic.tsx +++ b/src/screens/SonglistDetail/PlayerBar/Pic.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View, Image, TouchableOpacity } from 'react-native' import { navigations } from '@/navigation' import { usePlayerMusicInfo } from '@/store/player/hook' diff --git a/src/screens/SonglistDetail/PlayerBar/PlayInfo.tsx b/src/screens/SonglistDetail/PlayerBar/PlayInfo.tsx index 4ce1549..324d789 100644 --- a/src/screens/SonglistDetail/PlayerBar/PlayInfo.tsx +++ b/src/screens/SonglistDetail/PlayerBar/PlayInfo.tsx @@ -1,4 +1,4 @@ -import React, { memo } from 'react' +import { memo } from 'react' import { View } from 'react-native' import Progress from '@/components/player/Progress' diff --git a/src/screens/SonglistDetail/PlayerBar/Status.tsx b/src/screens/SonglistDetail/PlayerBar/Status.tsx index 12684d6..bfb907b 100644 --- a/src/screens/SonglistDetail/PlayerBar/Status.tsx +++ b/src/screens/SonglistDetail/PlayerBar/Status.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useLrcPlay } from '@/plugins/lyric' import { useIsPlay, useStatusText } from '@/store/player/hook' // import { createStyle } from '@/utils/tools' diff --git a/src/screens/SonglistDetail/PlayerBar/Title.tsx b/src/screens/SonglistDetail/PlayerBar/Title.tsx index ab01073..e60cfc7 100644 --- a/src/screens/SonglistDetail/PlayerBar/Title.tsx +++ b/src/screens/SonglistDetail/PlayerBar/Title.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { TouchableOpacity } from 'react-native' import { navigations } from '@/navigation' import { usePlayerMusicInfo } from '@/store/player/hook' diff --git a/src/screens/SonglistDetail/PlayerBar/index.tsx b/src/screens/SonglistDetail/PlayerBar/index.tsx index 8708361..711e0b5 100644 --- a/src/screens/SonglistDetail/PlayerBar/index.tsx +++ b/src/screens/SonglistDetail/PlayerBar/index.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react' +import { memo, useMemo } from 'react' import { View } from 'react-native' import { useKeyboard } from '@/utils/hooks' diff --git a/src/screens/SonglistDetail/index.tsx b/src/screens/SonglistDetail/index.tsx index a2d7b31..e5c59d0 100644 --- a/src/screens/SonglistDetail/index.tsx +++ b/src/screens/SonglistDetail/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef } from 'react' +import { useEffect, useRef } from 'react' import MusicList, { type MusicListType } from './MusicList' import PageContent from '@/components/PageContent' diff --git a/src/store/Provider/Provider.tsx b/src/store/Provider/Provider.tsx index 5da51e9..44876d7 100644 --- a/src/store/Provider/Provider.tsx +++ b/src/store/Provider/Provider.tsx @@ -1,4 +1,4 @@ -// import React, { PureComponent } from 'react' +// import { PureComponent } from 'react' // import PropTypes from 'prop-types' // import { Provider } from 'react-redux' // import { store } from '../store' diff --git a/src/store/Provider/ThemeProvider.tsx b/src/store/Provider/ThemeProvider.tsx index 7588315..de88867 100644 --- a/src/store/Provider/ThemeProvider.tsx +++ b/src/store/Provider/ThemeProvider.tsx @@ -1,4 +1,4 @@ -import React, { memo, useEffect, useState } from 'react' +import { memo, useEffect, useState } from 'react' import themeState, { ThemeContext } from '../theme/state' diff --git a/tsconfig.json b/tsconfig.json index 1f7ea06..d1e56ae 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,5 +20,5 @@ // "@utils": ["src/utils"], } }, - "exclude": ["node_modules", "build", "dist", ".eslintrc.js"] + "exclude": ["node_modules", "build", "dist"] }