-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
577af8a
commit 7e4e11f
Showing
170 changed files
with
3,259 additions
and
765 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
frontend/src/Components/Filter/Builder/ProtocolFilterBuilderRowValue.js
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
frontend/src/Components/Filter/Builder/ProtocolFilterBuilderRowValueConnector.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { connect } from 'react-redux'; | ||
import { createSelector } from 'reselect'; | ||
import FilterBuilderRowValue from './FilterBuilderRowValue'; | ||
|
||
function createMapStateToProps() { | ||
return createSelector( | ||
(state) => state.settings.downloadClients, | ||
(state) => state.settings.indexers, | ||
(downloadClients, indexers) => { | ||
const protocols = Array.from(new Set([ | ||
...downloadClients.items.map((i) => i.protocol), | ||
...indexers.items.map((i) => i.protocol) | ||
])); | ||
|
||
console.log(protocols); | ||
const tagList = protocols.map((protocol) => { | ||
return { | ||
id: protocol, | ||
name: protocol.replace('DownloadProtocol', '') | ||
}; | ||
}); | ||
|
||
return { | ||
tagList | ||
}; | ||
} | ||
); | ||
} | ||
|
||
export default connect(createMapStateToProps)(FilterBuilderRowValue); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export const QUALITY_PROFILE_ITEM = 'qualityProfileItem'; | ||
export const DELAY_PROFILE = 'delayProfile'; | ||
export const DOWNLOAD_PROTOCOL_ITEM = 'downloadProtocolItem'; | ||
export const TABLE_COLUMN = 'tableColumn'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.