Skip to content

Commit

Permalink
Merge release into master (#2141)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Sean Yesmunt authored Dec 12, 2018
1 parent af25620 commit 8fa5573
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 11 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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.",
"keywords": [
"lbry"
Expand All @@ -23,6 +23,7 @@
"extract-langs": "node build/extractLocals.js",
"compile": "electron-webpack && yarn extract-langs",
"build": "yarn compile && electron-builder build",
"build:dir": "yarn build -- --dir -c.compression=store -c.mac.identity=null",
"dev": "electron-webpack dev",
"lint": "eslint 'src/**/*.{js,jsx}' --fix && flow",
"format": "prettier 'src/**/*.{js,jsx,scss,json}' --write",
Expand Down Expand Up @@ -133,7 +134,7 @@
"yarn": "^1.3"
},
"lbrySettings": {
"lbrynetDaemonVersion": "0.30.1rc7",
"lbrynetDaemonVersion": "0.30.1",
"lbrynetDaemonUrlTemplate": "https://github.com/lbryio/lbry/releases/download/vDAEMONVER/lbrynet-OSNAME.zip",
"lbrynetDaemonDir": "static/daemon",
"lbrynetDaemonFileName": "lbrynet"
Expand Down
32 changes: 27 additions & 5 deletions src/renderer/component/categoryList/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import ToolTip from 'component/common/tooltip';
import FileCard from 'component/fileCard';
import Button from 'component/button';
import SubscribeButton from 'component/subscribeButton';
import classnames from 'classnames';

type Props = {
category: string,
Expand All @@ -16,6 +17,7 @@ type Props = {
channelClaims: ?Array<Claim>,
fetchChannel: string => void,
obscureNsfw: boolean,
isSubComponent: boolean,
};

type State = {
Expand All @@ -26,6 +28,7 @@ type State = {
class CategoryList extends PureComponent<Props, State> {
static defaultProps = {
categoryLink: '',
isSubComponent: false,
};

constructor() {
Expand Down Expand Up @@ -207,14 +210,27 @@ class CategoryList extends PureComponent<Props, State> {
}

render() {
const { category, categoryLink, names, channelClaims, obscureNsfw } = this.props;
const {
category,
categoryLink,
names,
channelClaims,
obscureNsfw,
isSubComponent,
} = this.props;
const { canScrollNext, canScrollPrevious } = this.state;
const isCommunityTopBids = category.match(/^community/i);
const showScrollButtons = isCommunityTopBids ? !obscureNsfw : true;

// isSubComponent is a hack, this component should be able to handle this with proper overflow styling

return (
<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">
{categoryLink ? (
<div className="card__actions card__actions--no-margin">
Expand All @@ -234,7 +250,11 @@ class CategoryList extends PureComponent<Props, State> {
)}
</div>
{showScrollButtons && (
<div className="card-row__scroll-btns">
<div
className={classnames('card-row__scroll-btns', {
'card-row__scroll-btns--sub-component': isSubComponent,
})}
>
<Button
className="btn--arrow"
disabled={!canScrollPrevious}
Expand All @@ -259,7 +279,9 @@ class CategoryList extends PureComponent<Props, State> {
</div>
) : (
<div
className="card-row__scrollhouse"
className={classnames('card-row__scrollhouse', {
'card-row__scrollhouse--sub-component': isSubComponent,
})}
ref={ref => {
this.rowItems = ref;
}}
Expand Down Expand Up @@ -289,7 +311,7 @@ class CategoryList extends PureComponent<Props, State> {
{!channelClaims &&
!names &&
/* 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 */
}
</div>
Expand Down
10 changes: 7 additions & 3 deletions src/renderer/component/fileCard/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ type Props = {
isSubscribed: boolean,
showSubscribedLogo: boolean,
isNew: boolean,
placeholder: boolean,
};

class FileCard extends React.PureComponent<Props> {
static defaultProps = {
showSubscribedLogo: false,
placeholder: false,
};

componentWillMount() {
Expand Down Expand Up @@ -66,14 +68,16 @@ class FileCard extends React.PureComponent<Props> {
isNew,
showSubscribedLogo,
isResolvingUri,
placeholder,
} = this.props;

if (!isResolvingUri && !claim && !pending) {
// abandoned
const abandoned = !isResolvingUri && !claim && !pending && !placeholder;

if (abandoned) {
return null;
}

if (!claim && !pending) {
if ((!claim && !pending) || placeholder) {
return (
<div className="card card--small">
<div className="card--placeholder card__media" />
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/component/subscribeSuggested/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SuggestedSubscriptions extends PureComponent<Props> {
return suggested ? (
<div className="card__content subscriptions__suggested">
{suggested.map(({ uri, label }) => (
<CategoryList key={uri} category={label} categoryLink={uri} />
<CategoryList isSubComponent key={uri} category={label} categoryLink={uri} />
))}
</div>
) : null;
Expand Down
16 changes: 16 additions & 0 deletions src/renderer/scss/component/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@
// this needs to be used on a page with noPadding
// doing so allows the content to scroll to the edge of the screen
padding-left: $spacing-width;

&.card-row__header--sub-component {
padding-left: 0;
}
}

.card-row__message {
Expand All @@ -320,6 +324,12 @@
@media (min-width: $medium-breakpoint) {
padding-right: $spacing-width;
}

&.card-row__scroll-btns--sub-component {
@media (min-width: $medium-breakpoint) {
padding-right: 0;
}
}
}

.card-row__scrollhouse {
Expand Down Expand Up @@ -353,6 +363,12 @@
width: calc((100% / 8) - 27px);
}
}

&.card-row__scrollhouse--sub-component {
.card:first-of-type {
margin-left: 0;
}
}
}

.card-row__title {
Expand Down

0 comments on commit 8fa5573

Please sign in to comment.