Collections #383

Merged
jessopb merged 20 commits from collections into master 2021-06-08 17:51:49 +02:00
4 changed files with 6 additions and 14 deletions
Showing only changes of commit 6d160b3d14 - Show all commits

3
dist/bundle.es.js vendored
View file

@ -4153,7 +4153,6 @@ function doUpdateChannel(params, cb) {
}
// we'll need to remove these once we add locations/channels to channel page edit/create options
if (channelClaim && channelClaim.value && channelClaim.value.locations) {
updateParams.locations = channelClaim.value.locations;
}
@ -4187,7 +4186,7 @@ function doImportChannel(certificate) {
type: IMPORT_CHANNEL_STARTED
});
return lbryProxy.channel_import({ channel_data: certificate }).then(result => {
return lbryProxy.channel_import({ channel_data: certificate }).then(() => {
dispatch({
type: IMPORT_CHANNEL_COMPLETED
});

View file

@ -5,7 +5,7 @@ declare type Collection = {
infinite-persistence commented 2021-06-04 14:08:06 +02:00 (Migrated from github.com)
Review

typo?

typo?
infinite-persistence commented 2021-06-04 14:08:06 +02:00 (Migrated from github.com)
Review

typo?

typo?
type: string,
updatedAt: number,
totalItems?: number,
sourceid?: string, // if copied, claimId of original collection
infinite-persistence commented 2021-06-04 14:08:06 +02:00 (Migrated from github.com)
Review

typo?

typo?
sourceId?: string, // if copied, claimId of original collection
infinite-persistence commented 2021-06-04 14:08:06 +02:00 (Migrated from github.com)
Review

typo?

typo?
};
declare type CollectionState = {

infinite-persistence commented 2021-06-04 14:08:06 +02:00 (Migrated from github.com)
Review

typo?

typo?
infinite-persistence commented 2021-06-04 14:08:06 +02:00 (Migrated from github.com)
Review

typo?

typo?

View file

@ -5,7 +5,7 @@ declare type Collection = {
type: string,
updatedAt: number,
totalItems?: number,
sourceid?: string, // if copied, claimId of original collection
sourceId?: string, // if copied, claimId of original collection
};
declare type CollectionState = {

View file

@ -10,8 +10,6 @@ import {
selectClaimsByUri,
infinite-persistence commented 2021-06-04 14:12:15 +02:00 (Migrated from github.com)
Review

There are a few unused variables in this file.

There are a few unused variables in this file.
selectMyChannelClaims,
selectPendingIds,
selectClaimsById,
makeSelectClaimForClaimId,
} from 'redux/selectors/claims';
import { doFetchTxoPage } from 'redux/actions/wallet';
@ -21,7 +19,6 @@ import { batchActions } from 'util/batch-actions';
import { createNormalizedClaimSearchKey } from 'util/claim';
import { PAGE_SIZE } from 'constants/claim';
import {
makeSelectEditedCollectionForId,
selectPendingCollections,
} from 'redux/selectors/collections';
import {
@ -30,8 +27,6 @@ import {
doCollectionDelete,
} from 'redux/actions/collections';
type ResolveEntries = Array<[string, GenericClaim]>;
export function doResolveUris(
uris: Array<string>,
returnCachedClaims: boolean = false,
@ -81,7 +76,6 @@ export function doResolveUris(
return Lbry.resolve({ urls: urisToResolve, ...options }).then(
async(result: ResolveResponse) => {
let repostedResults = {};
const collectionClaimIdsToResolve = [];
const repostsToResolve = [];
const fallbackResolveInfo = {
stream: null,
@ -518,7 +512,6 @@ export function doUpdateChannel(params: any, cb: any) {
}
// we'll need to remove these once we add locations/channels to channel page edit/create options
if (channelClaim && channelClaim.value && channelClaim.value.locations) {
updateParams.locations = channelClaim.value.locations;
}
@ -556,7 +549,7 @@ export function doImportChannel(certificate: string) {
});
return Lbry.channel_import({ channel_data: certificate })
.then((result: string) => {
.then(() => {
dispatch({
type: ACTIONS.IMPORT_CHANNEL_COMPLETED,
});