bundle
This commit is contained in:
parent
d41a2a8a30
commit
e25af99fb8
1 changed files with 56 additions and 3 deletions
59
dist/bundle.es.js
vendored
59
dist/bundle.es.js
vendored
|
@ -260,6 +260,8 @@ const FETCH_COST_INFO_FAILED = 'FETCH_COST_INFO_FAILED';
|
|||
const TOGGLE_TAG_FOLLOW = 'TOGGLE_TAG_FOLLOW';
|
||||
const TAG_ADD = 'TAG_ADD';
|
||||
const TAG_DELETE = 'TAG_DELETE';
|
||||
// Blocked Channels
|
||||
const TOGGLE_BLOCK_CHANNEL = 'TOGGLE_BLOCK_CHANNEL';
|
||||
|
||||
var action_types = /*#__PURE__*/Object.freeze({
|
||||
WINDOW_FOCUSED: WINDOW_FOCUSED,
|
||||
|
@ -466,7 +468,8 @@ var action_types = /*#__PURE__*/Object.freeze({
|
|||
FETCH_COST_INFO_FAILED: FETCH_COST_INFO_FAILED,
|
||||
TOGGLE_TAG_FOLLOW: TOGGLE_TAG_FOLLOW,
|
||||
TAG_ADD: TAG_ADD,
|
||||
TAG_DELETE: TAG_DELETE
|
||||
TAG_DELETE: TAG_DELETE,
|
||||
TOGGLE_BLOCK_CHANNEL: TOGGLE_BLOCK_CHANNEL
|
||||
});
|
||||
|
||||
const CC_LICENSES = [{
|
||||
|
@ -3432,6 +3435,15 @@ function doCommentCreate(comment = '', claim_id = '', channel, parent_id) {
|
|||
};
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
const doToggleBlockChannel = uri => ({
|
||||
type: TOGGLE_BLOCK_CHANNEL,
|
||||
data: {
|
||||
uri
|
||||
}
|
||||
});
|
||||
|
||||
var _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
const reducers = {};
|
||||
|
@ -4353,6 +4365,30 @@ const tagsReducer = handleActions({
|
|||
}
|
||||
}, defaultState$8);
|
||||
|
||||
//
|
||||
|
||||
const defaultState$9 = {
|
||||
blockedChannels: []
|
||||
};
|
||||
|
||||
const blockChannelReducer = handleActions({
|
||||
[TOGGLE_BLOCK_CHANNEL]: (state, action) => {
|
||||
const { blockedChannels } = state;
|
||||
const { uri } = action.data;
|
||||
let newBlockedChannels = blockedChannels.slice();
|
||||
|
||||
if (newBlockedChannels.includes(uri)) {
|
||||
newBlockedChannels = newBlockedChannels.filter(id => id !== uri);
|
||||
} else {
|
||||
newBlockedChannels.push(uri);
|
||||
}
|
||||
|
||||
return {
|
||||
blockedChannels: newBlockedChannels
|
||||
};
|
||||
}
|
||||
}, defaultState$9);
|
||||
|
||||
var _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
const buildDraftTransaction = () => ({
|
||||
|
@ -4364,7 +4400,7 @@ const buildDraftTransaction = () => ({
|
|||
// See details in https://github.com/lbryio/lbry/issues/1307
|
||||
|
||||
|
||||
const defaultState$9 = {
|
||||
const defaultState$a = {
|
||||
balance: undefined,
|
||||
totalBalance: undefined,
|
||||
latestBlock: undefined,
|
||||
|
@ -4607,7 +4643,7 @@ const walletReducer = handleActions({
|
|||
[UPDATE_CURRENT_HEIGHT]: (state, action) => _extends$e({}, state, {
|
||||
latestBlock: action.data
|
||||
})
|
||||
}, defaultState$9);
|
||||
}, defaultState$a);
|
||||
|
||||
const selectState$6 = state => state.content || {};
|
||||
|
||||
|
@ -4695,6 +4731,18 @@ const selectUnfollowedTags = reselect.createSelector(selectKnownTagsByName, sele
|
|||
return tagsToReturn;
|
||||
});
|
||||
|
||||
//
|
||||
|
||||
const selectState$a = state => state.blockedChannels || {};
|
||||
|
||||
const selectBlockedChannels = reselect.createSelector(selectState$a, state => state.blockedChannels);
|
||||
|
||||
const selectBlockedChannelsCount = reselect.createSelector(selectState$a, state => state.blockedChannels.length);
|
||||
|
||||
const selectChannelIsBlocked = uri => reselect.createSelector(selectState$a, state => {
|
||||
return state.blockedChannels.includes(uri);
|
||||
});
|
||||
|
||||
exports.ACTIONS = action_types;
|
||||
exports.CLAIM_VALUES = claim;
|
||||
exports.DEFAULT_FOLLOWED_TAGS = DEFAULT_FOLLOWED_TAGS;
|
||||
|
@ -4710,6 +4758,7 @@ exports.SORT_OPTIONS = sort_options;
|
|||
exports.THUMBNAIL_STATUSES = thumbnail_upload_statuses;
|
||||
exports.TRANSACTIONS = transaction_types;
|
||||
exports.batchActions = batchActions;
|
||||
exports.blockChannelReducer = blockChannelReducer;
|
||||
exports.buildURI = buildURI;
|
||||
exports.claimsReducer = claimsReducer;
|
||||
exports.commentReducer = commentReducer;
|
||||
|
@ -4757,6 +4806,7 @@ exports.doSetDraftTransactionAmount = doSetDraftTransactionAmount;
|
|||
exports.doSetFileListSort = doSetFileListSort;
|
||||
exports.doSetTransactionListFilter = doSetTransactionListFilter;
|
||||
exports.doToast = doToast;
|
||||
exports.doToggleBlockChannel = doToggleBlockChannel;
|
||||
exports.doToggleTagFollow = doToggleTagFollow;
|
||||
exports.doTotalBalanceSubscribe = doTotalBalanceSubscribe;
|
||||
exports.doUpdateBalance = doUpdateBalance;
|
||||
|
@ -4828,8 +4878,11 @@ exports.selectAllClaimsByChannel = selectAllClaimsByChannel;
|
|||
exports.selectAllFetchingChannelClaims = selectAllFetchingChannelClaims;
|
||||
exports.selectAllMyClaimsByOutpoint = selectAllMyClaimsByOutpoint;
|
||||
exports.selectBalance = selectBalance;
|
||||
exports.selectBlockedChannels = selectBlockedChannels;
|
||||
exports.selectBlockedChannelsCount = selectBlockedChannelsCount;
|
||||
exports.selectBlocks = selectBlocks;
|
||||
exports.selectChannelClaimCounts = selectChannelClaimCounts;
|
||||
exports.selectChannelIsBlocked = selectChannelIsBlocked;
|
||||
exports.selectClaimSearchByQuery = selectClaimSearchByQuery;
|
||||
exports.selectClaimsById = selectClaimsById;
|
||||
exports.selectClaimsByUri = selectClaimsByUri;
|
||||
|
|
Loading…
Reference in a new issue