merge with master to resolve conflicts
This commit is contained in:
commit
070468e4d9
11 changed files with 5651 additions and 8583 deletions
6
.babelrc
6
.babelrc
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
"presets": ["env", "stage-2"],
|
"presets": ["@babel/preset-env"],
|
||||||
"plugins": ["transform-flow-comments"]
|
"plugins": [
|
||||||
|
"@babel/plugin-transform-flow-strip-types"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
2757
dist/bundle.es.js
vendored
Normal file
2757
dist/bundle.es.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
10374
dist/bundle.js
vendored
10374
dist/bundle.js
vendored
File diff suppressed because it is too large
Load diff
19
package.json
19
package.json
|
@ -19,8 +19,9 @@
|
||||||
"email": "hello@lbry.io"
|
"email": "hello@lbry.io"
|
||||||
},
|
},
|
||||||
"main": "dist/bundle.js",
|
"main": "dist/bundle.js",
|
||||||
|
"module": "dist/bundle.es.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack",
|
"build": "rollup --config && webpack",
|
||||||
"dev": "webpack --watch",
|
"dev": "webpack --watch",
|
||||||
"precommit": "lint-staged",
|
"precommit": "lint-staged",
|
||||||
"preinstall": "yarn cache clean lbry-redux",
|
"preinstall": "yarn cache clean lbry-redux",
|
||||||
|
@ -28,19 +29,20 @@
|
||||||
"format": "prettier 'src/**/*.{js,json}' --write"
|
"format": "prettier 'src/**/*.{js,json}' --write"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bluebird": "^3.5.1",
|
|
||||||
"reselect": "^3.0.0"
|
"reselect": "^3.0.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"lbry-redux": "lbryio/lbry-redux#sync"
|
"lbry-redux": "lbryio/lbry-redux#sync"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "^6.26.0",
|
"@babel/core": "^7.4.3",
|
||||||
|
"@babel/plugin-transform-flow-strip-types": "^7.4.0",
|
||||||
|
"@babel/preset-env": "^7.4.3",
|
||||||
|
"@babel/preset-stage-2": "^7.0.0",
|
||||||
"babel-eslint": "^8.0.3",
|
"babel-eslint": "^8.0.3",
|
||||||
"babel-loader": "^7.1.4",
|
"babel-loader": "^8.0.5",
|
||||||
"babel-plugin-module-resolver": "^3.0.0",
|
"babel-plugin-module-resolver": "^3.0.0",
|
||||||
"babel-preset-env": "^1.6.1",
|
"cross-env": "^5.2.0",
|
||||||
"babel-preset-stage-2": "^6.18.0",
|
|
||||||
"eslint": "^4.19.1",
|
"eslint": "^4.19.1",
|
||||||
"eslint-config-airbnb-base": "^12.1.0",
|
"eslint-config-airbnb-base": "^12.1.0",
|
||||||
"eslint-config-prettier": "^2.9.0",
|
"eslint-config-prettier": "^2.9.0",
|
||||||
|
@ -48,13 +50,16 @@
|
||||||
"eslint-plugin-flowtype": "^2.40.1",
|
"eslint-plugin-flowtype": "^2.40.1",
|
||||||
"eslint-plugin-import": "^2.10.0",
|
"eslint-plugin-import": "^2.10.0",
|
||||||
"eslint-plugin-prettier": "^2.4.0",
|
"eslint-plugin-prettier": "^2.4.0",
|
||||||
"flow-babel-webpack-plugin": "^1.1.1",
|
|
||||||
"flow-bin": "^0.69.0",
|
"flow-bin": "^0.69.0",
|
||||||
"flow-typed": "^2.4.0",
|
"flow-typed": "^2.4.0",
|
||||||
"husky": "^0.14.3",
|
"husky": "^0.14.3",
|
||||||
"lbry-redux": "lbryio/lbry-redux",
|
"lbry-redux": "lbryio/lbry-redux",
|
||||||
"lint-staged": "^7.0.4",
|
"lint-staged": "^7.0.4",
|
||||||
"prettier": "^1.4.2",
|
"prettier": "^1.4.2",
|
||||||
|
"rollup": "^1.8.0",
|
||||||
|
"rollup-plugin-babel": "^4.3.2",
|
||||||
|
"rollup-plugin-flow": "^1.1.1",
|
||||||
|
"rollup-plugin-includepaths": "^0.2.3",
|
||||||
"webpack": "^4.5.0",
|
"webpack": "^4.5.0",
|
||||||
"webpack-cli": "^2.0.14"
|
"webpack-cli": "^2.0.14"
|
||||||
},
|
},
|
||||||
|
|
27
rollup.config.js
Normal file
27
rollup.config.js
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
import babel from 'rollup-plugin-babel';
|
||||||
|
import flow from 'rollup-plugin-flow';
|
||||||
|
import includePaths from 'rollup-plugin-includepaths';
|
||||||
|
|
||||||
|
let includePathOptions = {
|
||||||
|
include: {},
|
||||||
|
paths: ['src'],
|
||||||
|
external: [],
|
||||||
|
extensions: ['.js']
|
||||||
|
};
|
||||||
|
|
||||||
|
export default {
|
||||||
|
input: 'src/index.js',
|
||||||
|
output: {
|
||||||
|
file: 'dist/bundle.es.js',
|
||||||
|
format: 'cjs'
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
flow({ all: true }),
|
||||||
|
includePaths(includePathOptions),
|
||||||
|
babel({
|
||||||
|
babelrc: false,
|
||||||
|
presets: [],
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
external: ['lbry-redux']
|
||||||
|
}
|
|
@ -87,10 +87,7 @@ export {
|
||||||
selectFetchingRewards,
|
selectFetchingRewards,
|
||||||
selectUnclaimedRewardValue,
|
selectUnclaimedRewardValue,
|
||||||
selectClaimsPendingByType,
|
selectClaimsPendingByType,
|
||||||
selectIsClaimRewardPending,
|
|
||||||
selectClaimErrorsByType,
|
selectClaimErrorsByType,
|
||||||
selectClaimRewardError,
|
|
||||||
selectRewardByType,
|
|
||||||
selectRewardContentClaimIds,
|
selectRewardContentClaimIds,
|
||||||
selectReferralReward,
|
selectReferralReward,
|
||||||
} from 'redux/selectors/rewards';
|
} from 'redux/selectors/rewards';
|
||||||
|
@ -147,7 +144,6 @@ export {
|
||||||
makeSelectFetchingCostInfoForUri,
|
makeSelectFetchingCostInfoForUri,
|
||||||
makeSelectCostInfoForUri,
|
makeSelectCostInfoForUri,
|
||||||
selectAllCostInfoByUri,
|
selectAllCostInfoByUri,
|
||||||
selectCostForCurrentPageUri,
|
|
||||||
selectFetchingCostInfo,
|
selectFetchingCostInfo,
|
||||||
} from 'redux/selectors/cost_info';
|
} from 'redux/selectors/cost_info';
|
||||||
export { selectBlackListedOutpoints } from 'redux/selectors/blacklist';
|
export { selectBlackListedOutpoints } from 'redux/selectors/blacklist';
|
||||||
|
|
|
@ -16,9 +16,6 @@ import * as ACTIONS from 'constants/action_types';
|
||||||
import * as NOTIFICATION_TYPES from 'constants/subscriptions';
|
import * as NOTIFICATION_TYPES from 'constants/subscriptions';
|
||||||
import Lbryio from 'lbryio';
|
import Lbryio from 'lbryio';
|
||||||
import rewards from 'rewards';
|
import rewards from 'rewards';
|
||||||
import Promise from 'bluebird';
|
|
||||||
// import * as SETTINGS from 'constants/settings';
|
|
||||||
// import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
||||||
|
|
||||||
const CHECK_SUBSCRIPTIONS_INTERVAL = 15 * 60 * 1000;
|
const CHECK_SUBSCRIPTIONS_INTERVAL = 15 * 60 * 1000;
|
||||||
const SUBSCRIPTION_DOWNLOAD_LIMIT = 1;
|
const SUBSCRIPTION_DOWNLOAD_LIMIT = 1;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import {
|
||||||
} from 'redux/selectors/user';
|
} from 'redux/selectors/user';
|
||||||
import rewards from 'rewards';
|
import rewards from 'rewards';
|
||||||
import Lbryio from 'lbryio';
|
import Lbryio from 'lbryio';
|
||||||
import Promise from 'bluebird';
|
|
||||||
|
|
||||||
export function doFetchInviteStatus() {
|
export function doFetchInviteStatus() {
|
||||||
return dispatch => {
|
return dispatch => {
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { createSelector } from 'reselect';
|
import { createSelector } from 'reselect';
|
||||||
import { selectCurrentParams } from 'lbry-redux';
|
|
||||||
|
|
||||||
export const selectState = state => state.costInfo || {};
|
export const selectState = state => state.costInfo || {};
|
||||||
|
|
||||||
|
@ -8,12 +7,6 @@ export const selectAllCostInfoByUri = createSelector(selectState, state => state
|
||||||
export const makeSelectCostInfoForUri = uri =>
|
export const makeSelectCostInfoForUri = uri =>
|
||||||
createSelector(selectAllCostInfoByUri, costInfos => costInfos && costInfos[uri]);
|
createSelector(selectAllCostInfoByUri, costInfos => costInfos && costInfos[uri]);
|
||||||
|
|
||||||
export const selectCostForCurrentPageUri = createSelector(
|
|
||||||
selectAllCostInfoByUri,
|
|
||||||
selectCurrentParams,
|
|
||||||
(costInfo, params) => (params.uri && costInfo[params.uri] ? costInfo[params.uri].cost : undefined)
|
|
||||||
);
|
|
||||||
|
|
||||||
export const selectFetchingCostInfo = createSelector(selectState, state => state.fetching || {});
|
export const selectFetchingCostInfo = createSelector(selectState, state => state.fetching || {});
|
||||||
|
|
||||||
export const makeSelectFetchingCostInfoForUri = uri =>
|
export const makeSelectFetchingCostInfoForUri = uri =>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* eslint-disable import/no-commonjs */
|
/* eslint-disable import/no-commonjs */
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const FlowBabelWebpackPlugin = require('flow-babel-webpack-plugin');
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'none',
|
mode: 'none',
|
||||||
|
@ -22,6 +21,5 @@ module.exports = {
|
||||||
resolve: {
|
resolve: {
|
||||||
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
|
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
|
||||||
},
|
},
|
||||||
plugins: [new FlowBabelWebpackPlugin()],
|
|
||||||
externals: 'lbry-redux',
|
externals: 'lbry-redux',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue