mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-02 10:15:11 +00:00
Merge release into master (#2141)
* v0.26.0-rc.5 * v0.26.0-rc.6 * v0.26.0-rc.7 * v0.26.0-rc.8 * v0.26.0-rc.9 * v0.26.0-rc.10 * daemon v0.30.1rc8 * v0.26.0-rc.11 * v0.26.0-rc.12 * v0.26.0-rc.13 * chore: bump rc and daemon rc * update lbry-redux * fix title wrapping * fix: md button color in dark mode * hide abandonded claims * fix: can't preview alignment * update lbry-redux * chore: bump daemon rc * chore: bump rc * chore: bump proper daemon 0.30.1!! * fix: CategoryList style * v0.26.0-rc.16 * re-add build:dir script * v0.26.0
This commit is contained in:
parent
af25620ae3
commit
8fa5573f73
5 changed files with 54 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "LBRY",
|
"name": "LBRY",
|
||||||
"version": "0.26.0-rc.4",
|
"version": "0.26.0",
|
||||||
"description": "A browser for the LBRY network, a digital marketplace controlled by its users.",
|
"description": "A browser for the LBRY network, a digital marketplace controlled by its users.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"lbry"
|
"lbry"
|
||||||
|
@ -23,6 +23,7 @@
|
||||||
"extract-langs": "node build/extractLocals.js",
|
"extract-langs": "node build/extractLocals.js",
|
||||||
"compile": "electron-webpack && yarn extract-langs",
|
"compile": "electron-webpack && yarn extract-langs",
|
||||||
"build": "yarn compile && electron-builder build",
|
"build": "yarn compile && electron-builder build",
|
||||||
|
"build:dir": "yarn build -- --dir -c.compression=store -c.mac.identity=null",
|
||||||
"dev": "electron-webpack dev",
|
"dev": "electron-webpack dev",
|
||||||
"lint": "eslint 'src/**/*.{js,jsx}' --fix && flow",
|
"lint": "eslint 'src/**/*.{js,jsx}' --fix && flow",
|
||||||
"format": "prettier 'src/**/*.{js,jsx,scss,json}' --write",
|
"format": "prettier 'src/**/*.{js,jsx,scss,json}' --write",
|
||||||
|
@ -133,7 +134,7 @@
|
||||||
"yarn": "^1.3"
|
"yarn": "^1.3"
|
||||||
},
|
},
|
||||||
"lbrySettings": {
|
"lbrySettings": {
|
||||||
"lbrynetDaemonVersion": "0.30.1rc7",
|
"lbrynetDaemonVersion": "0.30.1",
|
||||||
"lbrynetDaemonUrlTemplate": "https://github.com/lbryio/lbry/releases/download/vDAEMONVER/lbrynet-OSNAME.zip",
|
"lbrynetDaemonUrlTemplate": "https://github.com/lbryio/lbry/releases/download/vDAEMONVER/lbrynet-OSNAME.zip",
|
||||||
"lbrynetDaemonDir": "static/daemon",
|
"lbrynetDaemonDir": "static/daemon",
|
||||||
"lbrynetDaemonFileName": "lbrynet"
|
"lbrynetDaemonFileName": "lbrynet"
|
||||||
|
|
|
@ -7,6 +7,7 @@ import ToolTip from 'component/common/tooltip';
|
||||||
import FileCard from 'component/fileCard';
|
import FileCard from 'component/fileCard';
|
||||||
import Button from 'component/button';
|
import Button from 'component/button';
|
||||||
import SubscribeButton from 'component/subscribeButton';
|
import SubscribeButton from 'component/subscribeButton';
|
||||||
|
import classnames from 'classnames';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
category: string,
|
category: string,
|
||||||
|
@ -16,6 +17,7 @@ type Props = {
|
||||||
channelClaims: ?Array<Claim>,
|
channelClaims: ?Array<Claim>,
|
||||||
fetchChannel: string => void,
|
fetchChannel: string => void,
|
||||||
obscureNsfw: boolean,
|
obscureNsfw: boolean,
|
||||||
|
isSubComponent: boolean,
|
||||||
};
|
};
|
||||||
|
|
||||||
type State = {
|
type State = {
|
||||||
|
@ -26,6 +28,7 @@ type State = {
|
||||||
class CategoryList extends PureComponent<Props, State> {
|
class CategoryList extends PureComponent<Props, State> {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
categoryLink: '',
|
categoryLink: '',
|
||||||
|
isSubComponent: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -207,14 +210,27 @@ class CategoryList extends PureComponent<Props, State> {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { category, categoryLink, names, channelClaims, obscureNsfw } = this.props;
|
const {
|
||||||
|
category,
|
||||||
|
categoryLink,
|
||||||
|
names,
|
||||||
|
channelClaims,
|
||||||
|
obscureNsfw,
|
||||||
|
isSubComponent,
|
||||||
|
} = this.props;
|
||||||
const { canScrollNext, canScrollPrevious } = this.state;
|
const { canScrollNext, canScrollPrevious } = this.state;
|
||||||
const isCommunityTopBids = category.match(/^community/i);
|
const isCommunityTopBids = category.match(/^community/i);
|
||||||
const showScrollButtons = isCommunityTopBids ? !obscureNsfw : true;
|
const showScrollButtons = isCommunityTopBids ? !obscureNsfw : true;
|
||||||
|
|
||||||
|
// isSubComponent is a hack, this component should be able to handle this with proper overflow styling
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="card-row">
|
<div className="card-row">
|
||||||
<div className="card-row__header">
|
<div
|
||||||
|
className={classnames('card-row__header', {
|
||||||
|
'card-row__header--sub-component': isSubComponent,
|
||||||
|
})}
|
||||||
|
>
|
||||||
<div className="card-row__title">
|
<div className="card-row__title">
|
||||||
{categoryLink ? (
|
{categoryLink ? (
|
||||||
<div className="card__actions card__actions--no-margin">
|
<div className="card__actions card__actions--no-margin">
|
||||||
|
@ -234,7 +250,11 @@ class CategoryList extends PureComponent<Props, State> {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{showScrollButtons && (
|
{showScrollButtons && (
|
||||||
<div className="card-row__scroll-btns">
|
<div
|
||||||
|
className={classnames('card-row__scroll-btns', {
|
||||||
|
'card-row__scroll-btns--sub-component': isSubComponent,
|
||||||
|
})}
|
||||||
|
>
|
||||||
<Button
|
<Button
|
||||||
className="btn--arrow"
|
className="btn--arrow"
|
||||||
disabled={!canScrollPrevious}
|
disabled={!canScrollPrevious}
|
||||||
|
@ -259,7 +279,9 @@ class CategoryList extends PureComponent<Props, State> {
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div
|
<div
|
||||||
className="card-row__scrollhouse"
|
className={classnames('card-row__scrollhouse', {
|
||||||
|
'card-row__scrollhouse--sub-component': isSubComponent,
|
||||||
|
})}
|
||||||
ref={ref => {
|
ref={ref => {
|
||||||
this.rowItems = ref;
|
this.rowItems = ref;
|
||||||
}}
|
}}
|
||||||
|
@ -289,7 +311,7 @@ class CategoryList extends PureComponent<Props, State> {
|
||||||
{!channelClaims &&
|
{!channelClaims &&
|
||||||
!names &&
|
!names &&
|
||||||
/* eslint-disable react/no-array-index-key */
|
/* eslint-disable react/no-array-index-key */
|
||||||
new Array(10).fill(1).map((x, i) => <FileCard key={i} />)
|
new Array(10).fill(1).map((x, i) => <FileCard placeholder key={i} />)
|
||||||
/* eslint-enable react/no-array-index-key */
|
/* eslint-enable react/no-array-index-key */
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,11 +29,13 @@ type Props = {
|
||||||
isSubscribed: boolean,
|
isSubscribed: boolean,
|
||||||
showSubscribedLogo: boolean,
|
showSubscribedLogo: boolean,
|
||||||
isNew: boolean,
|
isNew: boolean,
|
||||||
|
placeholder: boolean,
|
||||||
};
|
};
|
||||||
|
|
||||||
class FileCard extends React.PureComponent<Props> {
|
class FileCard extends React.PureComponent<Props> {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
showSubscribedLogo: false,
|
showSubscribedLogo: false,
|
||||||
|
placeholder: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
|
@ -66,14 +68,16 @@ class FileCard extends React.PureComponent<Props> {
|
||||||
isNew,
|
isNew,
|
||||||
showSubscribedLogo,
|
showSubscribedLogo,
|
||||||
isResolvingUri,
|
isResolvingUri,
|
||||||
|
placeholder,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
if (!isResolvingUri && !claim && !pending) {
|
const abandoned = !isResolvingUri && !claim && !pending && !placeholder;
|
||||||
// abandoned
|
|
||||||
|
if (abandoned) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!claim && !pending) {
|
if ((!claim && !pending) || placeholder) {
|
||||||
return (
|
return (
|
||||||
<div className="card card--small">
|
<div className="card card--small">
|
||||||
<div className="card--placeholder card__media" />
|
<div className="card--placeholder card__media" />
|
||||||
|
|
|
@ -23,7 +23,7 @@ class SuggestedSubscriptions extends PureComponent<Props> {
|
||||||
return suggested ? (
|
return suggested ? (
|
||||||
<div className="card__content subscriptions__suggested">
|
<div className="card__content subscriptions__suggested">
|
||||||
{suggested.map(({ uri, label }) => (
|
{suggested.map(({ uri, label }) => (
|
||||||
<CategoryList key={uri} category={label} categoryLink={uri} />
|
<CategoryList isSubComponent key={uri} category={label} categoryLink={uri} />
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
) : null;
|
) : null;
|
||||||
|
|
|
@ -306,6 +306,10 @@
|
||||||
// this needs to be used on a page with noPadding
|
// this needs to be used on a page with noPadding
|
||||||
// doing so allows the content to scroll to the edge of the screen
|
// doing so allows the content to scroll to the edge of the screen
|
||||||
padding-left: $spacing-width;
|
padding-left: $spacing-width;
|
||||||
|
|
||||||
|
&.card-row__header--sub-component {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-row__message {
|
.card-row__message {
|
||||||
|
@ -320,6 +324,12 @@
|
||||||
@media (min-width: $medium-breakpoint) {
|
@media (min-width: $medium-breakpoint) {
|
||||||
padding-right: $spacing-width;
|
padding-right: $spacing-width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.card-row__scroll-btns--sub-component {
|
||||||
|
@media (min-width: $medium-breakpoint) {
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-row__scrollhouse {
|
.card-row__scrollhouse {
|
||||||
|
@ -353,6 +363,12 @@
|
||||||
width: calc((100% / 8) - 27px);
|
width: calc((100% / 8) - 27px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.card-row__scrollhouse--sub-component {
|
||||||
|
.card:first-of-type {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-row__title {
|
.card-row__title {
|
||||||
|
|
Loading…
Add table
Reference in a new issue