add my publishes uri selector
This commit is contained in:
parent
e8466bbeec
commit
82a5f242d0
3 changed files with 9 additions and 0 deletions
3
dist/bundle.es.js
vendored
3
dist/bundle.es.js
vendored
|
@ -1302,6 +1302,8 @@ const selectMyClaims = reselect.createSelector(selectMyActiveClaims, selectClaim
|
||||||
|
|
||||||
const selectMyClaimsWithoutChannels = reselect.createSelector(selectMyClaims, myClaims => myClaims.filter(claim => !claim.name.match(/^@/)));
|
const selectMyClaimsWithoutChannels = reselect.createSelector(selectMyClaims, myClaims => myClaims.filter(claim => !claim.name.match(/^@/)));
|
||||||
|
|
||||||
|
const selectMyClaimUrisWithoutChannels = reselect.createSelector(selectMyClaimsWithoutChannels, myClaims => myClaims.map(claim => `lbry://${claim.name}#${claim.claim_id}`));
|
||||||
|
|
||||||
const selectAllMyClaimsByOutpoint = reselect.createSelector(selectMyClaimsRaw, claims => new Set(claims && claims.length ? claims.map(claim => `${claim.txid}:${claim.nout}`) : null));
|
const selectAllMyClaimsByOutpoint = reselect.createSelector(selectMyClaimsRaw, claims => new Set(claims && claims.length ? claims.map(claim => `${claim.txid}:${claim.nout}`) : null));
|
||||||
|
|
||||||
const selectMyClaimsOutpoints = reselect.createSelector(selectMyClaims, myClaims => {
|
const selectMyClaimsOutpoints = reselect.createSelector(selectMyClaims, myClaims => {
|
||||||
|
@ -3997,6 +3999,7 @@ exports.selectLastClaimSearchUris = selectLastClaimSearchUris;
|
||||||
exports.selectLastPurchasedUri = selectLastPurchasedUri;
|
exports.selectLastPurchasedUri = selectLastPurchasedUri;
|
||||||
exports.selectMyActiveClaims = selectMyActiveClaims;
|
exports.selectMyActiveClaims = selectMyActiveClaims;
|
||||||
exports.selectMyChannelClaims = selectMyChannelClaims;
|
exports.selectMyChannelClaims = selectMyChannelClaims;
|
||||||
|
exports.selectMyClaimUrisWithoutChannels = selectMyClaimUrisWithoutChannels;
|
||||||
exports.selectMyClaims = selectMyClaims;
|
exports.selectMyClaims = selectMyClaims;
|
||||||
exports.selectMyClaimsOutpoints = selectMyClaimsOutpoints;
|
exports.selectMyClaimsOutpoints = selectMyClaimsOutpoints;
|
||||||
exports.selectMyClaimsRaw = selectMyClaimsRaw;
|
exports.selectMyClaimsRaw = selectMyClaimsRaw;
|
||||||
|
|
|
@ -157,6 +157,7 @@ export {
|
||||||
selectPendingClaims,
|
selectPendingClaims,
|
||||||
selectMyClaims,
|
selectMyClaims,
|
||||||
selectMyClaimsWithoutChannels,
|
selectMyClaimsWithoutChannels,
|
||||||
|
selectMyClaimUrisWithoutChannels,
|
||||||
selectAllMyClaimsByOutpoint,
|
selectAllMyClaimsByOutpoint,
|
||||||
selectMyClaimsOutpoints,
|
selectMyClaimsOutpoints,
|
||||||
selectFetchingMyChannels,
|
selectFetchingMyChannels,
|
||||||
|
|
|
@ -259,6 +259,11 @@ export const selectMyClaimsWithoutChannels = createSelector(
|
||||||
myClaims => myClaims.filter(claim => !claim.name.match(/^@/))
|
myClaims => myClaims.filter(claim => !claim.name.match(/^@/))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
export const selectMyClaimUrisWithoutChannels = createSelector(
|
||||||
|
selectMyClaimsWithoutChannels,
|
||||||
|
myClaims => myClaims.map(claim => `lbry://${claim.name}#${claim.claim_id}`)
|
||||||
|
);
|
||||||
|
|
||||||
export const selectAllMyClaimsByOutpoint = createSelector(
|
export const selectAllMyClaimsByOutpoint = createSelector(
|
||||||
selectMyClaimsRaw,
|
selectMyClaimsRaw,
|
||||||
claims =>
|
claims =>
|
||||||
|
|
Loading…
Reference in a new issue